Advertisement
FlyFar

format_for_editthiscookie.sh

Jul 24th, 2023
859
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.25 KB | Cybersecurity | 0 0
  1. #! /bin/bash
  2.  
  3. # Filters out just the field we're interested in from Chrome's response, and also removes leading `.` characters from domain names (e.g. `.google.com` -> `google.com`, which is needed for EditThisCookie)
  4. jq '.result.cookies' | sed -E 's/"\./"/'
Tags: Cookie format
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement