at least give a warning if your conf broadcast your LAN that you use pupysh.py :-)

This commit is contained in:
n1nj4sec 2017-03-10 19:38:52 +01:00
parent 3ac19564a1
commit eae2a25e4c
1 changed files with 2 additions and 0 deletions

View File

@ -13,6 +13,7 @@ from urlparse import urlparse
import ctypes import ctypes
import os import os
import netaddr import netaddr
import logging
def str2bool(bstr): def str2bool(bstr):
return bool(int(bstr)) return bool(int(bstr))
@ -191,6 +192,7 @@ class IGDClient:
""" """
Find IGD device and its control URL via UPnP multicast discovery Find IGD device and its control URL via UPnP multicast discovery
""" """
logging.warning("Sending multicast traffic looking for IGD Devices / forwarding TCP port ...")
if not self.isv6: if not self.isv6:
up_disc = '\r\n'.join([ up_disc = '\r\n'.join([
'M-SEARCH * HTTP/1.1', 'M-SEARCH * HTTP/1.1',