Skip to content

Instantly share code, notes, and snippets.

@akiym
akiym / Dockerfile
Last active Nov 22, 2018
Reproduction code segmentation fault with --py-autoreload (uwsgi 2.0.17, Python 3.7)
View Dockerfile
FROM python:3.7-stretch
WORKDIR /app
RUN pip install uwsgi==2.0.17
COPY foobar.py .
COPY __init__.py foo/bar/__init__.py
CMD ["uwsgi", "--http", ":9090", "--wsgi-file", "foobar.py", "--py-autoreload", "1"]
@akiym
akiym / solve.py
Created Sep 7, 2016
Cello Rule - Tokyo Westerns / MMA CTF 2nd 2016
View solve.py
# -*- coding: utf-8 -*-
from z3 import *
s = Solver()
seed1 = [BitVec('s1_%d' % i, 64) for i in range(64+1)]
seed2 = [BitVec('s2_%d' % i, 64) for i in range(64+1)]
r1 = BitVec('r1', 64)
r2 = BitVec('r2', 64)
@akiym
akiym / exploit.py
Created Sep 7, 2016
shadow - Tokyo Westerns / MMA CTF 2nd 2016
View exploit.py
# -*- coding: utf-8 -*-
import os
import sys
import time
import re
import struct
import socket
p = lambda x: struct.pack('<I', x)
u = lambda x: struct.unpack('<I', x)[0]
@akiym
akiym / exploit.py
Created Sep 7, 2016
diary - Tokyo Westerns / MMA CTF 2nd 2016
View exploit.py
# -*- coding: utf-8 -*-
import os
import sys
import time
import re
import struct
import socket
from pwn import *
context.update(arch='amd64', os='linux')
@akiym
akiym / exploit.py
Created Sep 7, 2016
Interpreter - Tokyo Westerns / MMA CTF 2nd 2016
View exploit.py
# -*- coding: utf-8 -*-
import os
import sys
import time
import re
import struct
import socket
p = lambda x: struct.pack('<Q', x)
u = lambda x: struct.unpack('<Q', x)[0]
@akiym
akiym / exploit.py
Created Sep 7, 2016
greeting - Tokyo Westerns / MMA CTF 2nd 2016
View exploit.py
# -*- coding: utf-8 -*-
import os
import sys
import time
import re
import struct
import socket
from libformatstr import FormatStr
p = lambda x: struct.pack('<I', x)
@akiym
akiym / exploit.py
Last active Sep 6, 2016
Candy Store - Tokyo Westerns / MMA CTF 2nd 2016
View exploit.py
# -*- coding: utf-8 -*-
import os
import sys
import time
import re
import struct
import socket
p = lambda x: struct.pack('<I', x)
u = lambda x: struct.unpack('<I', x)[0]
@akiym
akiym / pwn1.py
Created Feb 29, 2016
SSCTF 2016 Quals - Pwn-1, Pwn-2
View pwn1.py
# -*- coding: utf-8 -*-
import os
import sys
import time
import re
import struct
import socket
p = lambda x: struct.pack('<I', x)
u = lambda x: struct.unpack('<I', x)[0]
@akiym
akiym / exploit2.py
Created Jul 6, 2015
魔改造ropasaurusrex writeup #katagaitaiCTF
View exploit2.py
# -*- coding: utf-8 -*-
import os
import sys
import time
import re
import struct
import socket
p = lambda x: struct.pack("<I", x)
u = lambda x: struct.unpack("<I", x)[0]
@akiym
akiym / explicit.py
Last active Aug 29, 2015
No cON Name CTF Quals 2014 - eXPLicit
View explicit.py
# -*- coding: utf-8 -*-
import os
import sys
import time
import re
from pwn import *
from libformatstr import *
REMOTE = 0
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.