CoffeMiner – MITM WiFi To Inject Miner Script

CoffeMiner Logo MITM WiFi To Inject Miner Script

CoffeMiner is a tool to mining cryptocurrency using victim device, this tool is perform Man in The Middle attack and inject miner script in html page request by victim, the script will be automate mining a cryptocurrency.

Many Coffe shop that provide WiFi for customer, with this tool you can get free cryptocurrency coin from victim device that we have entered the script to mine. This tool use victim hardware (CPU/GPU) to mine a cryptocurrency coin. But all it just for research and education. Because you have to remember “Learn the hacker way’s to protect your self” don’t harming other’s.


Collaborative (mitm) cryptocurrency mining pool in wifi networks

Warning: this project is for academic/research purposes only.


  • Performs a MITM attack to all selected victims
  • Injects a js script in all the HTML pages requested by the victims
  • The js script injected contains a cryptocurrency miner
  • All the devices victims connected to the Lan network, will be mining for the CoffeeMiner

The Scenario

The scenario will be some machines connected to the WiFi network, and the CoffeeMiner attacker intercepting the traffic between the users and the router.

CoffeMiner Scenario 2 MITM WiFi To Inject Miner Script


§ chmod +x
§ ./

  • edit victims.txt with one IP per line
  • edit, line 28, with the coffeeMiner httpserver IP :
os.system("~/.local/bin/mitmdump -s '' -T")

  • execute
§ python3 ipgateway

CoffeMiner Scenario MITM WiFi To Inject Miner Script

A complete instructions for academic scenario can be found in


CoffeMiner Demo MITM WiFi To Inject Miner Script xploitlab

You May Also Like

Leave a Reply

Your email address will not be published. Required fields are marked *

five × 4 =