Telnet 서버 열고 원격 접속하기 (feat. Rokcy Linux)
·
OS/LINUX
Telnet 서버가 설치되어 있는지 확인하기rpm -q telnet-server 설치되어 있지 않다면, Rocky Linux의 경우 "package (패키지명) is not installed"가 출력된다.  Telnet 서버 패키지 설치하기dnf install telnet-server  Telnet 서버 활성화하기아래 명령어를 통해 Telnet 서버를 활성화시킨다.systemctl start telnet.socketsystemctl enable telnet.socket 현재 Telnet 서버의 상태를 확인한다.Active: active (listening) 중인 것을 확인한다.systemctl status telnet.socket  방화벽 해제하기firewall-cmd --add-service=telne..
net-tools 설치하기 (feat. Rocky Linux)
·
OS/LINUX
net-tools란net-tools란 리눅스 시스템에서 네트워크 관리를 위한 다양한 명령어 도구들이 포함된 패키지이다.Rocky Linux Minimal 버전과 같이 리눅스를 최소로 설치하게 되면 ifconfig와 같은 네트워크 관련 툴이 없는 경우가 있어 따로 설치를 해주어야 한다. 설치 방법sudo dnf install net-tools dnf install: command not found 해결이는 dnf 패키지 관리 도구가 설치되지 않아 발생하는 에러이다.다음을 통해 설치할 수 있다.sudo yum install dnf
Virtual Box에 Rocky Linux 설치하기
·
OS/LINUX
⛰️ Rocky LinuxRed Hat 리눅스인 CentOS의 후속작으로, 오픈소스 리눅스 배포판이다.    📥 Rocky Linux iso 파일 다운로드하기https://rockylinux.org/ko/download Download - Rocky LinuxDownload Download the latest Rocky Linux versions here. Get Involved As you download and use Rocky Linux, the Rocky Enterprise Software Foundation invites you to be a part of the community as a contributor. There are many ways to contribute to the proj..
우분투 Could not get lock /var/lib/dpkg/lock-frontend. It is held by process 4327 (unattended-upgr) 에러 해결 방법
·
OS/LINUX
⛔ 다음과 같은 에러가 발생했습니다. 저는 binwalk를 설치하려고 하는데 이런 에러가 발생했습니다. E: Could not get lock /var/lib/dpkg/lock-frontend. It is held by process 4327 (unattended-upgr) N: Be aware that removing the lock file is not a solution and may break your system. E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), is another process using it? 대충 이 에러를 해석하면... 에러 : 잠금 파일(/var/lib/dpkg/lock-frontend..
OverTheWire: Level Goal: Bandit Level 11 → Level 12
·
OS/LINUX
[ Bandit Level 11 → Level 12 문제 리뷰 ] Bandit Level 11 → Level 12 레벨 목표 다음 레벨을 위한 password는 data.txt 파일의 모든 소문자와 대문자가 13개 위치만큼 회전하는 곳에 있습니다 이 문제를 풀기 위해 필요할 수도 있는 명령어들 grep, sort, uniq, strings, base64, tr, tar, gzip, bzip2, xxd 문제 해설 (1) 13개 위치만큼 회전하는 곳 13개 위치만큼 회전하는 곳이라는 말은 곧 카이사르(caesar) 암호의 알고리즘이라는 것이다. 위의 사진처럼 data.txt 파일의 내용도 13개 주기로 변환된 것이다. (2) tr 명령어 사용하여 변환하기 tr이란 지정한 명령어를 변환시키거나 삭제하는 명령어..
OverTheWire: Level Goal: Bandit Level 10 → Level 11
·
OS/LINUX
[ Bandit Level 10 → Level 11 문제 리뷰 ] Bandit Level 10 → Level 11 레벨 목표 다음 레벨을 위한 password는 data.txt 파일의 base64로 인코딩 된 데이터에 포함되어 있습니다. 이 문제를 풀기 위해 필요할 수도 있는 명령어들 grep, sort, uniq, strings, base64, tr, tar, gzip, bzip2, xxd 문제 해설 (1) base64 Base 64란 8비트 이진 데이터(예를 들어 실행파일이나, ZIP 파일 등)를 문자 코드에 영향을 받지 않는 공통 ASCII 영역의 문자들로만 이루어진 일련의 문자열로 바꾸는 인코딩 방식이다. base64 [옵션] [파일명] 옵션 설명 없음 인코드 -d 디코드 -i 디코딩 할 때 알파..
OverTheWire: Level Goal: Bandit Level 9 → Level 10
·
OS/LINUX
[ Bandit Level 5 → Level 6 문제 리뷰 ] Bandit Level 9 → Level 10 레벨 목표 다음 레벨을 위한 password는 data.txt 파일 안 앞의 몇 개의 '='자가 앞에 붙은 몇 안 되는 인간이 읽을 수 있는 문자열 중 하나입니다. 이 문제를 풀기 위해 필요할 수도 있는 명령어들 grep, sort, uniq, strings, base64, tr, tar, gzip, bzip2, xxd 문제 해설 (1) strings strings는 ASCII문자를 찾아 화면에 출력해주는 명령어이다. strings [파일명] strings는 바이너리(binary) 파일도 일반 텍스트 문서처럼 변환해준다. stirngs data.txt 를 입력하여 사람이 읽을 수 있는 문자열로 변..
OverTheWire: Level Goal: Bandit Level 8 → Level 9
·
OS/LINUX
[ Bandit Level 8 → Level 9 문제 리뷰 ] Bandit Level 8 → Level 9 레벨 목표 다음 레벨을 위한 password는 data.txt 파일에 저장되어 있으며 오직 한 번 발생하는 텍스트의 유일한 줄입니다. 이 문제를 풀기 위해 필요할 수도 있는 명령어들 grep, sort, uniq, strings, base64, tr, tar, gzip, bzip2, xxd 문제 해설 "오직 한 번 발생하는 텍스트의 유일한 줄"이라고 하면 쉽게 이해하기가 어려울 수도 있다. 이 말은 즉, 중복이 되지 않는다는 뜻이다. (1) ls 명령어로 현재 디렉토리 확인 data.txt 파일이 있는 것을 확인 할 수 있다. (2) cat 명령어로 data.txt 읽어보기 cat data.txt ..
OverTheWire: Level Goal: Bandit Level 7 → Level 8
·
OS/LINUX
[ Bandit Level 5 → Level 6 문제 리뷰 ] Bandit Level 7 → Level 8 레벨 목표 다음 레벨을 위한 password는 data.txt 파일의 millionth 단어 옆에 저장되어 있습니다. 이 문제를 풀기 위해 필요할 수도 있는 명령어들 grep, sort, uniq, strings, base64, tr, tar, gzip, bzip2, xxd 문제 해설 (1) ls를 입력해 data.txt 파일 확인하기 ls를 입력해 현재 디렉토리에 있는 내용을 출력한다. (2) grep 명령어를 사용해 password 찾기 grep(Global Regular Expression Print)란 텍스트 파일에서 원하는 문자열이 들어간 행을 찾아주는 명령어이다. grep [옵션] [문자..
OverTheWire: Level Goal: Bandit Level 6 → Level 7
·
OS/LINUX
[ Bandit Level 6 → Level 7 문제 리뷰 ] Bandit Level 6 → Level 7 레벨 목표 다음 레벨을 위한 password는 서버 어딘가에 저장되어 있으며 다음의 특징들을 갖고 있습니다. user bandit7에게 소유됨 bandit6 그룹에 소유됨 사이즈는 33byte임 이 문제를 풀기 위해 필요할 수도 있는 명령어들 ls, cd, cat, file, du, find, grep 문제 해설 (1) find를 사용해 password 찾기 입력한 명령어 find / -user bandit7 -group bandit6 -size 33c 을 살펴보자. -user bandit7 : bandit7 유저에게 속한 파일 검색 -group bandit6 : bandit6에 속한 파일 검색 -..