Skip to content

Instantly share code, notes, and snippets.

View Kotaro666-dev's full-sized avatar
🏠
Working from home

Kotaro Kamashima Kotaro666-dev

🏠
Working from home
View GitHub Profile
cat data.txt
// VGhlIHBhc3N3b3JkIGlzIElGdWt3S0dzRlc4TU9xM0lSRnFyeEUxaHhUTkViVVBSCg==
echo 'VGhlIHBhc3N3b3JkIGlzIElGdWt3S0dzRlc4TU9xM0lSRnFyeEUxaHhUTkViVVBSCg==' | base64 -d
// result
// The password is IFukwKGsFW8MOq3IRFqrxE1hxTNEbUPR
strings data.txt | grep "^===*"
// result
// ========== password
// ========== isa
// ========== truKLdjsbJ5g7yyJ2X2R0o3a5HQJFuLk
cat data.txt | sort | uniq -u
ls
// shows data.txt
ls -l
// shows how big size data.txt has.
grep -C 1 millionth data.txt
//result
// cannonball's AT5sruEPDKWFxOFI9a7M38diYBIkbNQ4
// millionth cvX2JJa4CFALtqS87jk27qwqGhBM9plV
// comprehend FKVbjZbVgb0d2RU2DlCqSW049xMITQkB
ls
// output nothing
ls -a
// output several hidden files such as .bash_logout, .bashrc and .proflie
find / -user bandit7 -group bandit6 -size 33c
// output many files. However most of them say "Permission denied"
// Although you can find one file which doesnt say "Permission denied"
cat /var/lib/dpkg/info/bandit7.password
cd inhere
find . -type f -size 1033c -exec ls -lh {} \;
cd inhere
cat each file
cd inhere
ls -a
// 隠しファイルを見られる
cat .hidden
cat ./-
cat readme