Raptor是一款采用C語言編寫的WEB應用防火墻,使用DFA來阻止SQL注入、Xss目錄遍歷等攻擊。
編譯&安裝
$ git clone https://github.com/CoolerVoid/raptor_waf
$ cd raptor_waf; make; bin/raptor
使用示例
在80端口開啟httpd服務并上傳一些東西:
$ bin/Raptor -h localhost -p80-r8883-w4-o loglog.txt
復制存在漏洞的PHP代碼到WEB目錄:
$ cp doc/test_dfa/test.php /var/www/html
現在你可以在http://localhost:8883/test.php測試Xss攻擊了