11 2010 档案
ip, tcp, udp, icmp header
摘要:Figure1.IPv4 headerFigure2.TCP headerFigure3.UDP headerFigure4.ICMP headerreference:TCP/IP Reference 阅读全文
posted @ 2010-11-30 11:10 lbsx 阅读(481) 评论(0) 推荐(0)
用tcpdump监控http
摘要:tcpdump -X -s 0 -w filename host www.cnblogs.com and tcp port 80监控本机向www.cnblogs.com发出的包,把内容写入filename里,里面包含TCP头部,但是很容易就能分辨出HTTP的内容了。监听ICMPtcpdump icmp -vX -i eth0 and host www.cnblogs.com监听从eth0向主机www.cnblogs.com发出的ping。监听ping -T tsonly发现ping 命令的-T选项不是对icmp协议加时间戳,而是在IP头部加时间戳。 阅读全文
posted @ 2010-11-30 10:53 lbsx 阅读(2009) 评论(0) 推荐(0)
/bin/false无法登录vsftp
摘要:两种方法:1.在/etc/shells中添加/bin/false这应该是一个标准的做法,因为man中明确说了ftp服务器可能会通过该文件来检测用户的shell。SHELLS(5) Linux Programmer's Manual SHELLS(5)NAME shells - pathnames of valid login shellsDESCRIPTION /etc/shells is a t... 阅读全文
posted @ 2010-11-08 21:21 lbsx 阅读(1002) 评论(0) 推荐(0)
nl wc
摘要:nl - number lines of filesWrite each FILE to standard output, with line numbers added.wc - print newline, word, and byte counts for each filePrint newline, word, and byte counts for each FILE, and a t... 阅读全文
posted @ 2010-11-08 20:33 lbsx 阅读(201) 评论(0) 推荐(0)
pkg-config ldconfig
摘要:pkg-config - Return metainformation about installed librariesldconfig - configure dynamic linker run-time bindings 阅读全文
posted @ 2010-11-05 00:05 lbsx 阅读(167) 评论(0) 推荐(0)
tchar 输入输出类 和 string 类 函数简单说明
摘要:转载自:tchar 输入输出类 和 string 类 函数简单说明标准输入输出printf类_tprintf :类同printf_tprintf_l :类同printf, 但是"_l"表示第二个参数是一个locale.locale是操作系统对语言设定的参数, 这个会影响ANSI字符的语言识别, 在Unicode下应该是无差别的_tprintf_s :类图printf, 但是和_tprintf相比,... 阅读全文
posted @ 2010-11-03 13:40 lbsx 阅读(1867) 评论(0) 推荐(0)
bash shell中的位置参数
摘要:转载自:Bash shell中的位置参数$#,$*,$@,$0,$1,$2...及特殊参数$?,$-等的含义$1, $2, $3等等...位置参数,从命令行传递给脚本,或者是传递给函数.或者赋职给一个变量.此数目可以任意多,但只有前9个可以被访问,使用shift命令可以改变这个限制。(具体见Example 4-5 和Example 11-15)$0$0表示当前执行的进程名,script 本身的名字... 阅读全文
posted @ 2010-11-03 13:10 lbsx 阅读(742) 评论(0) 推荐(0)
使用tar进行备份
摘要:进行系统的备份或者移植的时候,通常是使用tar而不是cp拷贝:$ tar cf - * | ( cd /target; tar xfp -)将存档输出到标准输出,然后通过标准输入解开文档如果要连隐藏文件也一起拷贝:$ tar cf - * .??* | ( cd /target; tar xfp -)存档:$ tar -czvpf img.tar.gz *$ tar -xzvpf img.tar.... 阅读全文
posted @ 2010-11-01 20:08 lbsx 阅读(395) 评论(0) 推荐(0)
视频切割与合并
摘要:mencoder还是比较无敌的。切割:ffmpeg:ffmpeg -ss 0:1:30 -t 0:0:20 -i input.mpg -vcodec copy -acodec copy output.mpg-t表示持续的时间mencoder:mencoder -ss 05:00 -endpos 8:00 -oac copy -ovc copy filename.mp4 -o output.mp4-... 阅读全文
posted @ 2010-11-01 19:47 lbsx 阅读(1117) 评论(0) 推荐(0)