DosÏÂд¸öµÇ¼Linux ftp serverµÄÅú´¦ÀíÎļþ
ÀýÈçÎÒµÄlinux serverµÄµØÖ·ÊÇcsdn.com£¬ÉÏÃæÓÐÒ»¸öftpµÄ·þÎñ£¬Óû§Ãû£ºuser£¬ÃÜÂ룺pwd
Ôõôдһ¸ö×Ô¶¯µÇ¼Åú´¦Àí³ÌÐò°¡£¿
»¹ÓоÍÊÇftpµÇ¼ºó£¬¹ý¶Îʱ¼ä¾Í»á³¬Ê±Öжϣ¬ÓÐʲôºÃµÄ½â¾ö·½·¨Ã»£¿
expect
winÏÂÃæÒ²ÓÐexpect£¿
Åú´¦ÀíʵÔÚÊDz»Êì¡£
ftp < autologin.ack
±à¼autologin.ack
open csdn.com
user
pwd
Â¥Éϵķ½·¨£¬ÎÒÊÔÁË£¬²»ÐÐ
ftp -s:ÃüÁîÎļþÃû
ÃüÁîÎļþÖÐдÉÏ
open µØÖ·
̞
ÃÜÂë
put xxxx
get xxx
bye
ÕâÑù¾Í¿ÉÒÔÁË
lsÕý½â
²¹ÎÊÒ»¸öÎÊÌ⣺
vncview³¬Ê±£¬ÒªÊäÈëÃÜÂëÑéÖ¤£¬ÔõÑùÉèÖòÅÄÜÈ¡ÏûÃÜÂëÑéÖ¤£¿
Ïà¹ØÎÊ´ð£º
LinuxÐÂÊÖ£¬Çë´ó¸ç´ó½ã²»Òª¼ûЦ¡£
ÎÒÓÃrootÓû§µÇ¼µ½Linuxϵͳ¡£ÔÚ¸ùĿ¼ÏÂÃ潨ÁËĿ¼dir1£¬ºóÓÃÃüÁîcd /dir1½øÈëµ½dir1Ŀ¼Ï£¬È»ºóÔÙÓÃmkdir dir2½¨Á¢ÁËĿ¼dir2 £¬ÔÙºóÀ´ÓÃÃüÁîcd /dir2ÊÇ£¬ÌáʾΪ£º-bush ......
ʹÓÃPHPµÄexecº¯Êýµ÷ÓÃlinuxµÄshellÃüÁÈçdateÈ¥ÐÞ¸Äʱ¼ä»òshutdownȥʵÏֹػú/ÖØÆô£¬µ«ÊÇ·µ»ØÖµ¶¼ÊÇʧ°ÜµÄ¡£¾¹ý¶à´ÎÊÔÑ飬È϶¨ÊÇûÓÐȨÏÞµÄÎÊÌâ¡£
ËùÒÔ£¬Ð¡µÜÔÚ´ËÇë½Ì¸÷룬ÈçºÎ²ÅÄÜÉèÖÃȨÏÞ£¬µ÷ÓÃlinux shellà ......
СµÜ×î½üÐèÒªÒ»¸öÓÃsocket»ñÈ¡htmlÎĵµµÄ´úÂ룬µ«ÊÇÀÏÊDz»ÄÜ»ñÈ¡ÍêÕûµÄhtmlÔ´Âë¡£ÔÒò²»Ã÷£¬Íû¸ßÊÖÖ¸µã£¡
C/C++ code:
char *Http_GET(char *host,int port,char *data) //·¢ËÍGETÇëÇó
{
char response[2 ......
ÏÖÔÚÎÒÓÐÁ½Ì¨»ú Ò»¸öÔÚ¼Ò Ò»¸öÔÚѧУ ÔÚѧУµÄÄÇ̨»ú×Ó²»ÄÜÉÏÍø ÎҰѼÒÀïµÄÄÇ̨»ú×Ó¸üе½×îÐÂÁË È»ºó°Ñ /var/cache/apt/archives ϵÄËùÓÐDeb°ü¸´ÖƵ½Ñ§Ð£ÄÇ̨ûÁªÍøµÄ»ú×ÓÉÏÁË&nbs ......