netcat代碼分析流程分析

https://www.cnblogs.com/jiangu66/archive/2013/04/23/3037515.html

#ifdef GAPING_SECURITY_HOLE
    if (pr00gie)            /* -e given? */
        doexec (netfd);
#ifdef WIN32
    if (!pr00gie)  // doexec does the read/write for win32
#endif

#endif /* GAPING_SECURITY_HOLE */

    x = readwrite (netfd);        /* it even works with UDP! */



如果有-e選項調用        doexec (netfd);代替readwrite (netfd); 

可見兩則只能選其一。
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章