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

Содержание

Журнал

Суббота (03/04/06)

/dev/ttyv0
14:25:28
#ssh-keygen -l -f /etc/ssh/ssh_host_rsa_key
2048 fa:21:16:74:17:76:d8:9c:1d:e4:31:84:57:59:8d:89 /etc/ssh/ssh_host_rsa_key.pub
14:26:17
#ssh-keygen -l -f /etc/ssh/ssh_host_rsa_key
2048 fa:21:16:74:17:76:d8:9c:1d:e4:31:84:57:59:8d:89 /etc/ssh/ssh_host_rsa_key.pub
14:26:29
#ssh-keyscan 192.168.15.3
connect (`192.168.15.3'): Permission denied
14:30:29
#ssh-keyscan 192.168.15.4
connect (`192.168.15.4'): Permission denied
14:30:35
#ssh-keyscan 192.168.15.5
connect (`192.168.15.5'): Permission denied
14:30:52
#ssh-keyscan 192.168.15.22

14:30:57
#ssh-keyscan 192.168.15.21
connect (`192.168.15.21'): Permission denied
14:31:06
#ping google.com
PING google.com (192.168.15.254): 56 data bytes
64 bytes from 192.168.15.254: icmp_seq=0 ttl=64 time=0.301 ms
64 bytes from 192.168.15.254: icmp_seq=1 ttl=64 time=0.284 ms
64 bytes from 192.168.15.254: icmp_seq=2 ttl=64 time=0.292 ms
64 bytes from 192.168.15.254: icmp_seq=3 ttl=64 time=0.293 ms
^C
--- google.com ping statistics ---
4 packets transmitted, 4 packets received, 0% packet loss
round-trip min/avg/max/stddev = 0.284/0.292/0.301/0.006 ms
14:38:15
#ping goooooooooooogle.com
PING goooooooooooogle.com (192.168.15.254): 56 data bytes
64 bytes from 192.168.15.254: icmp_seq=0 ttl=64 time=0.314 ms
64 bytes from 192.168.15.254: icmp_seq=1 ttl=64 time=0.282 ms
64 bytes from 192.168.15.254: icmp_seq=2 ttl=64 time=0.295 ms
64 bytes from 192.168.15.254: icmp_seq=3 ttl=64 time=0.278 ms
^C
--- goooooooooooogle.com ping statistics ---
4 packets transmitted, 4 packets received, 0% packet loss
round-trip min/avg/max/stddev = 0.278/0.292/0.314/0.014 ms
14:38:25
#ping mail.ru
PING mail.ru (194.67.57.26): 56 data bytes
64 bytes from 194.67.57.26: icmp_seq=0 ttl=114 time=130.087 ms
64 bytes from 194.67.57.26: icmp_seq=1 ttl=114 time=128.438 ms
64 bytes from 194.67.57.26: icmp_seq=2 ttl=114 time=134.333 ms
64 bytes from 194.67.57.26: icmp_seq=3 ttl=114 time=128.394 ms
64 bytes from 194.67.57.26: icmp_seq=4 ttl=114 time=127.996 ms
64 bytes from 194.67.57.26: icmp_seq=5 ttl=114 time=130.319 ms
^C
--- mail.ru ping statistics ---
6 packets transmitted, 6 packets received, 0% packet loss
round-trip min/avg/max/stddev = 127.996/129.928/134.333/2.156 ms
14:46:19
#ssh-keygen -t dsa -f key
Generating public/private dsa key pair.
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in key.
Your public key has been saved in key.pub.
The key fingerprint is:
be:bb:58:11:62:47:87:66:c7:c3:96:cd:ff:ad:01:86 root@fbsd2
/dev/ttyp1
14:48:42
#less /etc/rc.d/sshd
14:50:37
#cd /usr/ports/

прошло 11 минут
/dev/ttyv0
15:01:39
#ssh-keygen -t dsa
Generating public/private dsa key pair.
Enter file in which to save the key (/root/.ssh/id_dsa):
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /root/.ssh/id_dsa.
Your public key has been saved in /root/.ssh/id_dsa.pub.
The key fingerprint is:
b0:9d:32:a1:d6:3b:10:a7:dd:e5:39:52:b2:f4:c4:c0 root@fbsd2
15:03:45
#cat /root/.ssh/id_dsa.pub | ssh m01 `cat >> ~/ssh/authorized_ke
[root@fbsd2:~]# cat /root/.ssh/id_dsa.pub | ssh m01 cat >> ~/ssh/authorized_key
[root@fbsd2:~]# cat /root/.ssh/id_dsa.pub | ssh m01 'cat >> ~/ssh/authorized_ke
 root@fbsd2:~]# cat /root/.ssh/id_dsa.pub | ssh m01 '
y
ssh: connect to host fbsd1.unix.nt port 22: Permission denied
15:06:16
#ipfw show
00030   27   1652 allow tcp from any to me dst-port 22 setup
00030    6    384 allow tcp from any to me dst-port 25 setup
00030    0      0 allow tcp from any to me dst-port 80 setup
00035 1195 188695 allow tcp from any to any established
00040    0      0 allow udp from any to me dst-port 53 in keep-state
00050  320  28728 allow udp from me to any keep-state
01000   74  10532 unreach port udp from any to any
01200   37   2856 allow icmp from me to any keep-state
64000    9    600 count log logamount 10 ip from any to any
65000    5    320 reset tcp from any to any
65535    9    632 deny ip from any to any
15:06:38
#ipfw add 20 allow tcp from me to any setup
00020 allow tcp from me to any setup
15:08:29
#cat /root/.ssh/id_dsa.pub | ssh m01 'cat >> ~/ssh/authorized_ke
ys'
The authenticity of host 'fbsd1.unix.nt (192.168.15.21)' can't be established.
DSA key fingerprint is 3e:b1:81:3d:cb:49:64:b9:ac:78:7f:b0:ea:d1:7f:76.
Are you sure you want to continue connecting (yes/no)? y
Please type 'yes' or 'no': yes
Warning: Permanently added 'fbsd1.unix.nt' (DSA) to the list of known hosts.
Password:
bash: /root/ssh/authorized_keys: No such file or directory
15:08:53
#cat /root/.ssh/id_dsa.pub | ssh m01 'cat >> ~/ssh/authorized_ke
[root@fbsd2:~]# cat /root/.ssh/id_dsa.pub | ssh m01 'cat >> ~//ssh/authorized_k
yroot@fbsd2:~]# cat /root/.ssh/id_dsa.pub | ssh m01 'cat >> ~/ssh/authorized_ke
[root@fbsd2:~]# cat /root/.ssh/id_dsa.pub | ssh m01 'cat >> ~/.ssh/authorized_k
 root@fbsd2:~]# cat /root/.ssh/id_dsa.pub | ssh m01 'cat >> ~/.
e
Password:
15:09:30
#ssh -l m01
usage: ssh [-1246AaCfgkMNnqsTtVvXxY] [-b bind_address] [-c cipher_spec]
           [-D port] [-e escape_char] [-F configfile]
           [-i identity_file] [-L [bind_address:]port:host:hostport]
           [-l login_name] [-m mac_spec] [-O ctl_cmd] [-o option] [-p port]
           [-R [bind_address:]port:host:hostport] [-S ctl_path]
           [user@]hostname [command]
15:09:42
#ssh m01
Enter passphrase for key '/root/.ssh/id_dsa':
Last login: Sat Mar  4 12:52:24 2006 from fbsd1.unix.nt
Copyright (c) 1980, 1983, 1986, 1988, 1990, 1991, 1993, 1994
        The Regents of the University of California.  All rights reserved.
FreeBSD 6.0-RELEASE (Kernel) #0: Sat Mar  4 11:18:53 EET 2006
Welcome to FreeBSD!
Before seeking technical support, please use the following resources:
o  Security advisories and updated errata information for all releases are
   at http://www.FreeBSD.org/releases/ - always consult the ERRATA section
   for your release first as it's updated frequently.
...
   http://www.FreeBSD.org/search/.  If the doc distribution has
   been installed, they're also available formatted in /usr/share/doc.
If you still have a question or problem, please take the output of
`uname -a', along with any relevant error messages, and email it
as a question to the questions@FreeBSD.org mailing list.  If you are
unfamiliar with FreeBSD's directory layout, please refer to the hier(7)
manual page.  If you are not familiar with manual pages, type `man man'.
You may also use sysinstall(8) to re-enter the installation and
configuration utility.  Edit /etc/motd to change this login announcement.
l3-agent is already running: pid=690; pidfile=/root/.lilalo/l3-agent.pid
15:11:08
#exit
exit
Connection to fbsd1.unix.nt closed.
15:11:08
#cat /root/.ssh/id_dsa.pub | ssh m01 'cat >> ~/.ssh/authorized_k
     @fbsd2:~]# cat /root/.ssh/id_dsa.pub | ssh m01 'cat >> ~/ssh/authorized_ke
eys't@fbsd2:~]# ipfw add 20 allow tcp from me to any setup
[root@fbsd2:~]# ipfw show
00020    3    192 allow tcp from me to any setup
00030   30   1844 allow tcp from any to me dst-port 22 setup
00030    6    384 allow tcp from any to me dst-port 25 setup
00030    0      0 allow tcp from any to me dst-port 80 setup
00035 1427 237747 allow tcp from any to any established
00040    0      0 allow udp from any to me dst-port 53 in keep-state
00050  380  34076 allow udp from me to any keep-state
01000   80  11467 unreach port udp from any to any
01200   37   2856 allow icmp from me to any keep-state
64000    9    600 count log logamount 10 ip from any to any
65000    5    320 reset tcp from any to any
65535    9    632 deny ip from any to any
15:11:08
#ssh 192.168.15.21
Enter passphrase for key '/root/.ssh/id_dsa':
Last login: Sat Mar  4 15:11:07 2006 from fbsd2.linux.nt
Copyright (c) 1980, 1983, 1986, 1988, 1990, 1991, 1993, 1994
        The Regents of the University of California.  All rights reserved.
FreeBSD 6.0-RELEASE (Kernel) #0: Sat Mar  4 11:18:53 EET 2006
Welcome to FreeBSD!
Before seeking technical support, please use the following resources:
o  Security advisories and updated errata information for all releases are
   at http://www.FreeBSD.org/releases/ - always consult the ERRATA section
   for your release first as it's updated frequently.
...
   http://www.FreeBSD.org/search/.  If the doc distribution has
   been installed, they're also available formatted in /usr/share/doc.
If you still have a question or problem, please take the output of
`uname -a', along with any relevant error messages, and email it
as a question to the questions@FreeBSD.org mailing list.  If you are
unfamiliar with FreeBSD's directory layout, please refer to the hier(7)
manual page.  If you are not familiar with manual pages, type `man man'.
You may also use sysinstall(8) to re-enter the installation and
configuration utility.  Edit /etc/motd to change this login announcement.
l3-agent is already running: pid=690; pidfile=/root/.lilalo/l3-agent.pid
15:16:42
#exit
exit
Connection to 192.168.15.21 closed.
15:16:42
#ssh 192.168.15.21
Enter passphrase for key '/root/.ssh/id_dsa':
Last login: Sat Mar  4 15:16:41 2006 from fbsd2.linux.nt
Copyright (c) 1980, 1983, 1986, 1988, 1990, 1991, 1993, 1994
        The Regents of the University of California.  All rights reserved.
FreeBSD 6.0-RELEASE (Kernel) #0: Sat Mar  4 11:18:53 EET 2006
Welcome to FreeBSD!
Before seeking technical support, please use the following resources:
o  Security advisories and updated errata information for all releases are
   at http://www.FreeBSD.org/releases/ - always consult the ERRATA section
   for your release first as it's updated frequently.
...
   http://www.FreeBSD.org/search/.  If the doc distribution has
   been installed, they're also available formatted in /usr/share/doc.
If you still have a question or problem, please take the output of
`uname -a', along with any relevant error messages, and email it
as a question to the questions@FreeBSD.org mailing list.  If you are
unfamiliar with FreeBSD's directory layout, please refer to the hier(7)
manual page.  If you are not familiar with manual pages, type `man man'.
You may also use sysinstall(8) to re-enter the installation and
configuration utility.  Edit /etc/motd to change this login announcement.
l3-agent is already running: pid=690; pidfile=/root/.lilalo/l3-agent.pid
15:16:54
#exit
exit
Connection to 192.168.15.21 closed.
15:16:54
#ipfw show
00020    5    320 allow tcp from me to any setup
00030   37   2292 allow tcp from any to me dst-port 22 setup
00030    6    384 allow tcp from any to me dst-port 25 setup
00030    0      0 allow tcp from any to me dst-port 80 setup
00035 1852 325697 allow tcp from any to any established
00040    0      0 allow udp from any to me dst-port 53 in keep-state
00050  496  44412 allow udp from me to any keep-state
01000   85  12148 unreach port udp from any to any
01200   37   2856 allow icmp from me to any keep-state
64000    9    600 count log logamount 10 ip from any to any
65000    5    320 reset tcp from any to any
65535    9    632 deny ip from any to any
15:16:54
#cd /etc/re
remote       resolv.conf
15:16:54
#cd /etc/resolv.conf
bash: cd: /etc/resolv.conf: Not a directory
15:16:54
#les /etc/resolv.conf
bash: les: command not found
15:16:54
#less /etc/resolv.conf
15:16:54
#dig ggb.com.ua NS
; <<>> DiG 9.3.1 <<>> ggb.com.ua NS
;; global options:  printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 11101
;; flags: qr rd ra; QUERY: 1, ANSWER: 3, AUTHORITY: 0, ADDITIONAL: 3
;; QUESTION SECTION:
;ggb.com.ua.                    IN      NS
;; ANSWER SECTION:
ggb.com.ua.             345600  IN      NS      ns3.domino.net.ua.
ggb.com.ua.             345600  IN      NS      ns1.domino.net.ua.
ggb.com.ua.             345600  IN      NS      ns2.domino.net.ua.
;; ADDITIONAL SECTION:
ns1.domino.net.ua.      86400   IN      A       212.40.45.130
ns2.domino.net.ua.      86400   IN      A       204.91.10.86
ns3.domino.net.ua.      86400   IN      A       212.109.44.47
;; Query time: 297 msec
;; SERVER: 192.168.15.254#53(192.168.15.254)
;; WHEN: Sat Mar  4 16:15:37 2006
;; MSG SIZE  rcvd: 141
15:16:54
#dig ggb.com.ua MX
; <<>> DiG 9.3.1 <<>> ggb.com.ua MX
;; global options:  printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: SERVFAIL, id: 39408
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0
;; QUESTION SECTION:
;ggb.com.ua.                    IN      MX
;; Query time: 2268 msec
;; SERVER: 192.168.15.254#53(192.168.15.254)
;; WHEN: Sat Mar  4 16:16:23 2006
;; MSG SIZE  rcvd: 28
15:16:54
#dig mail.ru MX
; <<>> DiG 9.3.1 <<>> mail.ru MX
;; global options:  printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 11712
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 6, ADDITIONAL: 1
;; QUESTION SECTION:
;mail.ru.                       IN      MX
;; ANSWER SECTION:
mail.ru.                21600   IN      MX      10 mxs.mail.ru.
;; AUTHORITY SECTION:
...
mail.ru.                21600   IN      NS      ns3.mail.ru.
mail.ru.                21600   IN      NS      ns4.mail.ru.
mail.ru.                21600   IN      NS      ns5.mail.ru.
mail.ru.                21600   IN      NS      ns.mail.ru.
;; ADDITIONAL SECTION:
mxs.mail.ru.            21600   IN      A       194.67.23.20
;; Query time: 133 msec
;; SERVER: 192.168.15.254#53(192.168.15.254)
;; WHEN: Sat Mar  4 16:16:46 2006
;; MSG SIZE  rcvd: 168
15:16:54
#less /etc/resolv.conf
15:16:54
#dig ru NS
; <<>> DiG 9.3.1 <<>> ru NS
;; global options:  printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 50394
;; flags: qr rd ra; QUERY: 1, ANSWER: 8, AUTHORITY: 0, ADDITIONAL: 0
;; QUESTION SECTION:
;ru.                            IN      NS
;; ANSWER SECTION:
ru.                     345567  IN      NS      ns9.ripn.net.
ru.                     345567  IN      NS      sunic.sunet.se.
ru.                     345567  IN      NS      auth60.ns.uu.net.
ru.                     345567  IN      NS      ns.ripn.net.
ru.                     345567  IN      NS      ns1.relcom.ru.
ru.                     345567  IN      NS      ns2.nic.fr.
ru.                     345567  IN      NS      ns2.ripn.net.
ru.                     345567  IN      NS      ns5.msk-ix.net.
;; Query time: 1 msec
;; SERVER: 192.168.15.254#53(192.168.15.254)
;; WHEN: Sat Mar  4 16:20:06 2006
;; MSG SIZE  rcvd: 210
15:16:54
#host ns.kg
ns.kg has address 195.38.160.36
15:16:54
#whois 195.38.160.36
OrgName:    RIPE Network Coordination Centre
OrgID:      RIPE
Address:    P.O. Box 10096
City:       Amsterdam
StateProv:
PostalCode: 1001EB
Country:    NL
ReferralServer: whois://whois.ripe.net:43
NetRange:   195.0.0.0 - 195.255.255.255
CIDR:       195.0.0.0/8
...
phone:        +996 312 664488
nic-hdl:      VY6-RIPE
source:       RIPE # Filtered
% Information related to '195.38.160.0/19AS8511'
route:        195.38.160.0/19
descr:        ASIAINFO Network
descr:        Bishkek, Kyrgyzstan
origin:       AS8511
mnt-by:       AS8511-MNT
source:       RIPE # Filtered
15:16:54
#dig iukr.com.ua
; <<>> DiG 9.3.1 <<>> iukr.com.ua
;; global options:  printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 42592
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 2, ADDITIONAL: 0
;; QUESTION SECTION:
;iukr.com.ua.                   IN      A
;; ANSWER SECTION:
iukr.com.ua.            43200   IN      A       62.149.2.7
;; AUTHORITY SECTION:
iukr.com.ua.            43200   IN      NS      ns2.dns.com.ua.
iukr.com.ua.            43200   IN      NS      ns.dns.com.ua.
;; Query time: 91 msec
;; SERVER: 192.168.15.254#53(192.168.15.254)
;; WHEN: Sat Mar  4 16:21:19 2006
;; MSG SIZE  rcvd: 84
15:16:54
#host 212.113.39.146
146.39.113.212.in-addr.arpa domain name pointer iukr-lan02.utel.net.ua.
15:16:54
#whois 212.113.39.146
OrgName:    RIPE Network Coordination Centre
OrgID:      RIPE
Address:    P.O. Box 10096
City:       Amsterdam
StateProv:
PostalCode: 1001EB
Country:    NL
ReferralServer: whois://whois.ripe.net:43
NetRange:   212.0.0.0 - 212.255.255.255
CIDR:       212.0.0.0/8
...
nic-hdl:        UNOC-RIPE
mnt-by:         AS6877-MNT
source:         RIPE # Filtered
% Information related to '212.113.36.0/22AS6877'
route:        212.113.36.0/22
descr:        Utel-Certain-Route-36/22
descr:        Internet Service, Ukraine
origin:       AS6877
mnt-by:       AS6877-MNT
source:       RIPE # Filtered
15:16:54
#whois 192.168.15.254
OrgName:    Internet Assigned Numbers Authority
OrgID:      IANA
Address:    4676 Admiralty Way, Suite 330
City:       Marina del Rey
StateProv:  CA
PostalCode: 90292-6695
Country:    US
NetRange:   192.168.0.0 - 192.168.255.255
CIDR:       192.168.0.0/16
NetName:    IANA-CBLK1
...
OrgAbuseHandle: IANA-IP-ARIN
OrgAbuseName:   Internet Corporation for Assigned Names and Number
OrgAbusePhone:  +1-310-301-5820
OrgAbuseEmail:  abuse@iana.org
OrgTechHandle: IANA-IP-ARIN
OrgTechName:   Internet Corporation for Assigned Names and Number
OrgTechPhone:  +1-310-301-5820
OrgTechEmail:  abuse@iana.org
# ARIN WHOIS database, last updated 2006-03-03 19:10
# Enter ? for additional hints on searching ARIN's WHOIS database.
15:16:54
#whois
usage: whois [-aAbdgiIklmQrR6] [-c country-code | -h hostname] [-p port] name ...
15:16:54
#whois ua
Whois Server Version 1.3
Domain names in the .com and .net domains can now be registered
with many different competing registrars. Go to http://www.internic.net
for detailed information.
UA.ASCOLOGISTIC.COM
UA.NET
UA.EDU
UA.COM
UA
To single out one record, look it up with "xxx", where xxx is one of the
...
prohibited without the prior written consent of VeriSign. You agree not to
use electronic processes that are automated and high-volume to access or
query the Whois database except as reasonably necessary to register
domain names or modify existing registrations. VeriSign reserves the right
to restrict your access to the Whois database in its sole discretion to ensure
operational stability.  VeriSign may restrict or terminate your access to the
Whois database for failure to abide by these terms of use. VeriSign
reserves the right to modify these terms at any time.
The Registry database contains ONLY .COM, .NET, .EDU domains and
Registrars.
15:16:54
#whois .ua
Whois Server Version 1.3
Domain names in the .com and .net domains can now be registered
with many different competing registrars. Go to http://www.internic.net
for detailed information.
No match for nameserver "UA".
>>> Last update of whois database: Sat, 4 Mar 2006 02:48:44 EST <<<
NOTICE: The expiration date displayed in this record is the date the
registrar's sponsorship of the domain name registration in the registry is
currently set to expire. This date does not necessarily reflect the expiration
date of the domain name registrant's agreement with the sponsoring
...
prohibited without the prior written consent of VeriSign. You agree not to
use electronic processes that are automated and high-volume to access or
query the Whois database except as reasonably necessary to register
domain names or modify existing registrations. VeriSign reserves the right
to restrict your access to the Whois database in its sole discretion to ensure
operational stability.  VeriSign may restrict or terminate your access to the
Whois database for failure to abide by these terms of use. VeriSign
reserves the right to modify these terms at any time.
The Registry database contains ONLY .COM, .NET, .EDU domains and
Registrars.
15:16:54
#whois ru
Whois Server Version 1.3
Domain names in the .com and .net domains can now be registered
with many different competing registrars. Go to http://www.internic.net
for detailed information.
RU.UIB.NO
RU.RU.RU
RU.RHOST.RU
RU.PORNO-FOTOK.NET
RU.IDIG.NET
RU.EUTOCN.COM
...
prohibited without the prior written consent of VeriSign. You agree not to
use electronic processes that are automated and high-volume to access or
query the Whois database except as reasonably necessary to register
domain names or modify existing registrations. VeriSign reserves the right
to restrict your access to the Whois database in its sole discretion to ensure
operational stability.  VeriSign may restrict or terminate your access to the
Whois database for failure to abide by these terms of use. VeriSign
reserves the right to modify these terms at any time.
The Registry database contains ONLY .COM, .NET, .EDU domains and
Registrars.
15:16:54
#whois .ru
Whois Server Version 1.3
Domain names in the .com and .net domains can now be registered
with many different competing registrars. Go to http://www.internic.net
for detailed information.
No match for nameserver "RU".
>>> Last update of whois database: Sat, 4 Mar 2006 02:48:44 EST <<<
NOTICE: The expiration date displayed in this record is the date the
registrar's sponsorship of the domain name registration in the registry is
currently set to expire. This date does not necessarily reflect the expiration
date of the domain name registrant's agreement with the sponsoring
...
prohibited without the prior written consent of VeriSign. You agree not to
use electronic processes that are automated and high-volume to access or
query the Whois database except as reasonably necessary to register
domain names or modify existing registrations. VeriSign reserves the right
to restrict your access to the Whois database in its sole discretion to ensure
operational stability.  VeriSign may restrict or terminate your access to the
Whois database for failure to abide by these terms of use. VeriSign
reserves the right to modify these terms at any time.
The Registry database contains ONLY .COM, .NET, .EDU domains and
Registrars.
15:16:54
#whois .com
Whois Server Version 1.3
Domain names in the .com and .net domains can now be registered
with many different competing registrars. Go to http://www.internic.net
for detailed information.
No match for nameserver "COM".
>>> Last update of whois database: Sat, 4 Mar 2006 02:48:44 EST <<<
NOTICE: The expiration date displayed in this record is the date the
registrar's sponsorship of the domain name registration in the registry is
currently set to expire. This date does not necessarily reflect the expiration
date of the domain name registrant's agreement with the sponsoring
...
prohibited without the prior written consent of VeriSign. You agree not to
use electronic processes that are automated and high-volume to access or
query the Whois database except as reasonably necessary to register
domain names or modify existing registrations. VeriSign reserves the right
to restrict your access to the Whois database in its sole discretion to ensure
operational stability.  VeriSign may restrict or terminate your access to the
Whois database for failure to abide by these terms of use. VeriSign
reserves the right to modify these terms at any time.
The Registry database contains ONLY .COM, .NET, .EDU domains and
Registrars.
15:16:54
#whois google.com
Whois Server Version 1.3
Domain names in the .com and .net domains can now be registered
with many different competing registrars. Go to http://www.internic.net
for detailed information.
GOOGLE.COM.VN
GOOGLE.COM.UA
GOOGLE.COM.SUCKS.FIND.CRACKZ.WITH.SEARCH.GULLI.COM
GOOGLE.COM.MX
GOOGLE.COM.IS.NOT.HOSTED.BY.ACTIVEDOMAINDNS.NET
GOOGLE.COM.IS.APPROVED.BY.NUMEA.COM
...
prohibited without the prior written consent of VeriSign. You agree not to
use electronic processes that are automated and high-volume to access or
query the Whois database except as reasonably necessary to register
domain names or modify existing registrations. VeriSign reserves the right
to restrict your access to the Whois database in its sole discretion to ensure
operational stability.  VeriSign may restrict or terminate your access to the
Whois database for failure to abide by these terms of use. VeriSign
reserves the right to modify these terms at any time.
The Registry database contains ONLY .COM, .NET, .EDU domains and
Registrars.
15:16:54
#whois fsb.ru
% By submitting a query to RIPN's Whois Service
% you agree to abide by the following terms of use:
% http://www.ripn.net/about/servpol.html#3.2 (in Russian)
% http://www.ripn.net/about/en/servpol.html#3.2 (in English).
domain:     FSB.RU
type:       CORPORATE
descr:      Corporate domain for Federal Security Service
nserver:    ns1.fsb.ru. 213.24.76.2
nserver:    ns2.fsb.ru. 194.226.94.138
state:      REGISTERED, DELEGATED
org:        Federal Security Service of Russian Federation
phone:      +7 095 9149084
fax-no:     +7 095 9149084
e-mail:     admin@fsb.ru
registrar:  RTCOMM-REG-RIPN
created:    1998.07.06
paid-till:  2006.08.01
source:     TC-RIPN
Last updated on 2006.03.04 17:29:23 MSK/MSD
15:16:54
#whreis bind
bash: whreis: command not found
15:16:54
#wheris bind
bash: wheris: command not found
15:16:54
#fin . -name bind
bash: fin: command not found
15:16:54
#find . -name bind

15:16:54
#cd /usr/ports/

15:16:54
#fing . -name 'bind'
bash: fing: command not found
15:16:54
#cd /usr/ports/

15:16:54
#ls
.cvsignore      arabic          emulators       mbone           sysutils
CHANGES         archivers       finance         misc            textproc
COPYRIGHT       astro           french          multimedia      ukrainian
INDEX-6         audio           ftp             net             vietnamese
INDEX-6.bz2     benchmarks      games           net-im          www
INDEX-6.db      biology         german          net-mgmt        x11
KNOBS           cad             graphics        net-p2p         x11-clocks
LEGAL           chinese         hebrew          news            x11-fm
MOVED           comms           hungarian       palm            x11-fonts
Makefile        converters      irc             polish          x11-servers
Mk              databases       japanese        portuguese      x11-themes
README          deskutils       java            print           x11-toolkits
Templates       devel           korean          russian         x11-wm
Tools           distfiles       lang            science
UPDATING        dns             mail            security
accessibility   editors         math            shells
15:16:54
#cd dns

15:16:54
#ls
Makefile                        libidn
adns                            maradns
ares                            mdnsd
bind8                           mydns
bind84                          noip
bind9                           nsd
bind9-dlz                       nslint
bind9-sdb-ldap                  nsping
checkdns                        odsclient
crossip                         p5-BIND-Conf_Parser
...
gresolver                       sleuth
h2n                             sqldjbdns
hesiod                          staticcharge
host                            tinystats
idnkit                          totd
inadyn                          updatedd
ipcheck                         walker
ldapdns                         zonecheck
ldns                            zonenotify
libdjbdns
15:16:54
#pwd
/usr/ports/dns
15:16:54
#ls | grep bind
bind8
bind84
bind9
bind9-dlz
bind9-sdb-ldap
15:16:54
#man bind
15:16:54
#named -v
BIND 9.3.1
15:16:54
#vi /etc/rc.conf
34a35
> inetd_enable="YES"
15:16:54
#vi /etc/namedb/named.conf
15:16:54
#vi /etc/namedb/named.conf
15:16:54
#/etc/rc.d/named restart

15:16:54
#dig mail.ru
; <<>> DiG 9.3.1 <<>> mail.ru
;; global options:  printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 27690
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 6, ADDITIONAL: 0
;; QUESTION SECTION:
;mail.ru.                       IN      A
;; ANSWER SECTION:
mail.ru.                21600   IN      A       194.67.57.26
;; AUTHORITY SECTION:
mail.ru.                18855   IN      NS      ns1.mail.ru.
mail.ru.                18855   IN      NS      ns2.mail.ru.
mail.ru.                18855   IN      NS      ns3.mail.ru.
mail.ru.                18855   IN      NS      ns4.mail.ru.
mail.ru.                18855   IN      NS      ns5.mail.ru.
mail.ru.                18855   IN      NS      ns.mail.ru.
;; Query time: 134 msec
;; SERVER: 192.168.15.254#53(192.168.15.254)
;; WHEN: Sat Mar  4 17:02:31 2006
;; MSG SIZE  rcvd: 148
15:16:54
#dig @127.0.0.1 mail.ru

15:16:54
#tail /var/log/messages
Mar  4 13:59:17 fbsd2 kernel: Trying to mount root from ufs:/dev/ad1s1a
Mar  4 13:59:18 fbsd2 savecore: no dumps found
Mar  4 13:59:54 fbsd2 sm-mta[444]: NOQUEUE: SYSERR(root): /etc/mail/sendmail.cf: line 97: fileclass: cannot open '/etc/mail/local-host-names': No such file or directory
Mar  4 13:59:55 fbsd2 kernel: fxp0: promiscuous mode enabled
Mar  4 13:59:56 fbsd2 xinetd[525]: xinetd Version 2.3.14 started with libwrap loadavg options compiled in.
Mar  4 13:59:56 fbsd2 xinetd[525]: Started working: 3 available services
Mar  4 13:59:56 fbsd2 kernel: fxp0: promiscuous mode disabled
Mar  4 14:00:03 fbsd2 login: ROOT LOGIN (root) ON ttyv0
Mar  4 16:28:20 fbsd2 kernel: ipfw: limit 10 reached on entry 64000
Mar  4 16:48:53 fbsd2 login: ROOT LOGIN (root) ON ttyv1
15:16:54
#vi /etc/namedb/named.conf
15:16:54
#/etc/rc.d/named restart

15:16:54
#vi /etc/rc.con
15:16:54
#vi /etc/rc.conf
15:16:54
#/etc/rc.d/named restart
named not running? (check /var/run/named/pid).
wrote key file "/etc/namedb/rndc.key"
wrote key file "/var/named/etc/namedb/rndc.key"
Starting named.
15:16:54
#cd /etc/namedb

15:16:54
#ls
PROTO.localhost-v6.rev  make-localhost          named.root
PROTO.localhost.rev     master                  rndc.key
dynamic                 named.conf              slave
15:16:54
#sh make-localhost
Enter your domain name: ff.unix.nt
15:16:54
#/etc/rc.d/named restart
Stopping named.
Starting named.
15:16:54
#hostname
fbsd2
15:16:54
#dig mail.ru
; <<>> DiG 9.3.1 <<>> mail.ru
;; global options:  printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 8276
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 6, ADDITIONAL: 0
;; QUESTION SECTION:
;mail.ru.                       IN      A
;; ANSWER SECTION:
mail.ru.                21176   IN      A       194.67.57.26
;; AUTHORITY SECTION:
mail.ru.                18431   IN      NS      ns2.mail.ru.
mail.ru.                18431   IN      NS      ns3.mail.ru.
mail.ru.                18431   IN      NS      ns4.mail.ru.
mail.ru.                18431   IN      NS      ns5.mail.ru.
mail.ru.                18431   IN      NS      ns.mail.ru.
mail.ru.                18431   IN      NS      ns1.mail.ru.
;; Query time: 1 msec
;; SERVER: 192.168.15.254#53(192.168.15.254)
;; WHEN: Sat Mar  4 17:09:35 2006
;; MSG SIZE  rcvd: 148
15:16:54
#dig mail.ru @127.0.0.1
; <<>> DiG 9.3.1 <<>> mail.ru @127.0.0.1
; (1 server found)
;; global options:  printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 19775
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 6, ADDITIONAL: 0
;; QUESTION SECTION:
;mail.ru.                       IN      A
;; ANSWER SECTION:
mail.ru.                21151   IN      A       194.67.57.26
;; AUTHORITY SECTION:
mail.ru.                18406   IN      NS      ns.mail.ru.
mail.ru.                18406   IN      NS      ns1.mail.ru.
mail.ru.                18406   IN      NS      ns2.mail.ru.
mail.ru.                18406   IN      NS      ns3.mail.ru.
mail.ru.                18406   IN      NS      ns4.mail.ru.
mail.ru.                18406   IN      NS      ns5.mail.ru.
;; Query time: 3 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Sat Mar  4 17:10:00 2006
;; MSG SIZE  rcvd: 148
15:16:54
#dig unix.nt @127.0.0.1
; <<>> DiG 9.3.1 <<>> unix.nt @127.0.0.1
; (1 server found)
;; global options:  printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 41995
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 0
;; QUESTION SECTION:
;unix.nt.                       IN      A
;; ANSWER SECTION:
unix.nt.                604800  IN      A       192.168.15.254
;; AUTHORITY SECTION:
unix.nt.                604800  IN      NS      unix.nt.
;; Query time: 3 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Sat Mar  4 17:10:12 2006
;; MSG SIZE  rcvd: 55
15:16:54
#vi /etc/resolv.conf
15:16:54
#dig mail.ru
; <<>> DiG 9.3.1 <<>> mail.ru
;; global options:  printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 25396
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 6, ADDITIONAL: 0
;; QUESTION SECTION:
;mail.ru.                       IN      A
;; ANSWER SECTION:
mail.ru.                20967   IN      A       194.67.57.26
;; AUTHORITY SECTION:
mail.ru.                18222   IN      NS      ns5.mail.ru.
mail.ru.                18222   IN      NS      ns.mail.ru.
mail.ru.                18222   IN      NS      ns1.mail.ru.
mail.ru.                18222   IN      NS      ns2.mail.ru.
mail.ru.                18222   IN      NS      ns3.mail.ru.
mail.ru.                18222   IN      NS      ns4.mail.ru.
;; Query time: 1 msec
;; SERVER: 192.168.15.22#53(192.168.15.22)
;; WHEN: Sat Mar  4 17:13:04 2006
;; MSG SIZE  rcvd: 148
15:16:54
#vi /etc/resolv.conf
15:16:54
#dig mail.ru
; <<>> DiG 9.3.1 <<>> mail.ru
;; global options:  printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 31638
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 6, ADDITIONAL: 0
;; QUESTION SECTION:
;mail.ru.                       IN      A
;; ANSWER SECTION:
mail.ru.                20824   IN      A       194.67.57.26
;; AUTHORITY SECTION:
mail.ru.                18079   IN      NS      ns4.mail.ru.
mail.ru.                18079   IN      NS      ns5.mail.ru.
mail.ru.                18079   IN      NS      ns.mail.ru.
mail.ru.                18079   IN      NS      ns1.mail.ru.
mail.ru.                18079   IN      NS      ns2.mail.ru.
mail.ru.                18079   IN      NS      ns3.mail.ru.
;; Query time: 1 msec
;; SERVER: 192.168.15.22#53(192.168.15.22)
;; WHEN: Sat Mar  4 17:15:27 2006
;; MSG SIZE  rcvd: 148
15:16:54
#vi /etc/namedb/named.conf
15:16:54
#cd /etc/rc.conf
bash: cd: /etc/rc.conf: Not a directory
15:16:54
#cd /etc/rd.conf
bash: cd: /etc/rd.conf: No such file or directory
15:16:54
#cd /etc

15:16:54
#ls
X11                     login.conf              pwd.db
aliases                 login.conf.db           rc
amd.map                 mac.conf                rc.bsdextended
apmd.conf               mail                    rc.con
auth.conf               mail.rc                 rc.conf
bash_completion         make.conf               rc.cong
bluetooth               manpath.config          rc.d
crontab                 manpath.config.bak      rc.firewall
csh.cshrc               master.passwd           rc.firewall6
csh.login               motd                    rc.initdiskless
...
hosts                   pccard_ether            ssh
hosts.allow             periodic                ssl
hosts.equiv             pf.conf                 sysctl.conf
hosts.lpd               pf.os                   syslog.conf
inet.conf               phones                  termcap
inetd.conf              portsnap.conf           ttys
isdn                    ppp                     usbd.conf
localtime               printcap                wall_cmos_clock
locate.rc               profile
login.access            protocols
15:16:54
#cd /etc/rc.conf
bash: cd: /etc/rc.conf: Not a directory
15:16:54
#cd /etc/named
bash: cd: /etc/named: No such file or directory
15:16:54
#cd /etc/namedb

15:16:54
#ls
PROTO.localhost-v6.rev  make-localhost          named.root
PROTO.localhost.rev     master                  rndc.key
dynamic                 named.conf              slave
15:16:54
#cd master

15:16:54
#vi topzone
15:16:54
#ls
localhost-v6.rev        localhost.rev           topzone

Статистика

Время первой команды журнала14:25:28 2006- 3- 4
Время последней команды журнала15:16:54 2006- 3- 4
Количество командных строк в журнале101
Процент команд с ненулевым кодом завершения, % 9.90
Процент синтаксически неверно набранных команд, % 4.95
Суммарное время работы с терминалом *, час 0.86
Количество командных строк в единицу времени, команда/мин 1.96
Частота использования команд
cd14|============| 12.28%
dig12|==========| 10.53%
whois11|=========| 9.65%
vi10|========| 8.77%
ssh8|=======| 7.02%
ls7|======| 6.14%
ssh-keyscan5|====| 4.39%
/etc/rc.d/named4|===| 3.51%
>4|===| 3.51%
ssh-keygen4|===| 3.51%
cat4|===| 3.51%
ping3|==| 2.63%
ipfw3|==| 2.63%
authorized_ke3|==| 2.63%
less3|==| 2.63%
exit3|==| 2.63%
host2|=| 1.75%
authorized_k1|| 0.88%
fing1|| 0.88%
man1|| 0.88%
pwd1|| 0.88%
wheris1|| 0.88%
sh1|| 0.88%
tail1|| 0.88%
fin1|| 0.88%
whreis1|| 0.88%
named1|| 0.88%
grep1|| 0.88%
find1|| 0.88%
hostname1|| 0.88%
les1|| 0.88%
____
*) Интервалы неактивности длительностью 30 минут и более не учитываются

Справка

Для того чтобы использовать LiLaLo, не нужно знать ничего особенного: всё происходит само собой. Однако, чтобы ведение и последующее использование журналов было как можно более эффективным, желательно иметь в виду следующее:
  1. В журнал автоматически попадают все команды, данные в любом терминале системы.

  2. Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду w. В поле WHAT, соответствующем текущему терминалу, должна быть указана программа script.

  3. Команды, при наборе которых были допущены синтаксические ошибки, выводятся перечёркнутым текстом:
    $ l s-l
    bash: l: command not found
    

  4. Если код завершения команды равен нулю, команда была выполнена без ошибок. Команды, код завершения которых отличен от нуля, выделяются цветом.
    $ test 5 -lt 4
    Обратите внимание на то, что код завершения команды может быть отличен от нуля не только в тех случаях, когда команда была выполнена с ошибкой. Многие команды используют код завершения, например, для того чтобы показать результаты проверки

  5. Команды, ход выполнения которых был прерван пользователем, выделяются цветом.
    $ 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
    

  6. Команды, выполненные с привилегиями суперпользователя, выделяются слева красной чертой.
    # id
    uid=0(root) gid=0(root) Gruppen=0(root)
    

  7. Изменения, внесённые в текстовый файл с помощью редактора, запоминаются и показываются в журнале в формате ed. Строки, начинающиеся символом "<", удалены, а строки, начинающиеся символом ">" -- добавлены.
    $ vi ~/.bashrc
    2a3,5
    >    if [ -f /usr/local/etc/bash_completion ]; then
    >         . /usr/local/etc/bash_completion
    >        fi
    

  8. Для того чтобы изменить файл в соответствии с показанными в диффшоте изменениями, можно воспользоваться командой patch. Нужно скопировать изменения, запустить программу patch, указав в качестве её аргумента файл, к которому применяются изменения, и всавить скопированный текст:
    $ patch ~/.bashrc
    В данном случае изменения применяются к файлу ~/.bashrc

  9. Для того чтобы получить краткую справочную информацию о команде, нужно подвести к ней мышь. Во всплывающей подсказке появится краткое описание команды.

    Если справочная информация о команде есть, команда выделяется голубым фоном, например: vi. Если справочная информация отсутствует, команда выделяется розовым фоном, например: notepad.exe. Справочная информация может отсутствовать в том случае, если (1) команда введена неверно; (2) если распознавание команды LiLaLo выполнено неверно; (3) если информация о команде неизвестна LiLaLo. Последнее возможно для редких команд.

  10. Большие, в особенности многострочные, всплывающие подсказки лучше всего показываются браузерами KDE Konqueror, Apple Safari и Microsoft Internet Explorer. В браузерах Mozilla и Firefox они отображаются не полностью, а вместо перевода строки выводится специальный символ.

  11. Время ввода команды, показанное в журнале, соответствует времени начала ввода командной строки, которое равно тому моменту, когда на терминале появилось приглашение интерпретатора

  12. Имя терминала, на котором была введена команда, показано в специальном блоке. Этот блок показывается только в том случае, если терминал текущей команды отличается от терминала предыдущей.

  13. Вывод не интересующих вас в настоящий момент элементов журнала, таких как время, имя терминала и других, можно отключить. Для этого нужно воспользоваться формой управления журналом вверху страницы.

  14. Небольшие комментарии к командам можно вставлять прямо из командной строки. Комментарий вводится прямо в командную строку, после символов #^ или #v. Символы ^ и v показывают направление выбора команды, к которой относится комментарий: ^ - к предыдущей, v - к следующей. Например, если в командной строке было введено:

    $ whoami
    
    user
    
    $ #^ Интересно, кто я?
    
    в журнале это будет выглядеть так:
    $ whoami
    
    user
    
    Интересно, кто я?

  15. Если комментарий содержит несколько строк, его можно вставить в журнал следующим образом:

    $ whoami
    
    user
    
    $ cat > /dev/null #^ Интересно, кто я?
    
    Программа whoami выводит имя пользователя, под которым 
    мы зарегистрировались в системе.
    -
    Она не может ответить на вопрос о нашем назначении 
    в этом мире.
    
    В журнале это будет выглядеть так:
    $ whoami
    user
    
    Интересно, кто я?
    Программа whoami выводит имя пользователя, под которым
    мы зарегистрировались в системе.

    Она не может ответить на вопрос о нашем назначении
    в этом мире.
    Для разделения нескольких абзацев между собой используйте символ "-", один в строке.

  16. Комментарии, не относящиеся непосредственно ни к какой из команд, добавляются точно таким же способом, только вместо симолов #^ или #v нужно использовать символы #=

  17. Содержимое файла может быть показано в журнале. Для этого его нужно вывести с помощью программы cat. Если вывод команды отметить симоволами #!, содержимое файла будет показано в журнале в специально отведённой для этого секции.
  18. Для того чтобы вставить скриншот интересующего вас окна в журнал, нужно воспользоваться командой l3shot. После того как команда вызвана, нужно с помощью мыши выбрать окно, которое должно быть в журнале.
  19. Команды в журнале расположены в хронологическом порядке. Если две команды давались одна за другой, но на разных терминалах, в журнале они будут рядом, даже если они не имеют друг к другу никакого отношения.
    1
        2
    3   
        4
    
    Группы команд, выполненных на разных терминалах, разделяются специальной линией. Под этой линией в правом углу показано имя терминала, на котором выполнялись команды. Для того чтобы посмотреть команды только одного сенса, нужно щёкнуть по этому названию.

О программе

LiLaLo (L3) расшифровывается как Live Lab Log.
Программа разработана для повышения эффективности обучения Unix/Linux-системам.
(c) Игорь Чубин, 2004-2008

$Id$