From cd45f4d2694b5d8d10798bfdb4cd0c51a30cb26f Mon Sep 17 00:00:00 2001 From: rpkr <13591644403@139.com> Date: Tue, 22 Oct 2019 17:41:44 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E5=A4=84=E7=90=86requests=E6=8A=A5?= =?UTF-8?q?=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tomcat/CVE_2017_12617.py | 2 ++ tomcat/tomcat_weakpasswd.py | 2 ++ 2 files changed, 4 insertions(+) diff --git a/tomcat/CVE_2017_12617.py b/tomcat/CVE_2017_12617.py index 22d634c..7b70636 100644 --- a/tomcat/CVE_2017_12617.py +++ b/tomcat/CVE_2017_12617.py @@ -3,7 +3,9 @@ import string from random import * import requests +import urllib3 +urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning) ''' Usage: diff --git a/tomcat/tomcat_weakpasswd.py b/tomcat/tomcat_weakpasswd.py index 14c116f..97ecd0b 100644 --- a/tomcat/tomcat_weakpasswd.py +++ b/tomcat/tomcat_weakpasswd.py @@ -1,7 +1,9 @@ # -*- coding: utf-8 -*- import requests import base64 +import urllib3 +urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning) ''' Usage: moon.py -u tomcat http://127.0.0.1:8080