服务器上的一些统计数据: 1)统计80端口连接数 netstat -nat|grep -i "80"|wc -l 1 2)统计httpd协议连接数 ps -ef|grep httpd|wc -l 1 3)、统计已连接上的,状态为“established' netstat -na|grep ESTABLISHED|wc -l 2 4)、查出哪个ip地址连接最多,将其封了. netstat -na|grep ESTABLISHED|awk '{print $5}'|awk -F: '{print $1}'|sort|uniq -c|sort -r +0n netstat -na|grep SYN|awk '{print $5}'|awk -F: '{prin...
执行命令arp-scan -I eth0 -l 其中-I参数为指定网络出口设备。 root@localhost:~# arp-scan -I eth0 -l Interface: eth0, datalink type: EN10MB (Ethernet) Starting arp-scan 1.8.1 with 256 hosts 10.*.*.1 00:00:0c:07:ac:39 HSRP (last octet is group number) 10.*.*.3 00:0e:6a:a4:5c:e5 3Com Ltd 10.*.*.8 00:15:2c:e3:a9:00 Cisco Systems 10.*.*.50 00:e0:4c:3b:22...
局域网的服务器是通过ADSL路由器连接外网的,但ADSL是从ISP运营商那儿通过动态获得ip的,那么我怎么知道自己的外网地址是多少呢? 今天得到几个办法: curl -s http://whatismyip.org wget http://whatismyip.org 然后再 cat index.html 也可以看到 其实我想通过C语言实现直接从路由器上得到这个地址,可我发现从C语言中登录路由十分麻烦。目前还没什么头绪,如果有哪位路过的大侠有更好的办法请告知一下。 小弟在这里谢谢了! ...
文章来源:www.linuxeden.com-linux伊甸园 服务器上的一些统计数据: 1)统计80端口连接数 netstat -nat|grep -i "80"|wc -l 1 2)统计httpd协议连接数 ps -ef|grep httpd|wc -l 1 3)、统计已连接上的,状态为“established' netstat -na|grep ESTABLISHED|wc -l 2 4)、查出哪个ip地址连接最多,将其封了. netstat -na|grep ESTABLISHED|awk '{print $5}'|awk -F: '{print $1}'|sort|uniq -c|sort -r +0n netsta...