solve (368B)
1#!/usr/bin/env python3 2 3from base64 import b64decode 4import subprocess 5import requests 6import re 7 8cmd = "tshark -nr intro-forensics-1.pcapng -Y 'http' -T fields -e http.cookie" 9output = subprocess.check_output(cmd, shell=True).decode().split("\n") 10cookies = [[v for v in l.split("; ") if "token=" in v][0] for l in output if l.strip() != ""] 11print("\n".join(cookies))