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 pwn import * | |
# Set target environment | |
context(os='linux', arch='i386') | |
HOST = 'chall.pwnable.tw' | |
PORT = 10000 | |
# mov ecx, esp & write systemcall gadget address |
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
GitHub: https://github.com/famasoon | |
Gist: https://gist.github.com/famasoon | |
Blog 1: https://famasoon.hatenablog.com/ | |
Blog 2: https://medium.com/@FAMASoon | |
Blog 3: https://gyoza.in/ | |
Twitter: https://twitter.com/FAMASoon | |
Qiita: https://qiita.com/FAMASoon |
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
package twosum | |
func twoSum(nums []int, target int) []int { | |
var res []int | |
res = make([]int, 2) | |
numMap := make(map[int]int) | |
for i, num := range nums { | |
numMap[num] = i | |
} |
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
package twosum | |
import ( | |
"reflect" | |
"testing" | |
) | |
type testCase struct { | |
array []int | |
target int |
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
$ faas-cli new --lang <実装したい言語> <functionの名前> |
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
$ docker swarm init |
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
****************************mtr1.lhr15********************************* | |
** ** | |
** type mpr1re0 to reach line 2002 mpr1.lhr15 Juniper MX960 RE0 ** | |
** type mpr1re1 to reach line 2003 mpr1.lhr15 Juniper MX960 RE1 ** | |
** ** | |
** ** | |
** To Exit a device type Control-Shift-6 X, then clear line ** | |
** ** | |
*********************************************************************** |
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 golang:latest | |
WORKDIR /go/src/godocker | |
COPY . . | |
RUN go get -d -v ./... | |
RUN go install -v ./... | |
CMD ["godocker"] |
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
$ uname -a | |
Linux ubuntu 4.15.0-36-generic #39~16.04.1-Ubuntu SMP Tue Sep 25 08:59:23 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux | |
$ gcc --version | |
gcc (Ubuntu 5.4.0-6ubuntu1~16.04.10) 5.4.0 20160609 | |
$ docker -v | |
Docker version 18.06.1-ce, build e68fc7a |
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
DB 0xeb, 0x4e, 0x90 | |
DB "HELLOIPL" ; ブートセクタの名前(8バイト) | |
DW 512 ; 1セクタの大きさ | |
DB 1 ; 1クラスタの大きさ | |
DW 1 ; FATがどこから始まるか | |
DB 2 ; FATの個数 | |
DW 224 ; ルートディレクトリ領域の大きさ(普通は224エントリ) | |
DW 2280 ; ドライブの大きさ | |
DB 0xf0 ; メディアのタイプ(0xf0にしなければならに) | |
DW 9 ; FAT領域の長さ |