Exemple #1
0
def WpadCustom(data, client):
	Wpad = re.search(r'(/wpad.dat|/*\.pac)', data)
	if Wpad:
		Buffer = WPADScript(Payload=settings.Config.WPAD_Script)
		Buffer.calculate()
		return str(Buffer)
	return False
Exemple #2
0
def WpadCustom(data, client):
	Wpad = re.search(r'(/wpad.dat|/*\.pac)', data)
	if Wpad:
		Buffer = WPADScript(Payload=settings.Config.WPAD_Script)
		Buffer.calculate()
		return str(Buffer)
	return False
Exemple #3
0
def WpadCustom(data, client):
	Wpad = re.search(r'(/wpad.dat|/*\.pac)', data)
	if Wpad and SpotFirefox(data):
		Buffer = WPADScript(Payload="function FindProxyForURL(url, host){return 'DIRECT';}")
		Buffer.calculate()
		return str(Buffer)

	if Wpad and SpotFirefox(data) == False:
		Buffer = WPADScript(Payload=settings.Config.WPAD_Script)
		Buffer.calculate()
		return str(Buffer)
	return False
Exemple #4
0
def WpadCustom(data, client):
	Wpad = re.search(r'(/wpad.dat|/*\.pac)', data)
	if Wpad and SpotFirefox(data):
		Buffer = WPADScript(Payload="function FindProxyForURL(url, host){return 'DIRECT';}")
		Buffer.calculate()
		return str(Buffer)

	if Wpad and SpotFirefox(data) == False:
		Buffer = WPADScript(Payload=settings.Config.WPAD_Script)
		Buffer.calculate()
		return str(Buffer)
	return False