05 2018 档案

python 大小端数据转换
摘要:"6fe28c0ab6f1b372c1a6a246ae63f74f931e8365e15a089c68d6190000000000".decode('hex')[::-1].encode('hex_codec') #=> 000000000019d6689c085ae165831e934ff763ae46a2a6c172b3f1b60a8ce26f 阅读全文

posted @ 2018-05-22 15:43 帅胡 阅读(6968) 评论(0) 推荐(0)

WireShark开启IP, TCP,UDP校验和的办法
摘要:首先点击编辑->首选项 阅读全文

posted @ 2018-05-17 12:02 帅胡 阅读(4166) 评论(0) 推荐(0)

scpclient使用报错fchmod无法找到问题解决
摘要:因为这个函数时linux下专用的,Windows下无法使用,所以会导致提示这个函数不能使用,解决的方法如下: 1. import platform 2. if platform.system() == "Linux": _os.fchmod(fl.fileno(), reader.mode if o 阅读全文

posted @ 2018-05-03 15:14 帅胡 阅读(285) 评论(0) 推荐(0)

python 判断操作系统类型
摘要:1 #!/bin/python 2 # 3 import platform 4 5 def TestPlatform(): 6 print ("----------Operation System--------------------------") 7 #Windows will be : (32bit, WindowsPE) 8 #Linux wi... 阅读全文

posted @ 2018-05-03 15:01 帅胡 阅读(2008) 评论(0) 推荐(0)

导航