Skip to content

Commit

Permalink
Merge branch 'main' of https://github.com/nsecho/gxpc
Browse files Browse the repository at this point in the history
  • Loading branch information
NSEcho committed Aug 1, 2023
2 parents 36bf2a5 + 8897627 commit eae728b
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ or do it manually as described below.
# Usage

```bash
$ gxpc --help
XPC sniffer

Usage:
Expand All @@ -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`.

0 comments on commit eae728b

Please sign in to comment.