Skip to content

Instantly share code, notes, and snippets.

This file has been truncated, but you can view the full file.
<Window x:Class="SHA1CalculatorWPF.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:local="clr-namespace:SHA1CalculatorWPF"
mc:Ignorable="d"
Title="SHA-1 Calculator WPF" Height="350" Width="640">
<Grid AllowDrop="True" DragOver="Grid_DragOver" Drop="Grid_Drop">
<DataGrid x:Name="dataGrid" AutoGenerateColumns="False" CanUserResizeRows="False">
@inaz2
inaz2 / markov.py
Last active June 19, 2016 15:37
マルコフ連鎖で国会答弁
# -*- coding: utf-8 -*-
import sys
import urllib
import untangle
from janome.tokenizer import Tokenizer
import re
import random
class Markov(object):
@inaz2
inaz2 / hashme_solve.py
Created July 16, 2016 12:14
hack you 2014 – Crypto200 – hashme (at katagaitai CTF勉強会 #5 - 関東|med)
import socket
from math import sin
def xor(a, b):
return ''.join(map(lambda x : chr(ord(x[0]) ^ ord(x[1])), zip(a, b * 100)))
def hashme_ext(s, digest, len_seed):
#my secure hash function
def F(X,Y,Z):
return ((~X & Z) | (~X & Z)) & 0xFFFFFFFF
@inaz2
inaz2 / ld-2.19.txt
Created July 19, 2016 05:23
libc and ld symbol list in .data/.bss
.data:
0000000000223060 D _rtld_global
0000000000223060 d _rtld_local
.bss:
0000000000223fe4 b __bss_start
0000000000223fe4 d _edata
0000000000224000 b data.9488
0000000000224010 b newname.9678
0000000000224028 b tls_init_tp_called
@inaz2
inaz2 / japanese-generations-2016.md
Last active July 6, 2024 07:39
日本の世代と2016年時点での年齢
世代 出生年 年齢 時勢
昭和一桁世代 1927年-1934年 82歳-89歳 世界恐慌
焼け跡世代 1935年-1946年 70歳-81歳 第二次世界大戦終戦
全共闘世代 1941年-1949年 67歳-75歳 全共闘運動、安保闘争
団塊の世代 1947年-1949年 67歳-69歳 第一次ベビーブーム
しらけ世代 1950年-1964年 52歳-66歳 第一次オイルショック
新人類 1961年-1970年 46歳-55歳 共通一次試験開始、サブカルチャー隆盛
バブル世代 1965年-1969年 47歳-51歳 ツッパリ文化
団塊ジュニア 1971年-1974年 42歳-45歳 第二次ベビーブーム
@inaz2
inaz2 / result.txt
Created July 31, 2016 07:37
CSAW CTF 2013 – crackme (at katagaitai勉強会#6 - 関東|easy)
$ python solve.py
[s_1 = 49,
s_2 = 97,
s_0 = 98,
s_3 = 87,
s_5 = 120,
s_4 = 60]
registration code: b1aW<x
$ nc 45.32.49.214 54321
@inaz2
inaz2 / result.txt
Created August 1, 2016 02:03
母集団サイズが100000のときサンプル数400で信頼度95%で誤差±5%以内の支持率が得られることの確認
$ python test.py
population mean: 0.500000
rate of between ±5%: 0.962000
# time python solve.py
'_\x96\x1es\xdd\xfc\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'
real 0m4.301s
user 0m3.588s
sys 0m0.688s
# useradd -m crackme
# echo THIS_IS_FLAG > /home/crackme/key
@inaz2
inaz2 / hosts
Last active August 5, 2016 02:09
/etc/hosts blacklist
0.0.0.0 pagead2.googlesyndication.com
0.0.0.0 www.google-analytics.com
0.0.0.0 www.googletagservices.com
0.0.0.0 yads.yahoo.co.jp
0.0.0.0 dlv.itmedia.jp
0.0.0.0 api.unthem.com
0.0.0.0 adm.shinobi.jp
0.0.0.0 spdeliver.i-mobile.co.jp
0.0.0.0 as.cd.impact-ad.jp