Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from BeautifulSoup import BeautifulSoup
- import urllib2
- from time import sleep
- import argparse
- #arguments parse
- parser = argparse.ArgumentParser()
- parser.add_argument("-o", "--output",dest ="output", help="output location", default="output.txt")
- args = parser.parse_args()
- #
- parser = argparse.ArgumentParser()
- print(r"""
- /$$ /$$
- | $$ |__/
- /$$$$$$$ /$$$$$$ /$$$$$$ /$$$$$$ /$$$$$$$ /$$ /$$ /$$ /$$ /$$
- /$$_____/ /$$__ $$ /$$__ $$ /$$__ $$ /$$__ $$| $$ /$$/| $$| $$ /$$/
- | $$$$$$ | $$ \ $$| $$$$$$$$| $$$$$$$$| $$ | $$ \ $$$$/ | $$ \ $$$$/
- \____ $$| $$ | $$| $$_____/| $$_____/| $$ | $$ >$$ $$ | $$ >$$ $$
- /$$$$$$$/| $$$$$$$/| $$$$$$$| $$$$$$$| $$$$$$$ /$$/\ $$| $$ /$$/\ $$
- |_______/ | $$____/ \_______/ \_______/ \_______/|__/ \__/|__/|__/ \__/
- | $$
- | $$
- |__/
- name: google-sqli-parser
- version: 0.0.1
- author: speedxix0202
- url: https://speedxix0202.ct8.pl/
- """)
- sleep(0.3)
- counter=0
- counterstring = str(counter)
- f = open(args.output,'a')
- while counter < 200:
- counter = counter+10
- counterstring = str(counter)
- site= "http://www.google.com/search?q=inurl:index.php?id=&start=" + counterstring
- hdr = {'User-Agent': '',
- 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
- 'Accept-Charset': 'ISO-8859-1,utf-8;q=0.7,*;q=0.3',
- 'Accept-Encoding': 'none',
- 'Accept-Language': 'en-US,en;q=0.8',
- 'Connection': 'keep-alive'}
- req = urllib2.Request(site)
- try:
- page = urllib2.urlopen(req).read()
- soup = BeautifulSoup(page)
- ka=soup.findAll('cite',attrs={'class':'iUh30'}
- for i in ka:
- print i.text
- f.write(i.text)
- print site
- except urllib2.HTTPError, e:
- print e.fp.read()
- f.close()
Add Comment
Please, Sign In to add comment