一些二进制学习笔记和题目WP
需在开头添加一行from idc_bc695 import *
git 设置和取消代理:git config --global http.proxy http://192.168.83.1:7890git config --global https.proxy https://192.168.83.1:7890git config --global --unset http.proxygit config --global --unset https.proxy||npm config delete proxy|
一、binascii库基本介绍用处主要用于二进制和ASCII互相转换(Convert between binary and ASCII );包含的函数使用前要将字符串转换为字节流数据才能用此模块!方法(1):b = string.encode()方法(2):b = bytes(string,'ascii')相关内置函数chr():把一个整形转换成ASCII码表中对应的单个字符 ord():把ASCII码表中的字符转换成对应的整形 hex():把十进制转换成16进制字符 oct():把十进制转换成八进制字符 bin():把十进制整形转换成二进制字符 code,使用示例二、常用功能(1)二进制数据(byte类型数据)和ASCII的转换在16进制和字符串的转换过程中,主要用到了以下几个函数:a2b_hex():返回16进制的二进制数据表现形式b2a_hex():返回二进制数据的16进制表现形式hexlify():返回二进制数据的16进制表现形式unhexlify():返回16进制的二进制数据表现形16进制数据转换成字符串此时b= 68656c6c6f2c2077726f6c64c
一、常用快捷键命令 简写形式 说明backtrace bt、where 显示backtracebreak b 设置断点continue c、cont 继续执行delete d 删除断点finish 运行到函数结束info breakpoints 显示断点信息next n 执行下一行print p 显示表达式run r 运行程序step s 一次执行一行,包括函数内部x 显示内存内容until
Norman1z