Basic Scripting...another day @ work

Basic Scripting: I recently setup a test machine (a thin client to be more specific) for someone keeping user input minimal.

The goal is: the tester will click on a batch file that will start both IE & Wireshark (Custom Profile). Once the tester is done browsing IE, as he/she exits both programs, Wireshark will generate a report for us engineers to analyze. So, lets get started...

Configure Wireshark with a custom Profile:
I wanted to setup few custom ports to analyze while omitting the existing ports on Wireshark. The best way to go about:

Edit -> Configuration Profiles -> New -> Apply. From here, I can setup my custom port & delete any existing port I don't want.

RunWireshark batch file:
cd \
cd Program Files/Wireshark
wireshark -k -p -c 10000 -w C:\Report.pcap

Basically, here first I move to the wireshark directory where the wireshark.exe file is. From there I call on the executable file to start.

-k start capturing
-p turn promiscuous mode off
-c number of packets to capture, thus 10000
-w output the result. Since this is a thin client, I am having to save the .pcap file on the local drive. On a regular machine you'll have to save it somewhere else, especially if the machine is on a domain. Play around.

StartIE batch file:
start iexplore http://www.slickdeals.net

Start Here batch file (The only batch file the tested should execute):
start cmd.exe /c StartIE.bat

start cmd.exe /c RunWireshark.bat

And that's all.