/l3/users/18-01-2010/nt-fbsdnet/fbsd7.net.nt/root :1 :2 :3 :4 :5 :6 :7 :8 :9 :10 :11 :12 :13 :14 :15 :16 :17 :18 :19 :20 :21 |
|
#ping 192.168.16.32
PING 192.168.16.32 (192.168.16.32): 56 data bytes ^C --- 192.168.16.32 ping statistics --- 73 packets transmitted, 0 packets received, 100% packet loss |
#ping 192.168.16.32
PING 192.168.16.32 (192.168.16.32): 56 data bytes ^C --- 192.168.16.32 ping statistics --- 4 packets transmitted, 0 packets received, 100% packet loss |
#ping 192.168.16.32
PING 192.168.16.32 (192.168.16.32): 56 data bytes ^C --- 192.168.16.32 ping statistics --- 315 packets transmitted, 0 packets received, 100% packet loss õ ×ÁÓ ÅÓÔØ ÎÏ×ÁÑ ÐÏÞÔÁ × /var/mail/root |
#ping 192.168.16.32
PING 192.168.16.32 (192.168.16.32): 56 data bytes ^C --- 192.168.16.32 ping statistics --- 28 packets transmitted, 0 packets received, 100% packet loss |
#ifconfig
re0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=1b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING> inet 192.168.16.27 netmask 0xffffff00 broadcast 192.168.16.255 ether 00:16:4e:00:00:07 media: Ethernet autoselect (100baseTX <full-duplex>) status: active re1: flags=8802<BROADCAST,SIMPLEX,MULTICAST> mtu 1500 options=1b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING> ether 00:16:4e:00:01:07 media: Ethernet autoselect (100baseTX <full-duplex>) ... options=1b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING> inet 192.168.16.227 netmask 0xffffff00 broadcast 192.168.16.255 ether 00:16:4e:00:02:07 media: Ethernet autoselect (100baseTX <full-duplex>) status: active plip0: flags=108810<POINTOPOINT,SIMPLEX,MULTICAST,NEEDSGIANT> mtu 1500 lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x5 inet6 ::1 prefixlen 128 inet 127.0.0.1 netmask 0xff000000 |
#ipfw list
00100 unreach port icmp from 192.168.16.32 to me via re0 65000 allow ip from any to any 65535 deny ip from any to any |
#ipfw delete 100
|
#ipfw list
65000 allow ip from any to any 65535 deny ip from any to any |
#ping 192.168.16.32
PING 192.168.16.32 (192.168.16.32): 56 data bytes 64 bytes from 192.168.16.32: icmp_seq=0 ttl=64 time=0.189 ms 64 bytes from 192.168.16.32: icmp_seq=1 ttl=64 time=0.143 ms 64 bytes from 192.168.16.32: icmp_seq=2 ttl=64 time=0.215 ms ^C --- 192.168.16.32 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max/stddev = 0.143/0.182/0.215/0.030 ms |
#ping 192.168.16.32
PING 192.168.16.32 (192.168.16.32): 56 data bytes 64 bytes from 192.168.16.32: icmp_seq=0 ttl=64 time=0.195 ms 64 bytes from 192.168.16.32: icmp_seq=1 ttl=64 time=0.202 ms 64 bytes from 192.168.16.32: icmp_seq=2 ttl=64 time=0.173 ms 64 bytes from 192.168.16.32: icmp_seq=3 ttl=64 time=0.177 ms 64 bytes from 192.168.16.32: icmp_seq=4 ttl=64 time=0.174 ms 64 bytes from 192.168.16.32: icmp_seq=5 ttl=64 time=0.176 ms 64 bytes from 192.168.16.32: icmp_seq=6 ttl=64 time=0.174 ms 64 bytes from 192.168.16.32: icmp_seq=7 ttl=64 time=0.195 ms 64 bytes from 192.168.16.32: icmp_seq=8 ttl=64 time=0.203 ms ... 64 bytes from 192.168.16.32: icmp_seq=56 ttl=64 time=0.184 ms 64 bytes from 192.168.16.32: icmp_seq=57 ttl=64 time=0.194 ms 64 bytes from 192.168.16.32: icmp_seq=58 ttl=64 time=0.198 ms 64 bytes from 192.168.16.32: icmp_seq=59 ttl=64 time=0.223 ms 64 bytes from 192.168.16.32: icmp_seq=60 ttl=64 time=0.210 ms ^C --- 192.168.16.32 ping statistics --- 61 packets transmitted, 61 packets received, 0% packet loss round-trip min/avg/max/stddev = 0.148/0.201/0.891/0.092 ms õ ×ÁÓ ÅÓÔØ ÎÏ×ÁÑ ÐÏÞÔÁ × /var/mail/root |
#ping 192.168.16.32
õ ×ÁÓ ÅÓÔØ ÎÏ×ÁÑ ÐÏÞÔÁ × /var/mail/root |
#ssh 192.168.16.32
^C |
#ssh 192.168.16.32
^C |
#ssh 192.168.16.32
Enter passphrase for key '/root/.ssh/id_rsa': õ ×ÁÓ ÅÓÔØ ÎÏ×ÁÑ ÐÏÞÔÁ × /var/mail/root |
#ssh 192.168.16.32
Enter passphrase for key '/root/.ssh/id_rsa': |
#ssh 192.168.16.32
^C |
#ssh 192.168.16.32
ssh: connect to host 192.168.16.32 port 22: Operation timed out |
#ssh 192.168.16.32
^C |
#ssh 192.168.16.32
Enter passphrase for key '/root/.ssh/id_rsa': õ ×ÁÓ ÅÓÔØ ÎÏ×ÁÑ ÐÏÞÔÁ × /var/mail/root |
#ssh 192.168.16.32
^C |
#ssh 192.168.16.32
Enter passphrase for key '/root/.ssh/id_rsa': |
#nmap
bash: nmap: ËÏÍÁÎÄÁ ÎÅ ÎÁÊÄÅÎÁ |
#cd /usr/ports/
|
#make search name=nmap
Port: openmap-4.6.2_2 Path: /usr/ports/astro/openmap Info: Java toolkit for manipulating and displaying geographic data Maint: des@FreeBSD.org B-deps: apache-ant-1.7.0_1 diablo-jdk-1.5.0.07.01_8 inputproto-1.4.2.1 javavmwrapper-2.3 kbproto-1.0.3 libICE-1.0.4,1 libSM-1.0.3,1 libX11-1.1.3,1 libXau-1.0.3_2 libXdmcp-1.0.2 libXext-1.0.3,1 libXi-1.1.3,1 libXp-1.0.0,1 libXt-1.0.5 libXtst-1.0.3 pkg-config-0.22_1 printproto-1.0.3 recordproto-1.13.2 xextproto-7.0.2 xproto-7.0.10_1 xtrans-1.0.4 R-deps: diablo-jdk-1.5.0.07.01_8 inputproto-1.4.2.1 javavmwrapper-2.3 kbproto-1.0.3 libICE-1.0.4,1 libSM-1.0.3,1 libX11-1.1.3,1 libXau-1.0.3_2 libXdmcp-1.0.2 libXext-1.0.3,1 libXi-1.1.3,1 libXp-1.0.0,1 libXt-1.0.5 libXtst-1.0.3 pkg-config-0.22_1 printproto-1.0.3 recordproto-1.13.2 xextproto-7.0.2 xproto-7.0.10_1 xtrans-1.0.4 WWW: http://openmap.bbn.com/ Port: nmap-4.20_1 Path: /usr/ports/security/nmap Info: Port scanning utility for large networks ... B-deps: expat-2.0.0_1 libiconv-1.11_1 p5-Authen-SASL-2.10_1 p5-Compress-Raw-Zlib-2.006 p5-Compress-Zlib-2.007 p5-Digest-1.15 p5-Digest-HMAC-1.01 p5-Digest-MD5-2.36 p5-Digest-SHA1-2.11 p5-GSSAPI-0.24 p5-HTML-Parser-3.56 p5-HTML-Tagset-3.10 p5-HTML-Tree-3.23 p5-IO-Compress-Base-2.006 p5-IO-Compress-Zlib-2.006 p5-MIME-Base64-3.07 p5-Net-1.22,1 p5-Text-Iconv-1.5 p5-Tie-IxHash-1.21 p5-URI-1.35 p5-XML-F R-deps: expat-2.0.0_1 libiconv-1.11_1 nmap-4.20_1 p5-Authen-SASL-2.10_1 p5-Compress-Raw-Zlib-2.006 p5-Compress-Zlib-2.007 p5-Digest-1.15 p5-Digest-HMAC-1.01 p5-Digest-MD5-2.36 p5-Digest-SHA1-2.11 p5-GSSAPI-0.24 p5-HTML-Parser-3.56 p5-HTML-Tagset-3.10 p5-HTML-Tree-3.23 p5-IO-Compress-Base-2.006 p5-IO-Compress-Zlib-2.006 p5-MIME-Base64-3.07 p5-Net-1.22,1 p5-Text-Iconv-1.5 p5-Tie-IxHash-1.21 p5-URI-1 WWW: http://search.cpan.org/~apersaud/Nmap-Parser-1.05/ Port: p5-Nmap-Scanner-0.9 Path: /usr/ports/security/p5-Nmap-Scanner Info: Perform and manipulate nmap scans using perl Maint: skv@FreeBSD.org B-deps: p5-XML-NamespaceSupport-1.09_1 p5-XML-SAX-0.16 perl-5.8.8_1 R-deps: nmap-4.20_1 p5-XML-NamespaceSupport-1.09_1 p5-XML-SAX-0.16 pcre-7.4 perl-5.8.8_1 WWW: http://search.cpan.org/dist/Nmap-Scanner/ |
#make search name=nmap
Port: openmap-4.6.2_2 Path: /usr/ports/astro/openmap Info: Java toolkit for manipulating and displaying geographic data Maint: des@FreeBSD.org B-deps: apache-ant-1.7.0_1 diablo-jdk-1.5.0.07.01_8 inputproto-1.4.2.1 javavmwrapper-2.3 kbproto-1.0.3 libICE-1.0.4,1 libSM-1.0.3,1 libX11-1.1.3,1 libXau-1.0.3_2 libXdmcp-1.0.2 libXext-1.0.3,1 libXi-1.1.3,1 libXp-1.0.0,1 libXt-1.0.5 libXtst-1.0.3 pkg-config-0.22_1 printproto-1.0.3 recordproto-1.13.2 xextproto-7.0.2 xproto-7.0.10_1 xtrans-1.0.4 R-deps: diablo-jdk-1.5.0.07.01_8 inputproto-1.4.2.1 javavmwrapper-2.3 kbproto-1.0.3 libICE-1.0.4,1 libSM-1.0.3,1 libX11-1.1.3,1 libXau-1.0.3_2 libXdmcp-1.0.2 libXext-1.0.3,1 libXi-1.1.3,1 libXp-1.0.0,1 libXt-1.0.5 libXtst-1.0.3 pkg-config-0.22_1 printproto-1.0.3 recordproto-1.13.2 xextproto-7.0.2 xproto-7.0.10_1 xtrans-1.0.4 WWW: http://openmap.bbn.com/ Port: nmap-4.20_1 Path: /usr/ports/security/nmap Info: Port scanning utility for large networks ... B-deps: expat-2.0.0_1 libiconv-1.11_1 p5-Authen-SASL-2.10_1 p5-Compress-Raw-Zlib-2.006 p5-Compress-Zlib-2.007 p5-Digest-1.15 p5-Digest-HMAC-1.01 p5-Digest-MD5-2.36 p5-Digest-SHA1-2.11 p5-GSSAPI-0.24 p5-HTML-Parser-3.56 p5-HTML-Tagset-3.10 p5-HTML-Tree-3.23 p5-IO-Compress-Base-2.006 p5-IO-Compress-Zlib-2.006 p5-MIME-Base64-3.07 p5-Net-1.22,1 p5-Text-Iconv-1.5 p5-Tie-IxHash-1.21 p5-URI-1.35 p5-XML-F R-deps: expat-2.0.0_1 libiconv-1.11_1 nmap-4.20_1 p5-Authen-SASL-2.10_1 p5-Compress-Raw-Zlib-2.006 p5-Compress-Zlib-2.007 p5-Digest-1.15 p5-Digest-HMAC-1.01 p5-Digest-MD5-2.36 p5-Digest-SHA1-2.11 p5-GSSAPI-0.24 p5-HTML-Parser-3.56 p5-HTML-Tagset-3.10 p5-HTML-Tree-3.23 p5-IO-Compress-Base-2.006 p5-IO-Compress-Zlib-2.006 p5-MIME-Base64-3.07 p5-Net-1.22,1 p5-Text-Iconv-1.5 p5-Tie-IxHash-1.21 p5-URI-1 WWW: http://search.cpan.org/~apersaud/Nmap-Parser-1.05/ Port: p5-Nmap-Scanner-0.9 Path: /usr/ports/security/p5-Nmap-Scanner Info: Perform and manipulate nmap scans using perl Maint: skv@FreeBSD.org B-deps: p5-XML-NamespaceSupport-1.09_1 p5-XML-SAX-0.16 perl-5.8.8_1 R-deps: nmap-4.20_1 p5-XML-NamespaceSupport-1.09_1 p5-XML-SAX-0.16 pcre-7.4 perl-5.8.8_1 WWW: http://search.cpan.org/dist/Nmap-Scanner/ |
#make search name=nmap | less
|
#cd security/nmap
|
#make install
checking if struct ip exists... yes checking if struct ip has ip_sum member... yes configure: creating ./config.status config.status: creating Makefile config.status: creating nsock_config.h ( ) /\ _ ( \ | ( \ ( \.( ) _____ \ \ \ ` ` ) \ ( ___ / _ \ (_` \+ . x ( .\ \/ \____-----------/ (o) \_ - .- \+ ; ( O \____ ... scan_engine.cc: In function `bool ultrascan_port_pspec_update(UltraScanInfo*, HostScanStats*, const probespec*, int)': scan_engine.cc:1665: warning: 'portno' might be used uninitialized in this function c++ -c -Ilibdnet-stripped/include -I/usr/local/include -O2 -fno-strict-aliasing -pipe -Wall -I/usr/include -Inbase -Insock/include -DHAVE_CONFIG_H -DNMAP_VERSION=\"4.20\" -DNMAP_NAME=\"Nmap\" -DNMAP_URL=\"http://insecure.org\" -DNMAP_PLATFORM=\"i386-portbld-freebsd6.3\" -DNMAPDATADIR=\"/usr/local/share/nmap\" timing.cc -o timing.o c++ -c -Ilibdnet-stripped/include -I/usr/local/include -O2 -fno-strict-aliasing -pipe -Wall -I/usr/include -Inbase -Insock/include -DHAVE_CONFIG_H -DNMAP_VERSION=\"4.20\" -DNMAP_NAME=\"Nmap\" -DNMAP_URL=\"http://insecure.org\" -DNMAP_PLATFORM=\"i386-portbld-freebsd6.3\" -DNMAPDATADIR=\"/usr/local/share/nmap\" charpool.cc -o charpool.o c++ -c -Ilibdnet-stripped/include -I/usr/local/include -O2 -fno-strict-aliasing -pipe -Wall -I/usr/include -Inbase -Insock/include -DHAVE_CONFIG_H -DNMAP_VERSION=\"4.20\" -DNMAP_NAME=\"Nmap\" -DNMAP_URL=\"http://insecure.org\" -DNMAP_PLATFORM=\"i386-portbld-freebsd6.3\" -DNMAPDATADIR=\"/usr/local/share/nmap\" services.cc -o services.o c++ -c -Ilibdnet-stripped/include -I/usr/local/include -O2 -fno-strict-aliasing -pipe -Wall -I/usr/include -Inbase -Insock/include -DHAVE_CONFIG_H -DNMAP_VERSION=\"4.20\" -DNMAP_NAME=\"Nmap\" -DNMAP_URL=\"http://insecure.org\" -DNMAP_PLATFORM=\"i386-portbld-freebsd6.3\" -DNMAPDATADIR=\"/usr/local/share/nmap\" protocols.cc -o protocols.o c++ -c -Ilibdnet-stripped/include -I/usr/local/include -O2 -fno-strict-aliasing -pipe -Wall -I/usr/include -Inbase -Insock/include -DHAVE_CONFIG_H -DNMAP_VERSION=\"4.20\" -DNMAP_NAME=\"Nmap\" -DNMAP_URL=\"http://insecure.org\" -DNMAP_PLATFORM=\"i386-portbld-freebsd6.3\" -DNMAPDATADIR=\"/usr/local/share/nmap\" nmap_rpc.cc -o nmap_rpc.o c++ -c -Ilibdnet-stripped/include -I/usr/local/include -O2 -fno-strict-aliasing -pipe -Wall -I/usr/include -Inbase -Insock/include -DHAVE_CONFIG_H -DNMAP_VERSION=\"4.20\" -DNMAP_NAME=\"Nmap\" -DNMAP_URL=\"http://insecure.org\" -DNMAP_PLATFORM=\"i386-portbld-freebsd6.3\" -DNMAPDATADIR=\"/usr/local/share/nmap\" portlist.cc -o portlist.o c++ -c -Ilibdnet-stripped/include -I/usr/local/include -O2 -fno-strict-aliasing -pipe -Wall -I/usr/include -Inbase -Insock/include -DHAVE_CONFIG_H -DNMAP_VERSION=\"4.20\" -DNMAP_NAME=\"Nmap\" -DNMAP_URL=\"http://insecure.org\" -DNMAP_PLATFORM=\"i386-portbld-freebsd6.3\" -DNMAPDATADIR=\"/usr/local/share/nmap\" NmapOps.cc -o NmapOps.o c++ -c -Ilibdnet-stripped/include -I/usr/local/include -O2 -fno-strict-aliasing -pipe -Wall -I/usr/include -Inbase -Insock/include -DHAVE_CONFIG_H -DNMAP_VERSION=\"4.20\" -DNMAP_NAME=\"Nmap\" -DNMAP_URL=\"http://insecure.org\" -DNMAP_PLATFORM=\"i386-portbld-freebsd6.3\" -DNMAPDATADIR=\"/usr/local/share/nmap\" TargetGroup.cc -o TargetGroup.o |
#make love
make: don't know how to make love. Stop õ ×ÁÓ ÅÓÔØ ÎÏ×ÁÑ ÐÏÞÔÁ × /var/mail/root |
#nmap -p 22 "192.168.16.*"
Starting Nmap 4.20 ( http://insecure.org ) at 2010-01-20 17:10 EET Interesting ports on fbsd22.net.nt (192.168.16.22): PORT STATE SERVICE 22/tcp open ssh MAC Address: 00:16:4E:00:00:02 (Nokia Danmark A/S) Interesting ports on fbsd27.net.nt (192.168.16.27): PORT STATE SERVICE 22/tcp open ssh Interesting ports on fbsd31.net.nt (192.168.16.31): PORT STATE SERVICE ... Interesting ports on fbsd7.net.nt. (192.168.16.227): PORT STATE SERVICE 22/tcp filtered ssh MAC Address: 00:16:35:7D:81:EE (Hewlett Packard) Interesting ports on host252.net.nt (192.168.16.252): PORT STATE SERVICE 22/tcp filtered ssh MAC Address: 00:15:60:7A:1D:C0 (Hewlett Packard) Nmap finished: 256 IP addresses (6 hosts up) scanned in 22.864 seconds õ ×ÁÓ ÅÓÔØ ÎÏ×ÁÑ ÐÏÞÔÁ × /var/mail/root |
#nmap -O 192.168.16.32
Starting Nmap 4.20 ( http://insecure.org ) at 2010-01-20 17:12 EET caught SIGINT signal, cleaning up |
#nmap -O 192.168.16.32
Starting Nmap 4.20 ( http://insecure.org ) at 2010-01-20 17:12 EET caught SIGINT signal, cleaning up |
#nmap -O 192.168.16.32 ; nmap -O 192.168.7.208
Starting Nmap 4.20 ( http://insecure.org ) at 2010-01-20 17:13 EET caught SIGINT signal, cleaning up Starting Nmap 4.20 ( http://insecure.org ) at 2010-01-20 17:15 EET caught SIGINT signal, cleaning up |
#nmap -O 192.168.7.208
Starting Nmap 4.20 ( http://insecure.org ) at 2010-01-20 17:15 EET Note: Host seems down. If it is really up, but blocking our ping probes, try -P0 Nmap finished: 1 IP address (0 hosts up) scanned in 11.832 seconds |
#nmap -0 192.168.7.208
nmap: unrecognized option `-0' Nmap 4.20 ( http://insecure.org ) Usage: nmap [Scan Type(s)] [Options] {target specification} TARGET SPECIFICATION: Can pass hostnames, IP addresses, networks, etc. Ex: scanme.nmap.org, microsoft.com/24, 192.168.0.1; 10.0.0-255.1-254 -iL <inputfilename>: Input from list of hosts/networks -iR <num hosts>: Choose random targets --exclude <host1[,host2][,host3],...>: Exclude hosts/networks --excludefile <exclude_file>: Exclude list from file ... --send-eth/--send-ip: Send using raw ethernet frames or IP packets --privileged: Assume that the user is fully privileged --unprivileged: Assume the user lacks raw socket privileges -V: Print version number -h: Print this help summary page. EXAMPLES: nmap -v -A scanme.nmap.org nmap -v -sP 192.168.0.0/16 10.0.0.0/8 nmap -v -iR 10000 -P0 -p 80 SEE THE MAN PAGE FOR MANY MORE OPTIONS, DESCRIPTIONS, AND EXAMPLES |
#nmap -P0 192.168.7.208
Starting Nmap 4.20 ( http://insecure.org ) at 2010-01-20 17:16 EET Stats: 0:12:37 elapsed; 0 hosts completed (1 up), 1 undergoing SYN Stealth Scan SYN Stealth Scan Timing: About 22.43% done; ETC: 18:12 (0:43:39 remaining) Stats: 0:12:38 elapsed; 0 hosts completed (1 up), 1 undergoing SYN Stealth Scan SYN Stealth Scan Timing: About 22.59% done; ETC: 18:12 (0:43:18 remaining) Stats: 0:12:41 elapsed; 0 hosts completed (1 up), 1 undergoing SYN Stealth Scan SYN Stealth Scan Timing: About 22.77% done; ETC: 18:11 (0:43:02 remaining) caught SIGINT signal, cleaning up õ ×ÁÓ ÅÓÔØ ÎÏ×ÁÑ ÐÏÞÔÁ × /var/mail/root |
#nmap -P0 192.168.16.254
Starting Nmap 4.20 ( http://insecure.org ) at 2010-01-20 17:28 EET Stats: 0:00:29 elapsed; 0 hosts completed (1 up), 1 undergoing SYN Stealth Scan SYN Stealth Scan Timing: About 46.87% done; ETC: 17:30 (0:00:33 remaining) Stats: 0:00:41 elapsed; 0 hosts completed (1 up), 1 undergoing SYN Stealth Scan SYN Stealth Scan Timing: About 48.04% done; ETC: 17:30 (0:00:44 remaining) Stats: 0:01:56 elapsed; 0 hosts completed (1 up), 1 undergoing SYN Stealth Scan SYN Stealth Scan Timing: About 55.65% done; ETC: 17:32 (0:01:32 remaining) caught SIGINT signal, cleaning up õ ×ÁÓ ÅÓÔØ ÎÏ×ÁÑ ÐÏÞÔÁ × /var/mail/root |
#nmap -O 192.168.16.254
Starting Nmap 4.20 ( http://insecure.org ) at 2010-01-20 17:31 EET Stats: 0:02:06 elapsed; 0 hosts completed (1 up), 1 undergoing SYN Stealth Scan SYN Stealth Scan Timing: About 56.66% done; ETC: 17:34 (0:01:36 remaining) Stats: 0:02:22 elapsed; 0 hosts completed (1 up), 1 undergoing SYN Stealth Scan SYN Stealth Scan Timing: About 58.31% done; ETC: 17:35 (0:01:41 remaining) caught SIGINT signal, cleaning up |
#nmap 192.168.16.254
Starting Nmap 4.20 ( http://insecure.org ) at 2010-01-20 17:33 EET Stats: 0:00:05 elapsed; 0 hosts completed (1 up), 1 undergoing SYN Stealth Scan SYN Stealth Scan Timing: About 15.94% done; ETC: 17:34 (0:00:26 remaining) Stats: 0:00:10 elapsed; 0 hosts completed (1 up), 1 undergoing SYN Stealth Scan SYN Stealth Scan Timing: About 30.98% done; ETC: 17:34 (0:00:21 remaining) Stats: 0:00:15 elapsed; 0 hosts completed (1 up), 1 undergoing SYN Stealth Scan SYN Stealth Scan Timing: About 46.01% done; ETC: 17:34 (0:00:18 remaining) Stats: 0:01:02 elapsed; 0 hosts completed (1 up), 1 undergoing SYN Stealth Scan SYN Stealth Scan Timing: About 50.24% done; ETC: 17:36 (0:01:01 remaining) Stats: 0:01:06 elapsed; 0 hosts completed (1 up), 1 undergoing SYN Stealth Scan ... SYN Stealth Scan Timing: About 59.13% done; ETC: 17:38 (0:01:43 remaining) Stats: 0:02:30 elapsed; 0 hosts completed (1 up), 1 undergoing SYN Stealth Scan SYN Stealth Scan Timing: About 59.19% done; ETC: 17:38 (0:01:43 remaining) Stats: 0:02:31 elapsed; 0 hosts completed (1 up), 1 undergoing SYN Stealth Scan SYN Stealth Scan Timing: About 59.31% done; ETC: 17:38 (0:01:43 remaining) Stats: 0:02:33 elapsed; 0 hosts completed (1 up), 1 undergoing SYN Stealth Scan SYN Stealth Scan Timing: About 59.43% done; ETC: 17:38 (0:01:44 remaining) Stats: 0:02:33 elapsed; 0 hosts completed (1 up), 1 undergoing SYN Stealth Scan SYN Stealth Scan Timing: About 59.49% done; ETC: 17:38 (0:01:44 remaining) caught SIGINT signal, cleaning up |
#ssh 192.168.16.254
Connection to 192.168.16.254 closed. õ ×ÁÓ ÅÓÔØ ÎÏ×ÁÑ ÐÏÞÔÁ × /var/mail/root |
#ssh 192.168.16.254
Connection to 192.168.16.254 closed. |
#arping
bash: arping: ËÏÍÁÎÄÁ ÎÅ ÎÁÊÄÅÎÁ õ ×ÁÓ ÅÓÔØ ÎÏ×ÁÑ ÐÏÞÔÁ × /var/mail/root |
#hping
bash: hping: ËÏÍÁÎÄÁ ÎÅ ÎÁÊÄÅÎÁ |
#arpwatch
bash: arpwatch: ËÏÍÁÎÄÁ ÎÅ ÎÁÊÄÅÎÁ |
#vim /etc/ttys
|
#man getty
|
#man getty
|
#pwd
/usr/ports/security/nmap |
#cd ../..
|
#make search name=linuxlogo
|
#pstree | less
|
#make search name=pstree
Port: pstree-2.32 Path: /usr/ports/sysutils/pstree Info: List processes as a tree Maint: ports@logvinov.com B-deps: R-deps: WWW: |
#cd sysutils/pstree
|
#make install
===> Vulnerability check disabled, database not found => pstree-2.32.tar.gz doesn't seem to exist in /usr/ports/distfiles/. => Attempting to fetch from ftp://ftp.thp.uni-duisburg.de/pub/source/. pstree-2.32.tar.gz 100% of 9 kB 81 kBps ===> Extracting for pstree-2.32 => MD5 Checksum OK for pstree-2.32.tar.gz. => SHA256 Checksum OK for pstree-2.32.tar.gz. ===> Patching for pstree-2.32 ===> Configuring for pstree-2.32 ===> Building for pstree-2.32 cd /usr/ports/sysutils/pstree/work && cc -O2 -fno-strict-aliasing -pipe -o pstree pstree.c ===> Installing for pstree-2.32 ===> Generating temporary packing list ===> Checking if sysutils/pstree already installed install -s -o root -g wheel -m 555 /usr/ports/sysutils/pstree/work/pstree /usr/local/bin ===> Registering installation for pstree-2.32 |
#pstree | less
|
#pstree | less
|
#1
bash: 1: ËÏÍÁÎÄÁ ÎÅ ÎÁÊÄÅÎÁ |
#pstree | less
|
#pstree | less
|
#m<n ttys
bash: n: No such file or directory |
#man ttys
|
#~~~~
bash: ~~~~: ËÏÍÁÎÄÁ ÎÅ ÎÁÊÄÅÎÁ |
#man ttys
|
#man 5 termcap
|
#vim /usr/share/misc/termcap
|
#cons25w|ansiw|ansi80x25-raw:\
:li#34:co#80:cl=^L:cm=\E[%i%d;%dH:nd=\E[C:up=\E[A:\ :am:bs:mi:ms:pt:km:\ :ce=\E[K:cd=\E[J:so=\E[7m:se=\E[m:is=\E[1r:rs=\E[1r:\ :kd=\E[B:kl=\E[D:ku=\E[A:kr=\E[C:kh=\E[H:\ :k1=\EOP:k2=\EOQ:k3=\EOR:k4=\EOS:\ :al=\E[L:dl=\E[M:ic=\E[@:dc=\E[P:\ :AL=\E[%dL:DL=\E[%dM:IC=\E[%d@:DC=\E[%dP: sun-e|su:ic@:im@:ei@:tc=sun:systems Workstation without insert character:\ sun-s|Su:hs:ts=\E]l:fs=\E\\:ds=\E]l\E\\:tc=sun:status line:\ sun-e-s|:hs:ts=\E]l:fs=\E\\:ds=\E]l\E\\:tc=sun-e: status hacked for emacs:\ sun-48|S:li#48:co#80:tc=sun: sun-34|S:li#34:co#80:tc=sun: sun-24|S:li#24:co#80:tc=sun: sun-17|S:li#17:co#80:tc=sun: |
#kermit|standard kermit:\
cons30r-m|cons30u-m|cons30-koi8-mono:\ :li#30:tc=cons25r-m: cons43r|cons43u|cons43-koi8:\ :li#43:tc=cons25r: cons43r-m|cons43u-m|cons43-koi8-mono:\ :li#43:tc=cons25r-m: cons50r|cons50u|cons50-koi8:\ :li#50:tc=cons25r: |cons50u|cons50-koi8 cons50r-:li#50:tc=consns50-koi8-mono:\ :li#50:tc=cons25r-m: cons30-w|ansi132x30:\ |
#:q!
cr_cancels_micro_mode YB using cr turns off micro mode has_print_wheel YC printer needs operator to change character set row_addr_glitch YD only positive motion for row_address and micro_row_address caps semi_auto_right_margin YE printing in last column causes cr cpi_changes_res YF changing character pitch changes resolution lpi_changes_res YG changing line pitch changes resolution These are the numeric capabilities: Numeric TCap Description ... non_rev_rmcup NR enter_ca_mode does not reverse exit_ca_mode no_pad_char NP pad character does not exist non_dest_scroll_region ND scrolling region is non-destructive can_change cc terminal can re-define existing colors back_color_erase ut screen erased with background color hue_lightness_saturation hl terminal uses only HLS color notation (tektronix) col_addr_glitch YA only positive motion for column address and micro_column_address caps Pattern not found (press RETURN) |
#vim /usr/share/misc/termcap
|
#cd sysutils/pstree
|
#cd
|
#make love
make: don't know how to make love. Stop õ ×ÁÓ ÅÓÔØ ÎÏ×ÁÑ ÐÏÞÔÁ × /var/mail/root |
#make love
make: don't know how to make love. Stop |
#screen -x
|
#screen -x
|
#screen
|
#dig
; <<>> DiG 9.3.4-P1 <<>> ;; global options: printcmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 43525 ;; flags: qr rd ra; QUERY: 1, ANSWER: 13, AUTHORITY: 0, ADDITIONAL: 13 ;; QUESTION SECTION: ;. IN NS ;; ANSWER SECTION: . 48331 IN NS a.root-servers.net. . 48331 IN NS e.root-servers.net. ... h.root-servers.net. 48331 IN A 128.63.2.53 i.root-servers.net. 48331 IN A 192.36.148.17 j.root-servers.net. 48331 IN A 192.58.128.30 k.root-servers.net. 48331 IN A 193.0.14.129 l.root-servers.net. 48331 IN A 199.7.83.42 m.root-servers.net. 48331 IN A 202.12.27.33 ;; Query time: 5 msec ;; SERVER: 192.168.16.254#53(192.168.16.254) ;; WHEN: Thu Jan 21 11:18:15 2010 ;; MSG SIZE rcvd: 436 |
#dig | less
|
#dig @192.168.16.254 ya.ru
; <<>> DiG 9.3.4-P1 <<>> @192.168.16.254 ya.ru ; (1 server found) ;; global options: printcmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 16112 ;; flags: qr rd ra; QUERY: 1, ANSWER: 3, AUTHORITY: 7, ADDITIONAL: 0 ;; QUESTION SECTION: ;ya.ru. IN A ;; ANSWER SECTION: ya.ru. 7200 IN A 77.88.21.8 ... ru. 90210 IN NS NS9.RIPN.NET. ru. 90210 IN NS NS.RIPN.NET. ru. 90210 IN NS NS5.MSK-IX.NET. ru. 90210 IN NS E.DNS.RIPN.NET. ru. 90210 IN NS NS2.RIPN.NET. ru. 90210 IN NS NS2.NIC.FR. ;; Query time: 58 msec ;; SERVER: 192.168.16.254#53(192.168.16.254) ;; WHEN: Thu Jan 21 11:23:32 2010 ;; MSG SIZE rcvd: 217 |
#dig @192.168.16.254 ya.ru | less
|
#dig @192.168.16.254 ns2.nic.fr
; <<>> DiG 9.3.4-P1 <<>> @192.168.16.254 ns2.nic.fr ; (1 server found) ;; global options: printcmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 29249 ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 13, ADDITIONAL: 13 ;; QUESTION SECTION: ;ns2.nic.fr. IN A ;; ANSWER SECTION: ns2.nic.fr. 81213 IN A 192.93.0.4 ... h.root-servers.net. 47936 IN A 128.63.2.53 i.root-servers.net. 47936 IN A 192.36.148.17 j.root-servers.net. 47936 IN A 192.58.128.30 k.root-servers.net. 47936 IN A 193.0.14.129 l.root-servers.net. 47936 IN A 199.7.83.42 m.root-servers.net. 47936 IN A 202.12.27.33 ;; Query time: 2 msec ;; SERVER: 192.168.16.254#53(192.168.16.254) ;; WHEN: Thu Jan 21 11:24:51 2010 ;; MSG SIZE rcvd: 463 |
#dig @192.168.16.254 ns2.nic.fr | less
|
#dig @192.168.16.254 ns2.nic.fr a
; <<>> DiG 9.3.4-P1 <<>> @192.168.16.254 ns2.nic.fr a ; (1 server found) ;; global options: printcmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 35128 ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 13, ADDITIONAL: 13 ;; QUESTION SECTION: ;ns2.nic.fr. IN A ;; ANSWER SECTION: ns2.nic.fr. 81186 IN A 192.93.0.4 ... h.root-servers.net. 47909 IN A 128.63.2.53 i.root-servers.net. 47909 IN A 192.36.148.17 j.root-servers.net. 47909 IN A 192.58.128.30 k.root-servers.net. 47909 IN A 193.0.14.129 l.root-servers.net. 47909 IN A 199.7.83.42 m.root-servers.net. 47909 IN A 202.12.27.33 ;; Query time: 2 msec ;; SERVER: 192.168.16.254#53(192.168.16.254) ;; WHEN: Thu Jan 21 11:25:18 2010 ;; MSG SIZE rcvd: 463 |
#dig @192.168.16.254 ns2.nic.fr a | less
|
#dig @192.168.16.254 umc.com.
|
#man dig
|
#dig @192.168.16.254 mts.com.ua ns
; <<>> DiG 9.3.4-P1 <<>> @192.168.16.254 mts.com.ua ns ; (1 server found) ;; global options: printcmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 5798 ;; flags: qr rd ra; QUERY: 1, ANSWER: 3, AUTHORITY: 0, ADDITIONAL: 3 ;; QUESTION SECTION: ;mts.com.ua. IN NS ;; ANSWER SECTION: mts.com.ua. 3600 IN NS ns2.mts.com.ua. mts.com.ua. 3600 IN NS ns.mts.com.ua. mts.com.ua. 3600 IN NS ns.secondary.net.ua. ;; ADDITIONAL SECTION: ns.mts.com.ua. 3600 IN A 80.255.64.67 ns.secondary.net.ua. 2809 IN A 195.149.112.1 ns2.mts.com.ua. 3600 IN A 80.255.64.69 ;; Query time: 44 msec ;; SERVER: 192.168.16.254#53(192.168.16.254) ;; WHEN: Thu Jan 21 11:26:10 2010 ;; MSG SIZE rcvd: 142 |
#dig @ns2.mts.com.ua mts.com.ua axfr
; <<>> DiG 9.3.4-P1 <<>> @ns2.mts.com.ua mts.com.ua axfr ; (1 server found) ;; global options: printcmd ; Transfer failed. |
#dig @ns.mts.com.ua mts.com.ua axfr
; <<>> DiG 9.3.4-P1 <<>> @ns.mts.com.ua mts.com.ua axfr ; (1 server found) ;; global options: printcmd ; Transfer failed. |
#dig @192.168.16.254 mts.com.ua ns
; <<>> DiG 9.3.4-P1 <<>> @192.168.16.254 mts.com.ua ns ; (1 server found) ;; global options: printcmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 35934 ;; flags: qr rd ra; QUERY: 1, ANSWER: 3, AUTHORITY: 0, ADDITIONAL: 3 ;; QUESTION SECTION: ;mts.com.ua. IN NS ;; ANSWER SECTION: mts.com.ua. 3555 IN NS ns.mts.com.ua. mts.com.ua. 3555 IN NS ns.secondary.net.ua. mts.com.ua. 3555 IN NS ns2.mts.com.ua. ;; ADDITIONAL SECTION: ns.mts.com.ua. 3555 IN A 80.255.64.67 ns.secondary.net.ua. 2764 IN A 195.149.112.1 ns2.mts.com.ua. 3555 IN A 80.255.64.69 ;; Query time: 1 msec ;; SERVER: 192.168.16.254#53(192.168.16.254) ;; WHEN: Thu Jan 21 11:26:56 2010 ;; MSG SIZE rcvd: 142 |
#dig @192.168.16.254 net.nt axfr
host175.net.nt. 604800 IN A 192.168.16.175 host176.net.nt. 604800 IN A 192.168.16.176 host177.net.nt. 604800 IN A 192.168.16.177 host178.net.nt. 604800 IN A 192.168.16.178 host179.net.nt. 604800 IN A 192.168.16.179 host180.net.nt. 604800 IN A 192.168.16.180 host181.net.nt. 604800 IN A 192.168.16.181 host182.net.nt. 604800 IN A 192.168.16.182 host183.net.nt. 604800 IN A 192.168.16.183 host184.net.nt. 604800 IN A 192.168.16.184 ... debian11.js.net.nt. 604800 IN A 192.168.16.11 nz.net.nt. 604800 IN NS debian4.nz.net.nt. debian4.nz.net.nt. 604800 IN A 192.168.16.4 win.net.nt. 604800 IN NS dc.win.net.nt. dc.win.net.nt. 604800 IN A 192.168.16.150 net.nt. 604800 IN SOA debian.net.nt. sergey\.cherepenin.gmail.com. 21 604800 86400 2419200 604800 ;; Query time: 64 msec ;; SERVER: 192.168.16.254#53(192.168.16.254) ;; WHEN: Thu Jan 21 11:27:37 2010 ;; XFR size: 256 records (messages 1) |
Время первой команды журнала | 13:45:05 2010- 1-20 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Время последней команды журнала | 10:26:56 2010- 1-21 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в журнале | 101 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент команд с ненулевым кодом завершения, % | 25.74 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент синтаксически неверно набранных команд, % | 5.94 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Суммарное время работы с терминалом *, час | 2.77 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в единицу времени, команда/мин | 0.61 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду 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