Advertisement
metalx1000

Pull all Base64 jpg/jpeg images from a HAR file

Mar 18th, 2019
815
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.23 KB | None | 0 0
  1. #!/bin/bash
  2. #pull all jpg/jpegs from a HAR file
  3. let x=100
  4. grep -A 1 '"mimeType": "image/jpeg"' archive.org.har|\
  5.   grep "text"|\
  6.   cut -d\" -f4|\
  7.   while read l;
  8.   do
  9.     echo "$l"|base64 -d > $x.jpg;
  10.     let x+=1;
  11.   done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement