Skip to content

Instantly share code, notes, and snippets.

@zznop
zznop / ggpatchinfo.go
Created September 11, 2021 03:59
Decodes and recover patch info from SEGA Genesis Game Genie codes
/**
* MIT License
*
* Copyright (c) 2021 Brandon Miller (zznop)
*
* This program decodes SEGA Genesis Game Genie alphanumeric codes and displays the encoded patch information
*/
package main
@zznop
zznop / blog.go
Last active August 30, 2020 21:09
Labstack Echo Blog Example
package main;
import(
"github.com/labstack/echo"
"time"
"path/filepath"
"html/template"
"strings"
"os"
"net/http"
@zznop
zznop / keybase.md
Created May 31, 2020 22:46
keybase.md

Keybase proof

I hereby claim:

  • I am zznop on github.
  • I am zznop (https://keybase.io/zznop) on keybase.
  • I have a public key ASCst2e_8yle-NJFKKbC4oj_XR_E9BuuTRVh2Z6qXJShngo

To claim this, I am signing this object:

import ida_segment
import ida_bytes
import idautils
import idaapi
import idc
import re
__author__ = 'zznop'
__copyright__ = 'Copyright 2019, zznop'
__email__ = 'zznop0x90@gmail.com'
# megadrive-loader.py
# zznop 2019
#
# Load ROM as a flat binary, set processor to 68000,
# and run the script
import idc
import idautils
import ida_bytes
import ida_funcs
@zznop
zznop / mem-loader.asm
Last active March 6, 2023 00:17
Fun little loader shellcode that executes an ELF in-memory using an anonymous file descriptor (inspired by https://x-c3ll.github.io/posts/fileless-memfd_create/)
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;
;;; Copyright (C), zznop, brandonkmiller@protonmail.com
;;;
;;; This software may be modified and distributed under the terms
;;; of the MIT license. See the LICENSE file for details.
;;;
;;; DESCRIPTION
;;;
;;; This PoC shellcode is meant to be compiled as a blob and prepended to a ELF
@zznop
zznop / d8.js
Created May 8, 2018 14:10 — forked from itszn/d8.js
Plaid CTF 2018 d8 exploit
/* Plaid CTF 2018 v8 Exploit. Exploit begins around line 240 */
/* ### Utils, thanks saelo ### */
//
// Tiny module that provides big (64bit) integers.
//
// Copyright (c) 2016 Samuel Groß
//
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
void take_int(int j)
{
if (j == 1337)
printf("How could this be? j was never initialized!\n");
}
int is_odd(int number)
{
return number == 0 ? 0 : is_even(abs(number) - 1);
}
int is_even(int number)
{
return number == 0 ? 1 : is_odd(abs(number) - 1);
}
uint32_t factorial(uint32_t number)
{
if (number &lt;= 1)
{
return 1;
}
return number * factorial(number -1);
}