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 | |
| /** | |
| * Check if the given user agent string is one of a crawler, spider, or bot. | |
| * | |
| * @param string $user_agent | |
| * A user agent string (e.g. Googlebot/2.1 (+http://www.google.com/bot.html)) | |
| * | |
| * @return bool | |
| * TRUE if the user agent is a bot, FALSE if not. |
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/python | |
| # Exploit-db.com Google Dork Hacking Database Replicator written by Andy Bricker | |
| # Proof of concept. You shouldnt use this script without prior consent from Exploit-db.com | |
| # http://andybricker.com | |
| # Contact: andy at andybricker.com | |
| # Requirements | |
| # Python 2.7 (Has not been tasted on later versions) | |
| # Usage: |
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
| from oauth2client.service_account import ServiceAccountCredentials | |
| import httplib2 | |
| import json | |
| import pandas as pd | |
| # https://developers.google.com/search/apis/indexing-api/v3/prereqs#header_2 | |
| JSON_KEY_FILE = "json_key_file_downloaded_after_creating_your_google_service_account_see_above_details_on_how_to_do.json" | |
| SCOPES = ["https://www.googleapis.com/auth/indexing"] |