Overthewire bandit 22

2025. 2. 20. 20:05·Wargame/Overthewire bandit

 

 

21번 문제와 마찬가지로 디렉토리 목록을 조회한 후 cronjob_bandit23 파일을 조회했고 /usr/bin/cronjob_bandit23.sh를 파일을 열어서 쉘 스크립트를 확인했다

 

이 파일을 그냥 실행했을 때 사용자가 bandit22이기 때문에 bandit22의 비밀번호가 /tmp/$mytarget으로 전송된다. bandit23의 비밀번호를 구해야하기 때문에 mytarget에서 myname 변수 대신 bandit23을 넣어주고 실행하면 $mytarget값을 출력한다

 

cat /tmp/$mytarget 을 입력하면 다음 단계의 비밀번호를 얻을 수 있다   

'Wargame > Overthewire bandit' 카테고리의 다른 글

Overthewire bandit 21  (0) 2025.02.20
Overthewire bandit 20  (0) 2025.02.04
Overthewire bandit 19  (0) 2025.01.28
Overthewire bandit 18  (0) 2025.01.27
Overthewire bandit 17  (0) 2025.01.27
'Wargame/Overthewire bandit' 카테고리의 다른 글
  • Overthewire bandit 21
  • Overthewire bandit 20
  • Overthewire bandit 19
  • Overthewire bandit 18
미로의 기록장
미로의 기록장
  • 미로의 기록장
    devblog
    미로의 기록장
  • 전체
    오늘
    어제
    • 분류 전체보기 (22)
      • Wargame (19)
        • Overthewire bandit (16)
        • CryptoHack (3)
  • 블로그 메뉴

    • 홈
    • 태그
    • 방명록
  • 링크

  • 공지사항

  • 인기 글

  • 태그

    overthewire #bandit
    smote #데이터불균형 #데이터불균형해결
    bandit #overthewire #linux #wargame
    Snort
    NIDS
    cryptohack #wargame
    cryptohack
    파이썬 #웹크롤링 #크롤링
    네트워크침입탐지
  • 최근 댓글

  • 최근 글

  • hELLO· Designed By정상우.v4.10.3
미로의 기록장
Overthewire bandit 22
상단으로

티스토리툴바