fffonion / Xunlei-Fastdick

迅雷快鸟 Xunlei Network Accelerator For Router
https://yooooo.us/2015/xunlei-fastdick-router
819 stars 176 forks source link

账号加密的文件不生成 #23

Closed Cheukfung closed 8 years ago

Cheukfung commented 9 years ago

密文账号文件不生成,明文删除之后就要重新设置了。

fffonion commented 9 years ago

你好,能否给一个重现的步骤?

Cheukfung commented 9 years ago

ubuntu 14.04,自带的Python执行python swjsq.py之后,提速成功。生成ipk,sh,log文件,swjsq.account.txt文件被删除,没有其他文件生产。newifi上pandorabox,python版本,2.7.3,同样问题。都没有安装pycrypto。是否是我的环境问题?谢谢

fffonion commented 9 years ago

生成的文件是.开头的,需要显示隐藏文件,或者ls -a

1a57danc3 commented 9 years ago

Login xunlei succeeded To Upgrade: shang_hai tel Down 20M -> 30M, Up 2M -> 20M Initializing upgrade Upgrade done: Down 30M, Up 0M Traceback (most recent call last): File "swjsq.py", line 414, in fast_d1ck(uid, pwd_md5, TYPE_NUM_ACCOUNT, save = False) File "swjsq.py", line 258, in fastd1ck open('swjsq.log', 'a').write('%s %s\n' % (time.strftime('%X', time.localtime(time.time())), )) UnicodeEncodeError: 'ascii' codec can't encode characters in position 74-75: ordinal not in range(128) Sending recover request

fffonion commented 9 years ago

258行这个的确有编码的问题,但是感觉应该不是很有关系 另外既然运行到line 414,那说明account_file_encrypted = '.swjsq.account'这个文件是存在的,代码里没有删除这个文件的逻辑,按道理说不会消失啊 : (

fffonion commented 9 years ago

@akar1nchan 我这里没法复现bug,能否麻烦从进入fast_d1ck方法开始插几个raw_input()看下这个文件是在哪里开始消失的

Cheukfung commented 9 years ago

@fffonion 原来如此,谢谢