Shell
-
[FTZ] Level 3보안/Pwnable 2021. 8. 23. 14:43
Backgrounds Linux Commands dig dig 명령어는 DNS 서버에 대한 정보를 얻는 데 사용한다. dig @8.8.8.8 www.google.com 위 명령어로 구글 public dns인 8.8.8.8을 지정해 google.com을 질의할 수 있다. 한 줄에 여러 명령어 실행 쉘에서 한 줄에 여러 명령어를 실행하려면 다음과 같이 사용한다. [CMD1]; [CMD2] 문자열 형태로 명령어 전달 문자열 형태로 명령어를 전달하려면 다음과 같이 사용한다. "[CMD]" Solution find / -user level4 2> /dev/null 위 명령어로 소유자가 level 4인 파일을 찾는다. 실행 결과 /bin/autodig을 찾을 수 있다. /bin/autodig은 dig에 전달하는 인..
-
[OS] 21. ShellOS/OS from Scratch 2021. 7. 23. 16:30
서론 이번 강의에서는 작성했던 코드를 정리하고 가장 기본적인 Shell을 구현하겠습니다. 해당 Github 강의는 다음과 같습니다. https://github.com/cfenollosa/os-tutorial/tree/master/21-shell GitHub - cfenollosa/os-tutorial: How to create an OS from scratch How to create an OS from scratch. Contribute to cfenollosa/os-tutorial development by creating an account on GitHub. github.com 코드 이번 강의에서는 위 Github 링크에서 설명하는 대로 파일의 경로들을 재설정하고, 단순 구현을 진행합니다. 코드를..
-
[OS] 13. Kernel BarebonesOS/OS from Scratch 2021. 6. 27. 15:07
서론 이번 강의에서는 Kernel과 boot sector를 연결해 kernel을 실행시켜 보겠습니다. 해당 Github 강의는 다음과 같습니다. https://github.com/cfenollosa/os-tutorial/tree/master/13-kernel-barebones cfenollosa/os-tutorial How to create an OS from scratch. Contribute to cfenollosa/os-tutorial development by creating an account on GitHub. github.com 이론 Kernel Kernel은 하드웨어 바로 위 단계에서 작동하며 애플리케이션들의 CPU와 메모리 등의 리소스를 관리하는 메모리에 항상 상주하고 있는 프로그램입니다..