Open Everest0516 opened 4 years ago
请问是什么问题,kali虚拟机中运行的,谢谢
F:\honker\tools\CTF-RSA-tool-master>python2 solve.py -v -k pubkey.pem --decrypt flag.enc
Traceback (most recent call last):
File "solve.py", line 148, in
和楼上一样的问题
Traceback (most recent call last):
File "solve.py", line 148, in
同问,使用mac下的python2.7也遇到了同样的问题
我也遇到了同样的问题。。
mac和kali上遇到同样的问题
root@kali:~/tools/CTF-RSA-tool# python solve.py --verbose -k examples/jarvis_oj_hardRSA/pubkey.pem --decrypt examples/jarvis_oj_hardRSA/flag.enc Traceback (most recent call last): File "solve.py", line 148, in
attackobj = lib.RSAutils.RSAAttack(args)
File "/root/tools/CTF-RSA-tool/lib/RSAutils.py", line 34, in init
self.c = libnum.s2n(f.read().strip())
File "/usr/local/lib/python2.7/dist-packages/libnum/strings.py", line 10, in s2n
return int(s.encode("utf-8").hex(), 16)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xde in position 1: ordinal not in range(128)