Berikut ini adalah contoh script python untuk melakukan dorking pada website:
import requests
# List of Dork's
dorks = [
"site:example.com intext:'keyword1'",
"site:example.com intext:'keyword2'",
"site:example.com intext:'keyword3'",
"site:example.com intext:'keyword4'"
]
# Variable to store search results
results = []
# Iterate through all the dork's one by one
for dork in dorks:
# Make a request to the google search with that dork
r = requests.get('https://www.google.com/search', params={'q':dork, 'num':'100'})
# Get the response content
data = r.content
# Split the html by newline
splitted_data = data.split("\n")
# Iterate through each line
for line in splitted_data:
# Check if the line contains the url
if '
import requests
# List of Dork's
dorks = [
"site:example.com intext:'keyword1'",
"site:example.com intext:'keyword2'",
"site:example.com intext:'keyword3'",
"site:example.com intext:'keyword4'"
]
# Variable to store search results
results = []
# Iterate through all the dork's one by one
for dork in dorks:
# Make a request to the google search with that dork
r = requests.get('https://www.google.com/search', params={'q':dork, 'num':'100'})
# Get the response content
data = r.content
# Split the html by newline
splitted_data = data.split("\n")
# Iterate through each line
for line in splitted_data:
# Check if the line contains the url
if '