mirror of
https://github.com/rapid7/metasploit-payloads
synced 2025-01-14 17:37:27 +01:00
Correctly encrypt Java & Android files in Rake task
This commit is contained in:
parent
d2808773b5
commit
eb5f2bdcd2
28
gem/Rakefile
28
gem/Rakefile
@ -21,7 +21,7 @@ platform_config = {
|
||||
"dll"
|
||||
]
|
||||
},
|
||||
:java => {
|
||||
:java_meterpreter => {
|
||||
:sources => [
|
||||
"../java/output/data/meterpreter"
|
||||
],
|
||||
@ -29,6 +29,25 @@ platform_config = {
|
||||
"jar"
|
||||
],
|
||||
},
|
||||
:java_output => {
|
||||
:sources => [
|
||||
"../java/output/data/java"
|
||||
],
|
||||
:extensions => [
|
||||
"class"
|
||||
]
|
||||
},
|
||||
:android => {
|
||||
:sources => [
|
||||
"../java/output/data/android"
|
||||
],
|
||||
:extensions => [
|
||||
"jar",
|
||||
"dex",
|
||||
"xml",
|
||||
"arsc"
|
||||
]
|
||||
},
|
||||
:php => {
|
||||
:sources => [
|
||||
php_source
|
||||
@ -83,10 +102,9 @@ task :win_copy do
|
||||
end
|
||||
|
||||
task :java_copy do
|
||||
copy_files(platform_config[:java], meterpreter_dest)
|
||||
FileUtils.remove_entry_secure('./java', :force => true)
|
||||
FileUtils.cp_r('../java/output/data/android', dest)
|
||||
FileUtils.cp_r('../java/output/data/java', dest)
|
||||
copy_files(platform_config[:java_meterpreter], meterpreter_dest)
|
||||
copy_files(platform_config[:java_output], dest)
|
||||
copy_files(platform_config[:android], dest)
|
||||
end
|
||||
|
||||
task :php_copy do
|
||||
|
Loading…
Reference in New Issue
Block a user