CNassignment 1
CNassignment 1
CS - (Spring 25)
Assignment-1
Marks 40
Instructions:
---------------------------------------------------------------------------------------------------------------------
QUESTION 1 (5 Marks)
1. Intercept an HTTP request using a proxy tool like Burp Suite or mitmproxy.
QUESTION 2 (5 Marks)
1. DNS Record Analysis:
o Write a Python script using socket to send a query to a public DNS resolver (e.g., 8.8.8.8)
and parse the response manually.
QUESTION 3 (5 Marks)
1. Automate File Upload and Download via FTP (Python Scripting)
QUESTION 4 (5 Marks)
1. Send a Fake Email using Python (Without Authentication)
o Use Python’s smtplib to send an email using an open relay SMTP server.
QUESTION 5 (5 Marks)
1. Capture Live HTTP, FTP, and DNS Packets
ii. Now suppose that a web cache is installed on the GoodWell Lab network’s LAN. Suppose that the miss
rate is 0.7. Find the total response time (considering that the response time from the cache is 0.01 sec)
[6]