Skip to content

Instantly share code, notes, and snippets.

@dewomser
Created May 20, 2020 17:02
Show Gist options
  • Save dewomser/b1693f876de79fb8ab00d5116e71bf89 to your computer and use it in GitHub Desktop.
Save dewomser/b1693f876de79fb8ab00d5116e71bf89 to your computer and use it in GitHub Desktop.
test_ma_url.sh
#!/bin/bash
me="untergang.de"
echo "Verzeichnisse, bei denen das Directory Listing aktiv ist:"
links "https://www.google.com/search?channel=fs&q=site:$me%20intitle:index.of"
echo "Vergessene oder ungeschützte Konfigurationsdateien:"
links "https://www.google.com/search?channel=fs&q=site:$me%20site:$me ext:xml | ext:conf | ext:cnf | ext:reg | ext:inf | ext:rdp | ext:cfg | ext:txt | ext:ora | ext:ini"
echo "Vergessene oder ungeschützte (SQL-)Datenbanken bzw. Backups:"
links "https://www.google.com/search?channel=fs&q=site:$me%20site:$me ext:sql | ext:dbf | ext:mdb"
echo "Vergessene oder ungeschützte Log-Dateien:"
links "https://www.google.com/search?channel=fs&q=site:$me%20site:$me ext:log"
echo "Backups und veraltete / vergessene (Sicherungs-)Dateien:"
links "https://www.google.com/search?channel=fs&q=site:$me%20ext:bkf | ext:bkp | ext:bak | ext:old | ext:backup"
echo "Seiten, die »login« in der URL beinhalten und auf einen zu schützenden Bereich hindeuten:"
links "https://www.google.com/search?channel=fs&q=site:$me inurl:login"
echo "Ausgabe von SQL-Fehlermeldungen. Ein erstes Indiz für SQL-Injections:"
links 'https://www.google.com/search?channel=fs&q=site:$me%20intext:"sql syntax near" | intext:"syntax error has occurred" | intext:"incorrect syntax near" | intext:"unexpected end of SQL command" | intext:"Warning: mysql_connect()" | intext:"Warning: mysql_query()" | intext:"Warning: pg_connect()"'
echo "Vergessene oder ungeschützte Dokumente:"
links "https://www.google.com/search?channel=fs&q=site:$me%20ext:doc | ext:docx | ext:odt | ext:pdf | ext:rtf | ext:sxw | ext:psw | ext:ppt | ext:pptx | ext:pps | ext:csv"
echo "Ausgabe der phpinfo():"
links "https://www.google.com/search?channel=fs&q=site:$me%20ext:php intitle:phpinfo \"published by the PHP Group\""
@dewomser
Copy link
Author

dewomser commented May 20, 2020

only a gist… does not work

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment