• XSS.stack #1 – первый литературный журнал от юзеров форума

google dork

Leonard123

RAID-массив
Пользователь
Регистрация
26.04.2021
Сообщения
75
Реакции
5
Всем привет, подскажите как искать информацию в google по доркам, нужно найти свежую информацию, какие дорки использовать что бы google дал тебе инфу к примеру за прошедший месяц или год ?
 
можно это все превратить в код, пример на пайтон:
Python:
import datetime
print("Welcome to the Google Date Search tool!")
start_date_input = input("Enter a start date (YYYY-MM-DD): ")
start_date = datetime.date.fromisoformat(start_date_input)
end_date_input = input("Enter an end date (YYYY-MM-DD): ")
end_date = datetime.date.fromisoformat(end_date_input)
search_term = input("Enter a search term: ")
country_code = input("Enter a country code (default is 'com'): ")
if country_code == "":
    country_code = "com"
print("")
before_param = f"before:{end_date}"
after_param = f"after:{start_date}" 
search_url = f"https://www.google.{country_code}/search?q={search_term}+{after_param}+{before_param}"
print(f"Here is your search URL:")
print(search_url)
prompt = input("Would you like to search in your browser? (y/n)")
if prompt.lower() == 'y':
    import webbrowser
    webbrowser.open(search_url)

вывод программы:

Welcome to the Google Date Search tool!
Enter a start date (YYYY-MM-DD): 2022-12-12
Enter an end date (YYYY-MM-DD): 2023-12-12
Enter a search term: lemon cake
Enter a country code (default is 'com'):

Here is your search URL:
https://www.google.com/search?q=lemon cake+after:2022-12-12+before:2023-12-12
Would you like to search in your browser? (y/n)y
 
можно это все превратить в код, пример на пайтон:
Python:
import datetime
print("Welcome to the Google Date Search tool!")
start_date_input = input("Enter a start date (YYYY-MM-DD): ")
start_date = datetime.date.fromisoformat(start_date_input)
end_date_input = input("Enter an end date (YYYY-MM-DD): ")
end_date = datetime.date.fromisoformat(end_date_input)
search_term = input("Enter a search term: ")
country_code = input("Enter a country code (default is 'com'): ")
if country_code == "":
    country_code = "com"
print("")
before_param = f"before:{end_date}"
after_param = f"after:{start_date}"
search_url = f"https://www.google.{country_code}/search?q={search_term}+{after_param}+{before_param}"
print(f"Here is your search URL:")
print(search_url)
prompt = input("Would you like to search in your browser? (y/n)")
if prompt.lower() == 'y':
    import webbrowser
    webbrowser.open(search_url)

вывод программы:

Welcome to the Google Date Search tool!
Enter a start date (YYYY-MM-DD): 2022-12-12
Enter an end date (YYYY-MM-DD): 2023-12-12
Enter a search term: lemon cake
Enter a country code (default is 'com'):

Here is your search URL:
https://www.google.com/search?q=lemon cake+after:2022-12-12+before:2023-12-12
Would you like to search in your browser? (y/n)y
Спасибо! С новым годом
 


Напишите ответ...
  • Вставить:
Прикрепить файлы
Верх