BANDiT13 [Bandit] Level 12 Level Goal The password for the next level is stored in the file data.txt, which is a hexdump of a file that has been repeatedly compressed. For this level it may be useful to create a directory under /tmp in which you can work using mkdir. For example: mkdir /tmp/myname123. Then copy the datafile using cp, and rename it using mv (read the manpages!) 여러 번 압축하여 만든 파일의 hexdump인 data.txt파일에서 passwo.. 2023. 7. 19. [Bandit] Level 11 Level Goal The password for the next level is stored in the file data.txt, where all lowercase (a-z) and uppercase (A-Z) letters have been rotated by 13 positions Rot 13 인코딩이 적용된 파일 해독하기 들어가기 전 Rot 13 인코딩이란? 기존의 문자를 13자리 뒤의 문자로 치환하는 방법이다. 예를 들어 a라는 문자가 있으면 a,b,c,d... n 13번째 문자인 n으로 치환이 된다. 자세한 설명은 https://en.wikipedia.org/wiki/ROT13 에 들어가면 알 수 있다. 처음 접속을 하고 cat 명령어를 통해 data.txt를 확인하면 해당 문자열을 확인 .. 2023. 7. 17. [Bandit] Level 10 Level Goal The password for the next level is stored in the file data.txt, which contains base64 encoded data data.txt 안에 base64로 인코딩된 데이터를 읽기 cat 명령어를 통해 data.txt를 읽어보면 이렇게 인코딩이 되어 있는 것을 확인할 수 있다. 문제에서 base64로 인코딩 되어있다고 하니 우리는 base64로 디코딩만 하면 되는 것이다. 리눅스에서 base64로 디코딩 하는 방법은 base64 명령어에서 --decode 옵션을 사용하면 된다. base64 --decode data.txt 해당 명령어를 입력하면 정답을 확인할 수 있다. 정답: 6zPeziLdR2RKNdNYFNb6nVCKzphlXHBM 2023. 7. 16. [Bandit] Level 9 Level Goal The password for the next level is stored in the file data.txt in one of the few human-readable strings, preceded by several ‘=’ characters. data.txt안에 있는 알아 볼수 있는 문자열 중 여러개의 "="가 있는 문자열 찾기 data.txt를 cat 명령어로 확인 해보면 알아 볼 수 없는 문자들이 저장되어 있다. 사람이 읽을 수 있는 문자열을 추출할때 쓰는 명령어로는 strings 명령어가 있다 우리는 그 중에서 "="가 여러개 들어 있는 문자열을 찾아야 하므로 | grep == 을 추가해주면 된다. strings data.txt | grep == 더보기 strings [.. 2023. 7. 16. 이전 1 2 3 4 다음