Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #[Python] Bing Dorker
- #By INJ3CTOR_M4 // facebook.com/H4ck19
- import re, urllib, requests, os, sys
- from urlparse import urlparse
- from platform import system
- if system() == 'Linux':
- os.system('clear')
- if system() == 'Windows':
- os.system('cls')
- start ='''
- __________.__
- \______ \__| ____ ____
- | | _/ |/ \ / ___\
- | | \ | | \/ /_/ >
- |______ /__|___| /\___ /
- \/ \//_____/
- '''
- gt = requests.session()
- useragent = {'User-Agent': 'msnbot/1.0 (+http://search.msn.com/msnbot.htm)'}
- def Bing_it(dork):
- alllinks = []
- i = 1
- while True:
- bing = gt.get('http://www.bing.com/search?q='+urllib.quote_plus(dork)+'&first='+str(i)+'&go=&filt=all&FORM=PERE2', headers=useragent).text
- data = re.findall('<li.*?class="b_algo".*?>.*?<h2>.*?<a.*?href="(https?://.*?)"', bing)
- for site in data:
- site = urlparse(site)
- alllinks.append(site.scheme+"://"+site.netloc+""+site.path)
- i+=10
- if not re.search('class="sb_pagN"', bing) :
- break
- return list(set(alllinks))
- print (start)
- try:
- ip = sys.argv[1]
- dork = raw_input("Dork? # ")
- if not dork:
- target = ('ip:'+ip)
- else:
- target = ('ip:'+ip+' '+dork)
- i = 0
- print '\n\n\t\t[+] Grabbing '+ip+' begun\n\n'
- for b in Bing_it(target):
- print (b)
- i+=1
- print 'Found : '+str(i)+' Unique Domain.'
- except IndexError:
- print '\t\tUsage: python '+sys.argv[0]+' [127.0.0.1]\n'
Advertisement
Add Comment
Please, Sign In to add comment