fuser -k -n udp 4972
用该命令可以找出使用端口的进程。可写脚本监控,停止端口及进程~
例如:fuser -n tcp 3306 | ps aux | grep 24594 | grep -v grep
若要将使用该端口的进程kill
例如:fuser -k -n tcp 3306
usage: fuser [ -a | -s ] [ -n space ] [ -signal ] [ -kimuv ] n
代码格式化:indent -kr -i8
抓包命令:
tcpdump -i eth3 host 127.0.0.1 -s 0 -w /home/aa.cap //-s 0 表示对抓包的消息不进行分包
ulimit -c unlimited
getconf LONG_BIT //查看系统位数
gdb attach 19612
gdb -q
attach 19612
info threads
t threadID
bt
监测对端TCP端口号是否打开可以用telnet命令:telnet 129.168.3.102 1220
ps H -o uname,cmd,pid,tid,%cpu --sort=%cpu
开启SMB服务:/etc/init.d/smb start
把用户加入SMB:smbpasswd -a heyufeng
mount -t smbfs -o username=Administrator,rw //10.78.75.55/linux_share /home/hyf/win/ -o codepage=cp936 pwd:Byondsoft1
mount -t smbfs -o username=bruce,rw //10.10.86.91/linux_share /home/win/ -o codepage=cp936
mount -t cifs -o username=bruce,rw //172.16.0.116/linux_share /home/win/ -o codepage=cp936
gdb调试,进程选择:set follow-fork-mode child/parent