Ò׽ؽØÍ¼Èí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

ÓÖÒ»´Î±»linuxµÄ¹¤¾ßÕð¾ªÁË

    ǰһƪ²©¿Í»¹Ð´ÁË×Ô¼ºÐ´µÄ¶Ë¿Úת·¢¹¤¾ß£¬½ñÌìżȻÔÚÍøÉÏ¿´µ½½²ÃüÃû¹ÜµÀºÍnetcatÅäºÏµÄÓ÷¨£¬±»³¹µ×À×µ¹ÁË¡£
    Ô­À´ÒÔΪnetcat×ö²»µ½£¬Ô­À´ÊÇ×Ô¼ºÏë²»µ½£¬¶ø²»ÊÇnetcat×ö²»µ½……
    ·½·¨ÈçÏ£º
    $ mknod backpipe p
    ½¨Á¢Ò»¸öÃüÃû¹ÜµÀ.
    listener-to-client ת·¢£º
    $ nc -l -p [localport] 0< backpipe |
        nc [target ip] [port] |
        tee backpipe
    ƯÁÁ°É£¿
    ¼ÌÐø£º
    listener-to-listener ת·¢£º
    $ nc -l -p [localport] 0< backpipe |
        nc -l -p [localport2] |
        tee backpipe
   
    client-to-client ת·¢£º
    $ nc [ip1] [port1] 0< backpipe |
        nc [ip2] [port2] |
        tee backpipe
   
»¹ÓиüÀ׵ķ½·¨£¬ÓÃ×ÔÉíµÄ -e ²ÎÊý£º
    $ echo nc [ip] [port] > relay.sh
    $ chmod +x relay.sh
    $ nc -l -p [port2] -e relay.sh
    ÎÒÔβËÁË£¬Ô­À´ÄǸö³ÌÐòÊǰ×дÁË¡£
    Ç¿´óµÄlinux, Ç¿´óµÄnetcat !


Ïà¹ØÎĵµ£º

LinuxϱàÒëºÍ°²×°Èí¼þµÄ·½·¨

For all those who are beginners in any linux(ubuntu) find hard to find the package files of their distro and end up in finding an source package(which is either in tar.gz or .gz).. so now people think how to install these source files…..
lets now see how would you be installing source files ......

ÔÚlinuxÏ »ñÈ¡±¾»úMACµØÖ·µÄº¯Êý

//»ñÈ¡±¾»úMACµØÖ·º¯ÊýQString GetLocalMac()
{
int sock_mac;

struct ifreq ifr_mac;
char mac_addr[30];

sock_mac = socket( AF_INET, SOCK_STREAM, 0 );
if( sock_mac == -1)
{
perror("create socket falise...mac\n");
return "";
}

memset(&ifr_mac,0,sizeof(ifr_mac));
......

Linux CÓïÑÔѧϰ±Ê¼Ç

1¡¢int    4×Ö½Ú
   long   8×Ö½Ú
   float  4×Ö½Ú
   double 8×Ö½Ú
   long double 16×Ö½Ú
2¡¢Ò»¸ö×Ö·û±äÁ¿Ö»ÄÜ´æ·ÅÒ»¸ö×Ö·û¡¢Ò»¸ö×Ö½Ú´æ·ÅÒ»¸ö×Ö½Ú
   char c;
   c = 'a';    c = '\034'   ......

ÔÚLinuxÏÂÐ޸Ļ·¾³±äÁ¿PATH

source file :
http://hi.baidu.com/neugraduzyq/blog/item/5602432f6a1a755a4ec22666.html
ÎÒÏëÔÚPATHϼÓÒ»¸ö/tools/binµÄ·¾¶ÓÃexport PATH=$PATH:/tools/binºóÓ¦¸ÃÊǼÓÉÏÈ¥ÁË£¬µ«ÊÇÓà echo $PATH »¹ÊÇÏÔʾµÄÔ­À´µÄ$PATH±äÁ¿µÄÖµ£¬¸Ð¾õÓÃexport PATH=$PATH:/tools/binÖ»ÊÇÔÚÔ­À´µÄ$PATH±äÁ¿ºó¼ÓÁËÒ»¸ö·¾¶µ½µ±Ç°µ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ