forked from p15670423/monkey
Add log
This commit is contained in:
parent
1a4a08e3bd
commit
bbc5cfb24c
|
@ -1,6 +1,8 @@
|
||||||
from network import HostFinger
|
from network import HostFinger
|
||||||
from model.host import VictimHost
|
from model.host import VictimHost
|
||||||
|
import logging
|
||||||
|
|
||||||
|
LOG = logging.getLogger(__name__)
|
||||||
|
|
||||||
class HTTPFinger(HostFinger):
|
class HTTPFinger(HostFinger):
|
||||||
"""
|
"""
|
||||||
|
@ -35,6 +37,7 @@ class HTTPFinger(HostFinger):
|
||||||
host.services['tcp-' + port[1]] = {}
|
host.services['tcp-' + port[1]] = {}
|
||||||
host.services['tcp-' + port[1]]['name'] = 'http'
|
host.services['tcp-' + port[1]]['name'] = 'http'
|
||||||
host.services['tcp-' + port[1]]['data'] = (server,ssl)
|
host.services['tcp-' + port[1]]['data'] = (server,ssl)
|
||||||
|
LOG.info("Port %d is open on host %s " % (port[0], host))
|
||||||
break # https will be the same on the same port
|
break # https will be the same on the same port
|
||||||
except Timeout:
|
except Timeout:
|
||||||
pass
|
pass
|
||||||
|
|
Loading…
Reference in New Issue