博文

目前显示的是 六月, 2013的博文

NetCat 命令监听本地端口

今天打算用 nc ( netcat ) 命令做一个简单的本地监听,以测试防火墙是否封锁了某个端口。 网上很多文章上都是这样写:     nc -l -p $PORT 但是在我的 CentOS 5u4 上确实不能正确执行成功,一直提示语法错误。 后来查看 nc 的 man 手册,关于 -l 选项,里面这样写着:      -l      Used to specify that nc should listen for an incoming connection rather than initiate a connection to a remote host. It is an error to use this option in conjunction with the -p, -s, or -z options. Additionally, any timeouts specified with the -w option are ignored. 因此正确的写法应该是:     nc -l $PORT 这样就直接监听本地的 $PORT 端口了。 费解,不知道是不是因为 CenOS 5u4 上的 nc 版本太旧的缘故。

Crystal

T 恤内里的文字,在网上找了下,竟然找到了。 Crystal They say your fate is clear and fair;then why do I see All the splitting rays? Why do we huddle, wings to wings? Ah, closer, your fiery part. Closer still, my precious one Let me, long and steadily, look at you deeper within Let me see you grow, from head to toe, from ice To water, running to me, untill I discover In you, the star of my afterlife, leading a sky of stary lights Until finally, I see my own face, passing through summer Passing through fall, traveling back and forth on different roads Sighing high and low in different rooms. Why are you a mirror Following me, forever a happiness - fervent, desolate Simple, sad - changing faces to exchange with me A day? Or a door that opens a flower, or perhaps Last June that opened this fragrant chapter. But I - I want to give you other decorations. Ah, look In the fleeting summer, a rose has all her redness inside He has decorated you, and I another. Ah, with the past fading like smoke I want to get rid o...