diff --git a/lib/rex/arch/x86.rb b/lib/rex/arch/x86.rb index 66208fb70d..304a3b80b3 100644 --- a/lib/rex/arch/x86.rb +++ b/lib/rex/arch/x86.rb @@ -161,6 +161,13 @@ module X86 raise ::ArgumentError, "Can only take signed byte values!", caller() end + # + # This method generates a push word instruction. + # + def self.push_word(val) + return "\x66\x68" + [ val ].pack('v') + end + # # This method generates a push dword instruction. # @@ -495,4 +502,4 @@ module X86 end -end end \ No newline at end of file +end end