README.md 844 Bytes
Newer Older
Loic's avatar
Loic committed
1
hbsd-checksec
Robin David's avatar
Robin David committed
2
3
========

Loic's avatar
Loic committed
4
hbsd-checksec is a script to check the properties of executables (like PIE, RELRO, CFI, Canaries, ASLR).
Loic's avatar
Loic committed
5
6

It has been originally written by Tobias Klein and the original source is available [here](http://www.trapkit.de/tools/checksec.html).
Robin David's avatar
Robin David committed
7

Loic's avatar
Loic committed
8
9
10
11
12
13
How to run this script
--------

```
$ fetch https://git.hardenedbsd.org/loic/hbsd-checksec/-/raw/master/hbsd-checksec
$ chmod 710 hbsd-checksec 
Loic's avatar
Loic committed
14
$ ./hbsd-checksec
Loic's avatar
Loic committed
15
16
17
18
```


Usage
Robin David's avatar
Robin David committed
19
20
--------

Loic's avatar
Loic committed
21
22
```
Options:
Robin David's avatar
Robin David committed
23

Loic's avatar
Loic committed
24
25
26
27
28
29
30
 ## hbsd-checksec Options
  --file={file}
  --dir={directory}
  --listfile={text file with one file per line}
  --proc={process name}
  --proc-all
  --proc-libs={process ID}
Loic's avatar
Loic committed
31
  --kernel
Loic's avatar
Loic committed
32
33
  --version
  --help
Robin David's avatar
Robin David committed
34

Loic's avatar
Loic committed
35
36
37
38
39
40
41
42
43
44
45
 ## Modifiers
  --debug
  --verbose
  --format={cli,csv,xml,json}
  --output={cli,csv,xml,json}
  --no-extended
```


Examples
--------
Robin David's avatar
Robin David committed
46

Loic's avatar
Loic committed
47
![alt text](Example_proc-all.png)