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
  [FREE] 300+ Writeups PDF HackTheBox/HTB premium retired Tamarisk 364 88,776 1 hour ago
Last Post: napo22
  [MEGALEAK] HackTheBox ProLabs, Fortress, Endgame - Alchemy, 250 Flags, leak htb-bot htb-bot 90 7,531 Today, 05:26 AM
Last Post: dingaghost
  [FREE] HTB-ProLabs APTLABS Just Flags kewlsunny 23 2,353 03-28-2026, 03:30 AM
Last Post: lulaladrow
  HTB Eloquia User and Root Flags - Insane Box 69646B 13 353 03-27-2026, 06:14 PM
Last Post: vlxw
  HTB - ALL Challenges you Stuck in osamy7593 2 651 03-27-2026, 04:24 PM
Last Post: catsweet



 Users browsing this thread: