This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# lists Foxit Reader last opened files from registry | |
# 2015.08.31 darell tan | |
# | |
from _winreg import * | |
from ctypes import windll, create_unicode_buffer | |
def GetLongPathName(path): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# | |
# tool to parse JFFS2 images | |
# and more importantly, guess the erase block size | |
# | |
# 2015.10.19 darell tan | |
# | |
from struct import unpack | |
from argparse import ArgumentParser |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# | |
# ejects the cdrom drive | |
# | |
# kernel references: | |
# - Documentation/ioctl/cdrom.txt | |
# - include/uapi/linux/cdrom.h | |
# | |
from fcntl import ioctl |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* bruteforce-cfg1.go | |
* to bruteforce CFG1 encryption passwords for 32c3CTF "config.bin" | |
* | |
* @zxcvgm | |
*/ | |
package main | |
import ( | |
brutedict "github.com/dieyushi/golang-brutedict" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// MAX6675 thermocouple converter Arduino code sample | |
// | |
// 2016.05.12 darell tan | |
// | |
#include <SPI.h> | |
static const int CS_PIN = 13; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# | |
# automated ESP8266 programming station | |
# monitors for inserted serial devices and calls esptool to flash them | |
# written to mass flash entire batches of ESP8266 devices quickly | |
# $ pip install esptool pyudev | |
# | |
# 2016.06.16 darell tan | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description=Disable auto-negotiation for %i | |
Requires=sys-subsystem-net-devices-%i.device | |
After=sys-subsystem-net-devices-%i.device | |
[Service] | |
ExecStart=/usr/bin/ethtool -s %i duplex full speed 100 autoneg off | |
Type=oneshot | |
[Install] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
# | |
# show unsatisfied depedencies for a set of ipkg files | |
# useful when creating a self-sufficient set of packages offline | |
# | |
# 2016.07.05 darell tan | |
# | |
import tarfile | |
import sys |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* i2c-detect.ino | |
* just like the Linux utility | |
* | |
* 2016.01.09 darell tan | |
*/ | |
#include <Wire.h> | |
int led_pin = 13; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# Perl debugger module to deal with bowie.pl (LabyREnth CTF) | |
# save this under ./Devel/Tracer.pm, | |
# then run `perl -d:Tracer bowie.pl < /dev/null` | |
# | |
# 2016.07.22 @zxcvgm | |
# | |
package DB; |