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
# coding:utf-8 | |
from __future__ import print_function, division | |
from pwn import * | |
# socat TCP-L:3001,reuseaddr,fork EXEC:./execfile | |
''' | |
# Vector Writeup | |
''' |
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
interface instif; | |
reg lui; | |
reg auipc; | |
reg jal; | |
reg jalr; | |
reg beq; | |
reg bne; | |
reg blt; | |
reg bge; | |
reg bltu; |
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
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
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 |
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
# 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.
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
# 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" |
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 * | |
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) |
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 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) |
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
# coding: utf-8 | |
from itertools import permutations | |
filename = "data.tsv" | |
signames = ["CTF分科会", "続・初心者分科会", | |
"Esolang/CodeGolf分科会", "機械学習分科会", "駒場祭(hoge)"] | |
daynames = "月火水木金" | |