> For the complete documentation index, see [llms.txt](https://blog.micsoftvn.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://blog.micsoftvn.com/use-cases/for-engineering/su-dung-pet.md).

# Sử dụng PET

#### 1. Cài đặt và sử dụng PET trên Ubuntu

```
sudo apt-get install linuxbrew-wrapper
wget https://github.com/knqyf263/pet/releases/download/v0.3.6/pet_0.3.6_linux_amd64.deb
dpkg -i pet_0.3.6_linux_amd64.deb
```

Sau khi đã cài đặt thành công

![](/files/3Gxly1cRwIDwZgK9pAUD)

![](/files/TS5WJA4cksiqPYqKU9w0)

Ví dụ câu lệnh Monitor DDOS

```
netstat -nap | grep \:80\  | awk '{print $5}' | tr ":" " " | awk '{print $1}' | sort | uniq -c | sort -n
```
