Skip to content

Instantly share code, notes, and snippets.

View rw-r-r-0644's full-sized avatar

rw-r-r-0644 rw-r-r-0644

  • Italy
View GitHub Profile
@rw-r-r-0644
rw-r-r-0644 / PKGBUILD
Created November 26, 2025 14:15
AUR angr-management TODO
# Maintainer: rw-r-r-0644 <[email protected]>
pkgname=angr-management
pkgver=9.2.185
pkgrel=1
pkgdesc='Graphical binary analysis tool powered by the angr binary analysis platform'
arch=('x86_64')
url="https://github.com/angr/angr-management"
license=('BSD')
source=(
"https://github.com/angr/angr-management/releases/download/v${pkgver}/angr-management-v${pkgver}-ubuntu-24.04-x86_64.tar.gz"
d4716b71de80f41c9e9da40a9627c1bc7ba6e6e8cff1f6e6dd5262c092f0a1fb
# needs https://github.com/wiiu-env/USBSerialLogger/tree/v0.1
picocom -b 57600 -f n -y n -d 8 -p 1 --imap crcrlf,delbs --omap lfcr,bsdel /dev/rfcomm0
@rw-r-r-0644
rw-r-r-0644 / aftvserial.py
Created September 12, 2022 14:51
Decode Amazon Fire TV devices serial number information
#!/bin/python3
#
# Decode Amazon Fire TV devices serial number information
#
# Copyright(C) 2022 rw-r-r-0644
# This file is under GNU GPLv2+
#
from datetime import datetime, date
ACTION=="add", SUBSYSTEM=="usb", ATTR{idVendor}=="0fce", ATTR{idProduct}=="0dde", TEST=="power/pm_qos_no_power_off", ATTR{power/pm_qos_no_power_off}="1"
ACTION=="add", SUBSYSTEM=="usb", ATTR{idVendor}=="0fce", ATTR{idProduct}=="0dde", TEST=="power/wakeup", ATTR{power/wakeup}=""
ACTION=="add", SUBSYSTEM=="usb", ATTR{idVendor}=="0fce", ATTR{idProduct}=="0dde", TEST=="power/control", ATTR{power/control}="on"
ACTION=="add", SUBSYSTEM=="usb", ATTR{idVendor}=="0fce", ATTR{idProduct}=="0dde", TEST=="power/autosuspend_delay_ms", ATTR{power/autosuspend_delay_ms}="-1"
ACTION=="add", SUBSYSTEM=="usb", ATTR{idVendor}=="0fce", ATTR{idProduct}=="0dde", TEST=="power/usb2_hardware_lpm", ATTR{power/usb2_hardware_lpm}="n"
ACTION=="add", SUBSYSTEM=="usb", ATTR{idVendor}=="0fce", ATTR{idProduct}=="0dde", TEST=="power/usb3_hardware_lpm_u1", ATTR{power/usb3_hardware_lpm_u1}="disable"
ACTION=="add", SUBSYSTEM=="usb", ATTR{idVendor}=="0fce", ATTR{idProduct}=="0dde", TEST=="power/usb3_hardware_lpm_u2", ATTR{power/usb3_hardware_lpm_u2
@rw-r-r-0644
rw-r-r-0644 / matchbox-ttt.c
Created November 28, 2021 19:11
TicTacToe AI matchbox thing from 28/7/2020, working state unknown
#include <stdio.h>
#include <stdint.h>
#include <string.h>
#include <stdlib.h>
#include <unistd.h>
#include <time.h>
/* board state storage:
* pstate -> whether X or O owns a given board part
* bstate -> which parts of the board are set
@rw-r-r-0644
rw-r-r-0644 / mathexpr.c
Created November 28, 2021 19:09
Math expression parser thing from 2/8/2020, working state unknown
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include <math.h>
typedef enum statement_type statement_type_t;
typedef enum operators_op0 operators_op0_t;
typedef enum operators_op1 operators_op1_t;
typedef enum operators_op2 operators_op2_t;
typedef struct statement statement_t;
@rw-r-r-0644
rw-r-r-0644 / tinybasic.c
Created September 2, 2021 13:58
Basic interpreter
/* tinybasic.c
*
* A simple TinyBASIC interpreter.
*
* NOTE: this was written one evening just for fun, with the
* explicit purpose of using a fairly small number of
* lines of code so the code is not at all readable ^^'
* I wouldn't recommend using this as base for anything else.
*
* Copyright (C) 2020 rw-r-r-0644
@rw-r-r-0644
rw-r-r-0644 / elan-touchpad.conf
Created August 25, 2021 12:59
455g8 touchpad workaround (/etc/modprobe.d/elan-touchpad.conf)
softdep elan_i2c pre: pinctrl_amd
softdep hid-elan pre: pinctrl_amd
softdep i2c-hid-acpi pre: pinctrl_amd
@rw-r-r-0644
rw-r-r-0644 / 0x08120000.s
Created May 10, 2021 22:22
IOSU logs over lolserial
.arm.big
.open "patches/sections/0x08120000.bin","patches/patched_sections/0x08120000.bin",0x08120000
CODE_SECTION_BASE equ 0x08120000
CODE_SECTION_SIZE equ 0x00015000
CODE_BASE equ (CODE_SECTION_BASE + CODE_SECTION_SIZE)
RODATA_SECTION_BASE equ 0x08140000
RODATA_SECTION_SIZE equ 0x00002478