Skip to content

Instantly share code, notes, and snippets.

View zznop's full-sized avatar
😎

Brandon Miller zznop

😎
View GitHub Profile

Keybase proof

I hereby claim:

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

To claim this, I am signing this object:

uint32_t factorial(uint32_t number)
{
if (number <= 1)
{
return 1;
}
return number * factorial(number -1);
}
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);
}
#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");
}
@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ß
//
@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
# 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
import ida_segment
import ida_bytes
import idautils
import idaapi
import idc
import re
__author__ = 'zznop'
__copyright__ = 'Copyright 2019, zznop'
__email__ = 'zznop0x90@gmail.com'
@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:

@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"