samples/metasm-shell.rb in metasm-1.0.1 vs samples/metasm-shell.rb in metasm-1.0.2
- old
+ new
@@ -29,11 +29,10 @@
end
end
# encodes the current string as a Shellcode, returns the resulting EncodedData
def encode_edata
- s = Metasm::Shellcode.assemble @@cpu, self
- s.encoded
+ Metasm::Shellcode.assemble(@@cpu, self).encode.encoded
end
# encodes the current string as a Shellcode, returns the resulting binary String
# outputs warnings on unresolved relocations
def encode