linux vsftpÎÊÌ⣬´ó¼Ò½øÀ´°ï°ïæ лл
ÎÊÌâÊÇÕâÑùµÄ£¬ÎÒÕâÑùÅäÖÃiptablesµÄ
iptables -F
iptables -X
iptables -P INPUT DROP
iptables -P OUTPUT DROP
iptables -P FORWARD DROP
iptables -A INPUT -p tcp --dport 21 -j ACCEPT
iptables -A OUTPUT -p tcp --sport 21 -j ACCEPT
iptables -A INPUT -p tcp --dport 20 -j ACCEPT
iptables -A OUTPUT -p tcp --sport 20 -j ACCEPT
ÕâÑùÅäÖÃÓдíÂð£¿ÎªÊ²Ã´ftpµ½µÇ½¿ò ÊäÈëÕ˺ÅÃÜÂëÒÔºó ¾Í²»ÐÐÁË ½ø²»ÁËftp ÊDz»ÊÇ»¹ÐèÒªÆäËûʲô¶Ë¿Ú£¬¹Øµô·À»ðǽÊÇ¿ÉÒ﵀ »¹ÓоÍÊǼÙÈç¹Øµô·À»ðǽ ÔÚÖØÐ¿ªÆô iptablesµÄÅäÖûỹԳɳõװ״̬µÄ Ϊʲô¡£Ð»Ð»´ó¼Ò
¶¼È¥³Ô·¹ÁËÂð ÔõôûÓÐÈËÀ´°ï°ïÎÒ°¡
ÉèÖÃvsftpÓÃPORT FTPģʽ, ÕâÑù¾Í»á¹Ì¶¨µÄÊý¾ÝÁ¬½Ó20¶Ë¿Ú, ·ñÔòPASV FTPģʽ»áËæ»ú¶Ë¿Ú¸ú¿Í»§¶Ë´«Êý¾Ý(¶Ë¿ÚÓɿͻ§¶ËÖ¸¶¨)
¶àл¥ÉϵÄÖ¸µ¼£¬²»¹ýÄÜ·ñÏêϸµãµÄ˵ ÎÒÊÇÐÂÊÖ Ð»Ð»
http://vsftpd.beasts.org/vsftpd_conf.html
refer to the following configuration options.
HTML code:
pasv_enable
Set to NO if you want to disallow the PASV method of obtaining a data connection.
Default: YES
pasv_promiscuous
Set to YES if you want to disable the PASV security check that ensures the data connection originates from the same IP address as the control connection. Only enable if you know what you are doing! The only legitimate use for this is in some form of secure tu
Ïà¹ØÎÊ´ð£º
C/C++ code:
char Time="2009-9-23";
FILE *fpOut=fopen("1.txt","w+");
if(fpOut==NULL)
return ;
fwr ......
• ʵÑéÄ¿µÄ
ͨ¹ý±¾ÊµÑ飬Á˽âLinuxϵͳµÄ×éÖ¯ºÍÐÐΪ£¬¹Û²ì¸÷Öִ洢ϵͳ״̬ÐÅÏ¢µÄÄں˱äÁ¿£»ÊìϤÕâЩ½á¹¹ÓëÐÅÏ¢¡£
• ʵÑéÄÚÈÝ
±àд³ÌÐò´òÓ¡³öÈç ......
ÎÒĿǰÔÚ±¾µØµÄlinuxÉÏдÁËÒ»¸öswingµÄ½çÃæ£¬Ïëͨ¹ýÕâ¸ö½çÃæÀ´¿ØÖÆÆäËüµçÄÔµÄlinuxÖØÆô¡£
ÎÒÖªµÀÓÃRuntime.getRuntime().exec("shutdown -r");¿ÉÒÔ¿ØÖƱ¾»úLinuxÖØÆô£¬µ«ÊÇÔõô¿ØÖÆÔ¶³ÌµÄlinuxÖØÆôÄØ£¿ ......
ʹÓÃPHPµÄexecº¯Êýµ÷ÓÃlinuxµÄshellÃüÁÈçdateÈ¥ÐÞ¸Äʱ¼ä»òshutdownȥʵÏֹػú/ÖØÆô£¬µ«ÊÇ·µ»ØÖµ¶¼ÊÇʧ°ÜµÄ¡£¾¹ý¶à´ÎÊÔÑ飬È϶¨ÊÇûÓÐȨÏÞµÄÎÊÌâ¡£
ËùÒÔ£¬Ð¡µÜÔÚ´ËÇë½Ì¸÷룬ÈçºÎ²ÅÄÜÉèÖÃȨÏÞ£¬µ÷ÓÃlinux shellà ......
ÎÒÓùýubuntu8.10°æ±¾£¬´ÓverycdÏÂÔØµÄ¡£
ÏÂÔØºó£¬ÊǰëÓ¢ÎÄ¡£ÇÒÎÒ¶ÔlinuxϵͳµÄ²Ù×÷Àí½â²»ÉÒò´Ë×°ÖÐÎÄÊäÈë·¨¶¼¸ãÁ˺þá£
È»ºó°´ÕÕÍøÉϵĽ̸̳üÐÂÖÐÎĽçÃæ£¬µ«ÊǸüÐÂÁË1ÍíÉϺóÌáʾÖжϡ¡Àס£
......