November 2017
Intermediate to advanced
226 pages
5h 59m
English
We can create a SYN scanner with the following steps:
from scapy.all import *
This will import the scapy module
host = 'www.dvwa.co.uk'
ip = socket.gethostbyname(host)
openp = []
filterdp = []
common_ports = { 21, 22, 23, 25, 53, 69, 80, 88, 109, 110,
123, 137, 138, 139, 143, 156, 161, 389, 443, 445, 500, 546, 547, 587, 660, 995, 993, 2086, 2087, 2082, 2083, 3306, 8443, 10000 }
def is_up(ip): icmp = IP(dst=ip)/ICMP() resp = sr1(icmp, timeout=10) ...
Read now
Unlock full access