2017-03-05 17:34:36 +00:00
|
|
|
#!/usr/bin/python
|
|
|
|
# -*- coding: utf-8 -*-
|
|
|
|
|
|
|
|
# name : SVN configuration files
|
|
|
|
# description : Check for the file http://blog.domain.com/.svn/text-base/wp-config.php.svn-base
|
|
|
|
# author : Wordpresscan Team
|
|
|
|
|
|
|
|
import requests
|
|
|
|
|
|
|
|
name = "SVN configuration files"
|
|
|
|
|
|
|
|
def __init__(wordpress):
|
|
|
|
payload = ".svn/text-base/wp-config.php.svn-base"
|
2017-06-11 14:48:13 +00:00
|
|
|
r = requests.get(wordpress.url + payload, headers={"User-Agent":wordpress.agent}, verify=False)
|
2017-03-05 17:34:36 +00:00
|
|
|
|
|
|
|
if "200" in str(r):
|
2017-06-10 14:41:53 +00:00
|
|
|
print "[+] Wordpress configuration found from SVN !"
|
|
|
|
print "[!] {}".format(wordpress.url + payload)
|