Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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... blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Accounting for Decision Making and Control

Authors: Jerold Zimmerman

8th edition

78025745, 978-0078025747

More Books

Students also viewed these Computer Network questions

Question

CL I P COL Astro- L(1-cas0) Lsing *A=2 L sin(0/2)

Answered: 1 week ago