Land #11101, temp fix for x64/xor stage encoder

Merge branch 'land-11101' into upstream-master
GSoC/Meterpreter_Web_Console
bwatters 2018-12-17 14:14:55 -06:00
commit bf13693d37
No known key found for this signature in database
GPG Key ID: ECC0F0A52E65F268
2 changed files with 16 additions and 0 deletions

View File

@ -15,6 +15,14 @@ class MetasploitModule < Msf::Encoder::XorDynamic
)
end
# Indicate that this module can preserve some registers
# ...which is currently not true. This is a temp fix
# until the full preserve_registers functionality is
# implemented.
def can_preserve_registers?
true
end
def stub
"\xeb\x27" + # jmp _call
"\x5b" + # _ret: pop rbx

View File

@ -15,6 +15,14 @@ class MetasploitModule < Msf::Encoder::XorDynamic
)
end
# Indicate that this module can preserve some registers
# ...which is currently not true. This is a temp fix
# until the full preserve_registers functionality is
# implemented.
def can_preserve_registers?
true
end
def stub
"\xeb\x23" + # jmp _call
"\x5b" + # _ret: pop ebx