/l3/users/lav/nt-bsdnet/root :1 :2 :3 :4 :5 :6 :7 :8 :9 :10 :11 :12 |
|
#nmap
bash: nmap: command not found |
#vi /etc/hosts.allow
23c23 < chargen : 192.168.15.2 192.168.15.4 : deny --- > chargen : 127.0.0.1 : deny |
#vi /etc/hosts.allow
|
#telnet 127.0.0.1 chargen
Trying 127.0.0.1... Connected to localhost.linux.nt. Escape character is '^]'. Connection closed by foreign host. |
#telnet 127.0.0.1 chargen
Trying 127.0.0.1... Connected to localhost.linux.nt. Escape character is '^]'. Connection closed by foreign host. |
#vi /etc/hosts.allow
23d22 < chargen : 127.0.0.1 : deny |
#vi /etc/hosts.allow
23d22 < chargen : 127.0.0.1 : deny |
#find /usr/ports/ -name nmap
/usr/ports/security/nmap ^C |
#find /usr/ports/ -name nmap
/usr/ports/security/nmap ^C |
#/usr/ports/security/nmap/make install
bash: /usr/ports/security/nmap/make: No such file or directory |
#/usr/ports/security/nmap/make install
bash: /usr/ports/security/nmap/make: No such file or directory |
#/usr/ports/security/nmap/make install
bash: /usr/ports/security/nmap/make: No such file or directory |
#/usr/ports/security/nmap/make install
bash: /usr/ports/security/nmap/make: No such file or directory |
#make install curity/nmap/
make: don't know how to make install. Stop |
#make install curity/nmap/
make: don't know how to make install. Stop |
#cd r/ports/security/nmap/
|
#cd r/ports/security/nmap/
|
#make install
checking for setsockopt... yes checking for nanosleep... yes checking how to run the C preprocessor... cc -E checking for egrep... grep -E checking for ANSI C header files... yes checking struct ip... yes checking ip_v in struct ip... yes checking if sockaddr{} has sa_len member... yes checking if struct icmp exists... yes checking if struct ip exists... yes ... 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.11\" -DNMAP_NAME=\"Nmap\" -DNMAP_URL=\"http://www.insecure.org/nmap/\" -DNMAP_PLATFORM=\"i386-portbld-freebsd6.0\" -DNMAPDATADIR=\"/usr/local/share/nmap\" targets.cc -o targets.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.11\" -DNMAP_NAME=\"Nmap\" -DNMAP_URL=\"http://www.insecure.org/nmap/\" -DNMAP_PLATFORM=\"i386-portbld-freebsd6.0\" -DNMAPDATADIR=\"/usr/local/share/nmap\" tcpip.cc -o tcpip.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.11\" -DNMAP_NAME=\"Nmap\" -DNMAP_URL=\"http://www.insecure.org/nmap/\" -DNMAP_PLATFORM=\"i386-portbld-freebsd6.0\" -DNMAPDATADIR=\"/usr/local/share/nmap\" nmap_error.cc -o nmap_error.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.11\" -DNMAP_NAME=\"Nmap\" -DNMAP_URL=\"http://www.insecure.org/nmap/\" -DNMAP_PLATFORM=\"i386-portbld-freebsd6.0\" -DNMAPDATADIR=\"/usr/local/share/nmap\" utils.cc -o utils.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.11\" -DNMAP_NAME=\"Nmap\" -DNMAP_URL=\"http://www.insecure.org/nmap/\" -DNMAP_PLATFORM=\"i386-portbld-freebsd6.0\" -DNMAPDATADIR=\"/usr/local/share/nmap\" idle_scan.cc -o idle_scan.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.11\" -DNMAP_NAME=\"Nmap\" -DNMAP_URL=\"http://www.insecure.org/nmap/\" -DNMAP_PLATFORM=\"i386-portbld-freebsd6.0\" -DNMAPDATADIR=\"/usr/local/share/nmap\" osscan.cc -o osscan.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.11\" -DNMAP_NAME=\"Nmap\" -DNMAP_URL=\"http://www.insecure.org/nmap/\" -DNMAP_PLATFORM=\"i386-portbld-freebsd6.0\" -DNMAPDATADIR=\"/usr/local/share/nmap\" output.cc -o output.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.11\" -DNMAP_NAME=\"Nmap\" -DNMAP_URL=\"http://www.insecure.org/nmap/\" -DNMAP_PLATFORM=\"i386-portbld-freebsd6.0\" -DNMAPDATADIR=\"/usr/local/share/nmap\" scan_engine.cc -o scan_engine.o scan_engine.cc: In function `bool ultrascan_port_pspec_update(UltraScanInfo*, HostScanStats*, const probespec*, int)': scan_engine.cc:1667: warning: 'portno' might be used uninitialized in this function |
#make install
checking for setsockopt... yes checking for nanosleep... yes checking how to run the C preprocessor... cc -E checking for egrep... grep -E checking for ANSI C header files... yes checking struct ip... yes checking ip_v in struct ip... yes checking if sockaddr{} has sa_len member... yes checking if struct icmp exists... yes checking if struct ip exists... yes ... 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.11\" -DNMAP_NAME=\"Nmap\" -DNMAP_URL=\"http://www.insecure.org/nmap/\" -DNMAP_PLATFORM=\"i386-portbld-freebsd6.0\" -DNMAPDATADIR=\"/usr/local/share/nmap\" targets.cc -o targets.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.11\" -DNMAP_NAME=\"Nmap\" -DNMAP_URL=\"http://www.insecure.org/nmap/\" -DNMAP_PLATFORM=\"i386-portbld-freebsd6.0\" -DNMAPDATADIR=\"/usr/local/share/nmap\" tcpip.cc -o tcpip.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.11\" -DNMAP_NAME=\"Nmap\" -DNMAP_URL=\"http://www.insecure.org/nmap/\" -DNMAP_PLATFORM=\"i386-portbld-freebsd6.0\" -DNMAPDATADIR=\"/usr/local/share/nmap\" nmap_error.cc -o nmap_error.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.11\" -DNMAP_NAME=\"Nmap\" -DNMAP_URL=\"http://www.insecure.org/nmap/\" -DNMAP_PLATFORM=\"i386-portbld-freebsd6.0\" -DNMAPDATADIR=\"/usr/local/share/nmap\" utils.cc -o utils.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.11\" -DNMAP_NAME=\"Nmap\" -DNMAP_URL=\"http://www.insecure.org/nmap/\" -DNMAP_PLATFORM=\"i386-portbld-freebsd6.0\" -DNMAPDATADIR=\"/usr/local/share/nmap\" idle_scan.cc -o idle_scan.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.11\" -DNMAP_NAME=\"Nmap\" -DNMAP_URL=\"http://www.insecure.org/nmap/\" -DNMAP_PLATFORM=\"i386-portbld-freebsd6.0\" -DNMAPDATADIR=\"/usr/local/share/nmap\" osscan.cc -o osscan.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.11\" -DNMAP_NAME=\"Nmap\" -DNMAP_URL=\"http://www.insecure.org/nmap/\" -DNMAP_PLATFORM=\"i386-portbld-freebsd6.0\" -DNMAPDATADIR=\"/usr/local/share/nmap\" output.cc -o output.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.11\" -DNMAP_NAME=\"Nmap\" -DNMAP_URL=\"http://www.insecure.org/nmap/\" -DNMAP_PLATFORM=\"i386-portbld-freebsd6.0\" -DNMAPDATADIR=\"/usr/local/share/nmap\" scan_engine.cc -o scan_engine.o scan_engine.cc: In function `bool ultrascan_port_pspec_update(UltraScanInfo*, HostScanStats*, const probespec*, int)': scan_engine.cc:1667: warning: 'portno' might be used uninitialized in this function |
#man nmap
|
#man nmap
|
#nmap 127.0.0.1
Starting Nmap 4.11 ( http://www.insecure.org/nmap/ ) at 2006-09-19 13:00 EEST Interesting ports on localhost.linux.nt (127.0.0.1): Not shown: 1674 closed ports PORT STATE SERVICE 7/tcp open echo 19/tcp open chargen 22/tcp open ssh 25/tcp open smtp 143/tcp open imap 6000/tcp open X11 Nmap finished: 1 IP address (1 host up) scanned in 10.377 seconds |
#nmap 127.0.0.1
Starting Nmap 4.11 ( http://www.insecure.org/nmap/ ) at 2006-09-19 13:00 EEST Interesting ports on localhost.linux.nt (127.0.0.1): Not shown: 1674 closed ports PORT STATE SERVICE 7/tcp open echo 19/tcp open chargen 22/tcp open ssh 25/tcp open smtp 143/tcp open imap 6000/tcp open X11 Nmap finished: 1 IP address (1 host up) scanned in 10.377 seconds |
#nmap 192.168.15.4
Starting Nmap 4.11 ( http://www.insecure.org/nmap/ ) at 2006-09-19 13:01 EEST Interesting ports on linux4.max.linux.nt (192.168.15.4): Not shown: 1672 closed ports PORT STATE SERVICE 19/tcp open chargen 22/tcp open ssh 53/tcp open domain 110/tcp open pop3 111/tcp open rpcbind 113/tcp open auth 515/tcp open printer 909/tcp open unknown MAC Address: 00:04:76:A1:EF:BB (3 Com) Nmap finished: 1 IP address (1 host up) scanned in 0.578 seconds |
#nmap 192.168.15.4
Starting Nmap 4.11 ( http://www.insecure.org/nmap/ ) at 2006-09-19 13:01 EEST Interesting ports on linux4.max.linux.nt (192.168.15.4): Not shown: 1672 closed ports PORT STATE SERVICE 19/tcp open chargen 22/tcp open ssh 53/tcp open domain 110/tcp open pop3 111/tcp open rpcbind 113/tcp open auth 515/tcp open printer 909/tcp open unknown MAC Address: 00:04:76:A1:EF:BB (3 Com) Nmap finished: 1 IP address (1 host up) scanned in 0.578 seconds |
#nmap 192.168.15.21
Starting Nmap 4.11 ( http://www.insecure.org/nmap/ ) at 2006-09-19 13:01 EEST Interesting ports on fbsd1.linux.nt (192.168.15.21): Not shown: 1675 closed ports PORT STATE SERVICE 7/tcp open echo 19/tcp open chargen 22/tcp open ssh 143/tcp open imap 6000/tcp open X11 Nmap finished: 1 IP address (1 host up) scanned in 10.362 seconds |
#nmap 192.168.15.21
Starting Nmap 4.11 ( http://www.insecure.org/nmap/ ) at 2006-09-19 13:01 EEST Interesting ports on fbsd1.linux.nt (192.168.15.21): Not shown: 1675 closed ports PORT STATE SERVICE 7/tcp open echo 19/tcp open chargen 22/tcp open ssh 143/tcp open imap 6000/tcp open X11 Nmap finished: 1 IP address (1 host up) scanned in 10.362 seconds |
#nmap ya.ru
Starting Nmap 4.11 ( http://www.insecure.org/nmap/ ) at 2006-09-19 13:02 EEST caught SIGINT signal, cleaning up |
#nmap ya.ru
Starting Nmap 4.11 ( http://www.insecure.org/nmap/ ) at 2006-09-19 13:02 EEST caught SIGINT signal, cleaning up |
#nmap 213.130.227.27
Starting Nmap 4.11 ( http://www.insecure.org/nmap/ ) at 2006-09-19 13:03 EEST 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 2.058 seconds |
#nmap 213.130.227.27
Starting Nmap 4.11 ( http://www.insecure.org/nmap/ ) at 2006-09-19 13:03 EEST 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 2.058 seconds |
#ping.130.227.27
PING 213.130.227.27 (213.130.227.27): 56 data bytes 92 bytes from host-224-8.haminetti.net (213.130.224.8): Destination Host Unreachable Vr HL TOS Len ID Flg off TTL Pro cks Src Dst 4 5 3c 5400 8004 0 0000 2b 01 870d 192.168.15.21 213.130.227.27 92 bytes from host-224-8.haminetti.net (213.130.224.8): Destination Host Unreachable Vr HL TOS Len ID Flg off TTL Pro cks Src Dst 4 5 3c 5400 800b 0 0000 2a 01 8806 192.168.15.21 213.130.227.27 92 bytes from host-224-8.haminetti.net (213.130.224.8): Destination Host Unreachable Vr HL TOS Len ID Flg off TTL Pro cks Src Dst 4 5 3c 5400 800d 0 0000 2a 01 8804 192.168.15.21 213.130.227.27 ... 4 5 3c 5400 8010 0 0000 2a 01 8801 192.168.15.21 213.130.227.27 92 bytes from host-224-8.haminetti.net (213.130.224.8): Destination Host Unreachable Vr HL TOS Len ID Flg off TTL Pro cks Src Dst 4 5 3c 5400 8011 0 0000 2a 01 8800 192.168.15.21 213.130.227.27 92 bytes from host-224-8.haminetti.net (213.130.224.8): Destination Host Unreachable Vr HL TOS Len ID Flg off TTL Pro cks Src Dst 4 5 3c 5400 8012 0 0000 2a 01 87ff 192.168.15.21 213.130.227.27 ^C --- 213.130.227.27 ping statistics --- 8 packets transmitted, 0 packets received, 100% packet loss |
#ping.130.227.27
PING 213.130.227.27 (213.130.227.27): 56 data bytes 92 bytes from host-224-8.haminetti.net (213.130.224.8): Destination Host Unreachable Vr HL TOS Len ID Flg off TTL Pro cks Src Dst 4 5 3c 5400 8004 0 0000 2b 01 870d 192.168.15.21 213.130.227.27 92 bytes from host-224-8.haminetti.net (213.130.224.8): Destination Host Unreachable Vr HL TOS Len ID Flg off TTL Pro cks Src Dst 4 5 3c 5400 800b 0 0000 2a 01 8806 192.168.15.21 213.130.227.27 92 bytes from host-224-8.haminetti.net (213.130.224.8): Destination Host Unreachable Vr HL TOS Len ID Flg off TTL Pro cks Src Dst 4 5 3c 5400 800d 0 0000 2a 01 8804 192.168.15.21 213.130.227.27 ... 4 5 3c 5400 8010 0 0000 2a 01 8801 192.168.15.21 213.130.227.27 92 bytes from host-224-8.haminetti.net (213.130.224.8): Destination Host Unreachable Vr HL TOS Len ID Flg off TTL Pro cks Src Dst 4 5 3c 5400 8011 0 0000 2a 01 8800 192.168.15.21 213.130.227.27 92 bytes from host-224-8.haminetti.net (213.130.224.8): Destination Host Unreachable Vr HL TOS Len ID Flg off TTL Pro cks Src Dst 4 5 3c 5400 8012 0 0000 2a 01 87ff 192.168.15.21 213.130.227.27 ^C --- 213.130.227.27 ping statistics --- 8 packets transmitted, 0 packets received, 100% packet loss |
#ping 213.130.27.227
PING 213.130.27.227 (213.130.27.227): 56 data bytes 64 bytes from 213.130.27.227: icmp_seq=0 ttl=241 time=1095.236 ms 64 bytes from 213.130.27.227: icmp_seq=1 ttl=241 time=1146.836 ms 64 bytes from 213.130.27.227: icmp_seq=2 ttl=241 time=880.172 ms 64 bytes from 213.130.27.227: icmp_seq=3 ttl=241 time=282.194 ms 64 bytes from 213.130.27.227: icmp_seq=4 ttl=241 time=295.898 ms 64 bytes from 213.130.27.227: icmp_seq=5 ttl=241 time=377.997 ms ^C --- 213.130.27.227 ping statistics --- 7 packets transmitted, 6 packets received, 14% packet loss round-trip min/avg/max/stddev = 282.194/679.722/1146.836/371.352 ms |
#ping 213.130.27.227
PING 213.130.27.227 (213.130.27.227): 56 data bytes 64 bytes from 213.130.27.227: icmp_seq=0 ttl=241 time=1095.236 ms 64 bytes from 213.130.27.227: icmp_seq=1 ttl=241 time=1146.836 ms 64 bytes from 213.130.27.227: icmp_seq=2 ttl=241 time=880.172 ms 64 bytes from 213.130.27.227: icmp_seq=3 ttl=241 time=282.194 ms 64 bytes from 213.130.27.227: icmp_seq=4 ttl=241 time=295.898 ms 64 bytes from 213.130.27.227: icmp_seq=5 ttl=241 time=377.997 ms ^C --- 213.130.27.227 ping statistics --- 7 packets transmitted, 6 packets received, 14% packet loss round-trip min/avg/max/stddev = 282.194/679.722/1146.836/371.352 ms |
#nmap.130.27.227
Starting Nmap 4.11 ( http://www.insecure.org/nmap/ ) at 2006-09-19 13:46 EEST caught SIGINT signal, cleaning up |
#nmap.130.27.227
Starting Nmap 4.11 ( http://www.insecure.org/nmap/ ) at 2006-09-19 13:46 EEST caught SIGINT signal, cleaning up |
#cd /usr/ports/
.cvsignore arabic/ emulators/ mbone/ sysutils/ CHANGES archivers/ finance/ misc/ textproc/ COPYRIGHT astro/ french/ multimedia/ ukrainian/ GIDs audio/ ftp/ net/ vietnamese/ INDEX-6 benchmarks/ games/ net-im/ www/ KNOBS biology/ german/ net-mgmt/ x11/ LEGAL cad/ graphics/ net-p2p/ x11-clocks/ MOVED chinese/ hebrew/ news/ x11-fm/ Makefile comms/ hungarian/ palm/ x11-fonts/ Mk/ converters/ irc/ polish/ x11-servers/ README databases/ japanese/ portuguese/ x11-themes/ Templates/ deskutils/ java/ print/ x11-toolkits/ Tools/ devel/ korean/ russian/ x11-wm/ UIDs distfiles/ lang/ science/ UPDATING dns/ mail/ security/ accessibility/ editors/ math/ shells/ |
#cd /usr/ports/net-im/
Display all 120 possibilities? (y or n) Makefile ickle/ meanwhile-gaim/ aim/ icmpchat/ mercury/ amsn/ icqlib/ micq/ ari-yahoo/ icqnd/ mu-conference/ ayttm/ imcom/ naim/ bsflite/ jabber/ newsbot/ ccmsn/ jabber-aim/ ocaml-jabbr/ centericq/ jabber-conference/ p5-Jabber-Connection/ cicquin/ jabber-jud/ p5-Jabber-SimpleSend/ ... echat/ jabber-yahoo/ p5-Net-MSN/ ejabberd/ jabber.el/ p5-Net-NetSend/ eva/ jabberd/ p5-Net-OSCAR/ firetalk/ jarl/ p5-Net-XMPP/ fugu/ jggtrans/ pebrot/ gaim/ jit/ pork/ gaim-assistant/ jwchat/ psi/ gaim-bangexec/ kf/ psi-gentoo/ gaim-extprefs/ kmerlin/ py-jabber/ gaim-guifications/ kmess/ py-msnp/ |
#cd /usr/ports/net-im/centericq/
|
#cd /usr/ports/
.cvsignore arabic/ emulators/ mbone/ sysutils/ CHANGES archivers/ finance/ misc/ textproc/ COPYRIGHT astro/ french/ multimedia/ ukrainian/ GIDs audio/ ftp/ net/ vietnamese/ INDEX-6 benchmarks/ games/ net-im/ www/ KNOBS biology/ german/ net-mgmt/ x11/ LEGAL cad/ graphics/ net-p2p/ x11-clocks/ MOVED chinese/ hebrew/ news/ x11-fm/ Makefile comms/ hungarian/ palm/ x11-fonts/ Mk/ converters/ irc/ polish/ x11-servers/ README databases/ japanese/ portuguese/ x11-themes/ Templates/ deskutils/ java/ print/ x11-toolkits/ Tools/ devel/ korean/ russian/ x11-wm/ UIDs distfiles/ lang/ science/ UPDATING dns/ mail/ security/ accessibility/ editors/ math/ shells/ |
#cd /usr/ports/net-im/
Display all 120 possibilities? (y or n) Makefile ickle/ meanwhile-gaim/ aim/ icmpchat/ mercury/ amsn/ icqlib/ micq/ ari-yahoo/ icqnd/ mu-conference/ ayttm/ imcom/ naim/ bsflite/ jabber/ newsbot/ ccmsn/ jabber-aim/ ocaml-jabbr/ centericq/ jabber-conference/ p5-Jabber-Connection/ cicquin/ jabber-jud/ p5-Jabber-SimpleSend/ ... echat/ jabber-yahoo/ p5-Net-MSN/ ejabberd/ jabber.el/ p5-Net-NetSend/ eva/ jabberd/ p5-Net-OSCAR/ firetalk/ jarl/ p5-Net-XMPP/ fugu/ jggtrans/ pebrot/ gaim/ jit/ pork/ gaim-assistant/ jwchat/ psi/ gaim-bangexec/ kf/ psi-gentoo/ gaim-extprefs/ kmerlin/ py-jabber/ gaim-guifications/ kmess/ py-msnp/ |
#cd /usr/ports/net-im/centericq/
|
#telnet 213.130.27.227
Trying 213.130.27.227... telnet: connect to address 213.130.27.227: Operation timed out telnet: Unable to connect to remote host |
#telnet 213.130.27.227
Trying 213.130.27.227... telnet: connect to address 213.130.27.227: Operation timed out telnet: Unable to connect to remote host |
#centericq
|
#centericq
|
#q
|
#q
|
#find /usr/ports/ -name firefox
CENTERICQ 4.20.0 UNSENT: 0 icq:_ o Online mar4ello [o] îÁ ÌÉÎÉÉ On [o] mar4ello [_] Offline /usr/ports/www/firefox On [o] Wishmaster [a] ïÔÓÕÔÓÔ×ÉÅ [o] Illusion [d] îÅ ÂÅÓÐÏËÏÉÔØ [o] sergeygold [n] îÅÄÏÓÔÕÐÅÎ [o] m@x sion d [c] úÁÎÑÔ [a] sky eygold [f] îÅ ÐÒÏÞØ ÐÏÂÏÌÔÁÔØ [n] Lola [i] îÅ×ÉÄÉÍÏÓÔØ ... ely Wolf ntin F lth + [icq] ÓÏÅÄÉÎÅÎÉÅ Ó ÓÅÒ×ÅÒÏÍ + [icq] ×ÈÏÄ × ÓÉÓÔÅÍÕ ÓÏÓÔÏÑÌÓÑ + ËÏÎÆÉÇÕÒÁÃÉÑ sounds ÉÚÍÅÎÅÎÁ, ÐÅÒÅÞÉÔÙ×ÁÅÍ F2/m ÔÅËÕÝÉÊ ËÏÎÔÁËÔ, F3/s ÓÍÅÎÉÔØ ÓÔÁÔÕÓ, F4/g ÇÌÁ×ÎÏÅ ÍÅÎÀ, q ×ÙÈÏÄ |
#find /usr/ports/ -name firefox
/usr/ports/www/firefox |
#cd /usr/ports/www/firefox
|
#cd /usr/ports/www/firefox
|
#make install
x x x x x x x x tqmqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqjqu x [ OK ] Cancel x mqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqj ===> Vulnerability check disabled, database not found ===> Found saved configuration for firefox-1.5.0.7,1 => firefox-1.5.0.7-source.tar.bz2 doesn't seem to exist in /usr/ports/distfiles/. => Attempting to fetch from http://releases.mozilla.org/pub/mozilla.org/firefox/releases/1.5.0.7/source/. firefox-1.5.0.7-source.tar.bz2 1% of 33 MB 23 kBps 23m54s^C fetch: transfer interrupted |
#make install
x x x x x x x x tqmqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqjqu x [ OK ] Cancel x mqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqj ===> Vulnerability check disabled, database not found ===> Found saved configuration for firefox-1.5.0.7,1 => firefox-1.5.0.7-source.tar.bz2 doesn't seem to exist in /usr/ports/distfiles/. => Attempting to fetch from http://releases.mozilla.org/pub/mozilla.org/firefox/releases/1.5.0.7/source/. firefox-1.5.0.7-source.tar.bz2 1% of 33 MB 23 kBps 23m54s^C fetch: transfer interrupted |
#sockstat
USER COMMAND PID FD PROTO LOCAL ADDRESS FOREIGN ADDRESS user telnet 26445 3 tcp4 192.168.15.21:51720 213.130.27.227:21 root centericq 26239 3 tcp4 192.168.15.21:60195 205.188.7.250:5190 root xinetd 6217 5 tcp4 *:143 *:* root xinetd 6217 6 tcp4 *:19 *:* root xinetd 6217 7 dgram -> /var/run/logpriv root xinetd 6217 8 tcp4 *:7 *:* root ssh 5188 3 tcp4 192.168.15.21:52409 192.168.15.2:22 root xterm-stat 5061 3 stream -> /tmp/.X11-unix/X0 root xterm-stat 5061 4 stream -> /tmp/.ICE-unix/4829 ... root login 509 3 dgram -> /var/run/logpriv root login 508 3 dgram -> /var/run/logpriv smmsp sendmail 436 3 dgram -> /var/run/log root sendmail 432 3 tcp4 127.0.0.1:25 *:* root sendmail 432 4 dgram -> /var/run/logpriv root sshd 426 3 tcp4 *:22 *:* root syslogd 304 3 dgram /var/run/log root syslogd 304 4 dgram /var/run/logpriv root syslogd 304 5 udp4 *:514 *:* root devd 275 4 stream /var/run/devd.pipe |
#sockstat
USER COMMAND PID FD PROTO LOCAL ADDRESS FOREIGN ADDRESS user telnet 26445 3 tcp4 192.168.15.21:51720 213.130.27.227:21 root centericq 26239 3 tcp4 192.168.15.21:60195 205.188.7.250:5190 root xinetd 6217 5 tcp4 *:143 *:* root xinetd 6217 6 tcp4 *:19 *:* root xinetd 6217 7 dgram -> /var/run/logpriv root xinetd 6217 8 tcp4 *:7 *:* root ssh 5188 3 tcp4 192.168.15.21:52409 192.168.15.2:22 root xterm-stat 5061 3 stream -> /tmp/.X11-unix/X0 root xterm-stat 5061 4 stream -> /tmp/.ICE-unix/4829 ... root login 509 3 dgram -> /var/run/logpriv root login 508 3 dgram -> /var/run/logpriv smmsp sendmail 436 3 dgram -> /var/run/log root sendmail 432 3 tcp4 127.0.0.1:25 *:* root sendmail 432 4 dgram -> /var/run/logpriv root sshd 426 3 tcp4 *:22 *:* root syslogd 304 3 dgram /var/run/log root syslogd 304 4 dgram /var/run/logpriv root syslogd 304 5 udp4 *:514 *:* root devd 275 4 stream /var/run/devd.pipe |
#sockstat |grep 21
user telnet 26445 3 tcp4 192.168.15.21:51720 213.130.27.227:21 root centericq 26239 3 tcp4 192.168.15.21:60195 205.188.7.250:5190 root xinetd 6217 5 tcp4 *:143 *:* root xinetd 6217 6 tcp4 *:19 *:* root xinetd 6217 7 dgram -> /var/run/logpriv root xinetd 6217 8 tcp4 *:7 *:* root ssh 5188 3 tcp4 192.168.15.21:52409 192.168.15.2:22 user kdeinit 4829 21 stream /tmp/.ICE-unix/4829 user kdeinit 4806 21 stream /tmp/.ICE-unix/dcop4806-1158653272 root Xorg 4776 21 stream /tmp/.X11-unix/X0 |
#sockstat |grep 21
user telnet 26445 3 tcp4 192.168.15.21:51720 213.130.27.227:21 root centericq 26239 3 tcp4 192.168.15.21:60195 205.188.7.250:5190 root xinetd 6217 5 tcp4 *:143 *:* root xinetd 6217 6 tcp4 *:19 *:* root xinetd 6217 7 dgram -> /var/run/logpriv root xinetd 6217 8 tcp4 *:7 *:* root ssh 5188 3 tcp4 192.168.15.21:52409 192.168.15.2:22 user kdeinit 4829 21 stream /tmp/.ICE-unix/4829 user kdeinit 4806 21 stream /tmp/.ICE-unix/dcop4806-1158653272 root Xorg 4776 21 stream /tmp/.X11-unix/X0 |
#nc -s 192.168.1.33 213.130.27.227 23
nc: bind failed: Can't assign requested address |
#nc -s 192.168.1.33 213.130.27.227 23
nc: bind failed: Can't assign requested address |
#nc -s 192.168.1.33 213.130.27.227
usage: nc [-46DEdhklnrStUuvz] [-e policy] [-i interval] [-p source_port] [-s source_ip_address] [-w timeout] [-X proxy_version] [-x proxy_address[:port]] [hostname] [port[s]] |
#nc -s 192.168.1.33 213.130.27.227
usage: nc [-46DEdhklnrStUuvz] [-e policy] [-i interval] [-p source_port] [-s source_ip_address] [-w timeout] [-X proxy_version] [-x proxy_address[:port]] [hostname] [port[s]] |
#nc -vzs 213.130.27.227 20-30 192.168.1.33
nc: port range not valid |
#nc -vzs 213.130.27.227 20-30 192.168.1.33
nc: port range not valid |
#nc -vzs 213.130.27.227 20-30
usage: nc [-46DEdhklnrStUuvz] [-e policy] [-i interval] [-p source_port] [-s source_ip_address] [-w timeout] [-X proxy_version] [-x proxy_address[:port]] [hostname] [port[s]] |
#nc -vzs 213.130.27.227 20-30
usage: nc [-46DEdhklnrStUuvz] [-e policy] [-i interval] [-p source_port] [-s source_ip_address] [-w timeout] [-X proxy_version] [-x proxy_address[:port]] [hostname] [port[s]] |
#nc -vz 213.130.27.227 20-30
nc: connect to 213.130.27.227 port 20 (tcp) failed: Connection refused ^[[A^[[A^[[A^[[B^[[B^[[B^C |
#nc -vz 213.130.27.227 20-30
nc: connect to 213.130.27.227 port 20 (tcp) failed: Connection refused ^[[A^[[A^[[A^[[B^[[B^[[B^C |
#nc -vz 213.130.27.227 20-30
nc: connect to 213.130.27.227 port 20 (tcp) failed: Connection refused nc: connect to 213.130.27.227 port 21 (tcp) failed: Operation timed out nc: connect to 213.130.27.227 port 22 (tcp) failed: Connection refused ^C |
#nc -vz 213.130.27.227 20-30
nc: connect to 213.130.27.227 port 20 (tcp) failed: Connection refused nc: connect to 213.130.27.227 port 21 (tcp) failed: Operation timed out nc: connect to 213.130.27.227 port 22 (tcp) failed: Connection refused ^C |
#nc -u 213.130.27.227 23
e help ^[[29~c^[[A ^C |
#nc -u 213.130.27.227 23
e help ^[[29~c^[[A ^C |
#nc -s 192.168.1.20 213.130.27.227 23
nc: bind failed: Can't assign requested address |
#nc -s 192.168.1.20 213.130.27.227 23
nc: bind failed: Can't assign requested address |
#nc -s 192.168.1.20 -w 5 213.130.27.227 23
nc: bind failed: Can't assign requested address |
#nc -s 192.168.1.20 -w 5 213.130.27.227 23
nc: bind failed: Can't assign requested address |
#nc -s 213.130.27.227227 23
nc: bind failed: Can't assign requested address |
#nc -s 213.130.27.227227 23
nc: bind failed: Can't assign requested address |
#ipfw show
00001 196519 475578332 allow ip from any to any 00001 0 0 allow ip from any to any 65535 20 1262 deny ip from any to any |
#ipfw show
00001 196519 475578332 allow ip from any to any 00001 0 0 allow ip from any to any 65535 20 1262 deny ip from any to any |
#pkg_add -r display
Fetching ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-6.0-release/Latest/display.tbz... Done. |
#pkg_add -r display
Fetching ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-6.0-release/Latest/display.tbz... Done. |
#dispaly ipfw show
bash: dispaly: command not found |
#dispaly ipfw show
bash: dispaly: command not found |
#displaipfw show
usage: display [-<delay>] <command> <delay> = # of seconds between displays, default=5 <command> = command to display, quoted if it contains blanks Display (a.k.a. follow) version 1.2 NOTE: /bin/sh will be used to process the command, not SHELL (/usr/local/bin/bash) |
#displaipfw show
usage: display [-<delay>] <command> <delay> = # of seconds between displays, default=5 <command> = command to display, quoted if it contains blanks Display (a.k.a. follow) version 1.2 NOTE: /bin/sh will be used to process the command, not SHELL (/usr/local/bin/bash) |
#display /bin/
usage: display [-<delay>] <command> <delay> = # of seconds between displays, default=5 <command> = command to display, quoted if it contains blanks Display (a.k.a. follow) version 1.2 NOTE: /bin/sh will be used to process the command, not SHELL (/usr/local/bin/bash) |
#display /bin/
usage: display [-<delay>] <command> <delay> = # of seconds between displays, default=5 <command> = command to display, quoted if it contains blanks Display (a.k.a. follow) version 1.2 NOTE: /bin/sh will be used to process the command, not SHELL (/usr/local/bin/bash) |
#display ps aux
usage: display [-<delay>] <command> <delay> = # of seconds between displays, default=5 <command> = command to display, quoted if it contains blanks Display (a.k.a. follow) version 1.2 NOTE: /bin/sh will be used to process the command, not SHELL (/usr/local/bin/bash) |
#display ps aux
usage: display [-<delay>] <command> <delay> = # of seconds between displays, default=5 <command> = command to display, quoted if it contains blanks Display (a.k.a. follow) version 1.2 NOTE: /bin/sh will be used to process the command, not SHELL (/usr/local/bin/bash) |
#display /bin/ps
4776 p2 S 0:53,88 X :0 (Xorg) 4957 p5 I 0:00,01 su 4958 p5 S+ 0:00,90 script -t 0 -q /root/.lilalo//216578749199036267-1158 4994 p8 Ss 0:00,99 /usr/local/bin/bash -i 26734 p8 S+ 0:00,00 display /bin/ps 26735 p8 S+ 0:00,00 sh -c /bin/ps 9 26736 p8 R+ 0:00,00 /bin/ps 5123 pa I 0:00,01 su 5124 pa I+ 0:00,59 script -t 0 -q /root/.lilalo//6655152852276826185-115 5160 pb Is 0:00,03 /usr/local/bin/bash -i 1 5188 pb I+ 0:01,00 ssh 192.168.15.2 7 Loop count = 1 Tue Sep 19 14:35:48 |
#display /bin/ps
4776 p2 S 0:53,88 X :0 (Xorg) 4957 p5 I 0:00,01 su 4958 p5 S+ 0:00,90 script -t 0 -q /root/.lilalo//216578749199036267-1158 4994 p8 Ss 0:00,99 /usr/local/bin/bash -i 26734 p8 S+ 0:00,00 display /bin/ps 26735 p8 S+ 0:00,00 sh -c /bin/ps 9 26736 p8 R+ 0:00,00 /bin/ps 5123 pa I 0:00,01 su 5124 pa I+ 0:00,59 script -t 0 -q /root/.lilalo//6655152852276826185-115 5160 pb Is 0:00,03 /usr/local/bin/bash -i 1 5188 pb I+ 0:01,00 ssh 192.168.15.2 7 Loop count = 1 Tue Sep 19 14:35:48 |
#display /bin/ps aux
usage: display [-<delay>] <command> <delay> = # of seconds between displays, default=5 <command> = command to display, quoted if it contains blanks Display (a.k.a. follow) version 1.2 NOTE: /bin/sh will be used to process the command, not SHELL (/usr/local/bin/bash) |
#display /bin/ps aux
usage: display [-<delay>] <command> <delay> = # of seconds between displays, default=5 <command> = command to display, quoted if it contains blanks Display (a.k.a. follow) version 1.2 NOTE: /bin/sh will be used to process the command, not SHELL (/usr/local/bin/bash) |
#display /bin/ps -aux
usage: display [-<delay>] <command> <delay> = # of seconds between displays, default=5 <command> = command to display, quoted if it contains blanks Display (a.k.a. follow) version 1.2 NOTE: /bin/sh will be used to process the command, not SHELL (/usr/local/bin/bash) |
#display /bin/ps -aux
usage: display [-<delay>] <command> <delay> = # of seconds between displays, default=5 <command> = command to display, quoted if it contains blanks Display (a.k.a. follow) version 1.2 NOTE: /bin/sh will be used to process the command, not SHELL (/usr/local/bin/bash) |
#display /bin/ipfw
CENTERICQ 4.20.0 UNSENT: 0 icq:_ o #[i] kelley llo #[o] MisterJ #[a] sky Online [o] Lonely Wolf [o] mar4ello [o] Wishmaster [o] Illusion ... milaya Wolf Ann Konstantin F Stealthtin F Wizardh Gleb + [icq] ÓÏÅÄÉÎÅÎÉÅ Ó ÓÅÒ×ÅÒÏÍ Lyosika + [icq] ×ÈÏÄ × ÓÉÓÔÅÍÕ ÓÏÓÔÏÑÌÓÑ Galyok + ËÏÎÆÉÇÕÒÁÃÉÑ sounds ÉÚÍÅÎÅÎÁ, ÐÅÒÅÞÉÔÙ×ÁÅÍ F2/m ÔÅËÕÝÉÊ ËÏÎÔÁËÔ, F3/s ÓÍÅÎÉÔØ ÓÔÁÔÕÓ, F4/g ÇÌÁ×ÎÏÅ ÍÅÎÀ, q ×ÙÈÏÄ |
#display /bin/ipfw
/bin/ipfw: not found |
#display /bin/ps -aux
usage: display [-<delay>] <command> <delay> = # of seconds between displays, default=5 <command> = command to display, quoted if it contains blanks Display (a.k.a. follow) version 1.2 NOTE: /bin/sh will be used to process the command, not SHELL (/usr/local/bin/bash) |
Время первой команды журнала | 12:50:27 2006- 9-19 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Время последней команды журнала | 14:36:20 2006- 9-19 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в журнале | 101 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент команд с ненулевым кодом завершения, % | 42.57 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент синтаксически неверно набранных команд, % | 7.92 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Суммарное время работы с терминалом *, час | 1.07 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в единицу времени, команда/мин | 1.57 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду 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