-
Create an empty file to prevent the service from starting
sudo touch /etc/cloud/cloud-init.disabled
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
var_30= qword ptr -30h | |
var_24= dword ptr -24h | |
var_20= dword ptr -20h | |
var_1C= dword ptr -1Ch | |
var_18= dword ptr -18h | |
var_14= dword ptr -14h | |
var_10= dword ptr -10h | |
var_8= qword ptr -8 | |
push rbp |
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
let KEY = new Uint8Array(16); | |
function generate_key() { | |
let KEY = new Uint8Array(16); | |
window.crypto.getRandomValues(KEY); | |
return KEY; | |
} | |
KEY = generate_key(); | |
document.body.innerText = KEY; |
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 <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
void setbff(void) | |
{ | |
setvbuf(stdin,(char *)0x0,2,0); | |
setvbuf(stdout,(char *)0x0,2,0); | |
setvbuf(stderr,(char *)0x0,2,0); |
Usage:
wget https://gist.githubusercontent.com/sirdarckcat/087e32982bd77bddbd9c46ccbc72edf7/raw/gctf.sh && chmod +x gctf.sh
mkdir -p google-ctf-2019
DATABASE_URL=https://gctf-2019-da0962m957mnki9l.firebaseio.com ./gctf.sh google-ctf-2019/ctf
DATABASE_URL=https://gctf-2019-da0962m957mnki9l.firebaseio.com/beginners ./gctf.sh google-ctf-2019/bq
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
IMPORTS_TO_PATCH = [ | |
"alarm", | |
"ptrace" | |
] | |
# iterate over imported symbols | |
for import_sym in bv.get_symbols_of_type(SymbolType.ImportedFunctionSymbol): | |
# check if symbol is in the patch list | |
if import_sym.name in IMPORTS_TO_PATCH: | |
log.log_info(f"patching out call to {import_sym.name}") |
OlderNewer