facebook facebook twitter rss

Reverse ip sites Using Bing

Author: UzunDz , Published: 24-06-2014
Hi, this small script to Reverse ip sites from bing 

1- Using Bing Mobile m.bing.com :
###############################################################
#!C:\Python27\python.exe
'''
Reverse ip sites Using Bing Mobile
by Sec4ever Members
url : http://www.sec4ever.com/home/showthread.php?t=15064
'''
import re
import urllib2
from urlparse import urlparse

def bing(ip):
sites = []
next=1
while(next <= 2000):
url = 'http://m.bing.com/web/more?q=ip:%s&first=%s&cnt=10'%(ip, next)
bing = urllib2.urlopen(url).read()
check = re.search('more ...',bing)
if check :
urls = re.findall('&amp;url=(aHR0[a-z0-9A-Z=]+)&amp;h=', bing)
for url in urls:
url = urlparse(url.decode('base64'))
sites.append(url.scheme+"://"+url.netloc+"/")
next = next + 10
else :
urls = re.findall('&amp;url=(aHR0[a-z0-9A-Z=]+)&amp;h=', bing)
for url in urls:
url = urlparse(url.decode('base64'))
sites.append(url.scheme+"://"+url.netloc+"/")
break
for site in list(set(sites)):
print site

ip = raw_input("Server ip?: ")
bing(ip)
###############################################################

2- Using bing.com :
###############################################################
#!C:\Python27\python.exe
'''
Reverse ip sites Using Bing.com
by Sec4ever Members
url : http://www.sec4ever.com/home/showthread.php?t=15064
'''
import re
import requests

data = requests.session()
hdr = {'User-Agent': 'msnbot/1.0 (+http://search.msn.com/msnbot.htm)',
'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'}
def bing(ip):
sites = []
next=1
while(next <= 2000):
url = 'http://www.bing.com/search?q=ip:%s&pc=MOZI&first=%s&FORM=PERE3'%(ip, next)
bing = data.get(url, headers=hdr)
check = re.search('class="sb_pagN"', bing.text)
if check:
urls = re.findall('<cite>(.*?)</cite>', bing.text)
for url in urls:
url = re.sub('www.|/(.*)','', url)
sites.append(url)
next = next + 10
else :
urls = re.findall('<cite>(.*?)</cite>', bing.text)
for url in urls:
url = re.sub('www.|/(.*)','', url)
sites.append(url)
break
for site in list(set(sites)):
print site

ip = raw_input("Server ip?: ")
bing(ip)
###############################################################
Sec4ever members *_^

Like us on Facebook :