Again, this is the very easy part of the reverse engineering API process that most tools can do, similar to API Parrot and the rest of them. This is not hard to do. The hard part is that inevitably, all these internal APIs will just add aggressive CAPTCHAs, Device Check, fingerprinting, etc to prevent common drive by re'ing. Easy to add these on the defence side, and extremely difficult to bypass on the other side. I…
MitmProxy2Swagger: Automagically reverse-engineer REST APIs
11–20 of 82 posts
Re: MitmProxy2Swagger: Automagically reverse-engineer REST APIs
#12Re: MitmProxy2Swagger: Automagically reverse-engineer REST APIs
#13I was wondering how it would take in graphql endpoints and convert it to swagger, since its just a single POST API with change in params. But thats more of a swagger issue than the tools. Has anyone dealt with this? Would be really helpful if you could share your ideas too :)
If you're working against an GraphQL based API, you should be able to pull a schema file. And use that to implement your own API.
All you would get from an Mitmproxy is example queries and mutations. With the additional complexity of extra tooling to stich together the schema file
Re: MitmProxy2Swagger: Automagically reverse-engineer REST APIs
#14I was wondering how it would take in graphql endpoints and convert it to swagger, since its just a single POST API with change in params. But thats more of a swagger issue than the tools. Has anyone dealt with this? Would be really helpful if you could share your ideas too :)
Why would you tho? If you're working against an GraphQL based API, you should be able to pull a schema file. And use that to implement your own API. All you would get from an Mitmproxy is example queries and mutations. With the additional complexity of extra tooling to stich together the schema file
Re: MitmProxy2Swagger: Automagically reverse-engineer REST APIs
#15(screenshot in case this goes away https://x.com/swyx/status/1874762725383188502)
Re: MitmProxy2Swagger: Automagically reverse-engineer REST APIs
#16did i miss something or why are there TWO (2) "magically reverse engineer REST APIs" projects on the HN front page right now? is there some offline beef going on? (screenshot in case this goes away https://x.com/swyx/status/1874762725383188502 )
Re: MitmProxy2Swagger: Automagically reverse-engineer REST APIs
#17This is something that would be easy to do an ordinary job of, missing lots of edge cases and not making something thorough and complete. A really professional and thorough job would be extremely time consuming and hard.
Re: MitmProxy2Swagger: Automagically reverse-engineer REST APIs
#18Re: MitmProxy2Swagger: Automagically reverse-engineer REST APIs
#19perhaps a n00b question, but would this work, or is there something similar for apps, specifically android apps?
Re: MitmProxy2Swagger: Automagically reverse-engineer REST APIs
#20perhaps a n00b question, but would this work, or is there something similar for apps, specifically android apps?
EDIT: or rather follow the docs[0]
[0]: https://docs.mitmproxy.org/stable/howto-install-system-trust...