Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Security fix
fixed Stored XSS and file override via domain argument, reported by @rupesh-sshhh
  • Loading branch information
nerrorsec committed Apr 4, 2022
1 parent d9c469d commit 7f242b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion GoogleDorker.py
Expand Up @@ -99,7 +99,7 @@ def vendork(domain):
f.close()

options = get_arguments()
if options.domain:
if options.domain and re.match("^((?!-))(xn--)?[a-z0-9][a-z0-9-_]{0,61}[a-z0-9]{0,1}\.(xn--)?([a-z0-9\-]{1,61}|[a-z0-9-]{1,30}\.[a-z]{2,})$", options.domain):
google_dork(options.domain)
vendork(options.domain)
print("\n[+] Success. Please check the newly created files.")
Expand Down

0 comments on commit 7f242b4

Please sign in to comment.