Fix improper use of the Ruby shovel operator (<<)
junk would be modified and returned, and we just want to return the concatenated string. Practically doesn't matter, but it's incorrect. This was my first public module. I've been wanting to fix this since. I'm noticing it again now as I look for how I used Ret in a target.GSoC/Meterpreter_Web_Console
parent
dbfe67573d
commit
d9cb052189
|
@ -70,6 +70,6 @@ class MetasploitModule < Msf::Exploit
|
|||
jump = Rex::Arch::X86.jmp_short(66)
|
||||
padding = rand_text(66) # Pad past buffer corruption
|
||||
|
||||
junk << seh << jump << padding << payload.encoded
|
||||
junk + seh + jump + padding + payload.encoded
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue