Skip to content

Instantly share code, notes, and snippets.

Gabriel Corona randomstuff

View GitHub Profile
@nstarke
nstarke / netgear-private-key-disclosure.md
Last active Jun 14, 2020
Netgear TLS Private Key Disclosure through Device Firmware Images
View netgear-private-key-disclosure.md

Netgear Signed TLS Cert Private Key Disclosure

Overview

There are at least two valid, signed TLS certificates that are bundled with publicly available Netgear device firmware.

These certificates are trusted by browsers on all platforms, but will surely be added to revocation lists shortly.

The firmware images that contained these certificates along with their private keys were publicly available for download through Netgear's support website, without authentication; thus anyone in the world could have retrieved these keys.

@haasn
haasn / about:config.md
Last active Jun 27, 2020
Firefox bullshit removal via about:config
View about:config.md

Firefox bullshit removal

Updated: Just use qutebrowser (and disable javascript). The web is done for.

@Lukasa
Lukasa / netlink_ifnew.py
Created Mar 4, 2015
Monitor for new links using Python and Netlink
View netlink_ifnew.py
@aras-p
aras-p / preprocessor_fun.h
Last active Jul 12, 2020
Things to commit just before leaving your job
View preprocessor_fun.h
// Just before switching jobs:
// Add one of these.
// Preferably into the same commit where you do a large merge.
//
// This started as a tweet with a joke of "C++ pro-tip: #define private public",
// and then it quickly escalated into more and more evil suggestions.
// I've tried to capture interesting suggestions here.
//
// Contributors: @r2d2rigo, @joeldevahl, @msinilo, @_Humus_,
// @YuriyODonnell, @rygorous, @cmuratori, @mike_acton, @grumpygiant,
@nkuln
nkuln / cxa_throw_replace_backtrace.c
Created Mar 12, 2012
Override __cxa_throw and prints backtrace when exception is thrown (Linux)
View cxa_throw_replace_backtrace.c
#include <dlfcn.h>
#include <execinfo.h>
typedef void (*cxa_throw_type)(void *, void *, void (*) (void *));
cxa_throw_type orig_cxa_throw = 0;
void load_orig_throw_code()
{
orig_cxa_throw = (cxa_throw_type) dlsym(RTLD_NEXT, "__cxa_throw");
}
@KevinGoodsell
KevinGoodsell / terminals.txt
Created Dec 17, 2010
The Trouble With Terminals
View terminals.txt
The Trouble With Terminals
Thu, 16 Dec 2010 16:43:20 -0800
Copyright 2010 Kevin Goodsell
0. License
This work is licensed under a Creative Commons
Attribution-NonCommercial-ShareAlike 3.0 Unported License. To view a
You can’t perform that action at this time.