pwn: add page (#12352)

* pwn: add page

---------

Co-authored-by: Juri Dispan <juri.dispan@posteo.net>
Co-authored-by: Fazle Arefin <fazlearefin@users.noreply.github.com>
pull/23/head
Ahmed Sufyan 2024-03-01 04:30:48 -05:00 committed by GitHub
parent 2b21baebb4
commit b07319274a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 36 additions and 0 deletions

36
pages/linux/pwn.md Normal file
View File

@ -0,0 +1,36 @@
# pwn
> Exploit Development Library designed for rapid prototyping.
> More information: <https://docs.pwntools.com/en/stable/commandline.html>.
- Convert the given assembly code to `bytes`:
`pwn asm "{{xor edi, edi}}"`
- Create a cyclic pattern of the specific number of characters:
`pwn cyclic {{number}}`
- Encode the given data into the hexadecimal system:
`pwn hex {{deafbeef}}`
- Decode the given data from hexadecimal:
`pwn unhex {{6c4f7645}}`
- Print a x64 Linux shellcode for running a shell:
`pwn shellcraft {{amd64.linux.sh}}`
- Check the binary security settings for the given ELF file:
`pwn checksec {{path/to/file}}`
- Check for Pwntools updates:
`pwn update`
- Display version:
`pwn version`