update netcat 1.12 to 1.13

来源:互联网 发布:freebsd 卸载软件 编辑:程序博客网 时间:2024/06/06 21:42
update netcat 1.12 to 1.13

why?

modify by  2013/04/30

netcat -C ip port same as netcat -L -p port

how to update:

-   while ((x = getopt (argc, argv, "ade:g:G:hi:lLno:p:rs:tuvw:z")) != EOF) {
+   while ((x = getopt (argc, argv, "aCde:g:G:hi:lLno:p:rs:tuvw:z")) != EOF) {


+            case 'C':                /* connect then cycle back to start instead of exiting */
+      cycle = 1;
+      break;


#ifdef WIN32
    WSACleanup();
#endif

      if (cycle == 1)
        goto recycle;

changed to:

      if (cycle == 1)
        goto recycle;

#ifdef WIN32
    WSACleanup();
#endif

https://github.com/chenghao11/netcat-1.13/wiki/update-netcat-1.12-to-1.13

http://code.google.com/p/netcat113/

https://sourceforge.net/p/netcat113/


https://www.youtube.com/watch?v=mFAIgaeMclQ  视频观看

netcat 1.13 by chenghao0511