Skip to content

Instantly share code, notes, and snippets.

pkgname=evtest
version=1.33
revision=1
short_desc="Command line tool for displaying device input information"
maintainer="sen <ethan.k.shackelford@gmail.com>"
license="GPLv2"
build_style=gnu-configure
homepage="https://cgit.freedesktop.org/evtest/"
distfiles="https://cgit.freedesktop.org/evtest/snapshot/evtest-${version}.tar.xz"
hostmakedepends="autoconf automake"
import pwn
plt_system = pwn.p64(0x401040)
plt_puts = pwn.p64(0x401030)
pop_rdi = pwn.p64(0x40120b)
main = pwn.p64(0x40115f)
buf_heap_addr = pwn.p64(0x405670)
@0bs3n
0bs3n / bincmp.c
Last active February 1, 2021 07:52
Quick and dirty program for finding binary sequences from one file in another
#include <stdio.h>
#include <sys/stat.h>
#include <stdlib.h>
#include <string.h>
#define LOADOFFSET 0x40000000 // RAM is mapped to 0x40000000, added to account for this
int main(int argc, char **argv) {
FILE *needle;
FILE *haystack;