HTB - Sherlock - LItter - Neat parseing
by rustydusty - Monday March 18, 2024 at 08:30 PM
#1
This is just something neat I learned that I wanted to share for solving the Litter Sherlock challenge

The first way after looking at the information in WireShark and has been my go to for years. I parsing the data with tcpdump. Shown below.
tcpdump -qns 0 -A -r ./suspicious_traffic.pcap udp and src 192.168.157.145 and dst 192.168.157.144 | grep -v ' UDP, length' | cut -b 42- | cut -b -18 | xxd -r

Another way and something I did not know is that wireshark has it's own command line tool that makes parsing pcap files even easier.
tshark -r suspicious_traffic.pcap -Y 'ip.src == 192.168.157.144 && ip.dst == 192.168.157.145' | cut -d ' ' -f 12 | sed 's/.microsofto365.com//' | cut -b 19- | xxd -r -p | tr -cd '\12\40-\176'

I know this is a really short writeup but I thought it was much easier to use tshark for this lab. Basically if you run either of these commands you will be able to find all the answers you are looking for.to solve this challenge. 

Smile
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Hack the box Pro Labs, VIP, VIP+ 1 month free Method RedBlock 25 2,509 6 hours ago
Last Post: cry_elite
  CBBH Write Ups hiddenhacker 25 6,562 6 hours ago
Last Post: cry_elite
  [FREE] CPTS 12 FLAGS pulsebreaker 84 2,907 6 hours ago
Last Post: justhelpmefly
  [FREE] HackTheBox Academy - CBBH CDSA CPTS All Modules Flags Techtom 33 3,085 6 hours ago
Last Post: justhelpmefly
  [FREE] HackTheBox Academy - CAPE Path Study Techtom 44 4,427 7 hours ago
Last Post: useryuserx

Forum Jump:


 Users browsing this forum: 1 Guest(s)