Powershell Script - Capture Network Traffic, Grab Local Interfaces, Grab Public IP
Budget: $50 – $150 USD
Problem: Someone comes to me saying "I can't get access to x.x.x.x or blahblahblah.com." Half of the time they don't know the details of the connection. They don't know their local ip, public ip, destination ip, destination port numbers, etc.
I need a Powershell script that does the following:
1. Grab the network interface adapters on a machine (example: 2 of them. ethernet and wifi)
2. Ask for the users first name (example: adam)
3. Ask for the users last name (example: springer)
4. Ask user to put in a ticket number or press enter if they don't know it.
5. Ask user to type in a capture timeout in minutes (example 3)
6. Spawn some sub processes (same amount of interfaces found, so in this example it'll be 2 of them) and capture traffic using Powershell.
a. Display message to tell user to go try the access that is failing and come back to this Powershell screen
b. Wait 4 seconds and then display a message "Press Enter key once you've tried the failed access"
1. If the User doesn't come back and press enter in the timeout time (3 minutes in this example), the capture will stop itself.
7. Save the capture files in the same current directory.... firstname_lastname-ticketnumber-ethernetcard-date-time.file. firstname_lastname-ticketnumber-wificard-date-time.file
8. Grab the output of the command "route print" and dump it to a text file called firstname_lastname-localroutes.txt
9. Get the external ip address of the user and save it at the bottom of the firstname_lastname-localroutes.txt file.
I need a Powershell script that does the following:
1. Grab the network interface adapters on a machine (example: 2 of them. ethernet and wifi)
2. Ask for the users first name (example: adam)
3. Ask for the users last name (example: springer)
4. Ask user to put in a ticket number or press enter if they don't know it.
5. Ask user to type in a capture timeout in minutes (example 3)
6. Spawn some sub processes (same amount of interfaces found, so in this example it'll be 2 of them) and capture traffic using Powershell.
a. Display message to tell user to go try the access that is failing and come back to this Powershell screen
b. Wait 4 seconds and then display a message "Press Enter key once you've tried the failed access"
1. If the User doesn't come back and press enter in the timeout time (3 minutes in this example), the capture will stop itself.
7. Save the capture files in the same current directory.... firstname_lastname-ticketnumber-ethernetcard-date-time.file. firstname_lastname-ticketnumber-wificard-date-time.file
8. Grab the output of the command "route print" and dump it to a text file called firstname_lastname-localroutes.txt
9. Get the external ip address of the user and save it at the bottom of the firstname_lastname-localroutes.txt file.