Skip to content

Instantly share code, notes, and snippets.

@hlandau
hlandau / Makefile
Created September 10, 2023 10:13
LD_PRELOAD implementation of SSLKEYLOGFILE in OpenSSL
ldkeylog.so: ldkeylog.c
gcc -Wall -shared -fPIC -O3 "$<" -o "$@"
@throwaway96
throwaway96 / crashd.md
Last active July 10, 2026 01:52
crashd instructions

News

EOL (2024-07-21)

I'm not going to be maintaining this document anymore. I'm leaving it as-is since much of the FAQ section is still accurate and has yet to be incorporated into other resources.

Use CanI.RootMy.TV to find an exploit for your TV.

New exploit for webOS 3.5+: DejaVuln (2024-04-21)

@loknop
loknop / writeup.md
Last active May 13, 2026 11:38
Solving "includer's revenge" from hxp ctf 2021 without controlling any files

Solving "includer's revenge" from hxp ctf 2021 without controlling any files

The challenge

The challenge was to achieve RCE with this file:

<?php ($_GET['action'] ?? 'read' ) === 'read' ? readfile($_GET['file'] ?? 'index.php') : include_once($_GET['file'] ?? 'index.php');

Some additional hardening was applied to the php installation to make sure that previously known solutions wouldn't work (for further information read this writeup from the challenge author).

I didn't solve the challenge during the competition - here is a writeup from someone who did - but since the idea I had differed from the techniques used in the published writeups I read (and I thought it was cool :D), here is my approach.

@palmerj
palmerj / M30.md
Last active June 6, 2026 16:18
8BitDo M30 2.4G Gamepad for Genesis Mini/Mega Drive Mini

Collection of FAQs and Configs for the 8BitDo M30 2.4G

image

Can I map the Dpad on this controller? Can I also map and swap the A/B/X/Y buttons on this controller?

Yes, you can when wired via USB. The default mode of the DPad on this controller is as left analogue stick. You can also:

  • LEFT + Select : set Dpad as left analogue stick.
  • Up + Select : reset Dpad.
  • Right + Select : set Dpad as right analogue stick.
import paho.mqtt.client as mqtt
import json
client = mqtt.Client()
client.username_pw_set("z2muser", "z2pass")
client.connect("192.168.0.201", 1883)
topic = "zigbee2mqtt/tradfi_alpha/set"
from time import sleep
@0xbb
0xbb / amd-r9-390x.md
Last active February 19, 2016 17:06
AMD R9 390X - Linux Support

AMD R9 390X - Linux Support

Tested with Debian Stretch (Linux 4.3), MSI - Radeon R9 390X Gaming 8G

lspci

lspci -v

01:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Hawaii XT [Radeon R9 290X] (rev 80) (prog-if 00 [VGA controller])
	Subsystem: Micro-Star International Co., Ltd. [MSI] Hawaii XT [Radeon R9 290X]
	Flags: bus master, fast devsel, latency 0, IRQ 132
@Drakulix
Drakulix / 0001-apple_gmux-Add-sys-debugfs
Last active November 2, 2019 18:59
Apple Gmux DebugFS
diff -uprN linux-3.16.1-org/drivers/platform/x86/apple-gmux.c linux-3.16.1-patched/drivers/platform/x86/apple-gmux.c
--- a/drivers/platform/x86/apple-gmux.c 2014-08-14 04:36:35.000000000 +0200
+++ b/drivers/platform/x86/apple-gmux.c 2014-09-10 17:12:47.000000000 +0200
@@ -22,6 +22,10 @@
#include <linux/delay.h>
#include <linux/pci.h>
#include <linux/vga_switcheroo.h>
+#include <linux/seq_file.h>
+#include <linux/uaccess.h>
+#include <linux/fs.h>