Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document byte array code generators #91

Open
wargio opened this issue Mar 24, 2022 · 0 comments
Open

Document byte array code generators #91

wargio opened this issue Mar 24, 2022 · 0 comments

Comments

@wargio
Copy link
Member

wargio commented Mar 24, 2022

Document all the pc commands changes on 0.4.0

Usage: pc[?]   # Print bytes as code byte arrays.
| pc  # Generate a C/C++ byte array.
| pch # Generate a C/C++ 16 bits array.
| pcw # Generate a C/C++ 32 bits array.
| pcd # Generate a C/C++ 64 bits array.
| pca # Generate a byte array in GAS assembly.
| pcb # Generate a bash script with the byte array.
| pcg # Generate a Golang byte array.
| pcJ # Generate a Java byte array.
| pcj # Generate a JSON byte array.
| pck # Generate a Kotlin byte array.
| pcn # Generate a NodeJS buffer.
| pco # Generate a Objective-C/C++ byte array.
| pcp # Generate a Python byte array.
| pcr # Generate a Rust byte array.
| pcs # Generate a Swift byte array.
| pcy # Generate a Yara match pattern.
| pc* # Generate a rizin commands for writing the byte array.

Useful modifiers:
| pch @e:cfg.bigendian=<true|false> # Change endianness for pch, pcw and pcd commands
| pc @! <n>                     # Change the N of bytes (i.e. block size).

Example of usages:
| pch @! 64 @e:cfg.bigendian=true # Generate a C 32 bits array in big endian format, using 64 bytes
| pcp @! 1024                   # Generate a Python byte array of size 1024
| pcj @! 10                     # Generate a JSON bytes array of size 10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant