/l3/users/eb/2009/linux3/user :1 :2 :3 :4 :5 :6 :7 :8 :9 :10 :11 :12 :13 :14 :15 |
|
$(echo USER user ; echo PASS password ) | nc 192.168.15.1 110
+OK Qpopper (version 4.0.9) at linux1.unix.nt starting. <14970.1243849412@linux1.unix.nt> +OK Password required for user. -ERR [IN-USE] /var/spool/pop/.user.pop lock busy! Is another session active? (11) +OK Pop server at linux1.unix.nt signing off. |
$(echo USER user ; echo PASS password ) | nc 192.168.15.1 110
+OK Qpopper (version 4.0.9) at linux1.unix.nt starting. <14971.1243849415@linux1.unix.nt> +OK Password required for user. -ERR [IN-USE] /var/spool/pop/.user.pop lock busy! Is another session active? (11) +OK Pop server at linux1.unix.nt signing off. |
$(echo USER user ; echo PASS password ) | nc 192.168.15.1 110
+OK Qpopper (version 4.0.9) at linux1.unix.nt starting. <14972.1243849440@linux1.unix.nt> +OK Password required for user. -ERR [IN-USE] /var/spool/pop/.user.pop lock busy! Is another session active? (11) +OK Pop server at linux1.unix.nt signing off. |
$(echo USER user ; echo PASS password ) | nc 192.168.15.1 110
+OK Qpopper (version 4.0.9) at linux1.unix.nt starting. <14973.1243849448@linux1.unix.nt> +OK Password required for user. -ERR [IN-USE] /var/spool/pop/.user.pop lock busy! Is another session active? (11) +OK Pop server at linux1.unix.nt signing off. |
$(echo USER user ; echo PASS password ) | nc 192.168.15.1 110
+OK Qpopper (version 4.0.9) at linux1.unix.nt starting. <14974.1243849450@linux1.unix.nt> +OK Password required for user. -ERR [IN-USE] /var/spool/pop/.user.pop lock busy! Is another session active? (11) +OK Pop server at linux1.unix.nt signing off. |
$(echo USER user ; echo PASS password ) | nc 192.168.15.1 110
+OK Qpopper (version 4.0.9) at linux1.unix.nt starting. <14975.1243849451@linux1.unix.nt> +OK Password required for user. -ERR [IN-USE] /var/spool/pop/.user.pop lock busy! Is another session active? (11) +OK Pop server at linux1.unix.nt signing off. |
$(echo USER user ; echo PASS password ) | nc 192.168.15.1 110
+OK Qpopper (version 4.0.9) at linux1.unix.nt starting. <14976.1243849451@linux1.unix.nt> +OK Password required for user. -ERR [IN-USE] /var/spool/pop/.user.pop lock busy! Is another session active? (11) +OK Pop server at linux1.unix.nt signing off. |
$(echo USER user ; echo PASS password ) | nc 192.168.15.1 110
+OK Qpopper (version 4.0.9) at linux1.unix.nt starting. <14977.1243849455@linux1.unix.nt> +OK Password required for user. -ERR [IN-USE] /var/spool/pop/.user.pop lock busy! Is another session active? (11) +OK Pop server at linux1.unix.nt signing off. |
$(echo USER user ; echo PASS password ) | nc 192.168.15.1 110
+OK Qpopper (version 4.0.9) at linux1.unix.nt starting. <14978.1243849456@linux1.unix.nt> +OK Password required for user. -ERR [IN-USE] /var/spool/pop/.user.pop lock busy! Is another session active? (11) +OK Pop server at linux1.unix.nt signing off. |
$(echo USER user ; echo PASS password ) | nc 192.168.15.1 110
+OK Qpopper (version 4.0.9) at linux1.unix.nt starting. <14979.1243849457@linux1.unix.nt> +OK Password required for user. -ERR [IN-USE] /var/spool/pop/.user.pop lock busy! Is another session active? (11) +OK Pop server at linux1.unix.nt signing off. |
$(echo USER user ; echo PASS password ) | nc 192.168.15.1 110
+OK Qpopper (version 4.0.9) at linux1.unix.nt starting. <14980.1243849458@linux1.unix.nt> +OK Password required for user. -ERR [IN-USE] /var/spool/pop/.user.pop lock busy! Is another session active? (11) +OK Pop server at linux1.unix.nt signing off. |
$ssh root@192.168.15.3
root@192.168.15.3's password: Linux linux4 2.6.29-2-686 #1 SMP Sun May 17 17:56:29 UTC 2009 i686 The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. Last login: Mon Jun 1 12:42:08 2009 from 10.0.35.100 Removing stale pidfile |
#vi /etc/init/tab
|
#~
# # The "id" field MUST be the same as the last # characters of the device (after "tty"). # # Format: # <id>:<runlevels>:<action>:<process> # # Note that on most Debian systems tty7 is used by the X Window System, # so if you want to add more getty's go ahead but skip tty7 if you run X. # 1:2345:respawn:/sbin/getty 38400 tty1 54,1 67% |
#apt-get install rcconf
Reading package lists... Done Building dependency tree Reading state information... Done The following packages were automatically installed and are no longer required: portmap Use 'apt-get autoremove' to remove them. The following NEW packages will be installed: rcconf 0 upgraded, 1 newly installed, 0 to remove and 20 not upgraded. Need to get 23.1kB of archives. After this operation, 135kB of additional disk space will be used. Get:1 http://127.0.0.1 sid/main rcconf 2.2 [23.1kB] Fetched 23.1kB in 0s (86.0kB/s) Selecting previously deselected package rcconf. (Reading database ... 55562 files and directories currently installed.) Unpacking rcconf (from .../archives/rcconf_2.2_all.deb) ... Processing triggers for man-db ... Setting up rcconf (2.2) ... |
#reboot; exit
Broadcast message from root@linux4 (pts/1) (Mon Jun 1 14:09:31 2009): The system is going down for reboot NOW! exit Connection to 192.168.15.3 closed. |
$sudo vi /etc/init
|
$sudo vi /etc/inittab
|
$startx
xauth: creating new authority file /home/user/.Xauthority xauth: creating new authority file /home/user/.Xauthority X: user not authorized to run the X server, aborting. giving up. xinit: No such file or directory (errno 2): unable to connect to X server xinit: No such process (errno 3): Server error. |
$xs
xscreensaver xset xscreensaver-command xsetmode xscreensaver-demo xsetpointer xscreensaver-getimage xsetroot xscreensaver-getimage-file xsm xscreensaver-getimage-video xstdcmap xscreensaver-text xsubpp |
$x
Display all 122 possibilities? (y or n) x11perf xinit x11perfcomp xinput xargs xkbbell xaumix xkbcomp xauth xkbevd xbiff xkbprint xcalc xkbvleds xclipboard xkbwatch xclock xkeystone ... xdg-user-dirs-update xlsatoms xditview xlsclients xdpyinfo xlsfonts xdriinfo xmag xev xman xeyes xmessage xfbrowser4 xmodmap xfce4-about xmore xfce4-accessibility-settings xprop xfce4-appearance-settings xrandr |
$sudo vi /etc/inittab
|
#reboot; exit
Broadcast message from root@linux4 (pts/1) (Mon Jun 1 14:19:18 2009): The system is going down for reboot NOW! exit Connection to 192.168.15.3 closed. |
$ls /
bin dev home lost+found opt sbin sys var boot etc initrd.img media proc selinux tmp vmlinuz data flash lib mnt root srv usr |
$ld /mnt
ld: /mnt: No such file: File format not recognized |
$ls /mnt
11.txt lost+found |
$cat /proc/mdstat
Personalities : [raid1] md0 : active raid1 sda2[0] sdb2[1] 29294400 blocks [2/2] [UU] unused devices: <none> |
$ssh -l root 10.0.35.100
root@10.0.35.100's password: Linux linux0 2.6.18-6-xen-686 #1 SMP Sun Feb 10 22:43:13 UTC 2008 i686 The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. Last login: Mon Jun 1 14:53:00 2009 from linux12.unix.nt l3-agent is already running: pid=1851; pidfile=/root/.lilalo/l3-agent.pid |
$ls -al
total 180 drwxr-xr-x 25 user user 4096 2009-06-01 14:51 . drwxr-xr-x 4 root root 4096 2009-05-30 14:07 .. -rw-r--r-- 1 user user 82 2009-05-30 10:14 11.txt drwxr-xr-x 2 user user 4096 2009-05-26 15:38 a -rw------- 1 user user 4409 2009-06-01 14:32 .bash_history -rw-r--r-- 1 user user 220 2009-03-01 11:31 .bash_logout -rw-r--r-- 1 user root 22 2009-05-26 10:40 .bash_profile -rw-r--r-- 1 user user 3159 2009-05-26 10:39 .bashrc drwx------ 5 user user 4096 2009-05-25 10:16 .cache ... -rw-r--r-- 1 user user 675 2009-03-01 11:31 .profile drwxr-xr-x 2 user user 4096 2009-05-25 09:36 Public -rw-r--r-- 1 root root 3984 2009-05-25 17:25 .screenrc drwx------ 2 user user 4096 2009-05-25 11:17 .ssh drwxr-xr-x 2 user user 4096 2009-05-25 09:36 Templates drwxr-xr-x 2 user user 4096 2009-05-25 09:36 Videos -rw------- 1 user user 3396 2009-06-01 14:18 .viminfo -rw-r--r-- 1 user user 52 2009-05-25 16:44 .vimrc -rw------- 1 user user 117 2009-06-01 14:51 .Xauthority -rw-r--r-- 1 user user 271 2009-06-01 14:56 .xsession-errors |
$su - root
Password: l3-agent is already running: pid=3078; pidfile=/root/.lilalo/l3-agent.pid |
#fdisk -l /dev/sda
Disk /dev/sda: 320.0 GB, 320072933376 bytes 255 heads, 63 sectors/track, 38913 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Disk identifier: 0x12c36e6e Device Boot Start End Blocks Id System /dev/sda1 1 3648 29302528+ 83 Linux |
$ssh -l swd crimea-board.info
The authenticity of host 'crimea-board.info (193.238.109.9)' can't be established. RSA key fingerprint is 07:a8:90:07:cd:88:49:21:1d:3d:3b:10:a7:b9:3f:66. Are you sure you want to continue connecting (yes/no)? yes Warning: Permanently added 'crimea-board.info,193.238.109.9' (RSA) to the list of known hosts. Password: Linux crimea-board.info 2.6.27 #1 SMP Fri Oct 10 12:30:02 EEST 2008 i686 The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent ... -rw-r--r-- 1 swd 1019 731539456 Май 15 16:09 Lost.s05e16e17.rus.LostFilm.TV.avi lrwxrwxrwx 1 swd 1019 24 Май 14 19:26 Louis_Armstrong_Gold -> Louis Armstrong Gold 2CD drwxr-xr-x 5 swd 1019 168 Май 14 19:26 Louis Armstrong Gold 2CD drwxr-xr-x 2 swd 1019 408 Май 5 10:20 Midsomer_Murders_S01_DVDRip drwxr-xr-x 2 swd 1019 336 Май 20 16:15 Midsomer_Murders_S02_DVDRip drwxr-xr-x 47 swd 1019 1128 Апр 16 22:30 Poirot collection drwxr-xr-x 7 swd 1019 168 Янв 5 16:06 The_Pink_Panther lrwxrwxrwx 1 swd 1019 80 Июн 1 15:45 Жизнь после людей_2008_DVDRip.avi -> /var/www/flux/downloads/iverton/Жизнь после людей_2008_DVDRip.avi drwxr-xr-x 5 swd 1019 224 Апр 29 18:48 Рада и Терновник 008_DVDRip.avi --target Life_after_humans.crimea-x.torrent |
#fdisk -l /dev/sdb
Disk /dev/sdb: 320.0 GB, 320072933376 bytes 255 heads, 63 sectors/track, 38913 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Disk identifier: 0xce5cf3c1 Device Boot Start End Blocks Id System /dev/sdb1 1 38913 312568672 83 Linux |
$ssh -l root 10.0.35.100
root@10.0.35.100's password: Linux linux0 2.6.18-6-xen-686 #1 SMP Sun Feb 10 22:43:13 UTC 2008 i686 The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. Last login: Mon Jun 1 15:18:30 2009 from linux11.unix.nt l3-agent is already running: pid=1765; pidfile=/root/.lilalo/l3-agent.pid |
#cat /proc/sys/net/ipv4/ip_
ip_default_ttl ip_forward ip_nonlocal_bind ip_dynaddr ip_local_port_range ip_no_pmtu_disc |
#cat /proc/sys/net/ipv4/ip_forward
0 |
#screen -x
|
#apt-cache search hping3
hping3 - Active Network Smashing Tool |
$sudo ping crimea-board.info
[sudo] password for user: Sorry, try again. [sudo] password for user: PING crimea-board.info (193.238.109.9) 56(84) bytes of data. 64 bytes from crimea-board.info (193.238.109.9): icmp_seq=1 ttl=54 time=27.0 ms 64 bytes from crimea-board.info (193.238.109.9): icmp_seq=2 ttl=54 time=59.6 ms 64 bytes from crimea-board.info (193.238.109.9): icmp_seq=3 ttl=54 time=25.3 ms 64 bytes from crimea-board.info (193.238.109.9): icmp_seq=4 ttl=54 time=38.1 ms ^C --- crimea-board.info ping statistics --- 4 packets transmitted, 4 received, 0% packet loss, time 3002ms rtt min/avg/max/mdev = 25.383/37.579/59.667/13.666 ms |
#screen -дx
|
#whatis hping3
hping3 (8) - send (almost) arbitrary TCP/IP packets to network hosts |
#hping3 --help
usage: hping3 host [options] -h --help show this help -v --version show version -c --count packet count -i --interval wait (uX for X microseconds, for example -i u1000) --fast alias for -i u10000 (10 packets for second) --faster alias for -i u1000 (100 packets for second) --flood sent packets as fast as possible. Don't show replies. -n --numeric numeric output -q --quiet quiet ... -j --dump dump packets in hex -J --print dump printable characters -B --safe enable 'safe' protocol -u --end tell you when --file reached EOF and prevent rewind -T --traceroute traceroute mode (implies --bind and --ttl 1) --tr-stop Exit when receive the first not ICMP in traceroute mode --tr-keep-ttl Keep the source TTL fixed, useful to monitor just one hop --tr-no-rtt Don't calculate/show RTT information in traceroute mode ARS packet description (new, unstable) --apd-send Send the packet described with APD (see docs/APD.txt) |
#hping3 crimea-board.info
HPING crimea-board.info (eth0 193.238.109.9): NO FLAGS are set, 40 headers + 0 data bytes ^C --- crimea-board.info hping statistic --- 184 packets transmitted, 0 packets received, 100% packet loss round-trip min/avg/max = 0.0/0.0/0.0 ms |
#apt-get install vlan
Reading package lists... Done Building dependency tree Reading state information... Done The following packages were automatically installed and are no longer required: portmap Use 'apt-get autoremove' to remove them. The following NEW packages will be installed: vlan 0 upgraded, 1 newly installed, 0 to remove and 20 not upgraded. Need to get 39.6kB of archives. After this operation, 176kB of additional disk space will be used. Get:1 http://127.0.0.1 sid/main vlan 1.9-3 [39.6kB] Fetched 39.6kB in 0s (567kB/s) Selecting previously deselected package vlan. (Reading database ... 55397 files and directories currently installed.) Unpacking vlan (from .../archives/vlan_1.9-3_i386.deb) ... Processing triggers for man-db ... Setting up vlan (1.9-3) ... |
$sudo hping3 -1 -V crimea-board.info
using eth0, addr: 192.168.15.3, MTU: 1500 HPING crimea-board.info (eth0 193.238.109.9): icmp mode set, 28 headers + 0 data bytes len=46 ip=193.238.109.9 ttl=54 id=34323 tos=0 iplen=28 icmp_seq=0 rtt=23.4 ms len=46 ip=193.238.109.9 ttl=54 id=34324 tos=0 iplen=28 icmp_seq=1 rtt=24.1 ms len=46 ip=193.238.109.9 ttl=54 id=34325 tos=0 iplen=28 icmp_seq=2 rtt=24.7 ms len=46 ip=193.238.109.9 ttl=54 id=34326 tos=0 iplen=28 icmp_seq=3 rtt=24.5 ms ... len=46 ip=193.238.109.9 ttl=54 id=34334 tos=0 iplen=28 icmp_seq=11 rtt=25.9 ms len=46 ip=193.238.109.9 ttl=54 id=34335 tos=0 iplen=28 icmp_seq=12 rtt=27.6 ms len=46 ip=193.238.109.9 ttl=54 id=34336 tos=0 iplen=28 icmp_seq=13 rtt=26.2 ms ^C --- crimea-board.info hping statistic --- 14 packets transmitted, 14 packets received, 0% packet loss round-trip min/avg/max = 23.4/25.6/27.7 ms |
$sudo hping3 -1 -V -m 1600 crimea-board.info
using eth0, addr: 192.168.15.3, MTU: 1500 HPING crimea-board.info (eth0 193.238.109.9): icmp mode set, 28 headers + 0 data bytes len=46 ip=193.238.109.9 ttl=54 id=34337 tos=0 iplen=28 icmp_seq=0 rtt=28.4 ms len=46 ip=193.238.109.9 ttl=54 id=34338 tos=0 iplen=28 icmp_seq=1 rtt=26.1 ms len=46 ip=193.238.109.9 ttl=54 id=34339 tos=0 iplen=28 icmp_seq=2 rtt=24.6 ms len=46 ip=193.238.109.9 ttl=54 id=34340 tos=0 iplen=28 icmp_seq=3 rtt=26.1 ms len=46 ip=193.238.109.9 ttl=54 id=34341 tos=0 iplen=28 icmp_seq=4 rtt=26.2 ms ^C --- crimea-board.info hping statistic --- 5 packets transmitted, 5 packets received, 0% packet loss round-trip min/avg/max = 24.6/26.3/28.4 ms |
$sudo hping3 -T crimea-board.info
HPING crimea-board.info (eth0 193.238.109.9): NO FLAGS are set, 40 headers + 0 data bytes hop=1 TTL 0 during transit from ip=192.168.15.254 name=UNKNOWN hop=1 hoprtt=0.8 ms hop=2 TTL 0 during transit from ip=10.0.35.1 name=UNKNOWN hop=2 hoprtt=0.2 ms ^C --- crimea-board.info hping statistic --- 38 packets transmitted, 2 packets received, 95% packet loss round-trip min/avg/max = 0.2/0.5/0.8 ms |
#vconfig
Expecting argc to be 3-5, inclusive. Was: 1 Usage: add [interface-name] [vlan_id] rem [vlan-name] set_flag [interface-name] [flag-num] [0 | 1] set_egress_map [vlan-name] [skb_priority] [vlan_qos] set_ingress_map [vlan-name] [skb_priority] [vlan_qos] set_name_type [name-type] * The [interface-name] is the name of the ethernet card that hosts the VLAN you are talking about. * The vlan_id is the identifier (0-4095) of the VLAN you are operating on. * skb_priority is the priority in the socket buffer (sk_buff). * vlan_qos is the 3 bit priority in the VLAN header * name-type: VLAN_PLUS_VID (vlan0005), VLAN_PLUS_VID_NO_PAD (vlan5), DEV_PLUS_VID (eth0.0005), DEV_PLUS_VID_NO_PAD (eth0.5) * FLAGS: 1 REORDER_HDR When this is set, the VLAN device will move the ethernet header around to make it look exactly like a real ethernet device. This may help programs such as DHCPd which read the raw ethernet packet and make assumptions about the location of bytes. If you don't need it, don't turn it on, because there will be at least a small performance degradation. Default is OFF. |
$ping 192.168.101.1
PING 192.168.101.1 (192.168.101.1) 56(84) bytes of data. From 192.168.101.10 icmp_seq=1 Destination Host Unreachable From 192.168.101.10 icmp_seq=2 Destination Host Unreachable From 192.168.101.10 icmp_seq=3 Destination Host Unreachable ^C --- 192.168.101.1 ping statistics --- 5 packets transmitted, 0 received, +3 errors, 100% packet loss, time 4024ms , pipe 3 |
#vconfig eth0 102
WARNING: Could not open /proc/net/vlan/config. Maybe you need to load the 8021q module, or maybe you are not using PROCFS?? Unknown command -:eth0:- Usage: add [interface-name] [vlan_id] rem [vlan-name] set_flag [interface-name] [flag-num] [0 | 1] set_egress_map [vlan-name] [skb_priority] [vlan_qos] set_ingress_map [vlan-name] [skb_priority] [vlan_qos] set_name_type [name-type] * The [interface-name] is the name of the ethernet card that hosts the VLAN you are talking about. ... * vlan_qos is the 3 bit priority in the VLAN header * name-type: VLAN_PLUS_VID (vlan0005), VLAN_PLUS_VID_NO_PAD (vlan5), DEV_PLUS_VID (eth0.0005), DEV_PLUS_VID_NO_PAD (eth0.5) * FLAGS: 1 REORDER_HDR When this is set, the VLAN device will move the ethernet header around to make it look exactly like a real ethernet device. This may help programs such as DHCPd which read the raw ethernet packet and make assumptions about the location of bytes. If you don't need it, don't turn it on, because there will be at least a small performance degradation. Default is OFF. |
#vconfig add eth0 102
WARNING: Could not open /proc/net/vlan/config. Maybe you need to load the 8021q module, or maybe you are not using PROCFS?? Added VLAN with VID == 102 to IF -:eth0:- |
#ifconfig -a
eth0 Link encap:Ethernet HWaddr 00:07:e9:3c:2c:ba inet addr:192.168.15.3 Bcast:192.168.15.255 Mask:255.255.255.0 inet6 addr: fe80::207:e9ff:fe3c:2cba/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:11659 errors:0 dropped:0 overruns:0 frame:0 TX packets:11128 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:7507516 (7.1 MiB) TX bytes:1440680 (1.3 MiB) eth0.102 Link encap:Ethernet HWaddr 00:07:e9:3c:2c:ba BROADCAST MULTICAST MTU:1500 Metric:1 ... collisions:0 txqueuelen:0 RX bytes:0 (0.0 B) TX bytes:0 (0.0 B) lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:253 errors:0 dropped:0 overruns:0 frame:0 TX packets:253 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:1329491 (1.2 MiB) TX bytes:1329491 (1.2 MiB) |
#ifconfig eth0.102 192.168.102.1 netmask 255.255.255.0
|
#ip route
192.168.102.0/24 dev eth0.102 proto kernel scope link src 192.168.102.1 192.168.15.0/24 dev eth0 proto kernel scope link src 192.168.15.3 default via 192.168.15.254 dev eth0 |
$ping 192.168.101.2
PING 192.168.101.2 (192.168.101.2) 56(84) bytes of data. ^C --- 192.168.101.2 ping statistics --- 2 packets transmitted, 0 received, 100% packet loss, time 1008ms |
$ping 10.0.35.100
PING 10.0.35.100 (10.0.35.100) 56(84) bytes of data. 64 bytes from 10.0.35.100: icmp_seq=1 ttl=62 time=0.243 ms 64 bytes from 10.0.35.100: icmp_seq=2 ttl=62 time=0.243 ms ^C --- 10.0.35.100 ping statistics --- 2 packets transmitted, 2 received, 0% packet loss, time 999ms rtt min/avg/max/mdev = 0.243/0.243/0.243/0.000 ms |
$ssh -l root 10.0.35.100
ssh: connect to host 10.0.35.100 port 22: Connection refused |
$ssh -l root 10.0.35.100
ssh: connect to host 10.0.35.100 port 22: Connection refused |
$ssh -l root 10.0.35.100
root@10.0.35.100's password: Linux linux0 2.6.18-6-xen-686 #1 SMP Sun Feb 10 22:43:13 UTC 2008 i686 The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. Last login: Mon Jun 1 17:29:19 2009 from linux15.unix.nt l3-agent is already running: pid=1765; pidfile=/root/.lilalo/l3-agent.pid |
$ping 192.168.103.2
PING 192.168.103.2 (192.168.103.2) 56(84) bytes of data. 64 bytes from 192.168.103.2: icmp_seq=1 ttl=64 time=3.54 ms 64 bytes from 192.168.103.2: icmp_seq=2 ttl=64 time=0.127 ms 64 bytes from 192.168.103.2: icmp_seq=3 ttl=64 time=0.105 ms 64 bytes from 192.168.103.2: icmp_seq=4 ttl=64 time=0.155 ms ^C --- 192.168.103.2 ping statistics --- 4 packets transmitted, 4 received, 0% packet loss, time 2999ms rtt min/avg/max/mdev = 0.105/0.983/3.546/1.479 ms |
#шз кip route
192.168.101.0/24 dev eth0.101 proto kernel scope link src 192.168.101.10 192.168.102.0/24 dev eth0.102 proto kernel scope link src 192.168.102.1 192.168.103.0/24 dev eth0.103 proto kernel scope link src 192.168.103.10 192.168.15.0/24 dev eth0 proto kernel scope link src 192.168.15.3 default via 192.168.15.254 dev eth0 |
#exit
exit |
#exit
exit Connection to 10.0.35.100 closed. |
$ssh -l root 10.0.35.100
root@10.0.35.100's password: Linux linux0 2.6.18-6-xen-686 #1 SMP Sun Feb 10 22:43:13 UTC 2008 i686 The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. Last login: Tue Jun 2 09:48:52 2009 from linux9.unix.nt l3-agent is already running: pid=1765; pidfile=/root/.lilalo/l3-agent.pid |
$su - root
Password: l3-agent is already running: pid=3441; pidfile=/root/.lilalo/l3-agent.pid |
#ifconfig -a
eth0 Link encap:Ethernet HWaddr 00:07:e9:3c:2c:ba inet addr:192.168.15.3 Bcast:192.168.15.255 Mask:255.255.255.0 inet6 addr: fe80::207:e9ff:fe3c:2cba/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:201 errors:0 dropped:0 overruns:0 frame:0 TX packets:203 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:24716 (24.1 KiB) TX bytes:18181 (17.7 KiB) lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:0 (0.0 B) TX bytes:0 (0.0 B) |
#vlock
vlock vlock-main |
#modprobe /lib/
firmware/ i686/ lsb/ oss-compat/ terminfo/ xtables/ i486-linux-gnu/ init/ modules/ security/ udev/ |
#modprobe /lib/modules/2.6.29-2-686/
build/ kernel/ source/ |
#modprobe /lib/modules/2.6.29-2-686/kernel/net/
802/ atm/ can/ econet/ irda/ mac80211/ rfkill/ sctp/ wimax/ 8021q/ ax25/ core/ ipv4/ key/ netfilter/ rose/ sunrpc/ wireless/ 9p/ bluetooth/ dccp/ ipv6/ lapb/ netrom/ rxrpc/ tipc/ x25/ appletalk/ bridge/ decnet/ ipx/ llc/ phonet/ sched/ wanrouter/ xfrm/ |
#modprobe /lib/modules/2.6.29-2-686/kernel/net/8021q/8021q.ko
FATAL: Module /lib/modules/2.6.29_2_686/kernel/net/8021q/8021q.ko not found. |
#/etc/init.d/
anacron ifupdown-clean rc aoetools keyboard-setup rc.local atd keymap.sh rcS aumix killprocs reboot bootlogd lpd rmnologin bootmisc.sh lvm2 rsync checkfs.sh mdadm rsyslog checkroot.sh mdadm-raid screen-cleanup console-cyrillic module-init-tools sendsigs console-screen.kbd.sh monit single ... dbus mountdevsubfs.sh stop-bootlogd-single exim4 mountkernfs.sh sudo gdm mountnfs-bootclean.sh syslog-ng glibc.sh mountnfs.sh udev hal mountoverflowtmp udev-mtab halt mtab.sh umountfs hostname.sh networking umountnfs.sh hwclockfirst.sh openbsd-inetd umountroot hwclock.sh portmap urandom ifupdown procps x11-common |
#exit
exit |
#modprobe /lib/modules/2.6.29-2-686/kernel/net/8021q
FATAL: Module /lib/modules/2.6.29_2_686/kernel/net/8021q not found. |
#modprobe 8021q
|
#lsmod | grep 802
8021q 17716 0 garp 7040 1 8021q |
#vi /etc/network/interfaces
|
#exit
exit |
$ssh -l root 10.0.35.100
root@10.0.35.100's password: Linux linux0 2.6.18-6-xen-686 #1 SMP Sun Feb 10 22:43:13 UTC 2008 i686 The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. Last login: Tue Jun 2 10:16:50 2009 from 192.168.102.2 l3-agent is already running: pid=1765; pidfile=/root/.lilalo/l3-agent.pid |
$ping 192.168.15.254
PING 192.168.15.254 (192.168.15.254) 56(84) bytes of data. 64 bytes from 192.168.15.254: icmp_seq=1 ttl=64 time=0.674 ms 64 bytes from 192.168.15.254: icmp_seq=2 ttl=64 time=0.628 ms 64 bytes from 192.168.15.254: icmp_seq=3 ttl=64 time=0.643 ms 64 bytes from 192.168.15.254: icmp_seq=4 ttl=64 time=0.648 ms ^C --- 192.168.15.254 ping statistics --- 4 packets transmitted, 4 received, 0% packet loss, time 2997ms rtt min/avg/max/mdev = 0.628/0.648/0.674/0.024 ms |
#ifconfig -a
eth0 Link encap:Ethernet HWaddr 00:07:e9:3c:2c:ba inet addr:192.168.15.3 Bcast:192.168.15.255 Mask:255.255.255.0 inet6 addr: fe80::207:e9ff:fe3c:2cba/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:209 errors:0 dropped:0 overruns:0 frame:0 TX packets:205 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:22557 (22.0 KiB) TX bytes:17826 (17.4 KiB) eth0.102 Link encap:Ethernet HWaddr 00:07:e9:3c:2c:ba inet addr:192.168.102.1 Bcast:192.168.102.255 Mask:255.255.255.0 ... collisions:0 txqueuelen:0 RX bytes:782 (782.0 B) TX bytes:468 (468.0 B) lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:0 (0.0 B) TX bytes:0 (0.0 B) |
#mii-tool eth0
eth0: negotiated 1000baseT-FD flow-control, link ok |
$ping 192.168.102.2
PING 192.168.102.2 (192.168.102.2) 56(84) bytes of data. 64 bytes from 192.168.102.2: icmp_seq=1 ttl=64 time=0.129 ms 64 bytes from 192.168.102.2: icmp_seq=2 ttl=64 time=0.104 ms 64 bytes from 192.168.102.2: icmp_seq=3 ttl=64 time=0.119 ms 64 bytes from 192.168.102.2: icmp_seq=4 ttl=64 time=0.117 ms 64 bytes from 192.168.102.2: icmp_seq=5 ttl=64 time=0.136 ms 64 bytes from 192.168.102.2: icmp_seq=6 ttl=64 time=0.131 ms 64 bytes from 192.168.102.2: icmp_seq=7 ttl=64 time=0.131 ms 64 bytes from 192.168.102.2: icmp_seq=8 ttl=64 time=0.109 ms ^C --- 192.168.102.2 ping statistics --- 8 packets transmitted, 8 received, 0% packet loss, time 6998ms rtt min/avg/max/mdev = 0.104/0.122/0.136/0.010 ms |
#mii-tool --help
usage: mii-tool [-VvRrwl] [-A media,... | -F media] [interface ...] -V, --version display version information -v, --verbose more verbose output -R, --reset reset MII to poweron state -r, --restart restart autonegotiation -w, --watch monitor for link status changes -l, --log with -w, write events to syslog -A, --advertise=media,... advertise only specified media -F, --force=media force specified media technology media: 1000baseTx-HD, 1000baseTx-FD, 100baseT4, 100baseTx-FD, 100baseTx-HD, 10baseT-FD, 10baseT-HD, (to advertise both HD and FD) 1000baseTx, 100baseTx, 10baseT |
#mii-tool -A 100baseTx-FD
restarting autonegotiation... |
#mii-tool eth0
eth0: negotiated 1000baseT-FD flow-control, link ok |
#mii-tool -F 100baseTx-FD
|
#mii-tool eth0
eth0: 100 Mbit, full duplex, no link |
Personalities : [raid1] md0 : active raid1 sda2[0] sdb2[1] 29294400 blocks [2/2] [UU] unused devices: <none>
ip_default_ttl ip_forward ip_nonlocal_bind ip_dynaddr ip_local_port_range ip_no_pmtu_disc
0
Время первой команды журнала | 12:43:25 2009- 6- 1 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Время последней команды журнала | 10:21:37 2009- 6- 2 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в журнале | 101 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент команд с ненулевым кодом завершения, % | 16.83 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент синтаксически неверно набранных команд, % | 0.00 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Суммарное время работы с терминалом *, час | 4.43 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в единицу времени, команда/мин | 0.38 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду 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