fix code for 24-27

This commit is contained in:
yunwei37
2023-05-31 01:12:44 +08:00
committed by 云微
parent 48fae08f08
commit ad567ea830
16 changed files with 88 additions and 47 deletions

View File

@@ -1,2 +1,24 @@
# signal
# 用 bpf_send_signal 发送信号终止恶意进程
编译:
```bash
make
```
使用方式:
```bash
sudo ./bpfdos
```
这个程序会对任何试图使用 `ptrace` 系统调用的程序,例如 `strace`,发出 `SIG_KILL` 信号。
一旦 bpf-dos 开始运行,你可以通过运行以下命令进行测试:
```bash
strace /bin/whoami
```
## 参考资料
- <https://github.com/pathtofile/bad-bpf>