Lurker News

Comments (85) 38 threads

Earlier comments
alufers#
Hey! Just writing to let you know that I've added HAR input support to mitmproxy2swagger.
jeroenhd1 reply#
Very interesting! Would this also be able to determine what kind of auth (header tokens, cookies, etc) the APIs require or is that something you still need to detect manually?
alufers#
At this point yes, but I am working on adding this.
upupandup1 reply#
this is absolutely insane!!! I understand capturing the REST api network part, is it then examining the request body, headers being sent back and forth to figure out the API?
alufers1 reply#
Yes, this is basically what this program does.
ninkendo#
From what I understand it’s also somewhat how JIT works in various JavaScript engines: observe the sorts of objects (which naively have the performance characteristics of hash tables) you see, and start defining static offsets for fields you observed. The JIT’d (fast) objects may morph over time as new fields are observed, but I’d imagine it’s a similar idea to creating documentation… “this object tends to have these fields, so just pretend those are the only fields it can have, until another request proves otherwise”, with similar guess/checking for their types/etc.
aleksiy1231 reply#
Really awesome, I tried my hand at writing something similar and was surprised at how well it actually ended up working.

I feel liken the next step is automatically generating load tests and/or fuzzing tests. Felt like that could be a real product.

Load more comments