Kali-Linux 네트워크 설정
[ DHCP 사용하는 인터페이스 ]
# ifconfig -a
# vim /etc/network/interfaces
auto eth0
allow-hotplug eth0
lface eth0 inet dhcp
# /etc/init.d/networking restart
# service networking restart
#dhclient
[ Static으로 IP를 입력하는 경우]
# vim /etc/network/interfaces
#the Primary network interface
auto eth0
iface eth0 inet ststaic
address [ ip 주소 입력]
netmask [서브넷마스크 입력]
gateway [ gateway입력]
# update-rc.d networking enable
=> 부팅시 설정을 적용하기 위한 적용
# vim /etc/resolv.conf
domain localdomain
search localdoamin
nameserver [네임서버주소]
# ifconfig eth0 down
#ifconfig eth0 up
# ifdown eth0
# ifup eth0 => 활성화
===> 설정 확인
# ifconfig eth0
# netstat -nr
[ 임시 ip 구성하기 ]
# ifconfig eth0 up
# ifconfig eth0 1.1.1.1 netmask 255.0.0.0 up
# route add default gw 1.1.1.254
# echo nameserver 1.1.1.1 > /etc/resolv.conf
# echo nameserver 1.1.1.2 > /etc/resolv.conf
221.164.9.157
# ifconfig eth0
# netstat -nr
[ wireshark 설치 및 실행하기 ]
- Kali 에서 Wireshark 를 설치하는 방법
# apt-get install wireshark
- 실행
#wireshark &
Lua : Error during loading [string "/usr/share/wireshark/init.lua"]:47: dofile has been disable d due to running Wireshark as superuser. ...
-> 수정
#cd /usr/share/wireshark
#vi init.lua in line #29 , change to
disalbe_lua = true
'모의해킹' 카테고리의 다른 글
[모의해킹] arp spoofing 공격방법 (0) | 2023.05.19 |
---|---|
[모의해킹] arp spoofing 방어 방법 (0) | 2023.05.19 |
[모의해킹] MiTM(Man in The Middle) - ARP Spoofing (0) | 2023.05.18 |
댓글