1、删除打印信息 2、添加配置文件

This commit is contained in:
fumingwei
2020-09-12 12:59:09 +08:00
parent db818d7ea4
commit ccdff3bbff
2 changed files with 121 additions and 5 deletions

View File

@@ -11,6 +11,7 @@ import ciunittest
import argparse
from telegraf.client import TelegrafClient
import hashlib
#from configparser import ConfigParser
URLBypass = 'https://sha384.badssl.self-test.geedge.net'
URLIntercept = 'https://sha256.badssl.self-test.geedge.net'
@@ -224,11 +225,6 @@ class ProxyRequestBuild:
if isSsl == True:
certs = self.conn.getinfo(self.conn.INFO_CERTINFO)
body = self.bodyBuf.getvalue().decode('utf-8')
print(url)
print(proxy_info_re)
print(isSsl)
self.conn.close()
print (body)
self._cert_verify(ssl_replace_info_re,certs, isSsl)
if not re.search(r'EnglishSearchShared', body, 0) and \
re.search(r'03C174CD9D809789CCEC18D6F585DF3E', body, 0):