fork download
  1. # your code goes here
Success #stdin #stdout 0.02s 7244KB
stdin
import requests

def google_dork_search(search_query):
    dorks = [
        'intitle:index.of',
        'inurl:admin',
        'filetype:log',
        'site:example.com',
        'intext:password',
        'ext:sql',
        'intitle:"Error: 404"',
        'intext:"MySQL server version"',
        'filetype:inc',
        'intext:"MOBOTIX M1" intext:"Open Menu"',
        'intext:"powered by vBulletin"',
        'intext:"Welcome to phpMyAdmin"',
        'intitle:"Index of" /etc/',
        'filetype:wsdl wsdl',
        'intitle:"index of" intext:connect.inc',
        'filetype:config web.config',
        'ext:asp inurl:pathto.asp',
        'inurl:wp-config.bak',
        'inurl:admin filetype:xml',
        'inurl:server-info "Apache Server Information"',
        'inurl:admin.php intitle:login',
        'intitle:"Index of" passwords modified',
        'ext:txt "Final encryption key"',
        'filetype:reg reg HKEY_CURRENT_USER SSHHOSTKEYS',
        'intitle:"index of" intext:sftp-config.json',
        'intitle:"index of" inurl:config.yml',
        'ext:ini Version=4.0.0.4 password',
        'intitle:"index of" intext:settings.py',
        'ext:asax asax',
        'intext:"Powered by DUpayments"',
        'intitle:"index of" intext:globals.php',
        'intext:"Powered by OpenEMR"',
        'inurl:.bash_history',
        'filetype:properties inurl:db',
        'intitle:"index of" intext:.env',
        'intitle:"index of" inurl:settings.php',
        'ext:txt "SECRET_KEY ="',
        'inurl:"/wwwroot/dbconfig.inc"',
        'intitle:"index of" intext:credentials.txt',
        'filetype:env DB_USERNAME -git',
        'intitle:"index of" password.txt',
        'filetype:env DB_PASSWORD',
        'intext:"Powered by phpSQLiteCMS" | intitle:"phpSQLiteCMS - Administration"',
        'filetype:env "DB_USERNAME"',
        'intitle:"index of" intext:.env',
        'ext:txt "mysql dump" password',
        'intext:"Welcome to ntop!"',
        'intitle:"index of" intext:vpn',
        'intitle:"index of" intext:private.key',
        'ext:txt "DB_PASSWORD"',
        'intext:"Powered by TUTOS"',
        'intext:"Powered by Tiki Wiki CMS Groupware"',
        'filetype:env DB_HOST',
        'intitle:"index of" intext:config.php',
        'ext:txt "Session ID * * *"',
    ]

    results = []
    for dork in dorks:
        full_query =f ("{dork} {search_query}")
        url = f("https://www.google.com/search?q={full_query}")
        response = requests.get(url)
        results.append(response.text)

    return results

# Usage
search_query = input("What would you like to search? ")
search_results = google_dork_search(search_query)
print(search_results)
stdout
Standard output is empty