Write a Python script with Linux using the Scapy packet crafting package. The sc
ID: 3784960 • Letter: W
Question
Write a Python script with Linux using the Scapy packet crafting package.
The script will do the following:
a. Create an ESP payload using crypt-algo=AES-CBC, and auth-algo=HMAC-MD5-96
b. Encrypt the payload using crypt-key
c. Decrypt the encrypted payload, and verify
d. Sign the payload using auth-key
e. Verify the signature by decrypting it
Run the script, make sure you can run it without error.
Explanation / Answer
>>> ip/TCP() >>> tcp=TCP(sport=1025, dport=80) >>> (tcp/ip).show() ###[ TCP ]### sport= 1025 dport= www seq= 0 ack= 0 dataofs= None reserved= 0 flags= S window= 8192 chksum= None urgptr= 0 options= {} ###[ IP ]### version= 4 ihl= None tos= 0x0 len= None id= 1 flags= frag= 0 ttl= 64 (...)Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.