전체 글 리눅스/linux 2024. 3. 20. Linux 6 bandit 5 문제 /해석The password for the next level is stored somewhereon the server and has all of the following properties:"서버 어딘가에 플래그 값이 있다."힌트 ; owned by user bandit7owned by group bandit633 bytes in size 힌트에 있는 정보들로 find를 사용했다.find / -user bandit7 -group bandit6 -size 33cㄴ유저가 bandit6이고, 그룹이 bandit6이며 크기가 33c인것을 찾아줘에러가 뜨니 에러부분은 버리는 명령어를 써보자.find / -user bandit7 -group bandit6 -size 33c 2> /dev/n.. 리눅스/linux 2024. 3. 20. Linux 5 bandit 5 문제 /해석 The password for the next level is stored in a file somewhere under the inhere directory and has all of the following properties: 힌트 ; human-readable, 1033 bytes in size, not executable ls를 보니 파일 하나가 덜렁 있길래 바로 cd로 진입 파일들을 확인해보니 많은 디렉토리가 확인되었다.그냥 찾으면 안되고 무언가를 활용해야하는데 그 명령어는 find이다 find . -size 1033c를 사용하여 조건을 걸었더니 1033바이트가 하나 나온 것을 볼수있다./maybehere07/.file2가 하나 걸러져서 나왔다.해당 파일을 열여.. 리눅스/linux 2024. 3. 20. Linux 4 bandit 4 문제 /해석The password for the next level is stored in the only human-readable file in the inhere directory. Tip: if your terminal is messed up, try the “reset” command.PW는 inhere 디렉터리에 사람이 읽을 수 있는 파일로 저장ls -al로 열고 inhere이 있어서 들어가봤더니 -file00 ~ -file09까지 파일이 많이 있었다.일단 저 파일 안쪽으로도 확인을 해봤는데 그냥 들어가서 하나하나 찾기는 힘들다file명령어를 활용해봤다.(file은 파일의 종류(type)을 확인을 하는 명령어이다.)x표시는 오타난 부분유독 하나의 파일의 종류가 다르게 보이는 .. 리눅스/linux 2024. 3. 20. Linux 1 ~ 3 1 ~ 3은 짧고 간단하기 떄문에 한 번에 작성 bandit 1 문제 /해석The password for the next level is stored in a file called - located in the home directory 패스워드는 - 파일 안에 있으며, - 은 홈 디렉토리에 있다. ls -al으로 모든 파일을 확인해 본다 (-a = 경로에 있는 모든파일 나열, -l : 내용을 자세하게 출력)파일을 열여주는 명령어인 cat을 활용하여 -파일을 열여주니 바로 플래그 값이 나왔다.(./는 현재 경로에 있는 파일을 의미)cat ./- = 현재 경로에 있는 -파일을 보여줘bandit 2 문제 /해석The password for the next level is stored i.. 이전 1 ··· 17 18 19 20 다음