Skip to content

Assignement 2 | Computer Networks SP 2022

Notifications You must be signed in to change notification settings

BarreiroCollege/USI-NTW-A2

Repository files navigation

Capture The Flag!

Solve challenges to get flags for a scorebot

Assignment 2 for Computer Networking course during the Spring Semester 2022 @ USI Università della Svizzera italiana.

All code is properly documented with extensive inline and definition comments.

Installation

No specific installation instructions are required. Just install a Python 3 version.

Running

To run a specific challenge, you may type the following command (where N is a number between 1 and 10, specifying the challenge number):

python client_N.py

To run and automatically submit a challenge's flag (bonus task),you may run the following command (replacing incognito.guy with the desired username, and N with the challenge number):

python submit.py -u incognito.guy -c N

Alternatively, to run and submit all challenges, you may omit the -c flag (it will execute challenges 1 to 10):

python submit.py -u incognito.guy

These are all the available options for the scorebot submitter:

PS C:\Github\NTW22-2> python submit.py -h
usage: submit.py [-h] -u USERNAME [-c [1-10]]                                                              
                                                                                                           
Scorebot Submitter                                                                                         
                                                                                                           
optional arguments:                                                                                        
  -h, --help            show this help message and exit                                                    
  -u USERNAME, -U USERNAME, --username USERNAME                                                            
                        username of the user to which the flag(s) will be registered                       
  -c [1-10], --challenge [1-10]                                                                            
                        challenge of which the flag will be submitted (if none, it will submit all of them)
PS C:\Github\NTW22-2>

About

Assignement 2 | Computer Networks SP 2022

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages