/l3/users/12-03-2007/nt-lnet/linux1.net.nt/root :1 :2 :3 :4 :5 :6 :7 :8 :9 :10 :11 :12 :13 :14 :15 :16 :17 :18 :19 :20 :21 :22 :23 :24 :25 :26 :27 |
|
#telnet 192.168.16.1 22222
[root@linux1:~]# [root@linux1:~]# [root@linux1:~]# Trying 192.168.16.1... Connected to 192.168.16.1. Escape character is '^]'. 2+2# 4 ^] telnet> q Connection closed. netscsid nroff netstat nslookup network-admin nstat newaliases nsupdate [root@linux1:~]# man nc Переформатирование nc(1), подождите... NC(1) NC(1) |
#vim /etc/services
|
#vim /etc/inetd.conf
30c30 < bc stream tcp nowait root /usr/bin/bc --- > bc stream tcp wait root /usr/bin/bc |
#pkill -1 inetd
|
#telnet 192.168.16.1 33333
[root@linux1:~]# [root@linux1:~]# [root@linux1:~]# Trying 192.168.16.1... Connected to 192.168.16.1. Escape character is '^]'. 2+2# 4 ^] telnet> q Connection closed. netscsid nroff netstat nslookup network-admin nstat newaliases nsupdate [root@linux1:~]# man nc Переформатирование nc(1), подождите... NC(1) NC(1) |
#telnet 192.168.16.1 22222
Trying 192.168.16.1... Connected to 192.168.16.1. Escape character is '^]'. 2+2# 4 ^] telnet> q Connection closed. |
#vim /etc/inetd.conf
|
#telnet 192.168.16.1 33333
[root@linux1:~]# [root@linux1:~]# [root@linux1:~]# Trying 192.168.16.1... Connected to 192.168.16.1. Escape character is '^]'. 2+2# 4 ^] telnet> q Connection closed. netscsid nroff netstat nslookup network-admin nstat newaliases nsupdate [root@linux1:~]# man nc Переформатирование nc(1), подождите... NC(1) NC(1) |
#vim /etc/inetd.conf
30c30 < --- > bc dgram udp wait root /usr/bin/bc |
#vim /etc/hosts.allow
12a13 > calc : 127.0.0.1 : deny |
#pkill -1 inetd
|
#netstat -lnp | grep :33
various modes. If you believe that it is doing the wrong thing under whatever circumstances, please notify me and tell me how you think it should behave. If netcat is not able to do some task you think up, minor tweaks to the code will probably fix that. It provides a basic and easily-modified template for writing other network applications, and I certainly encourage people to make custom mods and send in any improvements they make to it. Continued feedback from the Internet [root@linux1:~]# [root@linux1:~]# [root@linux1:~]# tcp 0 0 0.0.0.0:33333 0.0.0.0:* LISTEN 6843/inetd netscsid nroff netstat nslookup network-admin nstat newaliases nsupdate [root@linux1:~]# man nc Переформатирование nc(1), подождите... NC(1) NC(1) |
#netstat -lnp | grep :22
tcp 0 0 127.0.0.1:2208 0.0.0.0:* LISTEN 2409/hpiod tcp 0 0 0.0.0.0:22222 0.0.0.0:* LISTEN 6843/inetd tcp6 0 0 :::22 :::* LISTEN 2680/sshd |
#telnet 127.0.0.1 22222
and I certainly encourage people to make custom mods and send in any improvements they make to it. Continued feedback from the Internet [root@linux1:~]# [root@linux1:~]# [root@linux1:~]# Trying 127.0.0.1... Connected to 127.0.0.1. Escape character is '^]'. ^] telnet> q Connection closed. netscsid nroff netstat nslookup network-admin nstat newaliases nsupdate [root@linux1:~]# man nc Переформатирование nc(1), подождите... NC(1) NC(1) |
#vim /etc/hosts.allow
13c13 < calc : 127.0.0.1 : deny --- > calc : LOCAL : deny |
#telnet 127.0.0.1 22222
and I certainly encourage people to make custom mods and send in any improvements they make to it. Continued feedback from the Internet [root@linux1:~]# [root@linux1:~]# [root@linux1:~]# Trying 127.0.0.1... Connected to 127.0.0.1. Escape character is '^]'. ^] telnet> q Connection closed. netscsid nroff netstat nslookup network-admin nstat newaliases nsupdate [root@linux1:~]# man nc Переформатирование nc(1), подождите... NC(1) NC(1) |
#grep 22222 /etc/services
calc 22222/tcp #Calc |
#vim /etc/hosts.allow
|
#telnet 127.0.0.1 22222
Trying 127.0.0.1... Connected to 127.0.0.1. Escape character is '^]'. ^] telnet> q Connection closed. |
#vim /etc/hosts.allow
30c30 < --- > bc dgram udp wait root /usr/bin/bc |
#vim /etc/hosts.
30c30 < --- > bc dgram udp wait root /usr/bin/bc |
#vim /etc/hosts.deny
19a20 > calc: LOCAL |
#telnet 127.0.0.1 22222
Trying 127.0.0.1... Connected to 127.0.0.1. Escape character is '^]'. ^] telnet> q Connection closed. |
#vim /etc/hosts.deny
20c20 < calc: LOCAL --- > calc: ALL |
#telnet 127.0.0.1 22222
Trying 127.0.0.1... Connected to 127.0.0.1. Escape character is '^]'. ^] telnet> q Connection closed. |
#vim /etc/hosts.deny
19,20c19,20 < # ALL: PARANOID < calc: ALL --- > ALL: PARANOID > #calc: ALL |
#telnet 127.0.0.1 22222
and I certainly encourage people to make custom mods and send in any improvements they make to it. Continued feedback from the Internet [root@linux1:~]# [root@linux1:~]# [root@linux1:~]# Trying 127.0.0.1... Connected to 127.0.0.1. Escape character is '^]'. ^] telnet> q Connection closed. netscsid nroff netstat nslookup network-admin nstat newaliases nsupdate [root@linux1:~]# man nc Переформатирование nc(1), подождите... NC(1) NC(1) |
#/etc/init.d/openbsd-inetd restart
Restarting internet superserver: inetd. |
#tail /var/log/daemon.log
[root@linux1:~]# Mar 13 10:45:49 linux1 last message repeated 254 times Mar 13 10:46:51 linux1 last message repeated 255 times Mar 13 10:47:49 linux1 last message repeated 255 times Mar 13 10:47:51 linux1 inetd[2670]: calc/tcp: bind: Address already in use Mar 13 10:56:57 linux1 bc[7354]: connect from 127.0.0.1 (127.0.0.1) Mar 13 10:57:30 linux1 bc[7392]: connect from 127.0.0.1 (127.0.0.1) Mar 13 10:57:55 linux1 bc[7446]: connect from 127.0.0.1 (127.0.0.1) Mar 13 10:58:27 linux1 bc[7497]: connect from 127.0.0.1 (127.0.0.1) Mar 13 10:59:03 linux1 bc[7534]: connect from 127.0.0.1 (127.0.0.1) Mar 13 10:59:23 linux1 bc[7566]: connect from localhost (127.0.0.1) netscsid nroff netstat nslookup network-admin nstat newaliases nsupdate [root@linux1:~]# man nc Переформатирование nc(1), подождите... NC(1) NC(1) |
#/etc/init.d/openbsd-inetd restart
various modes. If you believe that it is doing the wrong thing under whatever circumstances, please notify me and tell me how you think it should behave. If netcat is not able to do some task you think up, minor tweaks to the code will probably fix that. It provides a basic and easily-modified template for writing other network applications, and I certainly encourage people to make custom mods and send in any improvements they make to it. Continued feedback from the Internet [root@linux1:~]# [root@linux1:~]# [root@linux1:~]# Restarting internet superserver: inetd. netscsid nroff netstat nslookup network-admin nstat newaliases nsupdate [root@linux1:~]# man nc Переформатирование nc(1), подождите... NC(1) NC(1) |
#tail /var/log/daemon.log
Mar 13 10:45:49 linux1 last message repeated 254 times Mar 13 10:46:51 linux1 last message repeated 255 times Mar 13 10:47:49 linux1 last message repeated 255 times Mar 13 10:47:51 linux1 inetd[2670]: calc/tcp: bind: Address already in use Mar 13 10:56:57 linux1 bc[7354]: connect from 127.0.0.1 (127.0.0.1) Mar 13 10:57:30 linux1 bc[7392]: connect from 127.0.0.1 (127.0.0.1) Mar 13 10:57:55 linux1 bc[7446]: connect from 127.0.0.1 (127.0.0.1) Mar 13 10:58:27 linux1 bc[7497]: connect from 127.0.0.1 (127.0.0.1) Mar 13 10:59:03 linux1 bc[7534]: connect from 127.0.0.1 (127.0.0.1) Mar 13 10:59:23 linux1 bc[7566]: connect from localhost (127.0.0.1) |
#tail /var/log/messages
Mar 13 11:46:04 linux1 -- MARK -- Mar 13 12:06:04 linux1 -- MARK -- Mar 13 12:06:37 linux1 gconfd (user-3120): запÑ\203Ñ\201каеÑ\202Ñ\201Ñ\217 (веÑ\200Ñ\201иÑ\217 2.16.0), pid 3120 полÑ\214зоваÑ\202елÑ\214 "user" Mar 13 12:06:37 linux1 gconfd (user-3120): Ð\236бнаÑ\200Ñ\203жен Ñ\200азÑ\200еÑ\210Ñ\221ннÑ\213й адÑ\200еÑ\201 "xml:readonly:/etc/gconf/gconf.xml.mandatory" к иÑ\201Ñ\202оÑ\207никÑ\203 конÑ\204игÑ\203Ñ\200аÑ\206ии Ñ\202олÑ\214ко-длÑ\217-Ñ\207Ñ\202ениÑ\217 в позиÑ\206ии 0 Mar 13 12:06:37 linux1 gconfd (user-3120): Ð\236бнаÑ\200Ñ\203жен Ñ\200азÑ\200еÑ\210Ñ\221ннÑ\213й адÑ\200еÑ\201 "xml:readwrite:/home/user/.gconf" к запиÑ\201Ñ\213ваемомÑ\203 иÑ\201Ñ\202оÑ\207никÑ\203 конÑ\204игÑ\203Ñ\200аÑ\206ии в позиÑ\206ии 1 Mar 13 12:06:37 linux1 gconfd (user-3120): Ð\236бнаÑ\200Ñ\203жен Ñ\200азÑ\200еÑ\210Ñ\221ннÑ\213й адÑ\200еÑ\201 "xml:readonly:/etc/gconf/gconf.xml.defaults" к иÑ\201Ñ\202оÑ\207никÑ\203 конÑ\204игÑ\203Ñ\200аÑ\206ии Ñ\202олÑ\214ко-длÑ\217-Ñ\207Ñ\202ениÑ\217 в позиÑ\206ии 2 Mar 13 12:06:37 linux1 gconfd (user-3120): Ð\236бнаÑ\200Ñ\203жен Ñ\200азÑ\200еÑ\210Ñ\221ннÑ\213й адÑ\200еÑ\201 "xml:readonly:/var/lib/gconf/debian.defaults" к иÑ\201Ñ\202оÑ\207никÑ\203 конÑ\204игÑ\203Ñ\200аÑ\206ии Ñ\202олÑ\214ко-длÑ\217-Ñ\207Ñ\202ениÑ\217 в позиÑ\206ии 3 Mar 13 12:06:37 linux1 gconfd (user-3120): Ð\236бнаÑ\200Ñ\203жен Ñ\200азÑ\200еÑ\210Ñ\221ннÑ\213й адÑ\200еÑ\201 "xml:readonly:/var/lib/gconf/defaults" к иÑ\201Ñ\202оÑ\207никÑ\203 конÑ\204игÑ\203Ñ\200аÑ\206ии Ñ\202олÑ\214ко-длÑ\217-Ñ\207Ñ\202ениÑ\217 в позиÑ\206ии 4 Mar 13 12:06:42 linux1 gconfd (user-3120): Ð\236бнаÑ\200Ñ\203жен Ñ\200азÑ\200еÑ\210Ñ\221ннÑ\213й адÑ\200еÑ\201 "xml:readwrite:/home/user/.gconf" к запиÑ\201Ñ\213ваемомÑ\203 иÑ\201Ñ\202оÑ\207никÑ\203 конÑ\204игÑ\203Ñ\200аÑ\206ии в позиÑ\206ии 0 Mar 13 12:26:05 linux1 -- MARK -- |
#telnet 127.0.0.1 22222
and I certainly encourage people to make custom mods and send in any improvements they make to it. Continued feedback from the Internet [root@linux1:~]# [root@linux1:~]# [root@linux1:~]# Trying 127.0.0.1... Connected to 127.0.0.1. Escape character is '^]'. ^] telnet> q Connection closed. netscsid nroff netstat nslookup network-admin nstat newaliases nsupdate [root@linux1:~]# man nc Переформатирование nc(1), подождите... NC(1) NC(1) |
#vim /etc/hosts.allow
30c30 < --- > bc dgram udp wait root /usr/bin/bc |
#telnet 127.0.0.1 22222
and I certainly encourage people to make custom mods and send in any improvements they make to it. Continued feedback from the Internet [root@linux1:~]# [root@linux1:~]# [root@linux1:~]# Trying 127.0.0.1... Connected to 127.0.0.1. Escape character is '^]'. ^] telnet> q Connection closed. netscsid nroff netstat nslookup network-admin nstat newaliases nsupdate [root@linux1:~]# man nc Переформатирование nc(1), подождите... NC(1) NC(1) |
#telnet 127.0.0.1 33333
and I certainly encourage people to make custom mods and send in any improvements they make to it. Continued feedback from the Internet [root@linux1:~]# [root@linux1:~]# [root@linux1:~]# Trying 127.0.0.1... Connected to 127.0.0.1. Escape character is '^]'. ^[[29;5~^] telnet> q Connection closed. netscsid nroff netstat nslookup network-admin nstat newaliases nsupdate [root@linux1:~]# man nc Переформатирование nc(1), подождите... NC(1) NC(1) |
#vim /etc/inetd.conf
30c30 < --- > bc dgram udp wait root /usr/bin/bc |
#/etc/init.d/openbsd-inetd stop]
various modes. If you believe that it is doing the wrong thing under whatever circumstances, please notify me and tell me how you think it should behave. If netcat is not able to do some task you think up, minor tweaks to the code will probably fix that. It provides a basic and easily-modified template for writing other network applications, and I certainly encourage people to make custom mods and send in any improvements they make to it. Continued feedback from the Internet [root@linux1:~]# [root@linux1:~]# [root@linux1:~]# Usage: /etc/init.d/inetd {start|stop|reload|force-reload|restart} netscsid nroff netstat nslookup network-admin nstat newaliases nsupdate [root@linux1:~]# man nc Переформатирование nc(1), подождите... NC(1) NC(1) |
#/etc/init.d/openbsd-inetd stop
Stopping internet superserver: inetd. |
#telnet 127.0.0.1 33333
Trying 127.0.0.1... telnet: Unable to connect to remote host: Connection refused |
#/etc/init.d/openbsd-inetd start
Starting internet superserver: inetd. |
#telnet 127.0.0.1 33333
Trying 127.0.0.1... Connected to 127.0.0.1. Escape character is '^]'. ^] telnet> q Connection closed. |
#/usr/sbin/tcpd
tcpd tcpdchk tcpdmatch tcpdump |
#/usr/sbin/tcpd
various modes. If you believe that it is doing the wrong thing under whatever circumstances, please notify me and tell me how you think it should behave. If netcat is not able to do some task you think up, minor tweaks to the code will probably fix that. It provides a basic and easily-modified template for writing other network applications, and I certainly encourage people to make custom mods and send in any improvements they make to it. Continued feedback from the Internet [root@linux1:~]# [root@linux1:~]# [root@linux1:~]# netscsid nroff netstat nslookup network-admin nstat newaliases nsupdate [root@linux1:~]# man nc Переформатирование nc(1), подождите... NC(1) NC(1) |
#man tcpd
|
#ls -l /usr/sbin/in
should behave. If netcat is not able to do some task you think up, minor tweaks to the code will probably fix that. It provides a basic and easily-modified template for writing other network applications, and I certainly encourage people to make custom mods and send in any improvements they make to it. Continued feedback from the Internet [root@linux1:~]# [root@linux1:~]# [root@linux1:~]# inetd install-keymap invoke-rc.d in.identtestd install-menu install-info install-sgmlcatalog netscsid nroff netstat nslookup network-admin nstat newaliases nsupdate [root@linux1:~]# man nc Переформатирование nc(1), подождите... NC(1) NC(1) |
#man tcpd
|
#vim /etc/hosts.allow
30c30 < --- > bc dgram udp wait root /usr/bin/bc |
#vim /etc/hosts.deny
19,20c19,20 < ALL: PARANOID < #calc: ALL --- > #ALL: PARANOID > ALL: ALL |
#telnet 127.0.0.1 33333
Trying 127.0.0.1... Connected to 127.0.0.1. Escape character is '^]'. ^] telnet> a ?Invalid command telnet> ^] ?Invalid command telnet> q Connection closed. |
#apt-get install xinetd
После распаковки объем занятого дискового пространства возрастёт на 369kB. Получено:1 http://192.168.16.15 etch/main xinetd 1:2.3.14-1 [137kB] Получено 137kB за 0s (955kB/c) Выбор ранее не выбранного пакета xinetd. (Чтение базы данных... на данный момент установлено 79513 файлов и каталогов.) Распаковывается пакет xinetd (из файла .../xinetd_1%3a2.3.14-1_i386.deb)... Настраивается пакет xinetd (2.3.14-1) ... Stopping internet superserver: xinetd. Добавляется `diversion of /etc/init.d/inetd to /etc/init.d/inetd.real by xinetd' Starting internet superserver: xinetd. netscsid nroff netstat nslookup network-admin nstat newaliases nsupdate [root@linux1:~]# man nc Переформатирование nc(1), подождите... NC(1) NC(1) |
#/etc/init.d/xinetd restart
whatever circumstances, please notify me and tell me how you think it should behave. If netcat is not able to do some task you think up, minor tweaks to the code will probably fix that. It provides a basic and easily-modified template for writing other network applications, and I certainly encourage people to make custom mods and send in any improvements they make to it. Continued feedback from the Internet [root@linux1:~]# [root@linux1:~]# [root@linux1:~]# Stopping internet superserver: xinetd. Starting internet superserver: xinetd. netscsid nroff netstat nslookup network-admin nstat newaliases nsupdate [root@linux1:~]# man nc Переформатирование nc(1), подождите... NC(1) NC(1) |
#netstat -lnp | grep :33
|
#vim /etc/xinetd.conf
|
#vim /etc/xinetd.d/
30c30 < --- > bc dgram udp wait root /usr/bin/bc |
#xcon
various modes. If you believe that it is doing the wrong thing under whatever circumstances, please notify me and tell me how you think it should behave. If netcat is not able to do some task you think up, minor tweaks to the code will probably fix that. It provides a basic and easily-modified template for writing other network applications, and I certainly encourage people to make custom mods and send in any improvements they make to it. Continued feedback from the Internet [root@linux1:~]# [root@linux1:~]# [root@linux1:~]# xconsole xconv.pl netscsid nroff netstat nslookup network-admin nstat newaliases nsupdate [root@linux1:~]# man nc Переформатирование nc(1), подождите... NC(1) NC(1) |
#xcon
xconsole xconv.pl |
#xconv.pl < /etc/inetd.conf > /tmp/xinetd
|
#vim /tmp/xinetd
|
#vim /etc/xinetd.conf
|
#netstat -lnp | grep :333
|
#/etc/init.d/xinetd start
various modes. If you believe that it is doing the wrong thing under whatever circumstances, please notify me and tell me how you think it should behave. If netcat is not able to do some task you think up, minor tweaks to the code will probably fix that. It provides a basic and easily-modified template for writing other network applications, and I certainly encourage people to make custom mods and send in any improvements they make to it. Continued feedback from the Internet [root@linux1:~]# [root@linux1:~]# [root@linux1:~]# Starting internet superserver: xinetd. netscsid nroff netstat nslookup network-admin nstat newaliases nsupdate [root@linux1:~]# man nc Переформатирование nc(1), подождите... NC(1) NC(1) |
#netstat -lnp | grep :333
|
#/etc/init.d/xinetd restart
Stopping internet superserver: xinetd. Starting internet superserver: xinetd. |
#netstat -lnp | grep :333
|
#netstat -lnp | grep :333
|
#ps aux | grep inetd
various modes. If you believe that it is doing the wrong thing under whatever circumstances, please notify me and tell me how you think it should behave. If netcat is not able to do some task you think up, minor tweaks to the code will probably fix that. It provides a basic and easily-modified template for writing other network applications, and I certainly encourage people to make custom mods and send in any improvements they make to it. Continued feedback from the Internet [root@linux1:~]# [root@linux1:~]# [root@linux1:~]# root 9558 0.0 0.0 3740 764 pts/16 R+ 11:09 0:00 grep inetd netscsid nroff netstat nslookup network-admin nstat newaliases nsupdate [root@linux1:~]# man nc Переформатирование nc(1), подождите... NC(1) NC(1) |
#ps aux | grep xinet
root 9569 0.0 0.0 3740 764 pts/16 R+ 11:09 0:00 grep xinet |
#ps wux | grep xinet
root 9579 0.0 0.0 3740 760 pts/16 R+ 11:09 0:00 grep xinet |
#tail /var/lo
various modes. If you believe that it is doing the wrong thing under whatever circumstances, please notify me and tell me how you think it should behave. If netcat is not able to do some task you think up, minor tweaks to the code will probably fix that. It provides a basic and easily-modified template for writing other network applications, and I certainly encourage people to make custom mods and send in any improvements they make to it. Continued feedback from the Internet [root@linux1:~]# [root@linux1:~]# [root@linux1:~]# local/ lock/ log/ lost+found/ netscsid nroff netstat nslookup network-admin nstat newaliases nsupdate [root@linux1:~]# man nc Переформатирование nc(1), подождите... NC(1) NC(1) |
#tail /var/log/
acpid dmesg.2.gz messages.0 acpid.1.gz dmesg.3.gz messages.1.gz aptitude dmesg.4.gz news/ auth.log dpkg.log pycentral.log auth.log.0 exim4/ scrollkeeper.log auth.log.1.gz faillog scrollkeeper.log.1 bittorrent/ fontconfig.log syslog boot fsck/ syslog.0 btmp gdm/ syslog.1.gz cups/ installer/ syslog.2.gz daemon.log kern.log syslog.3.gz daemon.log.0 kern.log.0 user.log daemon.log.1.gz kern.log.1.gz user.log.0 daemon.log.2.gz lastlog user.log.1.gz debug lpr.log uucp.log debug.0 mail.err wtmp debug.1.gz mail.info Xorg.0.log dmesg mail.log Xorg.0.log.old dmesg.0 mail.warn dmesg.1.gz messages |
#tail /var/log/daemon.log
Mar 13 11:08:40 linux1 xinetd[9509]: removing daytime Mar 13 11:08:40 linux1 xinetd[9509]: removing discard Mar 13 11:08:40 linux1 xinetd[9509]: removing discard Mar 13 11:08:40 linux1 xinetd[9509]: removing echo Mar 13 11:08:40 linux1 xinetd[9509]: removing echo Mar 13 11:08:40 linux1 xinetd[9509]: removing time Mar 13 11:08:40 linux1 xinetd[9509]: removing time Mar 13 11:08:40 linux1 xinetd[9509]: xinetd Version 2.3.14 started with libwrap loadavg options compiled in. Mar 13 11:08:40 linux1 xinetd[9509]: Started working: 1 available service Mar 13 11:08:46 linux1 xinetd[9509]: Exiting... |
#tail -20
Mar 13 11:08:40 linux1 xinetd[9509]: removing daytime Mar 13 11:08:40 linux1 xinetd[9509]: removing daytime Mar 13 11:08:40 linux1 xinetd[9509]: removing discard Mar 13 11:08:40 linux1 xinetd[9509]: removing discard Mar 13 11:08:40 linux1 xinetd[9509]: removing echo Mar 13 11:08:40 linux1 xinetd[9509]: removing echo Mar 13 11:08:40 linux1 xinetd[9509]: removing time Mar 13 11:08:40 linux1 xinetd[9509]: removing time Mar 13 11:08:40 linux1 xinetd[9509]: xinetd Version 2.3.14 started with libwrap loadavg options compiled in. Mar 13 11:08:40 linux1 xinetd[9509]: Started working: 1 available service Mar 13 11:08:46 linux1 xinetd[9509]: Exiting... netscsid nroff netstat nslookup network-admin nstat newaliases nsupdate [root@linux1:~]# man nc Переформатирование nc(1), подождите... NC(1) NC(1) |
#/etc/init.d/xinetd start
various modes. If you believe that it is doing the wrong thing under whatever circumstances, please notify me and tell me how you think it should behave. If netcat is not able to do some task you think up, minor tweaks to the code will probably fix that. It provides a basic and easily-modified template for writing other network applications, and I certainly encourage people to make custom mods and send in any improvements they make to it. Continued feedback from the Internet [root@linux1:~]# [root@linux1:~]# [root@linux1:~]# Starting internet superserver: xinetd^[[A. netscsid nroff netstat nslookup network-admin nstat newaliases nsupdate [root@linux1:~]# man nc Переформатирование nc(1), подождите... NC(1) NC(1) |
#tail -20 /var/log/daemon.log
Mar 13 11:08:40 linux1 xinetd[9509]: xinetd Version 2.3.14 started with libwrap loadavg options compiled in. Mar 13 11:08:40 linux1 xinetd[9509]: Started working: 1 available service Mar 13 11:08:46 linux1 xinetd[9509]: Exiting... Mar 13 11:10:04 linux1 xinetd[9623]: Reading included configuration file: /etc/xinetd.d/chargen [file=/etc/xinetd.conf] [line=25] Mar 13 11:10:04 linux1 xinetd[9623]: Reading included configuration file: /etc/xinetd.d/daytime [file=/etc/xinetd.d/daytime] [line=28] Mar 13 11:10:04 linux1 xinetd[9623]: Reading included configuration file: /etc/xinetd.d/discard [file=/etc/xinetd.d/discard] [line=26] Mar 13 11:10:04 linux1 xinetd[9623]: Reading included configuration file: /etc/xinetd.d/echo [file=/etc/xinetd.d/echo] [line=25] Mar 13 11:10:04 linux1 xinetd[9623]: Reading included configuration file: /etc/xinetd.d/time [file=/etc/xinetd.d/time] [line=26] Mar 13 11:10:04 linux1 xinetd[9623]: removing chargen Mar 13 11:10:04 linux1 xinetd[9623]: removing chargen Mar 13 11:10:04 linux1 xinetd[9623]: removing daytime Mar 13 11:10:04 linux1 xinetd[9623]: removing daytime Mar 13 11:10:04 linux1 xinetd[9623]: removing discard Mar 13 11:10:04 linux1 xinetd[9623]: removing discard Mar 13 11:10:04 linux1 xinetd[9623]: removing echo Mar 13 11:10:04 linux1 xinetd[9623]: removing echo Mar 13 11:10:04 linux1 xinetd[9623]: removing time Mar 13 11:10:04 linux1 xinetd[9623]: removing time Mar 13 11:10:04 linux1 xinetd[9623]: xinetd Version 2.3.14 started with libwrap loadavg options compiled in. Mar 13 11:10:04 linux1 xinetd[9623]: Started working: 1 available service |
#tail -20 /var/log/daemon.log
Mar 13 11:08:40 linux1 xinetd[9509]: xinetd Version 2.3.14 started with libwrap loadavg options compiled in. Mar 13 11:08:40 linux1 xinetd[9509]: Started working: 1 available service Mar 13 11:08:46 linux1 xinetd[9509]: Exiting... Mar 13 11:10:04 linux1 xinetd[9623]: Reading included configuration file: /etc/xinetd.d/chargen [file=/etc/xinetd.conf] [line=25] Mar 13 11:10:04 linux1 xinetd[9623]: Reading included configuration file: /etc/xinetd.d/daytime [file=/etc/xinetd.d/daytime] [line=28] Mar 13 11:10:04 linux1 xinetd[9623]: Reading included configuration file: /etc/xinetd.d/discard [file=/etc/xinetd.d/discard] [line=26] Mar 13 11:10:04 linux1 xinetd[9623]: Reading included configuration file: /etc/xinetd.d/echo [file=/etc/xinetd.d/echo] [line=25] Mar 13 11:10:04 linux1 xinetd[9623]: Reading included configuration file: /etc/xinetd.d/time [file=/etc/xinetd.d/time] [line=26] Mar 13 11:10:04 linux1 xinetd[9623]: removing chargen Mar 13 11:10:04 linux1 xinetd[9623]: removing chargen Mar 13 11:10:04 linux1 xinetd[9623]: removing daytime Mar 13 11:10:04 linux1 xinetd[9623]: removing daytime Mar 13 11:10:04 linux1 xinetd[9623]: removing discard Mar 13 11:10:04 linux1 xinetd[9623]: removing discard Mar 13 11:10:04 linux1 xinetd[9623]: removing echo Mar 13 11:10:04 linux1 xinetd[9623]: removing echo Mar 13 11:10:04 linux1 xinetd[9623]: removing time Mar 13 11:10:04 linux1 xinetd[9623]: removing time Mar 13 11:10:04 linux1 xinetd[9623]: xinetd Version 2.3.14 started with libwrap loadavg options compiled in. Mar 13 11:10:04 linux1 xinetd[9623]: Started working: 1 available service |
#tail -20 /var/log/daemon.log
Mar 13 11:10:04 linux1 xinetd[9623]: removing chargen Mar 13 11:10:04 linux1 xinetd[9623]: removing daytime Mar 13 11:10:04 linux1 xinetd[9623]: removing daytime Mar 13 11:10:04 linux1 xinetd[9623]: removing discard Mar 13 11:10:04 linux1 xinetd[9623]: removing discard Mar 13 11:10:04 linux1 xinetd[9623]: removing echo Mar 13 11:10:04 linux1 xinetd[9623]: removing echo Mar 13 11:10:04 linux1 xinetd[9623]: removing time Mar 13 11:10:04 linux1 xinetd[9623]: removing time Mar 13 11:10:04 linux1 xinetd[9623]: xinetd Version 2.3.14 started with libwrap loadavg options compiled in. Mar 13 11:10:04 linux1 xinetd[9623]: Started working: 1 available service netscsid nroff netstat nslookup network-admin nstat newaliases nsupdate [root@linux1:~]# man nc Переформатирование nc(1), подождите... NC(1) NC(1) |
#tail -20 /var/log/daemon.log
Mar 13 11:08:40 linux1 xinetd[9509]: xinetd Version 2.3.14 started with libwrap loadavg options compiled in. Mar 13 11:08:40 linux1 xinetd[9509]: Started working: 1 available service Mar 13 11:08:46 linux1 xinetd[9509]: Exiting... Mar 13 11:10:04 linux1 xinetd[9623]: Reading included configuration file: /etc/xinetd.d/chargen [file=/etc/xinetd.conf] [line=25] Mar 13 11:10:04 linux1 xinetd[9623]: Reading included configuration file: /etc/xinetd.d/daytime [file=/etc/xinetd.d/daytime] [line=28] Mar 13 11:10:04 linux1 xinetd[9623]: Reading included configuration file: /etc/xinetd.d/discard [file=/etc/xinetd.d/discard] [line=26] Mar 13 11:10:04 linux1 xinetd[9623]: Reading included configuration file: /etc/xinetd.d/echo [file=/etc/xinetd.d/echo] [line=25] Mar 13 11:10:04 linux1 xinetd[9623]: Reading included configuration file: /etc/xinetd.d/time [file=/etc/xinetd.d/time] [line=26] Mar 13 11:10:04 linux1 xinetd[9623]: removing chargen Mar 13 11:10:04 linux1 xinetd[9623]: removing chargen Mar 13 11:10:04 linux1 xinetd[9623]: removing daytime Mar 13 11:10:04 linux1 xinetd[9623]: removing daytime Mar 13 11:10:04 linux1 xinetd[9623]: removing discard Mar 13 11:10:04 linux1 xinetd[9623]: removing discard Mar 13 11:10:04 linux1 xinetd[9623]: removing echo Mar 13 11:10:04 linux1 xinetd[9623]: removing echo Mar 13 11:10:04 linux1 xinetd[9623]: removing time Mar 13 11:10:04 linux1 xinetd[9623]: removing time Mar 13 11:10:04 linux1 xinetd[9623]: xinetd Version 2.3.14 started with libwrap loadavg options compiled in. Mar 13 11:10:04 linux1 xinetd[9623]: Started working: 1 available service |
#netstat -lnp | grep :333
|
#netstat -lnp | grep xinetd
tcp 0 0 0.0.0.0:22222 0.0.0.0:* LISTEN 9623/xinetd |
#netstat -lnp | grep :222
tcp 0 0 0.0.0.0:22222 0.0.0.0:* LISTEN 9623/xinetd |
#telnet 127.0.0.1 22222
minor tweaks to the code will probably fix that. It provides a basic and easily-modified template for writing other network applications, and I certainly encourage people to make custom mods and send in any improvements they make to it. Continued feedback from the Internet [root@linux1:~]# [root@linux1:~]# [root@linux1:~]# Trying 127.0.0.1... Connected to 127.0.0.1. Escape character is '^]'. Connection closed by foreign host. netscsid nroff netstat nslookup network-admin nstat newaliases nsupdate [root@linux1:~]# man nc Переформатирование nc(1), подождите... NC(1) NC(1) |
#vim /etc/hosts.allow
12a13 > ALL: ALL |
#telnet 127.0.0.1 22222
Trying 127.0.0.1... Connected to 127.0.0.1. Escape character is '^]'. 2+2# 4 }q (standard_in) 2: parse error (standard_in) 2: illegal character: ^M ^] telnet> q Connection closed. netscsid nroff netstat nslookup network-admin nstat newaliases nsupdate [root@linux1:~]# man nc Переформатирование nc(1), подождите... NC(1) NC(1) |
#vim /etc/hosts.deny
20c20 < ALL: ALL --- > #ALL: ALL |
#vim /etc/hosts.allow
13c13 < ALL: ALL --- > ALL: ALL: deny |
#telnet 127.0.0.1 22222
Trying 127.0.0.1... Connected to 127.0.0.1. Escape character is '^]'. Connection closed by foreign host. |
#vim /etc/hosts.allow
13c13 < ALL: ALL: deny --- > ALL: ALL EXEPT LOCAL : deny |
#tail -20 /var/log/daemon.log
Mar 13 11:08:46 linux1 xinetd[9509]: Exiting... Mar 13 11:10:04 linux1 xinetd[9623]: Reading included configuration file: /etc/xinetd.d/chargen [file=/etc/xinetd.conf] [line=25] Mar 13 11:10:04 linux1 xinetd[9623]: Reading included configuration file: /etc/xinetd.d/daytime [file=/etc/xinetd.d/daytime] [line=28] Mar 13 11:10:04 linux1 xinetd[9623]: Reading included configuration file: /etc/xinetd.d/discard [file=/etc/xinetd.d/discard] [line=26] Mar 13 11:10:04 linux1 xinetd[9623]: Reading included configuration file: /etc/xinetd.d/echo [file=/etc/xinetd.d/echo] [line=25] Mar 13 11:10:04 linux1 xinetd[9623]: Reading included configuration file: /etc/xinetd.d/time [file=/etc/xinetd.d/time] [line=26] Mar 13 11:10:04 linux1 xinetd[9623]: removing chargen Mar 13 11:10:04 linux1 xinetd[9623]: removing chargen Mar 13 11:10:04 linux1 xinetd[9623]: removing daytime Mar 13 11:10:04 linux1 xinetd[9623]: removing daytime Mar 13 11:10:04 linux1 xinetd[9623]: removing discard Mar 13 11:10:04 linux1 xinetd[9623]: removing discard Mar 13 11:10:04 linux1 xinetd[9623]: removing echo Mar 13 11:10:04 linux1 xinetd[9623]: removing echo Mar 13 11:10:04 linux1 xinetd[9623]: removing time Mar 13 11:10:04 linux1 xinetd[9623]: removing time Mar 13 11:10:04 linux1 xinetd[9623]: xinetd Version 2.3.14 started with libwrap loadavg options compiled in. Mar 13 11:10:04 linux1 xinetd[9623]: Started working: 1 available service Mar 13 11:10:35 linux1 xinetd[9687]: libwrap refused connection to calc (libwrap=bc) from 127.0.0.1 Mar 13 11:11:55 linux1 xinetd[9782]: libwrap refused connection to calc (libwrap=bc) from 127.0.0.1 |
#ldd /usr/sbin/inetd
and easily-modified template for writing other network applications, and I certainly encourage people to make custom mods and send in any improvements they make to it. Continued feedback from the Internet [root@linux1:~]# [root@linux1:~]# [root@linux1:~]# linux-gate.so.1 => (0xffffe000) libwrap.so.0 => /lib/libwrap.so.0 (0xb7f0e000) libc.so.6 => /lib/tls/i686/cmov/libc.so.6 (0xb7ddd000) libnsl.so.1 => /lib/tls/i686/cmov/libnsl.so.1 (0xb7dc6000) /lib/ld-linux.so.2 (0xb7f25000) netscsid nroff netstat nslookup network-admin nstat newaliases nsupdate [root@linux1:~]# man nc Переформатирование nc(1), подождите... NC(1) NC(1) |
#ldd /usr/sbin/xinetd
improvements they make to it. Continued feedback from the Internet [root@linux1:~]# [root@linux1:~]# [root@linux1:~]# linux-gate.so.1 => (0xffffe000) libwrap.so.0 => /lib/libwrap.so.0 (0xb7f54000) libnsl.so.1 => /lib/tls/i686/cmov/libnsl.so.1 (0xb7f3e000) libm.so.6 => /lib/tls/i686/cmov/libm.so.6 (0xb7f18000) libcrypt.so.1 => /lib/tls/i686/cmov/libcrypt.so.1 (0xb7eea000) libc.so.6 => /lib/tls/i686/cmov/libc.so.6 (0xb7db9000) /lib/ld-linux.so.2 (0xb7f6b000) netscsid nroff netstat nslookup network-admin nstat newaliases nsupdate [root@linux1:~]# man nc Переформатирование nc(1), подождите... NC(1) NC(1) |
#vim /etc/hosts.allow
|
#telnet 127.0.0.1 22222
Trying 127.0.0.1... Connected to 127.0.0.1. Escape character is '^]'. Connection closed by foreign host. |
#vim /etc/hosts.allow
12a13 > calc: LOCAL# 14d14 < # |
#vim /etc/hosts.allow
30c30 < --- > bc dgram udp wait root /usr/bin/bc |
#telnet 127.0.0.1 22222
minor tweaks to the code will probably fix that. It provides a basic and easily-modified template for writing other network applications, and I certainly encourage people to make custom mods and send in any improvements they make to it. Continued feedback from the Internet [root@linux1:~]# [root@linux1:~]# [root@linux1:~]# Trying 127.0.0.1... Connected to 127.0.0.1. Escape character is '^]'. Connection closed by foreign host. netscsid nroff netstat nslookup network-admin nstat newaliases nsupdate [root@linux1:~]# man nc Переформатирование nc(1), подождите... NC(1) NC(1) |
#vim /etc/hosts.allow
14c14 < ALL: ALL EXEPT LOCAL : deny --- > ALL: ALL : deny |
#telnet 127.0.0.1 22222
Trying 127.0.0.1... Connected to 127.0.0.1. Escape character is '^]'. Connection closed by foreign host. |
#vim /etc/hosts.allow
14c14 < ALL: ALL : deny --- > ALL: EXEPT LOCAL : deny |
#telnet 127.0.0.1 22222
Trying 127.0.0.1... Connected to 127.0.0.1. Escape character is '^]'. Connection closed by foreign host. |
Время первой команды журнала | 10:52:23 2007- 3-13 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
Время последней команды журнала | 11:17:10 2007- 3-13 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в журнале | 101 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент команд с ненулевым кодом завершения, % | 39.60 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент синтаксически неверно набранных команд, % | 0.00 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
Суммарное время работы с терминалом *, час | 0.41 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в единицу времени, команда/мин | 4.08 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду w. В поле WHAT, соответствующем текущему терминалу, должна быть указана программа script.
Команды, при наборе которых были допущены синтаксические ошибки, выводятся перечёркнутым текстом:
$ l s-l bash: l: command not found |
Если код завершения команды равен нулю, команда была выполнена без ошибок. Команды, код завершения которых отличен от нуля, выделяются цветом.
$ test 5 -lt 4 |
Команды, ход выполнения которых был прерван пользователем, выделяются цветом.
$ find / -name abc find: /home/devi-orig/.gnome2: Keine Berechtigung find: /home/devi-orig/.gnome2_private: Keine Berechtigung find: /home/devi-orig/.nautilus/metafiles: Keine Berechtigung find: /home/devi-orig/.metacity: Keine Berechtigung find: /home/devi-orig/.inkscape: Keine Berechtigung ^C |
Команды, выполненные с привилегиями суперпользователя, выделяются слева красной чертой.
# id uid=0(root) gid=0(root) Gruppen=0(root) |
Изменения, внесённые в текстовый файл с помощью редактора, запоминаются и показываются в журнале в формате ed. Строки, начинающиеся символом "<", удалены, а строки, начинающиеся символом ">" -- добавлены.
$ vi ~/.bashrc
|
Для того чтобы изменить файл в соответствии с показанными в диффшоте изменениями, можно воспользоваться командой patch. Нужно скопировать изменения, запустить программу patch, указав в качестве её аргумента файл, к которому применяются изменения, и всавить скопированный текст:
$ patch ~/.bashrc |
Для того чтобы получить краткую справочную информацию о команде, нужно подвести к ней мышь. Во всплывающей подсказке появится краткое описание команды.
Если справочная информация о команде есть, команда выделяется голубым фоном, например: vi. Если справочная информация отсутствует, команда выделяется розовым фоном, например: notepad.exe. Справочная информация может отсутствовать в том случае, если (1) команда введена неверно; (2) если распознавание команды LiLaLo выполнено неверно; (3) если информация о команде неизвестна LiLaLo. Последнее возможно для редких команд.
Большие, в особенности многострочные, всплывающие подсказки лучше всего показываются браузерами KDE Konqueror, Apple Safari и Microsoft Internet Explorer. В браузерах Mozilla и Firefox они отображаются не полностью, а вместо перевода строки выводится специальный символ.
Время ввода команды, показанное в журнале, соответствует времени начала ввода командной строки, которое равно тому моменту, когда на терминале появилось приглашение интерпретатора
Имя терминала, на котором была введена команда, показано в специальном блоке. Этот блок показывается только в том случае, если терминал текущей команды отличается от терминала предыдущей.
Вывод не интересующих вас в настоящий момент элементов журнала, таких как время, имя терминала и других, можно отключить. Для этого нужно воспользоваться формой управления журналом вверху страницы.
Небольшие комментарии к командам можно вставлять прямо из командной строки. Комментарий вводится прямо в командную строку, после символов #^ или #v. Символы ^ и v показывают направление выбора команды, к которой относится комментарий: ^ - к предыдущей, v - к следующей. Например, если в командной строке было введено:
$ whoami
user
$ #^ Интересно, кто я?в журнале это будет выглядеть так:
$ whoami
user
Интересно, кто я? |
Если комментарий содержит несколько строк, его можно вставить в журнал следующим образом:
$ whoami
user
$ cat > /dev/null #^ Интересно, кто я?
Программа whoami выводит имя пользователя, под которым мы зарегистрировались в системе. - Она не может ответить на вопрос о нашем назначении в этом мире.В журнале это будет выглядеть так:
$ whoami user
|
Комментарии, не относящиеся непосредственно ни к какой из команд, добавляются точно таким же способом, только вместо симолов #^ или #v нужно использовать символы #=
1 2 3 4Группы команд, выполненных на разных терминалах, разделяются специальной линией. Под этой линией в правом углу показано имя терминала, на котором выполнялись команды. Для того чтобы посмотреть команды только одного сенса, нужно щёкнуть по этому названию.
LiLaLo (L3) расшифровывается как Live Lab Log.
Программа разработана для повышения эффективности обучения Unix/Linux-системам.
(c) Игорь Чубин, 2004-2008