Skip to content

Instantly share code, notes, and snippets.

shiv3 shiv3

  • Japan
Block or report user

Report or block shiv3

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@shiv3
shiv3 / writeup_uutctf.md
Last active Apr 29, 2019
UUTCTF writeup
View writeup_uutctf.md

UUTCTF Writeup

UUTCTF

GW初日に友人と半日くらい参加していた

team:hona 112/441

Web WarmUp (web 10)

View art.txt
1
環境セットアップ
2 環境セットアップ(Ubuntu 16.04 x64前提)  各種インストール
$ apt-get install binutils python2.7 perl socat git build-
essential gdb gdbserver
※使いそうなものをとりあえず書いただけで,全部使う訳ではありません
 gdb-peda導入
$ git clone https://github.com/scwuaptx/peda.git ~/peda
$ git clone https://github.com/scwuaptx/Pwngdb.git ~/Pwngdb
View areyouesper.md
$ cat rand.c
#include <stdlib.h>
#include <stdio.h>
#include <time.h>
int main(void)
{
        srand((unsigned) time(NULL));
        for (int i=0; i<=20; i++) {
          printf("%d \n",rand()%10);
View gencode.rb
0..128.times{|i| print "%#{i.to_s(16).rjust(2,'0')}"}
View out.txt
########
# #
# #### #
# # # #
# # # #
# # ## #
# # #
# ######
@shiv3
shiv3 / traceping.rb
Created May 15, 2017
traceroute & ping script
View traceping.rb
#! /usr/bin/ruby
require "net/ping"
traceroute = `traceroute #{ARGV[0]}`
routepath = traceroute.split("\n")[1..-1].map do|s|
r = s.split(" ")[2].delete("()*")
r if r.length > 0
end
routepath.compact!
@shiv3
shiv3 / extreme.md
Last active Mar 10, 2017
シューカツctf2
View extreme.md
@shiv3
shiv3 / memo.md
Created Jan 11, 2017
tremaでコケたときメモ
View memo.md
hojo@ubuntu:~/trema/learning_switch$ ./bin/trema run ./lib/multi_learning_switch.rb -c trema.multi.conf       
RuntimeError: MultiLearningSwitch is already running (/tmp/MultiLearningSwitch.pid).
        /home/hojo/.bundle/ruby/2.3.0/trema-50b5a383bb73/lib/trema/command.rb:161:in `create_pid_file'
        /home/hojo/.bundle/ruby/2.3.0/trema-50b5a383bb73/lib/trema/command.rb:25:in `run'
        /home/hojo/.bundle/ruby/2.3.0/trema-50b5a383bb73/bin/trema:64:in `block (2 levels) in <module:App>'
        /var/lib/gems/2.3.0/gems/gli-2.13.4/lib/gli/command_support.rb:126:in `execute'
        /var/lib/gems/2.3.0/gems/gli-2.13.4/lib/gli/app_support.rb:296:in `block in call_command'
        /var/lib/gems/2.3.0/gems/gli-2.13.4/lib/gli/app_support.rb:309:in `call_command'
        /var/lib/gems/2.3.0/gems/gli-2.13.4/lib/gli/app_support.rb:83:in `run'
@shiv3
shiv3 / セッコン.md
Last active Dec 12, 2016
セッコン体験記
View セッコン.md

セッコン

この記事はOIC ITCreate Club Advent Calendar 2016 の14日目の記事にしました。
http://www.adventar.org/calendars/1484

カレンダーの空きが目立つので埋めようと思って、

SECCONに4,5時間くらい参加してたので、それのアレをちょっと書きます。

@shiv3
shiv3 / solv.py
Created Dec 12, 2016
SECCON 2016 crypt 100 Vigenere cipher
View solv.py
import itertools
ALPHA = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ{}'
def encrypt(key, plaintext):
pairs = zip(plaintext, cycle(key))
result = ''
for pair in pairs:
total = reduce(lambda x, y: ALPHA.index(x) + ALPHA.index(y), pair)
You can’t perform that action at this time.