update CVE-2018-2628
This commit is contained in:
@@ -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。[+]')
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user