Skip to content

Instantly share code, notes, and snippets.

View riptl's full-sized avatar

Richard Patel riptl

View GitHub Profile
@riptl
riptl / ppc_opcodes.txt
Created June 10, 2022 16:19
A bunch of PowerPC opcodes
add
addc
adde
addi
addic
addis
addme
addpcis
addze
and
@riptl
riptl / opcode_stats_139240745.csv
Last active July 7, 2022 16:21
SBF opcodes Solana mainnet slot 139240745
opcode mnemonic num_programs num_insns
0x05 JA 3378 4575210
0x07 ADD64_IMM 3378 12310893
0x0f ADD64_REG 3378 1631572
0x15 JEQ_IMM 3378 3253085
0x18 LD_DW_IMM 3379 3771402
0x1d JEQ_REG 3363 247250
0x1f SUB64_REG 3345 514578
0x25 JGT_IMM 3370 697157
0x27 MUL64_IMM 3375 250869
@riptl
riptl / npm-audit.txt
Created August 13, 2022 16:18
Vulnerabilities in web3.js 1.7.5
# npm audit report
ansi-regex 4.0.0 - 4.1.0
Severity: high
Inefficient Regular Expression Complexity in chalk/ansi-regex - https://github.com/advisories/GHSA-93q8-gq69-wqmw
fix available via `npm audit fix`
node_modules/ganache-cli/node_modules/ansi-regex
node_modules/yargs/node_modules/ansi-regex
elliptic <6.5.4
@riptl
riptl / r2deb_update.md
Created January 24, 2023 01:53
Radare2 update instructions

Some notes on how to maintain the radare2 Debian package.

The Debian package source is at https://salsa.debian.org/pkg-security-team/radare2 You'll need a salsa.debian.org account to propose changes.

The following branches are of interest:

  • upstream: Contains a copy of the Git repo
  • debian/master: Contains a Debianized copy of the Git repo
  • pristine-tar: Contains source tarballs
  • pristine-lfs: Contains the latest source tarball as LFS
@riptl
riptl / xcoff64.pat
Created February 1, 2023 09:57
imHex pattern for XCOFF64
#include <std/mem.pat>
#include <std/io.pat>
struct filehdr {
be u16 f_magic; /* Magic number */
be u16 f_nscns; /* Number of Sections */
be u32 f_timdat; /* Time & date stamp */
be u64 f_symptr; /* File pointer to Symbol Table */
be u16 f_opthdr; /* sizeof (Optional Header) */
be u16 f_flags; /* Flags */