Skip to content

Instantly share code, notes, and snippets.

void hexDump (char *desc, void *addr, int len) {
int i;
unsigned char buff[17];
unsigned char *pc = (unsigned char*)addr;
// Output description if given.
if (desc != NULL)
printf ("%s:\n", desc);
if (len == 0) {
@nologic
nologic / alphabet_derive.hs
Created December 31, 2017 21:26
Given a sorted dictionary, figure out the alphabet
import Data.Maybe
data Related a b = a :< b deriving (Show)
initialDictionary :: [String]
initialDictionary = [
"underrespected",
"underriddle",
"underriding",
"underrigged",
py print(hex("".join(map(chr, bytes(gdb.selected_inferior().read_memory(start_addr, search_len)))).find("AAA")))