Skip to content

Instantly share code, notes, and snippets.

# coding:utf-8
from __future__ import print_function, division
from pwn import *
# socat TCP-L:3001,reuseaddr,fork EXEC:./execfile
'''
# Vector Writeup
'''
interface instif;
reg lui;
reg auipc;
reg jal;
reg jalr;
reg beq;
reg bne;
reg blt;
reg bge;
reg bltu;
@moratorium08
moratorium08 / Dockerfile
Last active December 1, 2018 15:20
Ideal
FROM ubuntu:16.04
RUN apt-get update && apt-get -y upgrade
RUN apt-get install -y socat git ocaml-nox python2.7 make libc6-i386
RUN groupadd -r user && useradd -r -g user user
RUN git clone https://github.com/esumii/min-caml /home/user/min-caml
WORKDIR /home/user/min-caml
RUN /home/user/min-caml/to_x86
# q1
s1 = "0\n"
# q2
s2 = "0\n0\n1\n1\n1\n3\n5\n5\n5\n"
# q3
s3 = """8
2
4
4
4
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
# coding: utf-8
from __future__ import print_function, division
from pwn import *
is_gaibu = True
if is_gaibu:
host = "election.pwn.seccon.jp"
port = 28349
else:
host = "127.0.0.1"
from pwn import *
is_gaibu = True
if is_gaibu:
host = "baby_stack.pwn.seccon.jp"
port = 15285
else:
host = "127.0.0.1"
port = 3000
r = remote(host, port)
import struct
def p8(x):
return struct.pack("<B", x)
def p16(x):
return struct.pack("<H", x)
def p32(x):
return struct.pack("<L", x)
# coding: utf-8
from itertools import permutations
filename = "data.tsv"
signames = ["CTF分科会", "続・初心者分科会",
"Esolang/CodeGolf分科会", "機械学習分科会", "駒場祭(hoge)"]
daynames = "月火水木金"