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 / github.py
Created May 11, 2016 12:41
GitHub API wrapper
"""
GitHub API v3 Wrapper
Ref: https://developer.github.com/v3/git/
"""
import base64
import json
import requests
@dev-zzo
dev-zzo / ann.c
Created April 10, 2016 21:53
N-layer ANN
#include <stdio.h>
#include <malloc.h>
#include <math.h>
#include <stdlib.h>
//
// Generic N-layer neuron network code (using unipolar sigmoid activation function)
//
// Data type to operate on; typically double.
@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;
@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 / 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 / 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 / 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 / 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 / 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 / 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