Skip to content

Instantly share code, notes, and snippets.

@burdenless
Last active January 1, 2016 22:39
Show Gist options
  • Save burdenless/8211753 to your computer and use it in GitHub Desktop.
Save burdenless/8211753 to your computer and use it in GitHub Desktop.
Urlquery
#!/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