Skip to content

Commit

Permalink
minor update to #279: added link to documentation + small rephrasing …
Browse files Browse the repository at this point in the history
…in docs
  • Loading branch information
hugsy committed May 29, 2018
1 parent 7761d99 commit 9b78c84
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 8 deletions.
20 changes: 13 additions & 7 deletions docs/commands/print-format.md
@@ -1,23 +1,29 @@
## Command print-format ##
This command (`print-format` alias `pf`) will shows array of bytes like
programming language format. language format supported only python, c,
asm, and javascript.

Use `-h` for help
The command `print-format` (alias `pf`) will dump an arbitrary location as an
array of bytes following the syntax of the programming language
specified. Currently, the output language supported are

- Python (`py` - default)
- C (`c`)
- Assembly (`asm`)
- Javascript (`js`)


```
gef➤ print-format -h
[+] print-format [-f FORMAT] [-b BITSIZE] [-l LENGTH] [-c] [-h] LOCATION
-f FORMAT specifies the output format for programming language, avaliable value is py, c, js, asm (default py).
-b BITSIZE sepecifies size of bit, avaliable values is 8, 16, 32, 64 (default is 8).
-l LENGTH specifies length of array (default is 256).
-c The result of data will copied to clipboard
-c The result of data will copied to clipboard (requires xclip)
LOCATION specifies where the address of bytes is stored.
```

For example this command will show 10 bytes in rsp and the result will copied to clipboard.
For example this command will dump 10 bytes from `$rsp` and copy the result to the clipboard.

```
gef➤ print-format -f py -b 8 -l 10 -c $rsp
[+] Copied to clipboard
buf = [0x87, 0xfa, 0xa3, 0xf7, 0xff, 0x7f, 0x0, 0x0, 0x30, 0xe6]
```
```
3 changes: 2 additions & 1 deletion mkdocs.yml
Expand Up @@ -35,8 +35,9 @@ pages:
- Command pattern: commands/pattern.md
- Command pcustom: commands/pcustom.md
- Command pie: commands/pie.md
- Command process-status: commands/process-status.md
- Command print-format: commands/print-format.md
- Command process-search: commands/process-search.md
- Command process-status: commands/process-status.md
- Command registers: commands/registers.md
- Command reset-cache: commands/reset-cache.md
- Command ropper: commands/ropper.md
Expand Down

0 comments on commit 9b78c84

Please sign in to comment.