Handle `!` with r_core_cmd_str_pipe Fix 'afl' output Add help for 'px' command Add pxQ and pxW to show one word per line Fix segmented io with maps and sections Some test cases got fixed Add test-r_anal.py
13 lines
295 B
Python
Executable file
13 lines
295 B
Python
Executable file
# XXX: r_hash is not bindable atm :(
|
|
#from r2.r_hash import rHash, Size_MD4
|
|
try:
|
|
from r_core import RHash, Size_MD4
|
|
except:
|
|
from r2.r_core import RHash, Size_MD4
|
|
|
|
hash = RHash(False)
|
|
ret = hash.do_md4 ("food", 4)
|
|
str = "md4: "
|
|
for i in range(0, Size_MD4):
|
|
str += "%02x"%ord(ret[i])
|
|
print str
|