❓ 문제 확인
picoctf 자체 웹쉘이 있는지 처음알았다
맨날 vmware 키기 귀찮았는데 잘됐다 ㅋㅋ
웹에서 리눅스를 환경을 구동할 수 있다는게 참 신기하다 나중에 자세히 공부해 봐야겠다 .
파일을 실행하지 않고 flag를 찾아라라
음..
📃 풀이
일단 file을 받아보자
strings 라는 이름의 파일이 잘 받아졌다
가장 처음 떠오른 생각은 cat 명령어 였다
cat strings를 실행해 보았다
외계어가 눈앞에 아른거린다 ;;
grep 을 사용해 flag 부분만 가져와볼까 하고 시도해 보았다
음 뭔가 아닌거 같다....
strings를 한번 실행해 보자
strings명령어를 사용하여 시도해 보라는것 같다
처음보니 검색해 보자
strings명령어에 대해 간단히 알아보자면
strings명령어는 유닉스 계열 운영 체제에서 실행 파일 같은 바이너리 파일에 삽입된 텍스트 문자열들을 찾고 보여주는 프로그램이다. 이것은 목적 파일과 코어 덤프에서도 사용될 수 있다.
라고 한다
그럼 다시 돌아와서
strings 명령어를 통해 다시 실행해보자
grep이 빛을 볼때가 온것 같다.
클리어~
🔖새로 알게된 내용
1. strings 명령어
'Wargame > picoctf.org' 카테고리의 다른 글
[picoctf.org] General Skills - Codebook (0) | 2022.08.11 |
---|---|
[picoctf.org] General Skills - First grep (0) | 2022.08.11 |
[picoctf.org] General Skills - Static ain't always noise (0) | 2022.08.07 |
[picoctf.org] General Skills - Bases (0) | 2022.08.07 |
[picoctf.org] General Skills - what's a net cat? (0) | 2022.08.06 |