Permalink
Browse files

Fixed KSA arguments

  • Loading branch information...
b
b committed Dec 17, 2017
1 parent 5cdefff commit e1569aeb3c853c658e33ac0f8cf8c69604db6ba7
Showing with 4 additions and 3 deletions.
  1. +4 −3 sample/rc4/prga.py
View
@@ -100,15 +100,16 @@ def run(self, arg_0, arg_1):
self.mu.mem_write(argAddr_1, arg_1)
self.mu.reg_write(UC_X86_REG_RSI, argAddr_1)
self._start_unicorn(0x40065a)
return self.mu.reg_read(UC_X86_REG_RAX)
return self.mu.mem_read(argAddr_1,256)
# return self.mu.reg_read(UC_X86_REG_RAX)
key="key"
S=""
S=" "*256
cipher=""
plain="test"
ksa=KSA()
ksa.run(key,S)
S=str(ksa.run(key,S))
print repr(S)
prga=PRGA()
prga.run(S,plain,cipher)

0 comments on commit e1569ae

Please sign in to comment.