2012年7月3日
摘要: nc使用技巧by quack<quack@21cn.com>http://www.xfocus.org安全焦点nc这个小玩意儿应该大家耳熟能详,也用了N年了吧……这里不多讲废话,结合一些script说说它的使用技巧。(文中所举的script都来自于nc110.tgz的文件包)一、基本使用Quack# nc -h[v1.10]想要连接到某处: nc [-options] hostname port[s] [ports] ...绑定端口等待连接: nc -l -p port [-options] [hostname] [port]参数:-e prog 程序重定向,一旦连接,就执行 [危 阅读全文
posted @ 2012-07-03 22:03 abacuspix 阅读(722) 评论(0) 推荐(0)
  2012年5月31日
摘要: 1 #include <stdio.h> 2 3 int main(void) 4 { 5 int a[2][3]={1,2,3,4,5,6},b[3][2]; 6 int (*p)[3],(*q)[2],i,j; 7 p=a; 8 q=b; 9 for(i=0;i<2;i++)10 for(j=0;j<3;j++)11 *(*(q+j)+i)=*(*(p+i)+j);12 p=a[0];13 for(i=0;i<2;i++)14 {15 for(j=0;... 阅读全文
posted @ 2012-05-31 21:41 abacuspix 阅读(395) 评论(0) 推荐(0)
  2012年5月24日
摘要: #include <stdio.h>int main(void){ char s[80],*p; int i = 0; for(i=0;i<79;i++) { s[i]=getchar(); if(s[i]=='\n') break; } s[i]='\0'; p=s; while(*p) putchar(*p++); return 0;} 阅读全文
posted @ 2012-05-24 23:14 abacuspix 阅读(146) 评论(0) 推荐(0)
摘要: 最近有些懒惰 唉。。。 阅读全文
posted @ 2012-05-24 15:25 abacuspix 阅读(99) 评论(0) 推荐(0)