OverTheWire-Bandit CTF

3 篇文章 0 订阅
1 篇文章 0 订阅
  1. sshpass -f filename ssh bandit0@bandit.overthewire.labs.org -p 2220

    ssh bandit0@bandit.overthewire.labs.org -p 2220

  2. cat ./-file dashed file

  3. find . -type f | xargs file
    man xargs

  • bandit5@bandit:~/inhere$ ls | xargs cat
    cat: maybehere00: Is a directory
    cat: maybehere01: Is a directory
    cat: maybehere02: Is a directory
    cat: maybehere03: Is a directory

  • cat ‘spaces files’

  • cat /space/files

  • find . -type f -size 1033c ! -executable . can be iglected

  1. find / -type f -user bandit7 -group bandit6 -size 33c

  2. cat data.txt | grep ‘millionth’

  3. sort data.txt | uniq -c
    cat data.txt | sort | uniq -c | grep -v ‘10’

  4. strings data.txt | grep ‘=’

  5. echo ‘VGhlIHBhc3N3b3JkIGlzIDZ6UGV6aUxkUjJSS05kTllGTmI2blZDS3pwaGxYSEJNCg’ | base64 -d

  6. echo ‘Gur cnffjbeq vf WIAOOSFzMjXXBC0KoSKBbJ8puQm5lIEi’ | rot13

12 xxd -r data.txt > something
file someting
mv something something.gz
gunzip something.gz
bunzip2
tar -xf
ls -l

13 ssh -i sshkey.private bandit14@localhost -p 2220

14 nc localhost port

15 cat /etc/bandit_pass/bandit15 | openssl s_client -connect localhost 30000 -ign_eof

16 nmap -T4 -p31000-32000 localhost
cat /ect/bandit_pass/ bandit17 | openssl s_client -connect localhost 3xxxx -ign_eof

nano bandit17 private key

chmod 600 bandit
ssh -i bandit17 bandit17@bandit.overthewire.labs.org -p 2220

quit vi :q!

17 diff password.new password.old

18 sshpass -f bandit18 ssh bandit18@bandit.labs.overthewire.org -p 2220 ‘cat readme’

19 ./bandit20-do id
./bandit20-do cat /etc/bandit_pass/bandit20

20 nc -lvp 8888
passwd

./suconnect 8888

21 cd /etc/cron.d
cat cronjob_bandit22
cat /usr/bin/cronjob_bandit22.sh
cat /tmp/t7O6lds9S0RqQh9aMcz6ShpAoZKF7fgv

22 cd /etc/cron.d
cat cronjob_bandit23
cat /usr/bin/cronjob_bandit23.sh
echo “I am user bandit23” |md5sum | cut -d ’ ’ -f1
cat /tmp/8ca319486bfbbc3663ea0fbe81326349

23 cd /etc/cron.d ???

24 nano loops.sh

#!/bin/bash 
for i in {000.9999}
do
echo "PasswordOfBandit24 $i"
done

chmod 777 loops.sh
loops.sh > loops.txt
cat loops.txt | nc localhost 30002

25 v
:r /etc/bandit_pass/bandit26

26 v
:set shell=/bin/bash
:shell
bandit26:
./bandit27-do cat /etc/bandit_pass/bandit27

27/28/29
git clone ssh://bandit27-git@localhost:2220/home/bandit27-git/repo
got repo
git log # check the log
git branch -a
git show
git checkout
git reflog

  1. git tag
    git show

31 git log
nano key.txt
git add key.txt -f
git status
git commit -m “added key.txt file”
git push

32 $0
cat /etc/bandit_pass_bandit33

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值