Skip to content

Instantly share code, notes, and snippets.

View st98's full-sized avatar

st98 st98

View GitHub Profile
@st98
st98 / yuno.html
Created May 21, 2014 12:05
ゆの in HTML/CSS。…これはレギュレーション違反では。
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>ゆの in HTML/CSS</title>
<style>
#yuno {
font-size: 0;
}
#yuno::after {
@st98
st98 / mc.hsp
Last active August 29, 2015 14:01
モンテカルロ法でうんぬん。
*init
screen 0, 256, 256
title "もんかる"
num = 0
n = 0
pos 72, 120
mes "クリックで開始"
@st98
st98 / kakenai.hsp
Last active August 29, 2015 14:01
何となく HSP を書きたくなったので。筆先が回転するお絵描きツール。
*init
screen 0, 256, 256
title "お絵かけない"
angle = 0
pressed = 0
px = 0
py = 0
@st98
st98 / yuno.clj
Last active August 29, 2015 14:01
ゆの in Clojure?
(defn X [& _]
(println "ひだまりスケッチ×365 来週も見てくださいね!"))
(def _ nil)
(def 来週も見てくださいね! nil)
(X / _ / X < 来週も見てくださいね!)
@st98
st98 / yuno.js
Last active August 29, 2015 14:01
ゆの in JavaScript。ちょっとズル。
ReferenceError.prototype.name = 'ひだまりスケッチ×365 来週も見てくださいね!';
X / _ / X < 来週も見てくださいね
class Barrette(object):
def __truediv__(self, other):
return other
def __lt__(self, other):
print(other)
def __str__(self):
return 'ひだまりスケッチ×365 来週も見てくださいね!'
@st98
st98 / hello.il
Last active August 29, 2015 14:01
IL で書く Hello, world!
.assembly extern mscorlib {}
.assembly Hello {}
.method static void Main() cil managed {
.entrypoint
.maxstack 1
ldstr "Hello, world!"
call void [mscorlib]System.Console::WriteLine(string)
ret
}
@st98
st98 / gomi.js
Last active August 29, 2015 14:01
f([1, 2, 3, 4, 2, 3]); == 'ABCDBC'
function f(ary) {
var i, n, s, r, m;
s = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz';
r = '';
m = {};
for (i = n = 0; i < ary.length; i++) {
if (m[ary[i]] == null) {
m[ary[i]] = s[n++];
@st98
st98 / tkbctf3.md
Last active August 29, 2015 14:01
#tkbctf3 の write-up。(移動しました -> http://st98.github.io/diary/posts/2014-05-06-tkbctf3.html)

#tkbctf3

チーム nyoronyoro として参加した。最終的に獲得できたポイントは 650 点でチーム順位は 14 位だった。
Our Future (Network 100), Real World TeX (Misc 100), The Deal (Crypto 200), miocat(Web 250) の 4 問を解いた。

解けた問題

Our Future (Network 100)

普通に future.tkbctf.info にアクセスすると Nope, this is not what you're looking for. Try another way! と表示される。

another way って何だろうと思いながら nslookup future.tkbctf.info すると、IPv6 のアドレスが出てきた。
IPv6 でアクセスしろということなのかと考えて、IPv6 Proxy を通して future.tkbctf.info を閲覧。

@st98
st98 / return-0.c
Last active August 29, 2015 14:00
char main[] = { 0x31, 0xc0, 0xc3 };