Skip to content

Commit e04254a

Browse files
authored
Merge pull request #3 from RULCSoft/master
CVE-2018-4407 PoC docs: Advice to use linux capabilities instead of running with full root privileges
2 parents b2233d3 + 394cabf commit e04254a

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

  • apple/darwin-xnu/icmp_error_CVE-2018-4407

apple/darwin-xnu/icmp_error_CVE-2018-4407/README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,3 +35,12 @@ sudo ./crash_all
3535
```
3636

3737
Use `crash_all` with care: it will crash any unpatched Apple device that is connected to the same network as you.
38+
39+
Alternatively you can give the `CAP_NET_RAW` capability to the binaries instead of using them under full root privileges:
40+
41+
```bash
42+
sudo setcap cap_net_raw=ep crash_all
43+
sudo setcap cap_net_raw=ep direct_attack
44+
```
45+
46+
Some libs are required to use setcap (libcap-ng-utils, libcap-progs, libcap2)

0 commit comments

Comments
 (0)