发布时间:2013-05-15 19:49:13
#!/usr/bin/env python#coding:utf-8import os,sys,socketif len(sys.argv) != 3 : print './tcpporttest.py IP PORT' sys.exit()HOST = sys.argv[1]PORT = sys.argv[2]s=socket.socket(socket.AF_INET,socket.SOCK_STREAM)ADDR = (str(HOST),int(PORT))f.........【阅读全文】
发布时间:2013-05-15 11:53:26
#!/bin/bashtomcat1="/usr/local/tomcat1/"tomcat2="/usr/local/tomcat2/"tomcat3="/usr/local/tomcat3/"tomcat4="/usr/local/tomcat4/"tomcat=($tomcat1 $tomcat2 $tomcat3 $tomcat4)#for((i=0;i<${#tomcat[@]};i++));do# ${tomcat[$i]}bin/shutdown.sh >> /dev/null 2>&1# &n.........【阅读全文】
发布时间:2013-05-14 10:22:53
安装依赖包yum -y install curl curl-devel zlib-devel openssl-devel perl cpio expat-devel gettext-devel下载wget http://git-core.googlecode.com/files/git-1.8.2.3.tar.gztar zxvf git-1.8.2.3.tar.gz cd git-1.8.2.3dir./configure makemake install......【阅读全文】
发布时间:2013-05-13 17:04:56
1、抓取包含10.10.10.122的数据包 # tcpdump -i eth0 -vnn host 10.10.10.122 2、抓取包含10.10.10.0/24网段的数据包 # tcpdump -i eth0 -vnn net 10.10.10.0/24 3、抓取包含端口22的数据包 # tcpdump -i eth0 -vnn port 22 4、抓取udp协议的数据包 # tcpdump -i eth0 -vn.........【阅读全文】
发布时间:2013-05-13 17:03:52
#!/bin/shpasswd -l xfspasswd -l newspasswd -l nscdpasswd -l dbuspasswd -l vcsapasswd -l gamespasswd -l nobodypasswd -l avahipasswd -l haldaemonpasswd -l gopherpasswd -l ftppasswd -l mailnullpasswd -l pcappasswd -l mailpasswd -l shutdownpasswd -l haltpasswd -l uucppasswd -l operator.........【阅读全文】