Skip to content

Instantly share code, notes, and snippets.

@shiv3
shiv3 / _git_add.md
Last active December 5, 2023 16:13
git add

git addを知る

Advent Calendarネタが全然無いのでgitを作ることにしました。

Git

gitは言わずと知れたバージョン管理ツールです。 多分エンジニアとして生きていく上で一番お世話になっているツールであり、今後もそうだと思います。ですが、gitの使い方は雰囲気分かっていてもgit自体についてあまり知らなかったのでとりあえずgoで作ってみることにしました。

Gitを調べる

ctf4b 2021

ちょっと参加してました

osoba

path指定するだけ

@shiv3
shiv3 / writeup_uutctf.md
Last active April 29, 2019 12:53
UUTCTF writeup

UUTCTF Writeup

UUTCTF

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

team:hona 112/441

Web WarmUp (web 10)

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
$ 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);
0..128.times{|i| print "%#{i.to_s(16).rjust(2,'0')}"}
########
# #
# #### #
# # # #
# # # #
# # ## #
# # #
# ######
@shiv3
shiv3 / traceping.rb
Created May 15, 2017 09:00
traceroute & ping script
#! /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 March 10, 2017 06:12
シューカツctf2
@shiv3
shiv3 / memo.md
Created January 11, 2017 17:18
tremaでコケたときメモ
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'