-
Notifications
You must be signed in to change notification settings - Fork 7
Capturing pcap file using Android device
The script requires 4 parameters in order to function.
3 of them can be found in Switcher packets sent when controlling the device.
Requirements:
- Android device, connected to Switcher within the same network
-
tPacketCapture
Packet Captureapp -
pypcapfile
package for python (pip install pypcapfile
)
Once you got all of the above, follow the instructions below:
-
Open Switcher app and login, click 'settings' on the left menu and turn on the 'local' option
-
Go to the devices list and make sure it says 'local' next to your Switcher device:
-
Open the Packet Capture app, click the Play button with the '1' next to it.
-
Write 'Switcher' and select the Switcher app. The recording has now started (you can see the stop button on the app top bar)
-
Open Switcher app, select the required device and turn it On, wait something like 10 seconds and turn it Off.
-
Go back to Packet Capture app and click the stop button.
-
Click the last created item (most recent date and time)
-
You should see a few sessions now, look for a few KB session, targeted to port 9957 with a local ip (usually 192.168.x.x or 10.0.x.x) Note: This is the Switcher local ip, write it down as you will need to update the
credentials.json
file with this value after parsing. -
Click the menu button and save as pcap file
- Copy the pcap file to the same directory as the script
- Run the script with
-m parse_pcap_file -f file_name.pcap
- If you followed all the steps you should now see your device id, phone id and device pass,
credentials.json
was also updated with the values - You should now update
credentials.json
with the Switcher local IP from step 7, and you are good to go.