一些脚本、命令行和小知识

187 阅读2分钟

git下载问题 不要用https:用git:

在这里插入图片描述

pip卸载和更新对应版本

在这里插入图片描述

大概意思是unicorn版本安装错了,可以卸载老版本,安装要求的版本: sudo pip3 uninstall unicorn sudo pip3 install unicorn==2.0.3rc3 在这里插入图片描述

提示缺少库

查linux缺少库的方法dpkg -S libgthread-2.0.so.0
安装 sudo apt-get install

安装一些东西经常要用到路径 where is

pwd 或 whereis xxx.sh

连接不上us.archive.ubuntu.com

sudo vi 文件名 blog.csdn.net/he_wolf/art…

实现分离

import re string ="0x640x350x380x340x610x360x380x640x340x650x320x310x330x640x380x380x770x350x310x310x760x340x380x650x360x310x670x380x640x360x650x38" #写出正则表达式 任意2个字符 pattern = re.compile('.{4}') #findall是找到所有的字符,再在字符中添加空格,当然你想添加其他东西当然也可以 print(' '.join(pattern.findall(string)))

大量解密数据 text = get_bytes(0x00004004, 0x85F3) ret = [] for i in range(len(text)): ret.append(chr(ord(text[i]) ^ 0x67))

print ''.join(ret)

找数据

#debug002段开始地址 begin = 0xC000000000 end = 0xC000200000 x = end-begin for i in range(1,x-1): addr = begin+i if(Byte(addr-1) == 0x39 and Byte(addr) == 0x61 and Byte(addr+1) == 0x62 and Byte(addr+2) == 0x63 and Byte(addr+3) == 0x64 and Byte(addr+4) == 0x65 and Byte(addr+5) == 0x66): print(hex(addr))

获取本机能malloc多大

blog.csdn.net/yaotengjian…

python安装等有关问题

pip install -i pypi.tuna.tsinghua.edu.cn/simple PyQt5 exe闪退的情况拖进cmd执行 重新生成exe的时候删掉dist,pyinstaller spec

Lib里的site-packages里有常用的包

pip install -i pypi.tuna.tsinghua.edu.cn/simple pyinstaller

bbs.testerhome.com/articles/19…

python读取文件的小发现

在这里插入图片描述