update CVE-2018-2628

This commit is contained in:
rpkr
2019-08-06 22:32:43 +08:00
parent a18a2b6c44
commit 927b6e2fea
2 changed files with 8 additions and 6 deletions

View File

@@ -4,6 +4,7 @@ import weblogic.ssrf
import weblogic.weblogic_weakpasswd
import weblogic.CNVD_C_2019_48814
import os
import re
def exec(URL):
weblogic.CNVD_C_2019_48814.attack(URL)
@@ -14,7 +15,9 @@ def exec(URL):
print('[+]开始检测-Weblogic-CVE-2018-2628。[+]')
#切换工作路径
os.chdir(os.path.realpath(__file__)[:38])
os.system("py -2 CVE_2018_2628.py")
url = re.findall('//(.*?):', URL, flags=0)[0]
ip = re.findall(r':(.*?)\Z', URL[6:], flags=0)[0]
os.system(f"py -2 CVE_2018_2628.py {url} {ip}")
print('[+]检测结束-Weblogic-CVE-2018-2628。[+]')