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

Update for mitmproxy 11 (or define which versions to use) #177

Open
mborus opened this issue Oct 10, 2024 · 9 comments
Open

Update for mitmproxy 11 (or define which versions to use) #177

mborus opened this issue Oct 10, 2024 · 9 comments

Comments

@mborus
Copy link

mborus commented Oct 10, 2024

I just tried out the program with a dump made with the current mitmproxy version 11.0.0

When I run the example like

mitmproxy2swagger -i <my-dump-file.mitm> -o api.json -p https://<removed>/api/v1

it defaults to HAR import and crashes with a UnicodeError

If I add

-f flow

the output is

"Flow file corrupted: mitmproxy 10.4.2 cannot read files with flow format version 21, please update mitmproxy."

Maybe you can add a warning to not use the current mitmproxy.

Some more info: When I manually update mitmproxy in the venv the code runs, but lists all endpoints as ignored.

@GamalMoneep
Copy link

try to setup via pipx !

@jjgit1234
Copy link

I just tried out the program with a dump made with the current mitmproxy version 11.0.0

When I run the example like

mitmproxy2swagger -i <my-dump-file.mitm> -o api.json -p https://<removed>/api/v1

it defaults to HAR import and crashes with a UnicodeError

If I add

-f flow

the output is

"Flow file corrupted: mitmproxy 10.4.2 cannot read files with flow format version 21, please update mitmproxy."

Maybe you can add a warning to not use the current mitmproxy.

Some more info: When I manually update mitmproxy in the venv the code runs, but lists all endpoints as ignored.

I get the same issue. Also tried with pipx

@jjgit1234
Copy link

Similar issue was fixed in #110

@be4zad
Copy link

be4zad commented Nov 11, 2024

I installed from archlinux repo instead of pypi (pipx) and fixed

@jjgit1234
Copy link

I installed from archlinux repo instead of pypi (pipx) and fixed

Please could you provide instructions

@be4zad
Copy link

be4zad commented Nov 11, 2024

I installed from archlinux repo instead of pypi (pipx) and fixed

Please could you provide instructions

Sure

pipx uninstall mitmproxy2swagger
sudo pacman -S mitmproxy2swagger

@jjgit1234
Copy link

I installed from archlinux repo instead of pypi (pipx) and fixed

Please could you provide instructions

Sure

pipx uninstall mitmproxy2swagger
sudo pacman -S mitmproxy2swag

I installed from archlinux repo instead of pypi (pipx) and fixed

Please could you provide instructions

Sure

pipx uninstall mitmproxy2swagger
sudo pacman -S mitmproxy2swagger

Perfect thanks

@rrehlert
Copy link

Just runned into the same error. I am using kali and got some trouble making pacman work, but managed to make the mitmproxy2swagger work by building it manually. Something like this:

git clone https://github.com/alufers/mitmproxy2swagger.git
cd mitmproxy2swagger
pip install .

Hope this can help someone.

@WafflesExploits
Copy link

Just runned into the same error. I am using kali and got some trouble making pacman work, but managed to make the mitmproxy2swagger work by building it manually. Something like this:

git clone https://github.com/alufers/mitmproxy2swagger.git
cd mitmproxy2swagger
pip install .

Hope this can help someone.

This worked for me thanks!

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