Question
Write some simple Scapy/Python code to launch the scan or icmp attack. Revise them for implementing NULL scan, large ICMP payload attack, or detection evasion
Write some simple Scapy/Python code to launch the scan or icmp attack.
Revise them for implementing NULL scan, large ICMP payload attack, or detection evasion etc.
(1) Sample Code for FIN_Scan (you can make simple revision to turn it into other scan functions):
def FIN_Scan(dstIP, dstPort):
src_port = RandShort()
Fin_Scan_Rsp = sr1(IP(dst=dstIP)/TCP(sport=src_port,dport=dstPort, flags="F"), verbose=0,timeout=3)
if "NoneType" in str(type(Fin_Scan_Rsp)) :
print("Port "+str(dstPort)+" on host "+dstIP+" is open, or maybe FIN Scan is filtered!")
(2) The icmp packets can be constructed as
Packet = ip/icmp/data
Step by Step Solution
There are 3 Steps involved in it
Step: 1
1 Simple FIN Scan from scapyall import def FINScandstIP dstP...Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get StartedRecommended Textbook for
Accounting for Decision Making and Control
Authors: Jerold Zimmerman
8th edition
78025745, 978-0078025747
Students also viewed these Computer Network questions
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
View Answer in SolutionInn App