add pwn_env

This commit is contained in:
firmianay
2017-10-02 22:21:25 +08:00
parent e7fc0b5f8c
commit 9982723a0b
3 changed files with 127 additions and 22 deletions

View File

@ -81,3 +81,4 @@ r2pipe
#### 工具安装脚本
- ctf-tools - https://github.com/zardus/ctf-tools
- [pwn_env](../src/Others/2.1_pwn_env.sh)

View File

@ -276,28 +276,6 @@ rahash2 用于计算检验和,支持字节流、文件、字符串等形式和
- `-B`:打印处每个块的哈希
- `-s`:指定字符串(而不是文件)
- `-a entropy`:显示每个块的熵(`-B -b 512 -a entropy`
- ```
$ rahash2 -B -b 1024 a.out
0x00000000-0x000003ff sha256: 1fd71dfb92c2c1290c3f6a09e477b470a625aef4ab262e18127e6db790c47487
0x00000400-0x000007ff sha256: e4829aeb02e97585d663ace279a04d51e39964367943519e4136ab23f43b642a
0x00000800-0x00000bff sha256: 9ace05fc25ac536646f116d1030fbe03a958bc0ee3ae0af4b378e7549553bf5d
0x00000c00-0x00000fff sha256: d7f185a66987ff7ba0ac0813ff473c5f75e988c5904399f3e24994cade489f81
0x00001000-0x000013ff sha256: 1c24ed40e088544cd39ec974b7ebc6f6fb57a71f7d56455625ffe4f259825671
0x00001400-0x000017ff sha256: 9acbb50272925734fb1d1feca94e493dcdcd213c815f6680eecd22cba17a2494
0x00001800-0x00001bff sha256: c202fd18e976abdae80e4519f156aa5d7ad1623cd183d85429abdb388910b88b
0x00001c00-0x00001fff sha256: 7e23808d6acc635b763ef5b9171af1eb39a428a314e8edbdc02fd985abf19918
0x00002000-0x00002097 sha256: a44370a272c40becac05c369467dea4e7444dab674d7db029ff0b8be99330ba0
$ rahash2 -B -b 1024 -a entropy a.out
0x00000000-0x000003ff 2.820547: 35% [###############------------------------------]
0x00000400-0x000007ff 4.855878: 60% [###########################------------------]
0x00000800-0x00000bff 0.222447: 2% [---------------------------------------------]
0x00000c00-0x00000fff 0.810801: 10% [####-----------------------------------------]
0x00001000-0x000013ff 1.672678: 20% [#########------------------------------------]
0x00001400-0x000017ff 3.942760: 49% [######################-----------------------]
0x00001800-0x00001bff 3.153171: 39% [#################----------------------------]
0x00001c00-0x00001fff 1.325161: 16% [#######--------------------------------------]
0x00002000-0x00002097 0.942890: 11% [####-----------------------------------------]
```
#### radiff2
```text