클라우드 엔지니어 꿈나무
Ubuntu 및 Kali 설치 및 세팅 - Ubuntu 본문
Vritual Box 환경 설정 내 네트워크 추가
Ubuntu 설치
하기와 같이 설치 진행
English - English keyboard
update & install software - minimal install/ NO update while installation
install erase disk - popup, continue
timezone - seoul
user - ubuntu / hostname - target
네트워크 SecNAT으로 연결
# sudo apt update -y && sudo apt upgrade -y
# sudo apt install openssh-server build-essential -y
게스트 확장 CD 이미지 삽입
클립보드 공유 - 양방향 (복붙 가능하게 설정)
root 패스워드 바꾸기
root@target: ~# sudo -i
root@target: ~ # passwd
Ubuntu는 기본값으로 root는 GUI로 Login불가하기 때문에 가능하게 설정
ubuntu 재부팅 하는 동안 ESC 키를 눌러 부트업 스크립 편집화면 출력
밑줄 친 부분 삭제
밑줄 친 부분 기재
F10 눌러 부팅
# mount
/dev/sda5 on / type ext4 (rw,realtime) 확인
# exec /sbin/init
# sudo nano /etc/gdm3/custom.conf
하기와 같이 설정
# sudo nano /etc/pam.d/gdm-password
하기와 같이 주석 처리
고정 ip 값 할당
ubuntu@target:~$
# nmcli con mod "Wired connection 1" ipv4.method manual ipv4.address 10.0.2.11/24 gw4 10.0.2.1 ipv4.dns "8.8.8.8
8.8.4.4" => 고정 IP 설정
# nmcli con down "Wired connection 1" && sudo nmcli con up "Wired connection 1"
Kali 설정
Kali : 데비안 기반의 모의 침투 테스트용 운영체제
- Kali는 게스트 CD 가 자동으로 인식되어서 들어옴
하기와 같이 설치 진행
Graphical install
English - English -> South Korea -> United States - en_US.UTF-8, ->American English
Hostname - attack
domain name, Full name => 미설정
account user = kali
그 이후로 계속 초기 설정 값으로 continue
Write the changes to disks? YES
초기 설정 값으로 continue
Master Boot Records to grub? yes => on /dev/sda 선택
# sudo apt update -y && sudo apt upgrade -y
바로 위 명령어가 실행이 불가하여 하기 파일 변경
# sudo nano /etc/apt/sources.list
하기와 같이 수정 (두 번째 줄 주석 처리 및 세 번째 줄 추가)
<추가한 줄> deb https://kali.download/kali kali-rolling main contrib non-free non-free-firmware
# sudo apt update -y && sudo apt upgrade -y
# nmcli con mod "Wired connection 1" ipv4.method manual ipv4.address 10.0.2.10/24 gw4 10.0.2.1 ipv4.dns "8.8.8.8
8.8.4.4" => 고정 IP 설정
# nmcli device show enp0s3 => IP 보기
# nmcli con down "Wired connection 1" && sudo nmcli con up "Wired connection 1"
# sudo apt install fcitx-lib* fonts-nanum* -y => 한글 출력할 수 있도록 설치
'Linux' 카테고리의 다른 글
Target Database Hack : SQL 데이터 베이스 회원 정보 확인 - Ubuntu (0) | 2023.10.12 |
---|---|
보안 설정 Ubuntu 및 Kali (2) | 2023.10.10 |
RHCSA 기출 : Network 설정 및 계정명 변경 - Centos7 (0) | 2023.10.06 |
Chrony 다운로드 및 설정 (시스템 시간 동기화) - Centos7 (0) | 2023.10.06 |
VMware Centos7 설치 (0) | 2023.09.29 |