Skip to content

Instantly share code, notes, and snippets.

View dev-zzo's full-sized avatar

DJ Sunshine dev-zzo

View GitHub Profile
@dev-zzo
dev-zzo / unpack-dlink.c
Created August 6, 2013 14:36
version 1 of D-LINK fw image unpacker.
@dev-zzo
dev-zzo / pxd-format.md
Last active September 25, 2019 11:49
PXD File Format Description

PXD File Format Description

This file is created in response to rather poor documentation [1] for PXD file format consumed by Autodesk Pixlr and other peoducts (e.g., Autodesk SketchBook Pro).

File Layout

The PXD file, as noted by the few lines in the docs, consists of a header, followed by an array of layers, and then with composite pixel data (on versions >= 3?). All integers within the file are big-endian. The whole file is compressed with zlib.

@dev-zzo
dev-zzo / coffdump.py
Last active December 21, 2015 19:01
COFF dumper plugin
#
# BUGS:
#
# * Data is not handled at all.
#
# * Imports which are either IMPORT_NAME_NOPREFIX or IMPORT_NAME_UNDECORATE
# should be properly restored -- make a huge map?..
#
import idaapi
@dev-zzo
dev-zzo / vm80a.v
Created December 22, 2014 10:54
BM80A
//
// copyright (c) 2014 by [email protected]
//______________________________________________________________________________
//
`timescale 1ns / 1ns
module vm80a
(
input pin_clk, // global module clock (no in original 8080)
input pin_f1, // clock phase 1 (used as clock enable)
@dev-zzo
dev-zzo / ff4save.bt
Last active August 29, 2015 14:12
010 Templates: FF4 Saves
//--------------------------------------
//--- 010 Editor v6.0 Binary Template
//
// File: ff4save.bt
// Author: DJ
// Revision: 1
// Purpose: Parse FF4 save slot.
//--------------------------------------
local int doSteam = -1;
@dev-zzo
dev-zzo / sagem-router-root-pass-gen.py
Created January 8, 2015 12:16
SAGEM ROUTER FAST 3304/3464/3504 - telnet root password generator
"""
SAGEM ROUTER FAST 3304/3464/3504 - telnet root password generator.
Work based on: http://1337day.com/exploit/16687
"""
import sys
@dev-zzo
dev-zzo / pattern.py
Last active November 8, 2019 04:35
pattern_create.rb in Python
#!/usr/bin/python
"""Utility functions to work with character patterns."""
__lower_alpha = 'abcdefghijklmnopqrstuvwxyz'
__upper_alpha = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'
__numeric = '0123456789'
def pattern_create(length, charsets=None):
"""Generates a unique, nonrepeating pattern of a given length.
@dev-zzo
dev-zzo / Cisco-RVS4000-DD.xml
Last active October 28, 2023 10:21
UPnP fun
<?xml version="1.0"?>
<root xmlns="urn:schemas-upnp-org:device-1-0">
<specVersion>
<major>1</major>
<minor>0</minor>
</specVersion>
<URLBase>http://172.16.90.254:49152</URLBase>
<device>
<deviceType>urn:schemas-upnp-org:device:InternetGatewayDevice:1</deviceType>
<friendlyName>Cisco VPN Router</friendlyName>
@dev-zzo
dev-zzo / info.txt
Created January 28, 2016 08:40 — forked from anonymous/info.txt
MS16-005 (CVE-2016-0009) Win32k Remote Code Execution Vulnerability info
MS16-005 (CVE-2016-0009) Win32k Remote Code Execution Vulnerability info
just look at PFTOBJ::bUnloadAllButPermanentFonts
@dev-zzo
dev-zzo / gpm.md
Created February 10, 2016 13:31
Global pointers misuse

Global pointer variables misused in C programs

TL;DR: load global variables into local ones before use.

I've spotted a quite widespread misuse of global pointer variables. The issue is easily demonstrated by the following simplified example.

struct some_type_t {
    int a1;
    int a2;