minor bug fix

This commit is contained in:
lgandx 2016-09-12 00:01:27 -03:00
parent 92c9191bda
commit 2cdeef3c83
2 changed files with 3 additions and 2 deletions

View file

@ -21,7 +21,8 @@ from utils import *
def GrabUserAgent(data):
UserAgent = re.findall(r'(?<=User-Agent: )[^\r]*', data)
print text("[Proxy-Auth] %s" % color("User-Agent : "+UserAgent[0], 2))
if UserAgent:
print text("[Proxy-Auth] %s" % color("User-Agent : "+UserAgent[0], 2))
def GrabCookie(data):
Cookie = re.search(r'(Cookie:*.\=*)[^\r\n]*', data)