mirror of https://github.com/n1nj4sec/pupy.git
at least give a warning if your conf broadcast your LAN that you use pupysh.py :-)
This commit is contained in:
parent
3ac19564a1
commit
eae2a25e4c
|
@ -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',
|
||||||
|
|
Loading…
Reference in New Issue