Skip to content

Instantly share code, notes, and snippets.

View augustozanellato's full-sized avatar

Augusto Zanellato augustozanellato

View GitHub Profile
@augustozanellato
augustozanellato / dbgkey_gen.py
Created February 5, 2025 10:55
RP2350 Secure Debug key script generator
import sys
# Use it like `python dbgkey_gen.py 0xa5a5c3c3cdef89ab45670123beefdead > rp2350-dbgkey-secure.cfg`
# followed by `openocd -f interface/cmsis-dap.cfg -c "transport select swd" -c "adapter speed 8000" -f rp2350-dbgkey-secure.cfg -c exit`
# followed by your regular openocd command
print("""
transport select swd
source [find target/swj-dp.tcl]
@augustozanellato
augustozanellato / pizf.c
Created September 9, 2022 10:07
TeamItalyCTF 2022 PIZF demuxer
// freeing allocated memory is overrated, that's why i got 64g of ram :D
#include "libavutil/avstring.h"
#include "libavutil/intreadwrite.h"
#include "libavutil/internal.h"
#include "libavutil/macros.h"
#include "libavutil/avassert.h"
#include "libavutil/pixdesc.h"
#include "libavformat/internal.h"
#include "avformat.h"
#!/bin/bash
#
# This file is part of saddam.sh distribution (https://gist.github.com/augustozanellato/5a4dc00d21fffd7c993b7f9d3cf208a6).
# Copyright (c) 2021 Augusto Zanellato.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, version 3.
#
# This program is distributed in the hope that it will be useful, but
var PROXY_DIRECT = "DIRECT";
var DIRECT = "DIRECT";
var BLACK = "PROXY 127.0.0.1:8021";
var WHITE = PROXY_DIRECT;
function s(u, r) {
return shExpMatch(u, r);
}
function d(h, r) {
@augustozanellato
augustozanellato / Keybase.md
Created September 14, 2019 04:29
Keybase verification

Keybase proof

I hereby claim:

  • I am augustozanellato on github.
  • I am auguzanellato (https://keybase.io/auguzanellato) on keybase.
  • I have a public key ASA2_9ce0gmKQQSxH55EDFj6F5HzgK-4xqUmtnEJQCSKWQo

To claim this, I am signing this object:

@augustozanellato
augustozanellato / NautilusBackspaceGoBack.py
Created October 22, 2018 21:04
Add support for backspace shortcut (go back) for Nautilus
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# NautilusBackspaceGoBack.py
# Author: Augusto Zanellato <augusto.zanellato@gmail.com>
# This file is released under GPLv3 license (https://www.gnu.org/licenses/gpl-3.0.html)
import os, gi
gi.require_version("Nautilus", "3.0")
from gi.repository import GObject, Nautilus, Gtk
@augustozanellato
augustozanellato / arduino-due.cfg
Created October 11, 2018 16:45
OpenOCD Arduino Due (SAM3X8E) debug w/ STLink v2
source [find /interface/stlink-v2.cfg]
#transport type SWD
transport select hla_swd
#swd frequency
adapter_khz 1800
#sam3x8e cpuid
set CPUTAPID 0x2ba01477