Skip to content

Instantly share code, notes, and snippets.

@cuiwm
Created August 10, 2017 07:10
Show Gist options
  • Save cuiwm/c3499483927f11dc89a8c3fdc42c7c27 to your computer and use it in GitHub Desktop.
Save cuiwm/c3499483927f11dc89a8c3fdc42c7c27 to your computer and use it in GitHub Desktop.
capture net packet on real iphone
#!/bin/sh
if [ $2 == "start" ]
then
rvictl -s $1
open /Applications/Wireshark.app
elif [ $2 == "stop" ]
then
rvictl -x $1
else
echo "$0 [iOSDeviceIdentifier] [start|stop]"
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment