Skip to content

Instantly share code, notes, and snippets.

import sys
if len(sys.argv) != 2:
print("usage: hex.py [file]")
sys.exit(1)
filename = sys.argv[0]
with open(filename,'rb') as f:
buff = f.read()

Install Tamarin firmware on Raspberry Pico

Everything here is done on Ubuntu 22.04

Install some dependencies : sudo apt install cmake gcc-arm-none-eabi g++ git.

Clone the Pico SDK, then clone the Tamarin firmware and build it:

mkdir -p tamarin; cd $_
λ ~/dev/openocd(tamarin*) » sudo ./src/openocd -f tcl/interface/tamarin.cfg -f t8010.cfg -d3
Open On-Chip Debugger 0.10.0+dev-g88a95648-dirty (2022-08-26-21:17)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
User : 13 1 options.c:60 configuration_output_handler(): debug_level: 3
User : 14 1 options.c:60 configuration_output_handler():
Debug: 15 1 options.c:184 add_default_dirs(): bindir=/usr/local/bin
Debug: 16 1 options.c:185 add_default_dirs(): pkgdatadir=/usr/local/share/openocd
Debug: 17 1 options.c:186 add_default_dirs(): exepath=/home/mathieu/dev/openocd/src
@matteyeux
matteyeux / .env
Last active April 24, 2024 09:46
docker-compose version 3.8 for Elasticsearch and Kibana
# Password for the 'elastic' user (at least 6 characters)
ELASTIC_PASSWORD=pouet
# Password for the 'kibana_system' user (at least 6 characters)
KIBANA_PASSWORD=pouetpouet
# Version of Elastic products
STACK_VERSION=8.3.2
# Set the cluster name
#!/bin/bash
# needs scrot and imagemagick
scrot /tmp/screen_locked.png
convert /tmp/screen_locked.png -blur 0x9 /tmp/screen_locked_blured.png
i3lock -i /tmp/screen_locked_blured.png
import requests
import json
import time
from twython import Twython
def tweet_message(covid_center_url, cnt):
CONSUMER_KEY = ''
CONSUMER_SECRET = ''
ACCESS_KEY = ''
================================== iphone11,2 ===================================================
14.4.1-14.2
key : 5a37b94ad2b79cb789ed930f0dff883ed0487a86151844450e0a197070647369e9691f5091c202ab8699939f31bf6c4a
18B92/14.2
key : aa0684897a2a372e7bcb0f26625a70142bdb671267af4d23a2ec851910c7e8641a738ce63c1fccc558b480baa0b086f2
Traceback (most recent call last):
File "/home/mathieu/.binaryninja/repositories/official/plugins/Vector35_debugger/dockwidgets/ControlsWidget.py", line 304, in perform_attach_thread
self.debug_state.attach()
File "/home/mathieu/.binaryninja/repositories/official/plugins/Vector35_debugger/binjaplug.py", line 705, in attach
raise e
File "/home/mathieu/.binaryninja/repositories/official/plugins/Vector35_debugger/binjaplug.py", line 700, in attach
self.adapter.connect(self.remote_host, self.remote_port)
File "/home/mathieu/.binaryninja/repositories/official/plugins/Vector35_debugger/QueuedAdapter.py", line 118, in connect
return self.submit(lambda: self.adapter.connect(server, port))
File "/home/mathieu/.binaryninja/repositories/official/plugins/Vector35_debugger/QueuedAdapter.py", line 84, in submit
@matteyeux
matteyeux / build_pongo.sh
Last active February 13, 2024 00:21
Bash script to install dependencies needed to build PongoOS on Linux
#!/bin/bash
############################################################
# Script to install everything needed
# to build PongoOS on Linux.
# tested on Debian and Ubuntu
#
# to clean : sudo rm -rf /opt/ios-arm64e-clang-toolchain \
# pongoOS /usr/share/sdks
############################################################
set -e
# Script to rebase 64 bits iBoots
#@author matteyeux
#@category iOS
#@keybinding
#@menupath
#@toolbar
def get_disassembly(address):
"""
Get disassembly insn at specify addr.