facebook facebook twitter rss

bing wordpress grabber

Author: MatriX Coder , Published: 31-07-2014
#!/usr/bin/python
# bing wordpress grabber
# Coded by MatriX Coder mohamed aziz from tunisia
# Webs : vip-s3c.com - madleets.com - dev-tun.tn
# GreetZ : Murjo5sky - Sindbad -fallag x7

# Don't remove my rights lamers


import sys,urllib2,re,os
from platform import system

logo = '''


`7MMM. ,MMF' .g8"""bgd | [*] CodeName : Wordpress Grabber From ip
MMMb dPMM .dP' `M | [*] Coder : MatriX Coder (Mohamed Aziz From TN)
M YM ,M MM dM' ` | [*] Webs : vip-s3c.com - madleets.com - dev-tun.tn
M Mb M' MM MM | [*] GreetZ : Murjo5sky - Sindbad -fallag x7
M YM.P' MM MM. | [*] FB : www.fb.com/matrixcoder2
M `YM' MM `Mb. ,' | [*] E-mail : matrix_coder@outlook.com
.JML. `' .JMML. `"bmmmd' | [*] Blog : www.matrixcoder.co.vu

[*] Usage : python '''+sys.argv[0]+''' 127.0.0.1

'''



if system() == 'Linux':
os.system('clear')
if system() == 'Windows':
os.system('cls')

try :
os.remove('wp.txt')
os.remove('wp1.txt')
except:
pass

print logo

def file_len(fname):
with open(fname) as f:
for i, l in enumerate(f):
pass
return i + 1

try:
s = sys.argv[1]
page = 1
print "\n"
while page <= 200:
bing = "http://www.bing.com/search?q=ip%3A"+s+"+?page_id=&first="+str(page)
openbing = urllib2.urlopen(bing)
readbing = openbing.read()
findbing = re.findall('<li class="b_algo"><h2><a href="(.*?)" h=',readbing)
for i in range(len(findbing)):
x = findbing[i]
xz = re.findall('(.*?)?page_id=',x)
ss = open('wp.txt','a+')
ss.writelines(xz)
ss.writelines('\n')
num_lines = sum(1 for line in open('wp.txt'))
sys.stdout.write("Number of Sites: %d \r" % (num_lines) )
sys.stdout.flush()
page = page + 10

print '\n'
lines_seen = set()
outfile = open('wp1.txt', "a+")
for line in open('wp.txt', "r"):
line = line.replace('?','')
if line not in lines_seen:
outfile.write(line)
lines_seen.add(line)
outfile = open('wp1.txt','r')
ss = outfile.read()
print ss
print 'Uniq Sites Found : %s\n' % file_len('wp1.txt')
outfile.close()
os.remove('wp1.txt')
os.remove('wp.txt')
except IndexError:
pass

Like us on Facebook :