remove some extra whitespace
git-svn-id: file:///home/svn/framework3/trunk@13651 4d416f70-5f16-0410-b530-b9f4589650daunstable
parent
57814c4012
commit
6146d0ab0f
|
@ -69,7 +69,7 @@ class Metasploit3 < Msf::Post
|
||||||
# Negotiation
|
# Negotiation
|
||||||
rsock.put('NBDMAGIC')
|
rsock.put('NBDMAGIC')
|
||||||
rsock.put("\x00\x00\x42\x02\x81\x86\x12\x53")
|
rsock.put("\x00\x00\x42\x02\x81\x86\x12\x53")
|
||||||
|
|
||||||
rsock.put([disk_size].pack("Q").reverse)
|
rsock.put([disk_size].pack("Q").reverse)
|
||||||
rsock.put("\x00\x00\x00\x03") # Read-only
|
rsock.put("\x00\x00\x00\x03") # Read-only
|
||||||
rsock.put("\x00"*124)
|
rsock.put("\x00"*124)
|
||||||
|
@ -78,7 +78,7 @@ class Metasploit3 < Msf::Post
|
||||||
while true
|
while true
|
||||||
request = rsock.read(28)
|
request = rsock.read(28)
|
||||||
magic, request, nbd_handle, offset_n, length = request.unpack("NNa8a8N")
|
magic, request, nbd_handle, offset_n, length = request.unpack("NNa8a8N")
|
||||||
|
|
||||||
if magic != 0x25609513
|
if magic != 0x25609513
|
||||||
print_line("Wrong magic number")
|
print_line("Wrong magic number")
|
||||||
break
|
break
|
||||||
|
@ -106,4 +106,4 @@ class Metasploit3 < Msf::Post
|
||||||
|
|
||||||
client.railgun.kernel32.CloseHandle(handle)
|
client.railgun.kernel32.CloseHandle(handle)
|
||||||
end
|
end
|
||||||
end
|
end
|
Loading…
Reference in New Issue