Python Forum
CyperSecurity Using Python HomeWork
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
CyperSecurity Using Python HomeWork
#1
I Need Help in This Exercises Please

Final exercise in the Network Infrastructure Programming course - 5741
1 Mission
Write / write a program in the Python programming language that will implement a communication intrusion detection system called in English called IDS - Intrusion Detection System.
1.1 Functional requirements
All IPv4 only requirements.
The system will listen to the network and perform the following actions on each packet of information on the network (Packet): (each action in a separate function)
• Identify TCP / IP connection attempts and check against a blacklist and a whitelist
• Write down the number of TCP and UDP facts between any two addresses
• Identify ARP information packets and verify that each ARP response has an ARP request
• The system will detect DNS information packets (UDP port 53) and record the sent DNS addresses
1.2 System design
The system has 3 running stages:
1.2.1 Boot
At this point the following steps will be performed:
• Read configuration files:
o White address list file - A file that contains an approved address list for the link
o Black Address List File - A file that contains a list of forbidden addresses to link to
• Initialization of information structures (arrays, dictionaries)
1.2.2 Running phase
At this point the following steps will be performed:
• Listening to information packages for 1,000 - 10,000 information packages (for the developers' choice)
• Deciphering the information packages and checking them
• Collection of test results
1.2.3 Production of a report
At this point a report will be produced containing all the results of the tests collected

2 Details of the information package tests
2.1 Contacting an IP address in front of a blacklist and a whitelist
2.1.1 Detailed requirements:
• The function will detect any attempt to contact (the SYNC flag is actually lit)
• The function will classify and record any such experience as:
o Allowed
o Forbidden
o Unknown
The registration will include a source address and a destination address for each attempt
• At the end of the run, the results will be printed on the screen
2.1.2 Execution proposal:
• Definition of 3 arrays / dictionaries - white link, black link, unknown link
• After the classification, the source and destination addresses will be registered in the appropriate array / dictionary
2.2 Counting Information Packages
2.2.1 Detailed requirements:
• The function will count (count) the information packets (facts) for each pair of source address + destination address
• At the end of the run, the results will be printed sorted in descending order (the couple with the most packages first)
2.2.2 Execution proposal:
• Set up a dictionary where the key is the source address + destination address (for example "192.168.1.1-8.8.8.8") and the value is the number of information packets
2.3 ARP testing
2.3.1 Detailed requirements
• The system will check that each ARP response has a suitable request (designed to prevent ARP Spoofing)
• At the end of the process, the status of all ARP requests will be printed
2.3.2 Proposal for realization
• Set up a dictionary where the key is the requested ARP address and the value is the status of the request
• Identify a request and answer
o For each request we add about 1
o For each answer we subtract 1 from the value
2.4 DNS check
2.4.1 Detailed requirements
• The system will detect outgoing DNS requests (UDP port 53)
• The system will remove the DNS address from the request
• At the end of the process, all the DNS addresses will be printed
Reply
#2
This is not code writing service. We are glad to help, but we are not going to do your homework for you.
Larz60+ likes this post
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs

Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  HELP in python homework makashito 4 3,902 Oct-12-2021, 10:12 AM
Last Post: buran
Exclamation urgent , Python homework alm 2 2,288 May-09-2021, 11:19 AM
Last Post: Yoriz
  Homework with python Johnsonmfw 1 1,676 Sep-20-2020, 04:03 AM
Last Post: ndc85430
  Python Homework Help *Urgent GS31 2 2,570 Nov-24-2019, 01:41 PM
Last Post: ichabod801
  Python Homework Question OrcDroid123 1 2,364 Sep-01-2019, 08:44 AM
Last Post: buran
  Python homework / functions sunhyunshine 1 2,442 May-11-2019, 05:37 PM
Last Post: MrTheOne
  python homework help ASAP gk34332 1 2,961 Mar-13-2019, 07:27 PM
Last Post: ichabod801
  Python homework assigment makisha 3 3,264 Feb-28-2019, 10:21 PM
Last Post: Yoriz
  Python Homework Help beepBoop123 2 3,035 Dec-12-2018, 06:25 PM
Last Post: beepBoop123
  python homework MajaW 3 3,150 Dec-11-2018, 10:45 PM
Last Post: nilamo

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020