Extract JSON from HTTP captured traffic with Wireshark

Image for post
Image for post
One sniffer tool to capture EVERYTHING!

Motivation

1. Capturing the HTTP traffic

tcpdump -i any -s 0 'port 8080 and (((ip[2:2] — ((ip[0]&0xf)<<2)) — ((tcp[12]&0xf0)>>2)) != 0)' -w http-traffic.cap
Image for post
Image for post
All right! 48 packets were captured!

2. Exporting JSON with WireShark

http.request.method == POST && http.request.uri contains "/api"
Image for post
Image for post
All our HTTP packets ordered
Image for post
Image for post

Written by

CTO @ Digitalilusion.com & DigitalSecured.net Beyond-Full-stack developer #go #python #kubernetes

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store