Python script that can be used to log connections from localhost.
This script will create three connections to localhost (127.0.0.1).
- The first connection will be to port 8080,
- Tthe second connection will be to port 8081,
- and the third connection will be to port 8082.
- The script will then log the information about each connection to a CSV file called "connections.csv".
- time
- duration
- files
- destination_ip