Hello There, Guest! Login Register
Logo
Dismiss this notice
MaDLeeTs is not responsible for any attacks that are carried out on networks, websites or servers.
MaDLeeTs staff members cannot be held responsible.
All information on this forum is for educational purposes only.


[Python] Wordpress Grabber

  • 0 Vote(s) - 0 Average


09-02-2014, 08:31 PM #1
MatriX Coder Offline Junior Member **
Registered
Posts:19 Threads:8 Joined:Jul 2014 Reputation: 1
Mood: Aggressive
Hello guys :

this a tool that grabs wordpress blogs in a webserver using bing.
NOTE: you are free to edit my code Biggrinsmiley

[Image: Screenshot%2B-%2B020914%2B-%2B11%3A06%3A40.png]

Biggrinsmiley

Code:
#!/usr/bin/python
# note please download RAW

# wordpress grabber

'''

888b     d888  .d8888b.
8888b   d8888 d88P  Y88b
88888b.d88888 888    888
888Y88888P888 888
888 Y888P 888 888
888  Y8P  888 888    888
888   "   888 Y88b  d88P
888       888  "Y8888P"

Coded by MatriX Coder from tunisia
Use my code as you want :D    

'''

import re , urllib2 , sys

logo = '''

_       ______
| |     / / __ \  | ----| Wordpress Grabber |----
| | /| / / /_/ /  | Author : MatriX Coder
| |/ |/ / ____/   | FB : www.fb.com/matrixcoder2
|__/|__/_/        | Blog : www.matrixcoder.co.vu
                
[*] Usage : python '''+sys.argv[0]+''' 127.0.0.1
'''

# found this code on stackoverflow.com/questions/19278877
def unique(seq):
    seen = set()
    return [seen.add(x) or x for x in seq if x not in seen]

print(logo)
try:
    lista = []
    s = sys.argv[1]
    page = 1
    print('\n')
    while page <= 21:
        bing = "http://www.bing.com/search?q=ip%3A"+s+"+?page_id=&count=50&first="+str(page)
        openbing  = urllib2.urlopen(bing)
        readbing = openbing.read()
        findwebs = re.findall('<h2><a href="(.*?)"' , readbing)
        for i in range(len(findwebs)):
            wpnoclean = findwebs[i]
            findwp = re.findall('(.*?)\?page_id=', wpnoclean)
            lista.extend(findwp)

        page = page + 10

    final =  unique(lista)
    for wp in final:
        print(wp)

    try:
        for i , l in enumerate(final):
            pass
        print '\nSites Found : ' , i + 1
    except:
        pass

except IndexError:
    pass

[*] Twitter : @MatriX_Coder
[*] Skype : MatriX Coder
[*] Blog : www.matrixcoder.co.vu

09-03-2014, 12:31 AM #2
T3N38R15 Offline ? lawless-coder *****
Moderators
Posts:812 Threads:48 Joined:Jan 2014 Reputation: 126
Mood: Fine
great coding style,
no options to make that better or faster Smiley1

[Image: xodhvlpa.jpg]
[Image: test.php]






Forum Jump:


Users browsing this thread:2 Guest(s)