Last active
January 1, 2016 22:39
-
-
Save burdenless/8211753 to your computer and use it in GitHub Desktop.
Urlquery
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# | |
# Developed by Pendrak0n | |
# 1/1/2014 | |
# | |
# Purpose: Automate submissions to UrlQuery | |
# | |
import sys, time | |
from selenium import webdriver | |
from selenium.webdriver.common.keys import Keys | |
def submission(url): | |
driver = webdriver.Firefox() | |
driver.get('http://urlquery.net') | |
time.sleep(3) | |
form = driver.find_element_by_id('url') | |
form.send_keys(url) | |
button = driver.find_element_by_id('url-submit') | |
button.click() | |
print '[+] URL submitted, standby for processing.' | |
def main(): | |
if len(sys.argv) != 2: | |
print '[-] Not enough arguments!' | |
print '[*] Syntax: urlquery.py <URL to submit>' | |
sys.exit(0) | |
else: | |
url = sys.argv[1] | |
print '[+] Submitting %s to UrlQuery in new window' %url | |
submission(url) | |
if __name__ == '__main__': | |
main() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment