From 88976273030700486f13aca5a4626c36546d743e Mon Sep 17 00:00:00 2001 From: NSEcho Date: Tue, 1 Aug 2023 20:13:21 +0200 Subject: [PATCH] docs: update README.md --- README.md | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index aa88475..2ee2af9 100644 --- a/README.md +++ b/README.md @@ -15,7 +15,6 @@ or do it manually as described below. # Usage ```bash -$ gxpc --help XPC sniffer Usage: @@ -31,15 +30,20 @@ Flags: -o, --output string save output to this file -p, --pid int PID of wanted process (default -1) -r, --remote string connect to device at IP address + -v, --version version for gxpc + -w, --whitelist strings whitelist the following wildcard connections ``` +If you do not pass `-i` flag, default device is USB. + +If you want to spawn a file/binary, pass the `-f` that points to the file/binary you want to spawn along with the arguments. + +* `gxpc -i local -f /bin/cat /tmp/somefile` - without some specific flags to the spawned binary +* `gxpc -i local -f /path/to/binary -- -a -b "TEST"` - with some specific flags to the spawned binary + ![Running gxpc](running.png) ![Running against Signal](running_one.png) ![Getting airplane mode](airplane_mode.png) -If you do not pass `-i` flag, by default it will use USB device. - -If you want to spawn a file/binary, pass the `-f` that points to the file/binary you want to spawn along with the arguments. -For example to run `/bin/cat` with `/tmp/somefile`, use `gxpc -i local -f /bin/cat /tmp/somefile`. \ No newline at end of file