(OK) shell script—Find a Rogue DHCP Server—tcpdump/dhclient—nmap
# . find_rogue_dhcp.sh &
点击(此处)折叠或打开
-
#! /bin/sh
-
# tcpdump -i enp13s0 -nev udp port 68 >> /tmp/rogue 2>&1 &
-
# touch /tmp/rogue_dhcp_ip
-
# . find_rogue_dhcp.sh &
-
-
while true
-
do
-
echo > /tmp/rogue
-
dhclient -r
-
dhclient >/dev/null 2>&1
-
sleep 2
-
grep '192.168' /tmp/rogue >> /tmp/rogue_dhcp_ip
- done
上一篇:Install Pip with Curl and Python—core—docker
下一篇:IMUNES—Integrated Multiprotocol Network Emulator/Simulator
相关热门文章
给主人留下些什么吧!~~
评论热议