실습> nc 사용하기
공격자 : Attcker
피해자 : Victim, Target
참고 :
CentOS 7 에서는 gcc만 설치하면 make 도 같이 설치된다.
Rocky Linux 에서는 gcc, make 둘다 설치해야 한다.
Victim# yum -y install wget
Victim# yum -y install gcc make
Victim# wget --no-check-certificate http://sourceforge.net/projects/netcat/files/netcat/0.7.1/netcat-0.7.1.tar.gz
1. 소스 설치
장점 : 소스를 분석해서 프로그램의 동작을 알 수 있다.
소스 설치
소스 다운로드
압축 해제
환경설정(./configure)
컴파일(make)
설치(make install)
Victim# ./configure
Victim# make
Victim# make install
Victim# tar xzf netcat-0.7.1.tar.gz
Victim# cd netcat-0.7.1
Victim# ./configure
Victim# make
Victim# make install
Download The GNU netcat from SourceForge.net
×
sourceforge.net
2. nc 복사
Kali Linux 에서 복사한다.
Attacker# scp /usr/bin/nc 192.168.108.100:
root@192.168.108.100's password:
nc 100% 34KB 6.8MB/s 00:00
Victim# ls nc
nc
Victim# ./nc
Cmd line: ^C
'Download & Install' 카테고리의 다른 글
| GNS 프로그램 설치 & 네트워크 구동 (0) | 2021.11.12 |
|---|---|
| [Linux] CentOS 7 에 pip 설치하는 방법, 예제, 명령어 (0) | 2021.11.10 |
| [Linux] PHP 설치 (0) | 2021.11.09 |
| [Linux] Apache 웹서버 설치 (0) | 2021.11.09 |
| [Linux] nslookup 설치 (0) | 2021.11.07 |