| /l3/users/17-12-2012/NT-Lnet/debian1.net.nt/root :1 :2 :3 :4 :5 :6 :7 :8 :9 |
|
|
#ls -hl
итого 4,0K -rw-r--r-- 1 root staff 195 Дек 18 13:35 chargen -rw-r--r-- 1 root staff 0 Дек 18 13:35 telnet |
|
#vim telnet
|
|
#ls -hl
итого 8,0K -rw-r--r-- 1 root staff 195 Дек 18 13:35 chargen -rw-r--r-- 1 root staff 191 Дек 18 13:35 telnet |
|
#ls -hl /etc/xinetd.d/
итого 20K -rw-r--r-- 1 root root 798 Мар 26 2008 chargen -rw-r--r-- 1 root root 660 Мар 26 2008 daytime -rw-r--r-- 1 root root 549 Мар 26 2008 discard -rw-r--r-- 1 root root 580 Мар 26 2008 echo -rw-r--r-- 1 root root 727 Мар 26 2008 time |
|
#vim chargen /etc/xinetd.d/
--- /tmp/l3-saved-2093.27869.22139 2012-12-18 13:37:48.000000000 +0200
+++ /etc/xinetd.conf 2012-12-18 13:38:09.000000000 +0200
@@ -34,25 +34,4 @@
# have to a specific service.
per_source = 5
}
-
-service chargen
-{
- socket_type = stream
- protocol = udp
- wait = no
- user = root
- type = INTERNAL
- id = chargen-stream
-}
-
-service telnet
-{
- socket_type = stream
- protocol = tcp
- wait = no
- user = root
- server = /usr/sbin/in.telnetd
- server_args =
-}
-
includedir /usr/local/etc/xinetd.d
|
|
#~
# default: off
# description: An xinetd internal service which generate characters. The
# xinetd internal service which continuously generates characters until the
# connection is dropped. The characters look something like this:
# !"#$% disable./012345 = yes<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefg
type = INTERNAL
# This idthe tcp versi = chargen-stream
socket_type = stream
service protocol = tcp
user = root
{ wait = no
}
# This disabledp versi = yes
type = INTERNAL
service idargen = chargen-dgram
socket_type = dgram
{ protocol = udp
user = root
wait = yes
}
"/etc/xinetd.d/chargen" 28L, 798C
|
|
#~
|
|
#ps aux|grep xinetd
root 2640 0.0 0.1 2448 840 ? Ss 11:51 0:00 /usr/sbin/xinetd -pidfile /var/run/xinetd.pid -stayalive -inetd_compat -inetd_ipv6 root 3144 0.0 0.1 5076 740 pts/2 S+ 13:36 0:00 grep xinetd |
|
#tail /var/log/daemon.log
Dec 18 13:36:39 debian1 xinetd[3126]: Reading included configuration file: /usr/local/etc/xinetd.d/telnet [file=/usr/local/etc/xinetd.d/telnet] [line=9]
Dec 18 13:36:39 debian1 xinetd[3126]: attribute server_args expects at least 1 value and none were given. [file=/usr/local/etc/xinetd.d/telnet] [line=8]
Dec 18 13:36:39 debian1 xinetd[3126]: Error parsing attribute server_args - DISABLING SERVICE [file=/usr/local/etc/xinetd.d/telnet] [line=8]
Dec 18 13:36:39 debian1 xinetd[3126]: removing telnet
Dec 18 13:36:39 debian1 xinetd[3126]: removing telnet
Dec 18 13:36:39 debian1 xinetd[3126]: socket creation failed (Protocol not supported (errno = 93)). service = chargen-stream
Dec 18 13:36:39 debian1 xinetd[3126]: Service chargen-stream failed to start and is deactivated.
Dec 18 13:36:39 debian1 xinetd[3126]: socket creation failed (Protocol not supported (errno = 93)). service = chargen-stream
Dec 18 13:36:39 debian1 xinetd[3126]: Service chargen-stream failed to start and is deactivated.
Dec 18 13:36:39 debian1 xinetd[3126]: 3126 {init_services} no services. Exiting...
|
|
#vim /etc/xinetd.conf
|
|
#xinetd
|
|
#ps aux|grep xinetd
root 2640 0.0 0.1 2448 840 ? Ss 11:51 0:00 /usr/sbin/xinetd -pidfile /var/run/xinetd.pid -stayalive -inetd_compat -inetd_ipv6 root 3191 0.0 0.1 5076 736 pts/2 S+ 13:38 0:00 grep xinetd |
|
#tail /var/log/daemon.log
Dec 18 13:36:39 debian1 xinetd[3126]: Service chargen-stream failed to start and is deactivated.
Dec 18 13:36:39 debian1 xinetd[3126]: 3126 {init_services} no services. Exiting...
Dec 18 13:38:13 debian1 xinetd[3177]: Reading included configuration file: /usr/local/etc/xinetd.d/chargen [file=/etc/xinetd.conf] [line=37]
Dec 18 13:38:13 debian1 xinetd[3177]: Reading included configuration file: /usr/local/etc/xinetd.d/telnet [file=/usr/local/etc/xinetd.d/telnet] [line=9]
Dec 18 13:38:13 debian1 xinetd[3177]: attribute server_args expects at least 1 value and none were given. [file=/usr/local/etc/xinetd.d/telnet] [line=8]
Dec 18 13:38:13 debian1 xinetd[3177]: Error parsing attribute server_args - DISABLING SERVICE [file=/usr/local/etc/xinetd.d/telnet] [line=8]
Dec 18 13:38:13 debian1 xinetd[3177]: removing telnet
Dec 18 13:38:13 debian1 xinetd[3177]: socket creation failed (Protocol not supported (errno = 93)). service = chargen-stream
Dec 18 13:38:13 debian1 xinetd[3177]: Service chargen-stream failed to start and is deactivated.
Dec 18 13:38:13 debian1 xinetd[3177]: 3177 {init_services} no services. Exiting...
|
|
#tail /var/log/messages
Dec 18 11:25:17 debian1 kernel: [66246.377390] device eth0 left promiscuous mode Dec 18 11:25:17 debian1 kernel: [66246.377471] device lo left promiscuous mode Dec 18 11:29:31 debian1 kernel: [66500.638273] device eth0 entered promiscuous mode Dec 18 11:29:31 debian1 kernel: [66500.638816] device lo entered promiscuous mode Dec 18 11:29:59 debian1 kernel: [66528.231968] device eth0 left promiscuous mode Dec 18 11:29:59 debian1 kernel: [66528.232215] device lo left promiscuous mode Dec 18 11:34:18 debian1 kernel: [66787.126935] device eth0 entered promiscuous mode Dec 18 11:34:18 debian1 kernel: [66787.127465] device lo entered promiscuous mode Dec 18 11:34:33 debian1 kernel: [66802.011318] device eth0 left promiscuous mode Dec 18 11:34:33 debian1 kernel: [66802.011400] device lo left promiscuous mode |
|
#pwd
/usr/local/etc/xinetd.d |
|
#vim /etc/xinetd.d/
|
|
#vim /etc/xinetd.d/chargen
|
|
#~
service chargen
{ socket_type = stream
protocol = udp
wait = no
user = root
type = INTERNAL
id = chargen-stream
}
"/usr/local/etc/xinetd.d/chargen" 9L, 195C
|
|
#{
/usr/local/etc/xinetd.d |
|
#rm telnet
|
|
#ls -hl
итого 4,0K -rw-r--r-- 1 root staff 195 Дек 18 13:35 chargen |
|
#/etc/init.d/xinetd
Usage: /etc/init.d/xinetd {start|stop|reload|force-reload|restart}
|
|
#/etc/init.d/xinetd start
Starting internet superserver: xinetd failed! |
|
#/etc/init.d/xinetd restart
Stopping internet superserver: xinetd. Starting internet superserver: xinetd. |
|
#ps aux|grep xine
root 3341 0.0 0.1 2448 848 ? Ss 13:40 0:00 /usr/sbin/xinetd -pidfile /var/run/xinetd.pid -stayalive -inetd_compat -inetd_ipv6 root 3360 0.0 0.1 5076 736 pts/2 S+ 13:41 0:00 grep xine |
|
#tail /var/log/daemon.log
Dec 18 13:40:56 debian1 xinetd[2640]: Exiting... Dec 18 13:40:56 debian1 xinetd[3341]: Reading included configuration file: /usr/local/etc/xinetd.d/chargen [file=/etc/xinetd.conf] [line=37] Dec 18 13:40:56 debian1 xinetd[3341]: added service chargen [file=/etc/inetd.conf] [line=22] Dec 18 13:40:56 debian1 xinetd[3341]: added service telnet [file=/etc/inetd.conf] [line=41] Dec 18 13:40:56 debian1 xinetd[3341]: socket creation failed (Protocol not supported (errno = 93)). service = chargen-stream Dec 18 13:40:56 debian1 xinetd[3341]: Service chargen-stream failed to start and is deactivated. Dec 18 13:40:56 debian1 xinetd[3341]: socket creation failed (Protocol not supported (errno = 93)). service = chargen-dgram Dec 18 13:40:56 debian1 xinetd[3341]: Service chargen-dgram failed to start and is deactivated. Dec 18 13:40:56 debian1 xinetd[3341]: xinetd Version 2.3.14 started with libwrap loadavg options compiled in. Dec 18 13:40:56 debian1 xinetd[3341]: Started working: 1 available service |
|
#vim chargen
|
|
#~
# default: off
# description: An xinetd internal service which generate characters. The
# xinetd internal service which continuously generates characters until the
# connection is dropped. The characters look something like this:
# !"#$% disable./012345 = yes<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefg
type = INTERNAL
# This idthe tcp versi = chargen-stream
socket_type = stream
service protocol = tcp
user = root
{ wait = no
}
# This disabledp versi = yes
type = INTERNAL
service idargen = chargen-dgram
socket_type = dgram
{ protocol = udp
user = root
wait = yes
}
"/etc/xinetd.d/chargen" 28L, 798C
|
|
#{
l3script: mc: команда не найдена |
|
#vim /etc/xinetd.d/chargen
|
|
#~
service chargen
{ socket_type = stream
protocol = udp
wait = no
user = root
type = INTERNAL
id = chargen-stream
}
"chargen" 9L, 195C
|
|
#~
Dec 18 13:40:56 debian1 xinetd[2640]: Exiting... Dec 18 13:40:56 debian1 xinetd[3341]: Reading included configuration file: /usr/local/etc/xinetd.d/chargen [file=/etc/xinetd.conf] [line=37] Dec 18 13:40:56 debian1 xinetd[3341]: added service chargen [file=/etc/inetd.conf] [line=22] Dec 18 13:40:56 debian1 xinetd[3341]: added service telnet [file=/etc/inetd.conf] [line=41] Dec 18 13:40:56 debian1 xinetd[3341]: socket creation failed (Protocol not supported (errno = 93)). service = chargen-stream Dec 18 13:40:56 debian1 xinetd[3341]: Service chargen-stream failed to start and is deactivated. Dec 18 13:40:56 debian1 xinetd[3341]: socket creation failed (Protocol not supported (errno = 93)). service = chargen-dgram Dec 18 13:40:56 debian1 xinetd[3341]: Service chargen-dgram failed to start and is deactivated. Dec 18 13:40:56 debian1 xinetd[3341]: xinetd Version 2.3.14 started with libwrap loadavg options compiled in. Dec 18 13:40:56 debian1 xinetd[3341]: Started working: 1 available service |
|
#/etc/init.d/xinetd restart
Stopping internet superserver: xinetd. Starting internet superserver: xinetd. |
|
#ps aux|grep xine
root 3493 0.0 0.1 2448 844 ? Ss 13:43 0:00 /usr/sbin/xinetd -pidfile /var/run/xinetd.pid -stayalive -inetd_compat -inetd_ipv6 root 3512 0.0 0.1 5076 740 pts/2 S+ 13:43 0:00 grep xine |
|
#tail /var/log/daemon.log
Dec 18 13:43:34 debian1 xinetd[3341]: Exiting... Dec 18 13:43:34 debian1 xinetd[3493]: Reading included configuration file: /usr/local/etc/xinetd.d/chargen [file=/etc/xinetd.conf] [line=37] Dec 18 13:43:34 debian1 xinetd[3493]: added service chargen [file=/etc/inetd.conf] [line=22] Dec 18 13:43:34 debian1 xinetd[3493]: added service telnet [file=/etc/inetd.conf] [line=41] Dec 18 13:43:34 debian1 xinetd[3493]: socket creation failed (Protocol not supported (errno = 93)). service = chargen-stream Dec 18 13:43:34 debian1 xinetd[3493]: Service chargen-stream failed to start and is deactivated. Dec 18 13:43:34 debian1 xinetd[3493]: socket creation failed (Protocol not supported (errno = 93)). service = chargen-dgram Dec 18 13:43:34 debian1 xinetd[3493]: Service chargen-dgram failed to start and is deactivated. Dec 18 13:43:34 debian1 xinetd[3493]: xinetd Version 2.3.14 started with libwrap loadavg options compiled in. Dec 18 13:43:34 debian1 xinetd[3493]: Started working: 1 available service |
|
#vim /etc/inetd.conf
--- /tmp/l3-saved-2093.12998.1483 2012-12-18 13:44:17.000000000 +0200 +++ /etc/inetd.conf 2012-12-18 13:44:24.000000000 +0200 @@ -38,5 +38,5 @@ #:HAM-RADIO: amateur-radio services #:OTHER: Other services -telnet stream tcp nowait root /usr/sbin/in.telnetd +#telnet stream tcp nowait root /usr/sbin/in.telnetd |
|
#ps aux |grep inet
root 3493 0.0 0.1 2448 844 ? Ss 13:43 0:00 /usr/sbin/xinetd -pidfile /var/run/xinetd.pid -stayalive -inetd_compat -inetd_ipv6 root 3545 0.0 0.1 5076 736 pts/2 S+ 13:45 0:00 grep inet |
|
#killall
killall killall5 |
|
#killall inetd
inetd: процесс не найден |
|
#mv /etc/inetd.conf /root/
.aptitude/ .bash_profile .l3rc .lilalo/ .ssh/ xinetd.conf .bash_history .bashrc .lesshst .profile .viminfo |
|
#mv /etc/inetd.conf /root/
|
|
#ls -hl /root/
итого 8,0K -rw-r--r-- 1 root root 1,2K Дек 18 13:44 inetd.conf -rw-r--r-- 1 root root 1,6K Дек 18 11:55 xinetd.conf |
|
#vim /etc/xinetd.conf
|
|
#includedir /usr/local/etc/xinetd.d
Stopping internet superserver: xinetd. Starting internet superserver: xinetd. |
|
#ps aux|grep xine
root 3614 0.0 0.1 2448 836 ? Ss 13:46 0:00 /usr/sbin/xinetd -pidfile /var/run/xinetd.pid -stayalive -inetd_compat -inetd_ipv6 root 3629 0.0 0.1 5076 736 pts/2 S+ 13:46 0:00 grep xine |
|
#tail /var/log/daemon.log
Dec 18 13:43:34 debian1 xinetd[3493]: socket creation failed (Protocol not supported (errno = 93)). service = chargen-dgram Dec 18 13:43:34 debian1 xinetd[3493]: Service chargen-dgram failed to start and is deactivated. Dec 18 13:43:34 debian1 xinetd[3493]: xinetd Version 2.3.14 started with libwrap loadavg options compiled in. Dec 18 13:43:34 debian1 xinetd[3493]: Started working: 1 available service Dec 18 13:46:18 debian1 xinetd[3493]: Exiting... Dec 18 13:46:18 debian1 xinetd[3614]: Reading included configuration file: /usr/local/etc/xinetd.d/chargen [file=/etc/xinetd.conf] [line=37] Dec 18 13:46:18 debian1 xinetd[3614]: socket creation failed (Protocol not supported (errno = 93)). service = chargen-stream Dec 18 13:46:18 debian1 xinetd[3614]: Service chargen-stream failed to start and is deactivated. Dec 18 13:46:18 debian1 xinetd[3614]: xinetd Version 2.3.14 started with libwrap loadavg options compiled in. Dec 18 13:46:18 debian1 xinetd[3614]: Started working: 0 available services |
|
#pwd
/usr/local/etc/xinetd.d |
|
#vim chargen
--- /tmp/l3-saved-2093.498.22395 2012-12-18 13:47:29.000000000 +0200
+++ chargen 2012-12-18 13:48:37.000000000 +0200
@@ -1,9 +1,10 @@
service chargen
{
socket_type = stream
- protocol = udp
+ protocol = tcp
wait = no
user = root
type = INTERNAL
id = chargen-stream
+ disable = no
}
|
|
#killall -1 xinetd
|
|
#ps aux|grep xine
root 3614 0.0 0.1 2448 888 ? Ss 13:46 0:00 /usr/sbin/xinetd -pidfile /var/run/xinetd.pid -stayalive -inetd_compat -inetd_ipv6 root 3678 0.0 0.1 5076 736 pts/2 S+ 13:49 0:00 grep xine |
|
#tail /var/log/daemon.log
Dec 18 13:46:18 debian1 xinetd[3493]: Exiting... Dec 18 13:46:18 debian1 xinetd[3614]: Reading included configuration file: /usr/local/etc/xinetd.d/chargen [file=/etc/xinetd.conf] [line=37] Dec 18 13:46:18 debian1 xinetd[3614]: socket creation failed (Protocol not supported (errno = 93)). service = chargen-stream Dec 18 13:46:18 debian1 xinetd[3614]: Service chargen-stream failed to start and is deactivated. Dec 18 13:46:18 debian1 xinetd[3614]: xinetd Version 2.3.14 started with libwrap loadavg options compiled in. Dec 18 13:46:18 debian1 xinetd[3614]: Started working: 0 available services Dec 18 13:48:50 debian1 xinetd[3614]: Starting reconfiguration Dec 18 13:48:50 debian1 xinetd[3614]: Reading included configuration file: /usr/local/etc/xinetd.d/chargen [file=/etc/xinetd.conf] [line=37] Dec 18 13:48:50 debian1 xinetd[3614]: Swapping defaults Dec 18 13:48:50 debian1 xinetd[3614]: Reconfigured: new=1 old=0 dropped=0 (services) |
|
#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 ... abcdefghijklmnopqrstuvwxyz{|}!"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJK bcdefghijklmnopqrstuvwxyz{|}!"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKL cdefghijklmnopqrstuvwxyz{|}!"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLM defghijklmnopqrstuvwxyz{|}!"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMN efghijklmnopqrstuvwxyz{|}!"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNO fghijklmnopqrstuvwxyz{|}!"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOP ghijklmnopqrstuvwxyz{|}!"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQ hij^C^] telnet> quit Connection closed. |
|
#nc 127.0.0.1:19
127.0.0.1:19: forward host lookup failed: Unknown host |
|
#nc localhost:19
|