mirror of
https://github.com/autistic-symposium/sec-pentesting-toolkit.git
synced 2025-04-26 02:29:07 -04:00
15 lines
229 B
Python
Executable File
15 lines
229 B
Python
Executable File
#!/usr/bin/env python
|
|
|
|
__author__ = "Mia Stein"
|
|
|
|
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
|