Журнал лабораторных работ

Содержание

Журнал

Пятница (06/05/09)

/dev/pts/7
14:43:13
#su user

/dev/pts/8
14:43:13
#su user

/dev/pts/7
14:43:27
$cd /root

/dev/pts/8
14:43:27
$cd /root

/dev/pts/7
14:43:31
$ls
1   all           ip_forward~  ip_forwary~    lv-table  passswd    samba.png   scriptall  spamsend
11  file          ip_forwarw~  ip_forwarz~    Mail      passswd1   screen.dot  sent       usaddscript
2   harddisk.img  ip_forwarx~  iptables-save  new       samba.dot  screen.png  shtdown    vol1
/dev/pts/8
14:43:31
$ls
1   all           ip_forward~  ip_forwary~    lv-table  passswd    samba.png   scriptall  spamsend
11  file          ip_forwarw~  ip_forwarz~    Mail      passswd1   screen.dot  sent       usaddscript
2   harddisk.img  ip_forwarx~  iptables-save  new       samba.dot  screen.png  shtdown    vol1
/dev/pts/7
14:43:32
$spamsend
bash: spamsend: command not found
/dev/pts/8
14:43:32
$spamsend
bash: spamsend: command not found
/dev/pts/7
14:43:40
$./spamsend
./spamsend: line 1: 1: command not found
./spamsend: line 2: 2: command not found
./spamsend: line 3: 3: command not found
./spamsend: line 4: 4: command not found
/dev/pts/8
14:43:40
$./spamsend
./spamsend: line 1: 1: command not found
./spamsend: line 2: 2: command not found
./spamsend: line 3: 3: command not found
./spamsend: line 4: 4: command not found
/dev/pts/7
14:43:46
$exit
exit
/dev/pts/8
14:43:46
$exit
exit
/dev/pts/7
14:43:51
#spamsend
bash: spamsend: command not found
/dev/pts/8
14:43:51
#spamsend
bash: spamsend: command not found
/dev/pts/7
14:43:57
#./spamsend
./spamsend: line 1: 1: command not found
./spamsend: line 2: 2: command not found
./spamsend: line 3: 3: command not found
./spamsend: line 4: 4: command not found
/dev/pts/8
14:43:57
#./spamsend
./spamsend: line 1: 1: command not found
./spamsend: line 2: 2: command not found
./spamsend: line 3: 3: command not found
./spamsend: line 4: 4: command not found
/dev/pts/7
14:44:01
#vim spamsend
/dev/pts/8
14:44:01
#vim spamsend
/dev/pts/7
14:44:27
#~ +q436f+q6b75+q6b64+q6b72+q6b6c+q2332+q2334+q2569+q2a37+q6b31
bash: spamsend: command not found
You have mail in /var/mail/root
/dev/pts/8
14:44:27
#~ +q436f+q6b75+q6b64+q6b72+q6b6c+q2332+q2334+q2569+q2a37+q6b31
bash: spamsend: command not found
You have mail in /var/mail/root
/dev/pts/7
14:44:52
#mutt
 N +- 2/2: Mail Delivery Subsys   Returned mail: see transcript for details                           -- (38%)
2 kept, 0 deleted.
/dev/pts/8
14:44:52
#mutt
 N +- 2/2: Mail Delivery Subsys   Returned mail: see transcript for details                           -- (38%)
2 kept, 0 deleted.
/dev/pts/7
14:45:11
#vim spamsend
/dev/pts/8
14:45:11
#vim spamsend
/dev/pts/7
14:45:33
#ls -l
total 1040
-rw-r--r-- 1 root root    451 2009-06-04 10:35 1
drwxr-x--- 2 root root   4096 2009-05-30 16:35 11
-rw-r--r-- 1 root root      2 2009-06-03 19:06 2
-rwxr-xr-x 1 root root     98 2009-06-03 11:16 all
-rw-r----- 1 root root      0 2009-05-30 16:33 file
-rw-r--r-- 1 root root 204800 2009-05-30 14:17 harddisk.img
-rw-r--r-- 1 root root      2 2009-06-01 16:31 ip_forward~
-rw-r--r-- 1 root root      2 2009-06-01 16:32 ip_forwarw~
-rw-r--r-- 1 root root      2 2009-06-01 16:32 ip_forwarx~
...
-rw-r--r-- 1 root root  11840 2009-05-29 10:09 samba.dot
-rw-r--r-- 1 root root 470854 2009-05-29 10:09 samba.png
-rw-r--r-- 1 root root   4737 2009-05-29 10:05 screen.dot
-rw-r--r-- 1 root root 271894 2009-05-29 10:06 screen.png
-rwxr-xr-x 1 root root     95 2009-06-03 11:18 scriptall
-rw------- 1 root root   2641 2009-06-05 14:44 sent
-rwxr-xr-x 1 root root    231 2009-05-29 17:29 shtdown
-rwxr-xr-x 1 root root    188 2009-06-05 14:45 spamsend
-rwxr-xr-x 1 root root    502 2009-05-29 09:30 usaddscript
drwxr-xr-x 2 root root   4096 2009-05-30 18:15 vol1
/dev/pts/8
14:45:33
#ls -l
total 1040
-rw-r--r-- 1 root root    451 2009-06-04 10:35 1
drwxr-x--- 2 root root   4096 2009-05-30 16:35 11
-rw-r--r-- 1 root root      2 2009-06-03 19:06 2
-rwxr-xr-x 1 root root     98 2009-06-03 11:16 all
-rw-r----- 1 root root      0 2009-05-30 16:33 file
-rw-r--r-- 1 root root 204800 2009-05-30 14:17 harddisk.img
-rw-r--r-- 1 root root      2 2009-06-01 16:31 ip_forward~
-rw-r--r-- 1 root root      2 2009-06-01 16:32 ip_forwarw~
-rw-r--r-- 1 root root      2 2009-06-01 16:32 ip_forwarx~
...
-rw-r--r-- 1 root root  11840 2009-05-29 10:09 samba.dot
-rw-r--r-- 1 root root 470854 2009-05-29 10:09 samba.png
-rw-r--r-- 1 root root   4737 2009-05-29 10:05 screen.dot
-rw-r--r-- 1 root root 271894 2009-05-29 10:06 screen.png
-rwxr-xr-x 1 root root     95 2009-06-03 11:18 scriptall
-rw------- 1 root root   2641 2009-06-05 14:44 sent
-rwxr-xr-x 1 root root    231 2009-05-29 17:29 shtdown
-rwxr-xr-x 1 root root    188 2009-06-05 14:45 spamsend
-rwxr-xr-x 1 root root    502 2009-05-29 09:30 usaddscript
drwxr-xr-x 2 root root   4096 2009-05-30 18:15 vol1
/dev/pts/7
14:45:36
#./spamsend
./spamsend: line 1: 1: command not found
./spamsend: line 2: 2: command not found
./spamsend: line 3: 3: command not found
./spamsend: line 4: 4: command not found
/dev/pts/8
14:45:36
#./spamsend
./spamsend: line 1: 1: command not found
./spamsend: line 2: 2: command not found
./spamsend: line 3: 3: command not found
./spamsend: line 4: 4: command not found
/dev/pts/7
14:45:56
#vim spamsend
/dev/pts/8
14:45:56
#vim spamsend
--- /tmp/l3-saved-4399.1552.22740	2009-06-05 14:46:00.000000000 +0300
+++ spamsend	2009-06-05 14:46:17.000000000 +0300
@@ -1,4 +1,4 @@
-  1 for i in {1..16}                                      
-  2 do                                                    
-  3 echo spam | mutt -s SPAMMMM user@class$i.unix.nt      
-  4 done  
+  for i in {1..16}                                      
+  do                                                    
+  echo spam | mutt -s SPAMMMM user@class$i.unix.nt      
+  done  
/dev/pts/7
14:46:17
#./spamsend

/dev/pts/8
14:46:17
#./spamsend

/dev/pts/7
14:46:19
#vim /etc/mail/local-host-names
/dev/pts/8
14:46:19
#vim /etc/mail/local-host-names
--- /tmp/l3-saved-4399.13207.6708	2009-06-05 14:47:13.000000000 +0300
+++ /etc/mail/local-host-names	2009-06-05 14:49:03.000000000 +0300
@@ -1,3 +1,4 @@
 localhost
 linux13.class13.unix.nt
 class13.unix.nt
+
/dev/pts/5
14:48:49
$mutt
  13   + Jun 05 Sergey Dryomov  (   1) /dev/urandom_from_Class3
  14 N + Jun 05 Alex Antonov    (   1) SPAMMMM
   +- 12/13: Alex Antonov           SPAMMMM                                                           -- (all)
  15 N + Jun 05 Alex Antonov    (   1) SPAMMMM
  12   + Jun 05 Alex Antonov    (   1) SPAMMMM
  13 O + Jun 05 Sergey Dryomov  (   1) /dev/urandom_from_Class3
  14 O + Jun 05 Alex Antonov    (   1) SPAMMMM
  15 O + Jun 05 Alex Antonov    (   1) SPAMMMM
  16 O T Jun 05 Oleg Dorohin    (   1) Personalities
  18 N + Jun 05 user@class5.uni8 New:1 Old:4 18K]---(threads/date)
18 kept, 0 deleted.
You have mail in /var/mail/user
/dev/pts/10
14:48:49
$mutt
  13   + Jun 05 Sergey Dryomov  (   1) /dev/urandom_from_Class3
  14 N + Jun 05 Alex Antonov    (   1) SPAMMMM
   +- 12/13: Alex Antonov           SPAMMMM                                                           -- (all)
  15 N + Jun 05 Alex Antonov    (   1) SPAMMMM
  12   + Jun 05 Alex Antonov    (   1) SPAMMMM
  13 O + Jun 05 Sergey Dryomov  (   1) /dev/urandom_from_Class3
  14 O + Jun 05 Alex Antonov    (   1) SPAMMMM
  15 O + Jun 05 Alex Antonov    (   1) SPAMMMM
  16 O T Jun 05 Oleg Dorohin    (   1) Personalities
  18 N + Jun 05 user@class5.uni8 New:1 Old:4 18K]---(threads/date)
18 kept, 0 deleted.
You have mail in /var/mail/user
/dev/pts/7
14:49:03
#netstat -lnp|grep 53
tcp        0      0 192.168.15.13:53        0.0.0.0:*               LISTEN      6498/named
tcp        0      0 127.0.0.1:53            0.0.0.0:*               LISTEN      6498/named
tcp        0      0 127.0.0.1:953           0.0.0.0:*               LISTEN      6498/named
tcp6       0      0 :::53                   :::*                    LISTEN      6498/named
tcp6       0      0 ::1:953                 :::*                    LISTEN      6498/named
udp        0      0 192.168.15.13:53        0.0.0.0:*                           6498/named
udp        0      0 127.0.0.1:53            0.0.0.0:*                           6498/named
udp6       0      0 :::53                   :::*                                6498/named
unix  2      [ ACC ]     STREAM     LISTENING     12102    3653/gnome-keyring- /tmp/keyring-KF0OvH/socket
/dev/pts/8
14:49:03
#netstat -lnp|grep 53
tcp        0      0 192.168.15.13:53        0.0.0.0:*               LISTEN      6498/named
tcp        0      0 127.0.0.1:53            0.0.0.0:*               LISTEN      6498/named
tcp        0      0 127.0.0.1:953           0.0.0.0:*               LISTEN      6498/named
tcp6       0      0 :::53                   :::*                    LISTEN      6498/named
tcp6       0      0 ::1:953                 :::*                    LISTEN      6498/named
udp        0      0 192.168.15.13:53        0.0.0.0:*                           6498/named
udp        0      0 127.0.0.1:53            0.0.0.0:*                           6498/named
udp6       0      0 :::53                   :::*                                6498/named
unix  2      [ ACC ]     STREAM     LISTENING     12102    3653/gnome-keyring- /tmp/keyring-KF0OvH/socket
/dev/pts/7
14:49:15
#vim /etc/hosts
/dev/pts/8
14:49:15
#vim /etc/hosts
--- /tmp/l3-saved-4399.7484.18147	2009-06-05 14:49:37.000000000 +0300
+++ /etc/hosts	2009-06-05 14:49:41.000000000 +0300
@@ -1,2 +1 @@
 192.168.15.13	linux13
-127.0.0.1	localhost
/dev/pts/7
14:49:42
#rndc flush

/dev/pts/8
14:49:42
#rndc flush

/dev/pts/7
14:49:52
#netstat -lnp|grep 53
tcp        0      0 192.168.15.13:53        0.0.0.0:*               LISTEN      6498/named
tcp        0      0 127.0.0.1:53            0.0.0.0:*               LISTEN      6498/named
tcp        0      0 127.0.0.1:953           0.0.0.0:*               LISTEN      6498/named
tcp6       0      0 :::53                   :::*                    LISTEN      6498/named
tcp6       0      0 ::1:953                 :::*                    LISTEN      6498/named
udp        0      0 192.168.15.13:53        0.0.0.0:*                           6498/named
udp        0      0 127.0.0.1:53            0.0.0.0:*                           6498/named
udp6       0      0 :::53                   :::*                                6498/named
unix  2      [ ACC ]     STREAM     LISTENING     12102    3653/gnome-keyring- /tmp/keyring-KF0OvH/socket
/dev/pts/8
14:49:52
#netstat -lnp|grep 53
tcp        0      0 192.168.15.13:53        0.0.0.0:*               LISTEN      6498/named
tcp        0      0 127.0.0.1:53            0.0.0.0:*               LISTEN      6498/named
tcp        0      0 127.0.0.1:953           0.0.0.0:*               LISTEN      6498/named
tcp6       0      0 :::53                   :::*                    LISTEN      6498/named
tcp6       0      0 ::1:953                 :::*                    LISTEN      6498/named
udp        0      0 192.168.15.13:53        0.0.0.0:*                           6498/named
udp        0      0 127.0.0.1:53            0.0.0.0:*                           6498/named
udp6       0      0 :::53                   :::*                                6498/named
unix  2      [ ACC ]     STREAM     LISTENING     12102    3653/gnome-keyring- /tmp/keyring-KF0OvH/socket
/dev/pts/7
14:49:59
#kill -1 inetd
bash: kill: inetd: arguments must be process or job IDs
/dev/pts/8
14:49:59
#kill -1 inetd
bash: kill: inetd: arguments must be process or job IDs
/dev/pts/7
14:51:42
#ьфÑman nc
NC(1)                                                                                                 NC(1)
NAME
       nc - TCP/IP swiss army knife
SYNOPSIS
       nc [-options] hostname port[s] [ports] ...
       nc -l -p port [-options] [hostname] [port]
DESCRIPTION
       netcat is a simple unix utility which reads and writes data across network connections, using TCP or
       UDP protocol. It is designed to be a reliable "back-end" tool that can be used  directly  or  easily
       driven  by other programs and scripts.  At the same time, it is a feature-rich network debugging and
       exploration tool, since it can create almost any kind of connection you would need and  has  several
       interesting built-in capabilities.  Netcat, or "nc" as the actual program is named, should have been
       supplied long ago as another one of those cryptic but standard Unix tools.
       In the simplest usage, "nc host port" creates a TCP connection to the given port on the given target
       host.  Your standard input is then sent to the host, and anything that comes back across the connec‐
       tion is sent to your standard output.  This continues indefinitely, until the network  side  of  the
       connection shuts down.  Note that this behavior is different from most other applications which shut
       everything down and exit after an end-of-file on the standard input.
       Netcat can also function as a server, by listening for inbound connections on  arbitrary  ports  and
       then  doing  the same reading and writing.  With minor limitations, netcat doesn’t really care if it
You have new mail in /var/mail/root
/dev/pts/8
14:51:42
#ьфÑman nc
NC(1)                                                                                                 NC(1)
NAME
       nc - TCP/IP swiss army knife
SYNOPSIS
       nc [-options] hostname port[s] [ports] ...
       nc -l -p port [-options] [hostname] [port]
DESCRIPTION
       netcat is a simple unix utility which reads and writes data across network connections, using TCP or
       UDP protocol. It is designed to be a reliable "back-end" tool that can be used  directly  or  easily
       driven  by other programs and scripts.  At the same time, it is a feature-rich network debugging and
       exploration tool, since it can create almost any kind of connection you would need and  has  several
       interesting built-in capabilities.  Netcat, or "nc" as the actual program is named, should have been
       supplied long ago as another one of those cryptic but standard Unix tools.
       In the simplest usage, "nc host port" creates a TCP connection to the given port on the given target
       host.  Your standard input is then sent to the host, and anything that comes back across the connec‐
       tion is sent to your standard output.  This continues indefinitely, until the network  side  of  the
       connection shuts down.  Note that this behavior is different from most other applications which shut
       everything down and exit after an end-of-file on the standard input.
       Netcat can also function as a server, by listening for inbound connections on  arbitrary  ports  and
       then  doing  the same reading and writing.  With minor limitations, netcat doesn’t really care if it
You have new mail in /var/mail/root
/dev/pts/7
14:53:45
#mutt
 N +- 7/7: Mail Delivery Subsys   Returned mail: see transcript for details                           -- (36%)
7 kept, 0 deleted.
/dev/pts/8
14:53:45
#mutt
 N +- 7/7: Mail Delivery Subsys   Returned mail: see transcript for details                           -- (36%)
7 kept, 0 deleted.
/dev/pts/7
14:54:19
#init 6

/dev/pts/8
14:54:19
#init 6

/dev/pts/5
14:54:24
$init 6
bash: init: command not found
/dev/pts/10
14:54:24
$init 6
bash: init: command not found
/dev/pts/1
14:57:52
#su user

/dev/pts/6
14:57:52
#su user

/dev/pts/5
14:58:02
#cat /var/log/mail.log
Jun  4 18:20:01 linux13 sm-msp-queue[8221]: My unqualified host name (linux13) unknown; sleeping for retry
Jun  4 18:20:01 linux13 sm-mta[8222]: n54FK1O7008222: from=<root@linux13>, size=571, class=0, nrcpts=1, msgid=<200906041520.n54FK1iG008194@linux13>, proto=ESMTP, daemon=MTA-v4, relay=localhost [127.0.0.1] (may be forged)
Jun  4 18:20:01 linux13 sm-mta[8222]: n54FK1O7008222: to=<root@linux13>, delay=00:00:00, mailer=local, pri=30571, dsn=4.4.3, stat=queued
Jun  4 18:20:01 linux13 sendmail[8194]: n54FK1iG008194: to=root, ctladdr=root (0/0), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30341, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (n54FK1O7008222 Message accepted for delivery)
Jun  4 18:21:01 linux13 sendmail[8211]: unable to qualify my own domain name (linux13) -- using short name
Jun  4 18:21:01 linux13 sendmail[8211]: n54FL101008211: from=root, size=341, class=0, nrcpts=1, msgid=<200906041521.n54FL101008211@linux13>, relay=root@localhost
Jun  4 18:21:01 linux13 sm-msp-queue[8221]: unable to qualify my own domain name (linux13) -- using short name
Jun  4 18:21:01 linux13 sm-mta[8245]: n54FL1Rm008245: from=<root@linux13>, size=571, class=0, nrcpts=1, msgid=<200906041521.n54FL101008211@linux13>, proto=ESMTP, daemon=MTA-v4, relay=localhost [127.0.0.1] (may be forged)
Jun  4 18:21:01 linux13 sm-mta[8245]: n54FL1Rm008245: to=<root@linux13>, delay=00:00:00, mailer=local, pri=30571, dsn=4.4.3, stat=queued
Jun  4 18:21:01 linux13 sendmail[8211]: n54FL101008211: to=root, ctladdr=root (0/0), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30341, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (n54FL1Rm008245 Message accepted for delivery)
...
Jun  4 18:40:01 linux13 sm-mta[9057]: n54Fe1LW009057: to=<root@linux13>, delay=00:00:00, mailer=local, pri=30571, dsn=4.4.3, stat=queued
Jun  4 18:40:01 linux13 sendmail[9054]: My unqualified host name (linux13) unknown; sleeping for retry
Jun  4 18:40:01 linux13 sendmail[9009]: n54Fe1Bm009009: to=root, ctladdr=root (0/0), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30341, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (n54Fe1LW009057 Message accepted for delivery)
Jun  4 18:40:01 linux13 sm-msp-queue[9064]: My unqualified host name (linux13) unknown; sleeping for retry
Jun  4 18:41:01 linux13 sendmail[9054]: unable to qualify my own domain name (linux13) -- using short name
Jun  4 18:41:01 linux13 sendmail[9054]: n54Ff1s0009054: from=root, size=341, class=0, nrcpts=1, msgid=<200906041541.n54Ff1s0009054@linux13>, relay=root@localhost
Jun  4 18:41:01 linux13 sendmail[9076]: My unqualified host name (linux13) unknown; sleeping for retry
Jun  4 18:41:01 linux13 sm-mta[9069]: n54Ff1bb009069: from=<root@linux13>, size=571, class=0, nrcpts=1, msgid=<200906041541.n54Ff1s0009054@linux13>, proto=ESMTP, daemon=MTA-v4, relay=localhost [127.0.0.1] (may be forged)
Jun  4 18:41:01 linux13 sm-mta[9069]: n54Ff1bb009069: to=<root@linux13>, delay=00:00:00, mailer=local, pri=30571, dsn=4.4.3, stat=queued
Jun  4 18:41:01 linux13 sendmail[9054]: n54Ff1s0009054: to=root, ctladdr=root (0/0), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30341, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (n54Ff1bb009069 Message accepted for delivery)
/dev/pts/8
14:58:02
#cat /var/log/mail.log
Jun  4 18:20:01 linux13 sm-msp-queue[822