Hackerone: Parsing the Burp Project Config File

Using JQ to parse the data

-[Sat Aug 20 - 13:47:03]-[zak@Zaks-MacBook-Pro]-
-[~/target]$ cat Target.json | jq '.target.scope.include[] .host' | sort -u | awk -F^ {'print $2'} | sed 's/\$"//g' | sed 's/\\\\././g' | sed 's/\.\*\./*./g'
*.target.com
*.target.app
*.target.com
*.target.inmobi.com
*.target.world
*.target.com
*.target.com
*.target.com
*.target.com
target.com

Using Grep to parse the data

-[Sat Aug 20 - 13:47:25]-[zak@Zaks-MacBook-Pro]-
-[~/target]$ cat Target.json | grep host | sort -u | awk -F^ {'print $2'} | sed 's/\$",//g' | sed 's/\\\\././g' | sed 's/\.\*\./*./g'
*.target.com
*.target.app
*.target.com
*.target.inmobi.com
*.target.world
*.target.com
*.target.com
*.target.com
*.target.com
target.com