Skip to content

Instantly share code, notes, and snippets.

View Phasip's full-sized avatar

Pasi Saarinen Phasip

View GitHub Profile
@Phasip
Phasip / gameboy_ida70.py
Last active November 21, 2021 10:17 — forked from LIJI32/gameboy.py
Game Boy loader script for IDA 7.0 and up
import idaapi
import idc
import ida_funcs
import ida_bytes
from idc import *
logo = bytes.fromhex("CE ED 66 66 CC 0D 00 0B 03 73 00 83 00 0C 00 0D 00 08 11 1F 88 89 00 0E DC CC 6E E6 DD DD D9 99 BB BB 67 63 6E 0E EC CC DD DC 99 9F BB B9 33 3E".replace(" ", ""))
registers = {
0xFF00: "rJOYP",
zfs send -vR PoolName@SnapShotName | zfs receive -vF ReceivingPoolName
for uuid in $(xe vm-list | awk '{ if ($0 ~/uuid/ ) print $5}' ); do xe vm-export vm=$uuid filename=$uuid.xenbackup; done
@Phasip
Phasip / screenrc
Last active October 31, 2016 12:18
# skip the startup message
startup_message off
# go to home dir
chdir
# Automatically detach on hangup.
autodetach on
logfile "$HOME/screen_log/screen_%H_%m%d%Y_%0c-%t.%n"
theory Loop_Counter_Test begin
functions: inc/1
rule Start: [ Fr(x) ] --[ ]-> [ A(x,x) ]
rule Loop: [ A(x,y) ] --[ Loop(x,y) ]-> [ A(x,inc(y)) ]
lemma Exists:
exists-trace
"Ex #i x y. Loop(x,inc(y)) @ #i"
@Phasip
Phasip / weird_axiom.spthy
Created February 25, 2015 08:14
Tamarin issue using axiom.
theory BadTheory_axiom
begin
rule ProbablyBug:
[
Fr(~kenb)
]
--[
SessionKey(~kenb)
]->
@Phasip
Phasip / weid_typing.spthy
Created February 25, 2015 08:13
Tamarin issue using typing lemma.
theory BadTheory_Typing
begin
rule ProbablyBug:
[
Fr(~kenb)
]
--[
SessionKey(~kenb)
]->