ip/icmp scanner

This commit is contained in:
Mari Wahl 2014-12-22 16:00:45 -05:00
parent b65ef8b730
commit 4d4b0dcdff
9 changed files with 318 additions and 1 deletions

View file

@ -0,0 +1,14 @@
#!/usr/bin/env python
__author__ = "bt3"
import netaddr
import socket
subnet = '192.168.1.0/24'
for ip in netaddr.IPNetwork(subnet):
s = socket.socket()
print ip
s.connect((ip, 25))
# send email packets