This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #list unique resource domains | |
| jq '.log.entries[].request | {method,url}' $1 | jq 'if .method=="GET" then .url else "" end' | grep -Eo "http(s?)://([^/]+)./" | sort | uniq |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python | |
| """ | |
| Parse a HAR (HTTP Archive) and return URLs which resulted in a given HTTP response code | |
| HAR Spec: http://groups.google.com/group/http-archive-specification/web/har-1-2-spec | |
| Copyleft 2010 Ian Gallagher <crash@neg9.org> | |
| Example usage: ./har_response_urls.py foo.har 404 | |
| """ | |
| import json |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| $filename = '/private/var/log/system.log'; | |
| session_start(); | |
| if (isset($_GET['ajax'])) { | |
| if ( !file_exists($filename) ) { | |
| echo 'File does not exist...'; | |
| exit; | |
| } |