/l3/users/11-02-2013/NT-Lnet/debian1.net.nt/root :1 :2 |
|
#vim /etc/network/interfaces
--- /tmp/l3-saved-1432.9263.11764 2013-02-12 14:43:07.000000000 +0200 +++ /etc/network/interfaces 2013-02-12 14:47:16.000000000 +0200 @@ -7,10 +7,10 @@ netmask 255.255.255.0 gateway 192.168.13.253 -auto eth2 -iface eth2 inet static - address 172.32.12.1 - netmask 255.255.255.0 -post-up route add -net 192.168.168.0/27 gw 172.32.12.5 -post-up route add -net 172.22.0.0/29 gw 172.32.12.5 -post-up route add -net 172.17.12.0/24 gw 172.32.12.5 +#auto eth2 +#iface eth2 inet static +# address 172.32.12.1 +# netmask 255.255.255.0 +#post-up route add -net 192.168.168.0/27 gw 172.32.12.5 +#post-up route add -net 172.22.0.0/29 gw 172.32.12.5 +#post-up route add -net 172.17.12.0/24 gw 172.32.12.5 |
#service networking restart
Running /etc/init.d/networking restart is deprecated because it may not enable again some interfaces ... (warning). Reconfiguring network interfaces...Ignoring unknown interface eth2=eth2. done. |
#ifconfig
eth0 Link encap:Ethernet HWaddr 00:16:3e:00:00:01 inet addr:192.168.13.1 Bcast:192.168.13.255 Mask:255.255.255.0 inet6 addr: fe80::216:3eff:fe00:1/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:2301 errors:0 dropped:0 overruns:0 frame:0 TX packets:4714 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:160010 (156.2 KiB) TX bytes:587214 (573.4 KiB) Interrupt:72 eth2 Link encap:Ethernet HWaddr 00:16:3e:00:02:01 ... RX bytes:381299 (372.3 KiB) TX bytes:13582 (13.2 KiB) Interrupt:74 lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:8 errors:0 dropped:0 overruns:0 frame:0 TX packets:8 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:560 (560.0 B) TX bytes:560 (560.0 B) |
#ifdown eth2
ifdown: interface eth2 not configured |
#ifconfig
eth0 Link encap:Ethernet HWaddr 00:16:3e:00:00:01 inet addr:192.168.13.1 Bcast:192.168.13.255 Mask:255.255.255.0 inet6 addr: fe80::216:3eff:fe00:1/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:2373 errors:0 dropped:0 overruns:0 frame:0 TX packets:4797 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:164410 (160.5 KiB) TX bytes:597832 (583.8 KiB) Interrupt:72 eth2 Link encap:Ethernet HWaddr 00:16:3e:00:02:01 ... RX bytes:381403 (372.4 KiB) TX bytes:13668 (13.3 KiB) Interrupt:74 lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:8 errors:0 dropped:0 overruns:0 frame:0 TX packets:8 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:560 (560.0 B) TX bytes:560 (560.0 B) |
#ifconfig eth2 down
|
#ifconfig
eth0 Link encap:Ethernet HWaddr 00:16:3e:00:00:01 inet addr:192.168.13.1 Bcast:192.168.13.255 Mask:255.255.255.0 inet6 addr: fe80::216:3eff:fe00:1/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:2426 errors:0 dropped:0 overruns:0 frame:0 TX packets:4862 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:167462 (163.5 KiB) TX bytes:606798 (592.5 KiB) Interrupt:72 lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:8 errors:0 dropped:0 overruns:0 frame:0 TX packets:8 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:560 (560.0 B) TX bytes:560 (560.0 B) |
#service networking restart
Running /etc/init.d/networking restart is deprecated because it may not enable again some interfaces ... (warning). Reconfiguring network interfaces...done. |
#ifconfig
eth0 Link encap:Ethernet HWaddr 00:16:3e:00:00:01 inet addr:192.168.13.1 Bcast:192.168.13.255 Mask:255.255.255.0 inet6 addr: fe80::216:3eff:fe00:1/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:2514 errors:0 dropped:0 overruns:0 frame:0 TX packets:4937 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:173270 (169.2 KiB) TX bytes:616708 (602.2 KiB) Interrupt:72 lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:8 errors:0 dropped:0 overruns:0 frame:0 TX packets:8 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:560 (560.0 B) TX bytes:560 (560.0 B) |
#dpkg -l | grep xinet
|
#apt-get install xinetd
ЧÑение ÑпиÑков пакеÑов... ÐоÑово ÐоÑÑÑоение деÑева завиÑимоÑÑей ЧÑение инÑоÑмаÑии о ÑоÑÑоÑнии... ÐоÑово ÐакеÑÑ, коÑоÑÑе бÑдÑÑ Ð£ÐÐÐ nbsd-inetd ÐÐÐЫРпакеÑÑ, коÑоÑÑе бÑдÑÑ ÑÑÑановленÑ: xinetd обновлено 0, ÑÑÑановлено 1 новÑÑ Ð¿Ð°ÐºÐµÑов, Ð´Ð»Ñ ÑÐ´Ð°Ð»ÐµÐ½Ð¸Ñ Ð¾ÑмеÑено 1 пакеÑов, и 0 пакеÑов не обновлено. ÐÐµÐ¾Ð±Ñ Ð¾Ð´Ð¸Ð¼Ð¾ ÑкаÑаÑÑ 136 kРаÑÑ Ð¸Ð²Ð¾Ð². ÐоÑле данной опеÑаÑии, обÑÑм занÑÑого диÑкового пÑоÑÑÑанÑÑва возÑаÑÑÑÑ Ð½Ð° 172 kB. ... УдалÑеÑÑÑ Ð¿Ð°ÐºÐµÑ openbsd-inetd ... Stopping internet superserver: inetd. ÐбÑабаÑÑваÑÑÑÑ ÑÑиггеÑÑ Ð´Ð»Ñ man-db ... ÐÑÐ±Ð¾Ñ Ñанее не вÑбÑанного пакеÑа xinetd. (ЧÑение Ð±Ð°Ð·Ñ Ð´Ð°Ð½Ð½ÑÑ ... на даннÑй Ð¼Ð¾Ð¼ÐµÐ½Ñ ÑÑÑановлено 32817 Ñайлов и каÑалогов.) РаÑпаковÑваеÑÑÑ Ð¿Ð°ÐºÐµÑ xinetd (из Ñайла .../xinetd_1%3a2.3.14-7_i386.deb)... ÐбÑабаÑÑваÑÑÑÑ ÑÑиггеÑÑ Ð´Ð»Ñ man-db ... ÐаÑÑÑаиваеÑÑÑ Ð¿Ð°ÐºÐµÑ xinetd (1:2.3.14-7) ... Stopping internet superserver: xinetd. Starting internet superserver: xinetd. |
#ps waux | grep inet
root 1829 0.0 0.1 2448 804 ? Ss 15:04 0:00 /usr/sbin/xinetd -pidfile /var/run/xinetd.pid -stayalive -inetd_compat -inetd_ipv6 root 1841 0.0 0.1 5076 736 pts/1 S+ 15:05 0:00 grep inet |
#top
top - 15:06:55 up 5:22, 1 user, load average: 0.01, 0.03, 0.05 Tasks: 57 total, 1 running, 56 sleeping, 0 stopped, 0 zombie Cpu(s): 0.0%us, 0.0%sy, 0.0%ni, 99.4%id, 0.5%wa, 0.0%hi, 0.0%si, 0.0%st Unknown command - try 'h' for help Mem: 513672k total, 215596k used, 298076k free, 102820k buffers PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND Swap: 688124k total, 0k used, 688124k free, 64116k cached 1 root 20 0 2084 700 604 S 0.0 0.1 0:01.75 init 2 root 20 0 0 0 0 S 0.0 0.0 0:00.00 kthreadd 3 root 20 0 0 0 0 S 0.0 0.0 0:00.07 ksoftirqd/0 ... 11 root 20 0 0 0 0 S 0.0 0.0 0:00.00 xenwatch 12 root 20 0 0 0 0 S 0.0 0.0 0:00.03 xenbus 13 root 20 0 0 0 0 S 0.0 0.0 0:00.02 sync_supers 14 root 20 0 0 0 0 S 0.0 0.0 0:00.00 bdi-default 15 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 kintegrityd 16 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 kblockd 17 root 20 0 0 0 0 S 0.0 0.0 0:00.04 kworker/0:1 18 root 20 0 0 0 0 S 0.0 0.0 0:00.00 khungtaskd 19 root 20 0 0 0 0 S 0.0 0.0 0:00.02 kswapd0 20 root 25 5 0 0 0 S 0.0 0.0 0:00.00 ksmd |
#ls -l /etc/init.d/xinetd
-rwxr-xr-x 1 root root 2063 Мар 26 2008 /etc/init.d/xinetd |
#ls /usr/local/etc/
|
#ls -l /usr/local/etc/
итого 0 |
#mkdir /usr/local/etc/xinet.d
|
#vim /etc/xinetd.conf
--- /tmp/l3-saved-1432.11079.26357 2013-02-12 15:11:00.000000000 +0200 +++ /etc/xinetd.conf 2013-02-12 15:11:50.000000000 +0200 @@ -12,3 +12,4 @@ } includedir /etc/xinetd.d +includedir /usr/local/etc/xinet.d |
#vim /etc/inetd.conf
|
#cp /etc/xinetd.conf{,.def}
|
#ls /etc/xinetd.*
/etc/xinetd.conf /etc/xinetd.conf.def /etc/xinetd.d: chargen daytime discard echo time |
#service xinetd restart
Stopping internet superserver: xinetd. Starting internet superserver: xinetd. |
#echo $?
0 |
#vim /etc/xinetd.conf
|
#tail -f /var/log/messages
Feb 12 09:44:22 debian1 kernel: [ 6.546452] ACPI: Sleep Button [SLPF] Feb 12 09:44:22 debian1 kernel: [ 6.554970] input: PC Speaker as /devices/platform/pcspkr/input/input3 Feb 12 09:44:22 debian1 kernel: [ 6.789755] parport_pc 00:0b: reported by Plug and Play ACPI Feb 12 09:44:22 debian1 kernel: [ 6.790588] parport0: PC-style at 0x378, irq 7 [PCSPP,TRISTATE] Feb 12 09:44:22 debian1 kernel: [ 7.156954] input: ImExPS/2 Generic Explorer Mouse as /devices/platform/i8042/serio1/input/input4 Feb 12 09:44:22 debian1 kernel: [ 9.599245] Adding 688124k swap on /dev/xvda5. Priority:-1 extents:1 across:688124k SS Feb 12 09:44:22 debian1 kernel: [ 9.766135] EXT3-fs (xvda1): using internal journal Feb 12 09:44:22 debian1 kernel: [ 9.983858] loop: module loaded Feb 12 09:44:25 debian1 kernel: [ 14.584722] sshd (1177): /proc/1177/oom_adj is deprecated, please use /proc/1177/oom_score_adj instead. Feb 12 09:50:45 debian1 rsyslogd: [origin software="rsyslogd" swVersion="4.6.4" x-pid="850" x-info="http://www.rsyslog.com"] rsyslogd was HUPed, type 'lightweight'. ^C |
#cd /usr/local/etc/xinet.d/
|
#vim chargen
--- /dev/null 2013-02-12 11:44:17.260000001 +0200 +++ chargen 2013-02-12 15:25:42.000000000 +0200 @@ -0,0 +1,10 @@ +service chargen +{ + type = INTRNAL + id = chargen-stream + socket_type = stream + protocol = tcp + user = root + wait = no + disable = no +} |
#killall -1 xinetd
|
#netstat -npl
Active Internet connections (only servers) Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name tcp 0 0 0.0.0.0:34568 0.0.0.0:* LISTEN 701/rpc.statd tcp 0 0 0.0.0.0:111 0.0.0.0:* LISTEN 689/portmap tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 1656/sshd tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN 1188/exim4 tcp 0 0 127.0.0.1:6010 0.0.0.0:* LISTEN 1215/0 tcp6 0 0 :::22 :::* LISTEN 1656/sshd tcp6 0 0 ::1:25 :::* LISTEN 1188/exim4 tcp6 0 0 ::1:6010 :::* LISTEN 1215/0 udp 0 0 0.0.0.0:877 0.0.0.0:* 701/rpc.statd udp 0 0 0.0.0.0:111 0.0.0.0:* 689/portmap udp 0 0 0.0.0.0:33190 0.0.0.0:* 701/rpc.statd Active UNIX domain sockets (only servers) Proto RefCnt Flags Type State I-Node PID/Program name Path unix 2 [ ACC ] STREAM LISTENING 3677 875/acpid /var/run/acpid.socket |
#service xinetd status
Usage: /etc/init.d/xinetd {start|stop|reload|force-reload|restart} |
#service xinetd start
Starting internet superserver: xinetd failed! |
#tail -f /var/log/daemon.log
Feb 12 15:04:23 debian1 xinetd[1829]: removing time Feb 12 15:04:23 debian1 xinetd[1829]: removing time Feb 12 15:04:23 debian1 xinetd[1829]: xinetd Version 2.3.14 started with libwrap loadavg options compiled in. Feb 12 15:04:23 debian1 xinetd[1829]: Started working: 0 available services Feb 12 15:14:55 debian1 xinetd[1829]: Exiting... Feb 12 15:14:55 debian1 xinetd[2060]: xinetd Version 2.3.14 started with libwrap loadavg options compiled in. Feb 12 15:14:55 debian1 xinetd[2060]: Started working: 0 available services Feb 12 15:26:01 debian1 xinetd[2060]: Starting reconfiguration Feb 12 15:26:01 debian1 xinetd[2060]: Swapping defaults Feb 12 15:26:01 debian1 xinetd[2060]: Reconfigured: new=0 old=0 dropped=0 (services) ^C |
#~
xinetd.conf xinetd.conf.def xinetd.d/ |
#vim /etc/xinetd.conf
--- /tmp/l3-saved-1432.22945.31342 2013-02-12 15:28:52.000000000 +0200 +++ /etc/xinetd.conf 2013-02-12 15:29:56.000000000 +0200 @@ -34,4 +34,4 @@ # have to a specific service. per_source = 5 } - +includedir /usr/local/etc/xinet.d |
#tail -f /var/log/daemon.log
Feb 12 15:04:23 debian1 xinetd[1829]: removing time Feb 12 15:04:23 debian1 xinetd[1829]: removing time Feb 12 15:04:23 debian1 xinetd[1829]: xinetd Version 2.3.14 started with libwrap loadavg options compiled in. Feb 12 15:04:23 debian1 xinetd[1829]: Started working: 0 available services Feb 12 15:14:55 debian1 xinetd[1829]: Exiting... Feb 12 15:14:55 debian1 xinetd[2060]: xinetd Version 2.3.14 started with libwrap loadavg options compiled in. Feb 12 15:14:55 debian1 xinetd[2060]: Started working: 0 available services Feb 12 15:26:01 debian1 xinetd[2060]: Starting reconfiguration Feb 12 15:26:01 debian1 xinetd[2060]: Swapping defaults Feb 12 15:26:01 debian1 xinetd[2060]: Reconfigured: new=0 old=0 dropped=0 (services) :q ^[[A^C |
#tail -f /var/log/daemon.log
Feb 12 15:04:23 debian1 xinetd[1829]: removing time Feb 12 15:04:23 debian1 xinetd[1829]: removing time Feb 12 15:04:23 debian1 xinetd[1829]: xinetd Version 2.3.14 started with libwrap loadavg options compiled in. Feb 12 15:04:23 debian1 xinetd[1829]: Started working: 0 available services Feb 12 15:14:55 debian1 xinetd[1829]: Exiting... Feb 12 15:14:55 debian1 xinetd[2060]: xinetd Version 2.3.14 started with libwrap loadavg options compiled in. Feb 12 15:14:55 debian1 xinetd[2060]: Started working: 0 available services Feb 12 15:26:01 debian1 xinetd[2060]: Starting reconfiguration Feb 12 15:26:01 debian1 xinetd[2060]: Swapping defaults Feb 12 15:26:01 debian1 xinetd[2060]: Reconfigured: new=0 old=0 dropped=0 (services) ^C |
#tail -f /var/log/messages
Feb 12 09:44:22 debian1 kernel: [ 6.546452] ACPI: Sleep Button [SLPF] Feb 12 09:44:22 debian1 kernel: [ 6.554970] input: PC Speaker as /devices/platform/pcspkr/input/input3 Feb 12 09:44:22 debian1 kernel: [ 6.789755] parport_pc 00:0b: reported by Plug and Play ACPI Feb 12 09:44:22 debian1 kernel: [ 6.790588] parport0: PC-style at 0x378, irq 7 [PCSPP,TRISTATE] Feb 12 09:44:22 debian1 kernel: [ 7.156954] input: ImExPS/2 Generic Explorer Mouse as /devices/platform/i8042/serio1/input/input4 Feb 12 09:44:22 debian1 kernel: [ 9.599245] Adding 688124k swap on /dev/xvda5. Priority:-1 extents:1 across:688124k SS Feb 12 09:44:22 debian1 kernel: [ 9.766135] EXT3-fs (xvda1): using internal journal Feb 12 09:44:22 debian1 kernel: [ 9.983858] loop: module loaded Feb 12 09:44:25 debian1 kernel: [ 14.584722] sshd (1177): /proc/1177/oom_adj is deprecated, please use /proc/1177/oom_score_adj instead. Feb 12 09:50:45 debian1 rsyslogd: [origin software="rsyslogd" swVersion="4.6.4" x-pid="850" x-info="http://www.rsyslog.com"] rsyslogd was HUPed, type 'lightweight'. :q ^C |
#pwd
/usr/local/etc/xinet.d |
#cd ..
|
#mv -r xinet.d xinetd.d/
mv: неверный ключ -- r Попробуйте `mv --help' для получения более подробного описания. |
#mv xinet.d xinetd.d/
|
#ls
xinetd.d |
#includedir /usr/local/etc/xinetd.d
|
#ps waux | grep inet
root 2060 0.0 0.1 2328 596 ? Ss 15:14 0:00 /usr/sbin/xinetd -pidfile /var/run/xinetd.pid -stayalive -inetd_compat -inetd_ipv6 root 2534 0.0 0.1 2448 828 ? Ss 15:35 0:00 xinetd root 2544 0.0 0.1 5076 736 pts/1 S+ 15:35 0:00 grep inet |
#service xinetd restart
Stopping internet superserver: xinetd. Starting internet superserver: xinetd. |
#su user -c telnet 127.0.0.1 chargen
telnet> quit |
#telnet 127.0.0.1 chargen
Trying 127.0.0.1... Connected to 127.0.0.1. Escape character is '^]'. !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefgh "#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghi #$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghij $%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijk %&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijkl &'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklm '()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmn ... XYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}!"#$%&'()*+,-./0123456789:;<=>?@AB YZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}!"#$%&'()*+,-./0123456789:;<=>?@ABC Z[\]^_`abcdefghijklmnopqrstuvwxyz{|}!"#$%&'()*+,-./0123456789:;<=>?@ABCD [\]^_`abcdefghijklmnopqrstuvwxyz{|}!"#$%&'()*+,-./0123456789:;<=>?@ABCDE \]^_`abcdefghijklmnopqrstuvwxyz{|}!"#$%&'()*+,-./0123456789:;<=>?@ABCDEF ]^_`abcdefghijklmnopqrstuvwxyz{|}!"#$%&'()*+,-./0123456789:;<=>?@ABCDEFG ^_`abcdefghijklmnopqrstuvwxyz{|}!"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGH _`abcdefghijklmnopqrstuvwxyz{|}!"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHI^[[B^[[A^[^] telnet> quit Connection closed. |
#nc 127.0.0.1:19
127.0.0.1:19: forward host lookup failed: Unknown host |
#netcat 127.0.0.1:19
127.0.0.1:19: forward host lookup failed: Unknown host |
#man killall
|
#nc
Cmd line: ^C |
#nc localhost:19
localhost:19: forward host lookup failed: Unknown host |
#nc localhost 19
!"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefgh "#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghi #$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghij $%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijk %&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijkl &'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklm '()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmn ()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmno )*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnop *+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopq ... xyz{|}!"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`ab yz{|}!"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abc z{|}!"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcd {|}!"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcde |}!"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdef }!"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefg !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefgh "#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghi !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefgh "#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abc |
#tail -f /var/log/daemon.log
Feb 12 15:26:01 debian1 xinetd[2060]: Swapping defaults Feb 12 15:26:01 debian1 xinetd[2060]: Reconfigured: new=0 old=0 dropped=0 (services) Feb 12 15:35:29 debian1 xinetd[2534]: Reading included configuration file: /usr/local/etc/xinetd.d/chargen [file=/etc/xinetd.conf] [line=37] Feb 12 15:35:29 debian1 xinetd[2534]: xinetd Version 2.3.14 started with libwrap loadavg options compiled in. Feb 12 15:35:29 debian1 xinetd[2534]: Started working: 1 available service Feb 12 15:36:11 debian1 xinetd[2534]: Exiting... Feb 12 15:36:11 debian1 xinetd[2060]: Exiting... Feb 12 15:36:11 debian1 xinetd[2577]: Reading included configuration file: /usr/local/etc/xinetd.d/chargen [file=/etc/xinetd.conf] [line=37] Feb 12 15:36:11 debian1 xinetd[2577]: xinetd Version 2.3.14 started with libwrap loadavg options compiled in. Feb 12 15:36:11 debian1 xinetd[2577]: Started working: 1 available service ^C |
#ls /usr/local/etc/xinetd.d/
chargen echo |
#service xinetd restart
Stopping internet superserver: xinetd. Starting internet superserver: xinetd. |
#touch /etc/host
host.conf hostname hosts hosts.allow hosts.deny |
#touch /etc/host
host.conf hostname hosts hosts.allow hosts.deny |
#vim /etc/hosts.allow
--- /tmp/l3-saved-1432.30728.25137 2013-02-12 16:03:05.000000000 +0200 +++ /etc/hosts.allow 2013-02-12 16:04:51.000000000 +0200 @@ -10,4 +10,4 @@ # rpc.mountd (the NFS mount daemon). See portmap(8) and rpc.mountd(8) # for further information. # - +chargen : 192.168.13.0/24 : deny |
#service xinetd restart
Stopping internet superserver: xinetd. Starting internet superserver: xinetd. |
#~
Trying 192.168.13.2... Connected to 192.168.13.2. Escape character is '^]'. !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefgh "#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghi #$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghij $%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijk %&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijkl &'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklm '()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmn ... &'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklm '()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmn ()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmno )*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnop *+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopq +,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqr ,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrs -./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrst^[^] telnet> q Connection closed. |
#telnet 192.168.13.2 chargen
Trying 192.168.13.2... Connected to 192.168.13.2. Escape character is '^]'. !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefgh "#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghi #$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghij $%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijk %&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijkl &'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklm '()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmn ... "#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghi !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefgh "#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghi #$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghij $%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijk %&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijkl &'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklm '()*+,-./0123456789:;<=>?@ABC telnet> q Connection closed. |
#service xinetd restart
Stopping internet superserver: xinetd. Starting internet superserver: xinetd. |
#telnet 192.168.13.2 chargen
Trying 192.168.13.2... Connected to 192.168.13.2. Escape character is '^]'. !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefgh "#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghi #$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghij $%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijk %&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijkl &'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklm '()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmn ... RSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}!"#$%&'()*+,-./0123456789:;< STUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}!"#$%&'()*+,-./0123456789:;<= TUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}!"#$%&'()*+,-./0123456789:;<=> UVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}!"#$%&'()*+,-./0123456789:;<=>? VWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}!"#$%&'()*+,-./0123456789:;<=>?@ WXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}!"#$%&'()*+,-./0123456789:;<=>?@A XYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}!"#$%&'()*+,-./0123456789:;<=>?@AB YZ[\]^ telnet> q Connection closed. |
#telnet 192.168.13.2 chargen
Trying 192.168.13.2... Connected to 192.168.13.2. Escape character is '^]'. !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefgh "#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghi #$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghij $%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijk %&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijkl &'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklm '()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmn ... efghijklmnopqrstuvwxyz{|}!"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNO fghijklmnopqrstuvwxyz{|}!"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOP ghijklmnopqrstuvwxyz{|}!"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQ hijklmnopqrstuvwxyz{|}!"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQR ijklmnopqrstuvwxyz{|}!"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRS jklmnopqrstuvwxyz{|}!"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRST klmnopqrstuvwxyz{|}!"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTU lmnopqrstuvwxyz{|}!"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUV^] telnet> q Connection closed. |
#telnet 192.168.13.2 chargen
Trying 192.168.13.2... Connected to 192.168.13.2. Escape character is '^]'. !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefgh "#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghi #$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghij $%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijk %&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijkl &'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklm '()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmn ... UVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}!"#$%&'()*+,-./0123456789:;<=>? VWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}!"#$%&'()*+,-./0123456789:;<=>?@ WXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}!"#$%&'()*+,-./0123456789:;<=>?@A XYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}!"#$%&'()*+,-./0123456789:;<=>?@AB YZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}!"#$%&'()*+,-./0123456789:;<=>?@ABC Z[\]^_`abcdefghijklmnopqrstuvwxyz{|}!"#$%&'()*+,-./0123456789:;<=>?@ABCD [\]^_`abcdefghijklmnopqrstuvwxyz{|}!"#$%&'()*+,-./0123456789:;<=>?@ABCDE \]^_`abcdefghijklmnopqrstuvwx telnet> q Connection closed. |
#telnet 192.168.13.2 chargen
Trying 192.168.13.2... Connected to 192.168.13.2. Escape character is '^]'. !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefgh "#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghi #$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghij $%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijk %&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijkl &'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklm '()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmn ... ,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrs -./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrst ./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstu /0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuv 0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvw 123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwx 23456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxy 3456789:;<=>?@ABCDEFGHIJKLMNO telnet> q Connection closed. |
#telnet 192.168.13.2 chargen
Trying 192.168.13.2... Connected to 192.168.13.2. Escape character is '^]'. !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefgh "#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghi #$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghij $%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijk %&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijkl &'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklm '()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmn ... 56789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{| 6789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|} 789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}! 89:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}!" 9:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}!"# :;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}!"#$ ;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}!"#$% <=>?@ABCDEFGHIJKLMNOPQRSTUVWX telnet> q Connection closed. |
#tracert 192.168.13.2
l3script: tracert: команда не найдена |
#traceroute 192.168.13.2
traceroute to 192.168.13.2 (192.168.13.2), 30 hops max, 60 byte packets 1 192.168.13.2 (192.168.13.2) 0.613 ms 0.602 ms 0.575 ms |
#telnet 192.168.13.2 19
Trying 192.168.13.2... Connected to 192.168.13.2. Escape character is '^]'. !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefgh "#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghi #$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghij $%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijk %&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijkl &'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklm '()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmn ... stuvwxyz{|}!"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\] tuvwxyz{|}!"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^ uvwxyz{|}!"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_ vwxyz{|}!"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_` wxyz{|}!"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`a^Cq ^C ^C ^] telnet> quit Connection closed. |
#telnet 192.168.13.2 chargen
Trying 192.168.13.2... Connected to 192.168.13.2. Escape character is '^]'. Connection closed by foreign host. |
#telnet 192.168.13.2 echo
Trying 192.168.13.2... Connected to 192.168.13.2. Escape character is '^]'. Connection closed by foreign host. |
#telnet 192.168.13.2 echo
Trying 192.168.13.2... Connected to 192.168.13.2. Escape character is '^]'. Connection closed by foreign host. |
#telnet 192.168.13.2 echo
Trying 192.168.13.2... Connected to 192.168.13.2. Escape character is '^]'. Connection closed by foreign host. |
#telnet 192.168.13.2 echo
Trying 192.168.13.2... Connected to 192.168.13.2. Escape character is '^]'. Connection closed by foreign host. |
#telnet 192.168.13.2 echo
Trying 192.168.13.2... Connected to 192.168.13.2. Escape character is '^]'. ^] telnet> q Connection closed. |
#telnet 192.168.13.2 echo
Trying 192.168.13.2... Connected to 192.168.13.2. Escape character is '^]'. ^] telnet> q Connection closed. |
#telnet 192.168.13.2 echo
Trying 192.168.13.2... Connected to 192.168.13.2. Escape character is '^]'. ^] telnet> q Connection closed. |
#telnet 192.168.13.2 chargen
Trying 192.168.13.2... Connected to 192.168.13.2. Escape character is '^]'. !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefgh "#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghi #$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghij $%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijk %&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijkl &'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklm '()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmn ... cdefghijklmnopqrstuvwxyz{|}!"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLM defghijklmnopqrstuvwxyz{|}!"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMN efghijklmnopqrstuvwxyz{|}!"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNO fghijklmnopqrstuvwxyz{|}!"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOP ghijklmnopqrstuvwxyz{|}!"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQ hijklmnopqrstuvwxyz{|}!"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQR ijklmnopqrstuvwxyz{|}!"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRS jklmno telnet> q Connection closed. |
#telnet 192.168.13.2 chargen
Trying 192.168.13.2... Connected to 192.168.13.2. Escape character is '^]'. Connection closed by foreign host. |
#telnet 192.168.13.2 chargen
Trying 192.168.13.2... Connected to 192.168.13.2. Escape character is '^]'. Connection closed by foreign host. |
#telnet 192.168.13.2 chargen
Trying 192.168.13.2... Connected to 192.168.13.2. Escape character is '^]'. Connection closed by foreign host. |
#telnet 192.168.13.22 chargen
Trying 192.168.13.22... Connected to 192.168.13.22. Escape character is '^]'. !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefgh "#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghi #$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghij $%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijk %&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijkl &'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklm '()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmn ... opqrstuvwxyz{|}!"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXY pqrstuvwxyz{|}!"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ qrstuvwxyz{|}!"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[ rstuvwxyz{|}!"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\ stuvwxyz{|}!"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\] tuvwxyz{|}!"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^ uvwxyz{|}!"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_ vwxyz{ telnet> q Connection closed. |
#telnet 192.168.13.2 chargen
Trying 192.168.13.2... Connected to 192.168.13.2. Escape character is '^]'. Connection closed by foreign host. |
#ls
bigfile Light_Alloy_4.4.784_RC2_by_FAFNIR.exe matrix.jpg press_any_key_to_continue.jpg bin lpi 1 names proj freebsd.jpg lpi 2 ogo.jpg text granata.jpg man_smb_conf pamyatka.pdf touchlist |
#nmap localhost
Starting Nmap 5.00 ( http://nmap.org ) at 2013-02-13 14:22 EET Interesting ports on localhost.localdomain (127.0.0.1): Not shown: 995 closed ports PORT STATE SERVICE 7/tcp open echo 19/tcp open chargen 22/tcp open ssh 25/tcp open smtp 111/tcp open rpcbind Nmap done: 1 IP address (1 host up) scanned in 0.14 seconds |
#netstat nlp | grep 25
|
#netstat nlp
Active Internet connections (w/o servers) Proto Recv-Q Send-Q Local Address Foreign Address State tcp 0 0 debian1.net.nt:ssh 192.168.15.105:49767 ESTABLISHED tcp 0 0 debian1.net.nt:48223 xgu.ru:18030 TIME_WAIT tcp 0 0 debian1.net.nt:48224 xgu.ru:18030 TIME_WAIT tcp 0 52 debian1.net.nt:ssh 192.168.15.101:50453 ESTABLISHED Active UNIX domain sockets (w/o servers) Proto RefCnt Flags Type State I-Node Path unix 6 [ ] DGRAM 3659 /dev/log unix 2 [ ] DGRAM 2381 @/org/kernel/udev/udevd unix 2 [ ] DGRAM 9406 unix 2 [ ] DGRAM 8357 unix 3 [ ] STREAM CONNECTED 7918 unix 3 [ ] STREAM CONNECTED 7917 unix 2 [ ] DGRAM 7916 unix 2 [ ] DGRAM 3674 unix 3 [ ] DGRAM 2386 unix 3 [ ] DGRAM 2385 |
#nmap localhost
Starting Nmap 5.00 ( http://nmap.org ) at 2013-02-13 14:23 EET Interesting ports on localhost.localdomain (127.0.0.1): Not shown: 995 closed ports PORT STATE SERVICE 7/tcp open echo 19/tcp open chargen 22/tcp open ssh 25/tcp open smtp 111/tcp open rpcbind Nmap done: 1 IP address (1 host up) scanned in 0.16 seconds |
#vim /etc/hosts.
|
#vim /etc/hosts.allow
|
#~
# daemon name. Remember that you can only use the keyword "ALL" and IP # addresses (NOT host or domain names) for the portmapper, as well as for # rpc.mountd (the NFS mount daemon). See portmap(8) and rpc.mountd(8) # for further information. # # The PARANOID wildcard matches any host whose name does not match its # address.s.deny" 20L, 906C # # You may wish to enable this to ensure any programs that don't # validate looked up hostnames still leave understandable logs. In past # versions of Debian this has been the default. # ALL: PARANOID #chargen : 192.168.13.0/24 |
#~
Active Internet connections (w/o servers) Proto Recv-Q Send-Q Local Address Foreign Address State tcp 0 0 debian1.net.nt:ssh 192.168.15.105:49767 ESTABLISHED tcp 0 0 debian1.net.nt:41985 xgu.ru:18030 TIME_WAIT tcp 0 0 debian1.net.nt:41983 xgu.ru:18030 TIME_WAIT tcp 0 0 debian1.net.nt:41982 xgu.ru:18030 TIME_WAIT tcp 0 0 debian1.net.nt:41986 xgu.ru:18030 TIME_WAIT tcp 0 0 debian1.net.nt:41984 xgu.ru:18030 TIME_WAIT tcp 0 0 debian1.net.nt:48227 xgu.ru:18030 TIME_WAIT tcp 0 372 debian1.net.nt:ssh 192.168.15.101:50453 ESTABLISHED ... unix 6 [ ] DGRAM 3659 /dev/log unix 2 [ ] DGRAM 2381 @/org/kernel/udev/udevd unix 2 [ ] DGRAM 9406 unix 2 [ ] DGRAM 8357 unix 3 [ ] STREAM CONNECTED 7918 unix 3 [ ] STREAM CONNECTED 7917 unix 2 [ ] DGRAM 7916 unix 2 [ ] DGRAM 3674 unix 3 [ ] DGRAM 2386 unix 3 [ ] DGRAM 2385 |
#nmap localhost
Starting Nmap 5.00 ( http://nmap.org ) at 2013-02-13 14:25 EET Interesting ports on localhost.localdomain (127.0.0.1): Not shown: 995 closed ports PORT STATE SERVICE 7/tcp open echo 19/tcp open chargen 22/tcp open ssh 25/tcp open smtp 111/tcp open rpcbind Nmap done: 1 IP address (1 host up) scanned in 0.11 seconds |
#vim /etc/xinetd.conf
|
#telnet localhost 25
Trying 127.0.0.1... Connected to localhost.localdomain. Escape character is '^]'. 220 debian1.net.nt ESMTP Exim 4.72 Wed, 13 Feb 2013 14:27:08 +0200 ^C ^[ ^] telnet> q Connection closed. |
#netstat nlp
Active Internet connections (w/o servers) Proto Recv-Q Send-Q Local Address Foreign Address State tcp 0 0 debian1.net.nt:ssh 192.168.15.105:49767 ESTABLISHED tcp 0 0 debian1.net.nt:41994 xgu.ru:18030 TIME_WAIT tcp 0 372 debian1.net.nt:ssh 192.168.15.101:50453 ESTABLISHED Active UNIX domain sockets (w/o servers) Proto RefCnt Flags Type State I-Node Path unix 6 [ ] DGRAM 3659 /dev/log unix 2 [ ] DGRAM 2381 @/org/kernel/udev/udevd unix 2 [ ] DGRAM 9406 unix 2 [ ] DGRAM 8357 unix 3 [ ] STREAM CONNECTED 7918 unix 3 [ ] STREAM CONNECTED 7917 unix 2 [ ] DGRAM 7916 unix 2 [ ] DGRAM 3674 unix 3 [ ] DGRAM 2386 unix 3 [ ] DGRAM 2385 |
#ps waux | grep LISTAEN
root 4088 0.0 0.1 5076 736 pts/3 S+ 14:28 0:00 grep LISTAEN |
Время первой команды журнала | 13:42:46 2013- 2-12 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Время последней команды журнала | 13:27:42 2013- 2-13 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в журнале | 100 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент команд с ненулевым кодом завершения, % | 20.00 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент синтаксически неверно набранных команд, % | 1.00 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Суммарное время работы с терминалом *, час | 2.00 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в единицу времени, команда/мин | 0.83 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду 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