/l3/users/ikravchuk/xg-ids/linux2.unix.nt/root :1 :2 :3 :4 :5 :6 :7 :8 :9 :10 :11 :12 |
|
#ping 192.168.15.201
![]() connect: Network is unreachable |
#ping 192.168.15.201
![]() connect: Network is unreachable |
#ifconfog
![]() bash: ifconfog: command not found |
#ifconfig
eth0 Link encap:Ethernet HWaddr 00:04:75:75:46:B1 inet6 addr: fe80::204:75ff:fe75:46b1/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:184842 errors:0 dropped:0 overruns:500 frame:0 TX packets:161932 errors:16 dropped:0 overruns:0 carrier:5 collisions:0 txqueuelen:1000 RX bytes:63494287 (60.5 MiB) TX bytes:16013208 (15.2 MiB) Interrupt:169 Base address:0x2c00 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:34746 errors:0 dropped:0 overruns:0 frame:0 TX packets:34746 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:5157510 (4.9 MiB) TX bytes:5157510 (4.9 MiB) |
#ifconfig
eth0 Link encap:Ethernet HWaddr 00:04:75:75:46:B1 inet6 addr: fe80::204:75ff:fe75:46b1/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:184842 errors:0 dropped:0 overruns:503 frame:0 TX packets:161932 errors:16 dropped:0 overruns:0 carrier:5 collisions:0 txqueuelen:1000 RX bytes:63494287 (60.5 MiB) TX bytes:16013208 (15.2 MiB) Interrupt:169 Base address:0x2c00 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:34746 errors:0 dropped:0 overruns:0 frame:0 TX packets:34746 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:5157510 (4.9 MiB) TX bytes:5157510 (4.9 MiB) |
#ifconfig
eth0 Link encap:Ethernet HWaddr 00:04:75:75:46:B1 inet6 addr: fe80::204:75ff:fe75:46b1/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:184842 errors:0 dropped:0 overruns:504 frame:0 TX packets:161932 errors:16 dropped:0 overruns:0 carrier:5 collisions:0 txqueuelen:1000 RX bytes:63494287 (60.5 MiB) TX bytes:16013208 (15.2 MiB) Interrupt:169 Base address:0x2c00 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:34746 errors:0 dropped:0 overruns:0 frame:0 TX packets:34746 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:5157510 (4.9 MiB) TX bytes:5157510 (4.9 MiB) |
#ifconfig
eth0 Link encap:Ethernet HWaddr 00:04:75:75:46:B1 inet6 addr: fe80::204:75ff:fe75:46b1/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:184842 errors:0 dropped:0 overruns:505 frame:0 TX packets:161932 errors:16 dropped:0 overruns:0 carrier:5 collisions:0 txqueuelen:1000 RX bytes:63494287 (60.5 MiB) TX bytes:16013208 (15.2 MiB) Interrupt:169 Base address:0x2c00 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:34746 errors:0 dropped:0 overruns:0 frame:0 TX packets:34746 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:5157510 (4.9 MiB) TX bytes:5157510 (4.9 MiB) |
#ifconfig
eth0 Link encap:Ethernet HWaddr 00:04:75:75:46:B1 inet6 addr: fe80::204:75ff:fe75:46b1/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:184842 errors:0 dropped:0 overruns:506 frame:0 TX packets:161932 errors:16 dropped:0 overruns:0 carrier:5 collisions:0 txqueuelen:1000 RX bytes:63494287 (60.5 MiB) TX bytes:16013208 (15.2 MiB) Interrupt:169 Base address:0x2c00 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:34746 errors:0 dropped:0 overruns:0 frame:0 TX packets:34746 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:5157510 (4.9 MiB) TX bytes:5157510 (4.9 MiB) |
#ifdown eth0
There is already a pid file /var/run/dhclient.eth0.pid with pid 8320 killed old client process, removed PID file Internet Systems Consortium DHCP Client V3.0.4 Copyright 2004-2006 Internet Systems Consortium. All rights reserved. For info, please visit http://www.isc.org/sw/dhcp/ Listening on LPF/eth0/00:04:75:75:46:b1 Sending on LPF/eth0/00:04:75:75:46:b1 Sending on Socket/fallback DHCPRELEASE on eth0 to 192.168.15.254 port 67 send_packet: Network is unreachable send_packet: please consult README file regarding broadcast address. |
#ifup eth0
Internet Systems Consortium DHCP Client V3.0.4 Copyright 2004-2006 Internet Systems Consortium. All rights reserved. For info, please visit http://www.isc.org/sw/dhcp/ Listening on LPF/eth0/00:04:75:75:46:b1 Sending on LPF/eth0/00:04:75:75:46:b1 Sending on Socket/fallback DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 7 DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 7 DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 20 DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 18 DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 9 No DHCPOFFERS received. No working leases in persistent database - sleeping. |
#mii-tool
Internet Systems Consortium DHCP Client V3.0.4 Copyright 2004-2006 Internet Systems Consortium. All rights reserved. For info, please visit http://www.isc.org/sw/dhcp/ Listening on LPF/eth0/00:04:75:75:46:b1 Sending on LPF/eth0/00:04:75:75:46:b1 Sending on Socket/fallback DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 7 DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 7 DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 20 DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 18 DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 9 eth0: negotiated 100baseTx-FD flow-control, link ok |
#mii-tool
eth0: negotiated 100baseTx-FD flow-control, link ok |
#mii-tool
eth0: negotiated 100baseTx-FD flow-control, link ok |
#ifdown eth0
There is already a pid file /var/run/dhclient.eth0.pid with pid 14185 killed old client process, removed PID file Internet Systems Consortium DHCP Client V3.0.4 Copyright 2004-2006 Internet Systems Consortium. All rights reserved. For info, please visit http://www.isc.org/sw/dhcp/ Listening on LPF/eth0/00:04:75:75:46:b1 Sending on LPF/eth0/00:04:75:75:46:b1 Sending on Socket/fallback DHCPRELEASE on eth0 to 192.168.15.254 port 67 send_packet: Network is unreachable send_packet: please consult README file regarding broadcast address. |
#ifup eth0
Internet Systems Consortium DHCP Client V3.0.4 Copyright 2004-2006 Internet Systems Consortium. All rights reserved. For info, please visit http://www.isc.org/sw/dhcp/ Listening on LPF/eth0/00:04:75:75:46:b1 Sending on LPF/eth0/00:04:75:75:46:b1 Sending on Socket/fallback DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 4 DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 5 DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 7 DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 14 DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 12 DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 14 DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 5 No DHCPOFFERS received. No working leases in persistent database - sleeping. |
#fa
![]() factor faillog false farpd |
#farpd -h
![]() Usage: arpd [-d] [-i interface] [net] |
#ps -ef | grep farpd
root 12764 1 0 11:44 ? 00:00:00 farpd -i eth0 192.168.15.101 root 14271 3756 0 12:33 pts/2 00:00:00 grep farpd |
#ifup eth0
ifup: interface eth0 already configured |
#ps -ef | grep farpd
root 12764 1 0 11:44 ? 00:00:00 farpd -i eth0 192.168.15.101 root 14297 3756 0 12:34 pts/2 00:00:00 grep farpd |
#kill -9 12764
|
#ps -ef | grep farpd
root 14313 3756 0 12:34 pts/2 00:00:00 grep farpd |
#farpd -i eth0 192.168.15.101
![]() farpd: bad interface configuration: not IP or Ethernet |
#ps -ef | grep farpd
root 14332 3756 0 12:35 pts/2 00:00:00 grep farpd |
#ifup eth0
ifup: interface eth0 already configured |
#ifdown eth0
There is already a pid file /var/run/dhclient.eth0.pid with pid 14240 killed old client process, removed PID file Internet Systems Consortium DHCP Client V3.0.4 Copyright 2004-2006 Internet Systems Consortium. All rights reserved. For info, please visit http://www.isc.org/sw/dhcp/ Listening on LPF/eth0/00:04:75:75:46:b1 Sending on LPF/eth0/00:04:75:75:46:b1 Sending on Socket/fallback DHCPRELEASE on eth0 to 192.168.15.254 port 67 send_packet: Network is unreachable send_packet: please consult README file regarding broadcast address. |
#ps -ef | grep honeyd
nobody 13190 1 0 12:07 ? 00:00:00 honeyd root 14366 3756 0 12:35 pts/2 00:00:00 grep honeyd |
#kill -15 13190
|
#ps -ef | grep honeyd
root 14386 3756 0 12:35 pts/2 00:00:00 grep honeyd |
#ifdown eth0
ifdown: interface eth0 not configured |
#ifup eth0
Internet Systems Consortium DHCP Client V3.0.4 Copyright 2004-2006 Internet Systems Consortium. All rights reserved. For info, please visit http://www.isc.org/sw/dhcp/ Listening on LPF/eth0/00:04:75:75:46:b1 Sending on LPF/eth0/00:04:75:75:46:b1 Sending on Socket/fallback DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 4 DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 8 DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 11 DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 13 DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 16 DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 9 No DHCPOFFERS received. No working leases in persistent database - sleeping. |
#ps -ef | grep honeyd
root 14423 3756 0 12:37 pts/2 00:00:00 grep honeyd |
#ps -ef | grep farpd
root 14430 3756 0 12:37 pts/2 00:00:00 grep farpd |
#ip
![]() ip6tables ipcrm iptables iptunnel ip6tables-restore ipcs iptables-restore ip6tables-save ipmaddr iptables-save |
#host
![]() bash: host: command not found |
#hostname
linux2 |
#host
![]() hostid hostname |
#ip
![]() ip6tables ipcrm iptables iptunnel ip6tables-restore ipcs iptables-restore ip6tables-save ipmaddr iptables-save |
#ico
![]() ico iconv iconvconfig |
#ifconfig
eth0 Link encap:Ethernet HWaddr 00:04:75:75:46:B1 inet6 addr: fe80::204:75ff:fe75:46b1/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:184842 errors:0 dropped:0 overruns:506 frame:0 TX packets:161968 errors:16 dropped:0 overruns:0 carrier:5 collisions:0 txqueuelen:1000 RX bytes:63508570 (60.5 MiB) TX bytes:16020768 (15.2 MiB) Interrupt:169 Base address:0x2c00 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:34746 errors:0 dropped:0 overruns:0 frame:0 TX packets:34746 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:5157510 (4.9 MiB) TX bytes:5157510 (4.9 MiB) |
#man ifconfig
|
#ifdown eth0
There is already a pid file /var/run/dhclient.eth0.pid with pid 14410 killed old client process, removed PID file Internet Systems Consortium DHCP Client V3.0.4 Copyright 2004-2006 Internet Systems Consortium. All rights reserved. For info, please visit http://www.isc.org/sw/dhcp/ Listening on LPF/eth0/00:04:75:75:46:b1 Sending on LPF/eth0/00:04:75:75:46:b1 Sending on Socket/fallback DHCPRELEASE on eth0 to 192.168.15.254 port 67 send_packet: Network is unreachable send_packet: please consult README file regarding broadcast address. |
#ifup eth0
Internet Systems Consortium DHCP Client V3.0.4 Copyright 2004-2006 Internet Systems Consortium. All rights reserved. For info, please visit http://www.isc.org/sw/dhcp/ Listening on LPF/eth0/00:04:75:75:46:b1 Sending on LPF/eth0/00:04:75:75:46:b1 Sending on Socket/fallback DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 4 DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 11 DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 19 DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 16 DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 8 DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 3 No DHCPOFFERS received. No working leases in persistent database - sleeping. |
#ifup eth0
ifup: interface eth0 already configured |
#ifdown eth0
There is already a pid file /var/run/dhclient.eth0.pid with pid 14515 killed old client process, removed PID file Internet Systems Consortium DHCP Client V3.0.4 Copyright 2004-2006 Internet Systems Consortium. All rights reserved. For info, please visit http://www.isc.org/sw/dhcp/ Listening on LPF/eth0/00:04:75:75:46:b1 Sending on LPF/eth0/00:04:75:75:46:b1 Sending on Socket/fallback DHCPRELEASE on eth0 to 192.168.15.254 port 67 send_packet: Network is unreachable send_packet: please consult README file regarding broadcast address. |
#ping 192.168.15.100
![]() PING 192.168.15.100 (192.168.15.100) 56(84) bytes of data. --- 192.168.15.100 ping statistics --- 4 packets transmitted, 0 received, 100% packet loss, time 3001ms |
#ifconfig
eth0 Link encap:Ethernet HWaddr 00:04:75:75:46:B1 inet addr:192.168.15.201 Bcast:192.168.15.255 Mask:255.255.255.0 inet6 addr: fe80::204:75ff:fe75:46b1/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:98 errors:0 dropped:0 overruns:0 frame:0 TX packets:113 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:8026 (7.8 KiB) TX bytes:93204 (91.0 KiB) Interrupt:169 Base address:0x2c00 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) |
#ping 192.168.15.200
PING 192.168.15.200 (192.168.15.200) 56(84) bytes of data. 64 bytes from 192.168.15.200: icmp_seq=1 ttl=64 time=0.189 ms 64 bytes from 192.168.15.200: icmp_seq=2 ttl=64 time=0.171 ms 64 bytes from 192.168.15.200: icmp_seq=3 ttl=64 time=0.184 ms --- 192.168.15.200 ping statistics --- 3 packets transmitted, 3 received, 0% packet loss, time 1999ms rtt min/avg/max/mdev = 0.171/0.181/0.189/0.013 ms |
#ps -ef | grep honeyd
root 2454 2413 0 12:45 pts/0 00:00:00 grep honeyd |
#farpd -i eth0 192.168.15.101
arpd[2460]: listening on eth0: arp and (dst 192.168.15.101) and not ether src 00:04:75:75:46:b1 |
#arping -a 192.168.15.0-255
![]() arping: Can't resolve 192.168.15.0-255 |
#honeyd
Honeyd V1.5b Copyright (c) 2002-2004 Niels Provos honeyd[2476]: started with honeyd[2476]: listening promiscuously on eth0: (arp or ip proto 47 or (udp and src port 67 and dst port 68) or (ip )) and not ether src 00:04:75:75:46:b1 Honeyd starting as background process |
#iptables -L
Chain INPUT (policy ACCEPT) target prot opt source destination Chain FORWARD (policy ACCEPT) target prot opt source destination Chain OUTPUT (policy ACCEPT) target prot opt source destination |
#iptables -L
Chain INPUT (policy ACCEPT) target prot opt source destination Chain FORWARD (policy ACCEPT) target prot opt source destination Chain OUTPUT (policy ACCEPT) target prot opt source destination |
#iptables -L
Chain INPUT (policy ACCEPT) target prot opt source destination Chain FORWARD (policy ACCEPT) target prot opt source destination Chain OUTPUT (policy ACCEPT) target prot opt source destination |
#iptables -L
Chain INPUT (policy ACCEPT) target prot opt source destination Chain FORWARD (policy ACCEPT) target prot opt source destination Chain OUTPUT (policy ACCEPT) target prot opt source destination |
#iptables -L
Chain INPUT (policy ACCEPT) target prot opt source destination Chain FORWARD (policy ACCEPT) target prot opt source destination Chain OUTPUT (policy ACCEPT) target prot opt source destination |
#vi /etc/honeypot/honeyd.conf
|
#loger _-----test-----___
![]() bash: loger: command not found |
#logger _-----test-----___
|
#iptables -L
Chain INPUT (policy ACCEPT) target prot opt source destination Chain FORWARD (policy ACCEPT) target prot opt source destination Chain OUTPUT (policy ACCEPT) target prot opt source destination |
#arp -a
? (192.168.15.200) at 00:0A:01:D4:D1:E3 [ether] on eth0 ? (192.168.15.202) at 00:04:76:A1:EF:BB [ether] on eth0 ? (192.168.15.254) at 00:0A:01:D4:D1:39 [ether] on eth0 |
#arping 192.168.15.102
![]() #set default default udp action block ##set default default icmp action block #create router #set router personality "Cisco 1601R router running IOS 12.1(5)" #set router default tcp action reset :q arping: Can't resolve 192.168.15.102arp |
#arping 192.168.15.102
root@linux3's password: ARPING 192.168.15.102 60 bytes from 00:04:76:a1:ef:bb (192.168.15.102): index=0 time=402.927 usec 60 bytes from 00:04:76:a1:ef:bb (192.168.15.102): index=1 time=774.860 usec 60 bytes from 00:04:76:a1:ef:bb (192.168.15.102): index=2 time=356.913 usec 60 bytes from 00:04:76:a1:ef:bb (192.168.15.102): index=3 time=670.910 usec 60 bytes from 00:04:76:a1:ef:bb (192.168.15.102): index=4 time=339.031 usec 60 bytes from 00:04:76:a1:ef:bb (192.168.15.102): index=5 time=682.116 usec 60 bytes from 00:04:76:a1:ef:bb (192.168.15.102): index=6 time=359.058 usec 60 bytes from 00:04:76:a1:ef:bb (192.168.15.102): index=7 time=664.949 usec 60 bytes from 00:04:76:a1:ef:bb (192.168.15.102): index=8 time=344.992 usec 60 bytes from 00:04:76:a1:ef:bb (192.168.15.102): index=9 time=674.009 usec 60 bytes from 00:04:76:a1:ef:bb (192.168.15.102): index=10 time=419.855 usec 60 bytes from 00:04:76:a1:ef:bb (192.168.15.102): index=11 time=719.070 usec --- 192.168.15.102 statistics --- 7 packets transmitted, 12 packets received, -71% unanswered |
#ssh linux3
root@linux3's password: Permission denied, please try again. root@linux3's password: Permission denied, please try again. root@linux3's password: Last login: Fri Jun 22 10:12:24 2007 from 192.168.15.201 Linux linux3 2.6.18-4-686 #1 SMP Mon Mar 26 17:17:36 UTC 2007 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. l3-agent is already running: pid=4349; pidfile=/root/.lilalo/l3-agent.pid |
#arp -a
? (192.168.15.200) at 00:0A:01:D4:D1:E3 [ether] on eth0 ? (192.168.15.202) at 00:04:76:A1:EF:BB [ether] on eth0 ? (192.168.15.254) at 00:0A:01:D4:D1:39 [ether] on eth0 |
#arping 192.168.15.102
ARPING 192.168.15.102 60 bytes from 00:04:76:a1:ef:bb (192.168.15.102): index=0 time=293.016 usec 60 bytes from 00:04:76:a1:ef:bb (192.168.15.102): index=1 time=805.140 usec 60 bytes from 00:04:76:a1:ef:bb (192.168.15.102): index=2 time=352.144 usec 60 bytes from 00:04:76:a1:ef:bb (192.168.15.102): index=3 time=682.116 usec 60 bytes from 00:04:76:a1:ef:bb (192.168.15.102): index=4 time=340.939 usec 60 bytes from 00:04:76:a1:ef:bb (192.168.15.102): index=5 time=654.936 usec --- 192.168.15.102 statistics --- 3 packets transmitted, 6 packets received, -100% unanswered |
#arp -a
? (192.168.15.200) at 00:0A:01:D4:D1:E3 [ether] on eth0 ? (192.168.15.202) at 00:04:76:A1:EF:BB [ether] on eth0 ? (192.168.15.254) at 00:0A:01:D4:D1:39 [ether] on eth0 |
#ping 192.168.15.102
![]() PING 192.168.15.102 (192.168.15.102) 56(84) bytes of data. --- 192.168.15.102 ping statistics --- 24 packets transmitted, 0 received, 100% packet loss, time 22999ms |
#iptables -L
Chain INPUT (policy ACCEPT) target prot opt source destination Chain FORWARD (policy ACCEPT) target prot opt source destination Chain OUTPUT (policy ACCEPT) target prot opt source destination |
#ssh linux1
![]() |
#cd /etc/
|
#ssh linux3
root@linux3's password: Last login: Fri Jun 22 16:55:11 2007 from 192.168.15.201 Linux linux3 2.6.18-4-686 #1 SMP Mon Mar 26 17:17:36 UTC 2007 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. l3-agent is already running: pid=4349; pidfile=/root/.lilalo/l3-agent.pid |
#ps -ef | grep hon
nobody 2477 1 0 12:47 ? 00:00:00 honeyd root 3535 3512 0 13:25 pts/5 00:00:00 grep hon |
#ping 192.168.15.101
![]() -r--r--r-- 1 root root 0 2007-06-22 17:20 status dr-xr-xr-x 3 nobody nogroup 0 2007-06-22 17:22 task -r--r--r-- 1 root root 0 2007-06-22 17:22 wchan [root@mail2:~]# pdw bash: pdw: command not found [root@mail2:~]# pwd /home/user PING 192.168.15.101 (192.168.15.101) 56(84) bytes of data. --- 192.168.15.101 ping statistics --- 3 packets transmitted, 0 received, 100% packet loss, time 1999ms |
#ping 192.168.15.100
PING 192.168.15.100 (192.168.15.100) 56(84) bytes of data. 64 bytes from 192.168.15.100: icmp_seq=1 ttl=128 time=0.969 ms 64 bytes from 192.168.15.100: icmp_seq=2 ttl=128 time=0.508 ms --- 192.168.15.100 ping statistics --- 2 packets transmitted, 2 received, 0% packet loss, time 1000ms rtt min/avg/max/mdev = 0.508/0.738/0.969/0.232 ms |
#ping linux3
[root@linux3:~]# PING linux3.unix.nt (127.0.1.1) 56(84) bytes of data. 64 bytes from linux3.unix.nt (127.0.1.1): icmp_seq=1 ttl=64 time=0.053 ms 64 bytes from linux3.unix.nt (127.0.1.1): icmp_seq=2 ttl=64 time=0.051 ms 64 bytes from linux3.unix.nt (127.0.1.1): icmp_seq=3 ttl=64 time=0.058 ms 64 bytes from linux3.unix.nt (127.0.1.1): icmp_seq=4 ttl=64 time=0.056 ms 64 bytes from linux3.unix.nt (127.0.1.1): icmp_seq=5 ttl=64 time=0.057 ms --- linux3.unix.nt ping statistics --- 5 packets transmitted, 5 received, 0% packet loss, time 4002ms rtt min/avg/max/mdev = 0.051/0.055/0.058/0.002 ms |
#ping linux2
[root@linux3:~]# [root@linux3:~]# [root@linux3:~]# PING linux2.unix.nt (192.168.15.201) 56(84) bytes of data. 64 bytes from 192.168.15.201: icmp_seq=1 ttl=64 time=0.181 ms 64 bytes from 192.168.15.201: icmp_seq=2 ttl=64 time=0.209 ms 64 bytes from 192.168.15.201: icmp_seq=3 ttl=64 time=0.207 ms --- linux2.unix.nt ping statistics --- 3 packets transmitted, 3 received, 0% packet loss, time 10009ms rtt min/avg/max/mdev = 0.181/0.199/0.209/0.012 ms |
#ping linux2
64 bytes from 192.168.15.201: icmp_seq=621 ttl=64 time=0.229 ms 64 bytes from 192.168.15.201: icmp_seq=622 ttl=64 time=0.235 ms 64 bytes from 192.168.15.201: icmp_seq=623 ttl=64 time=0.369 ms 64 bytes from 192.168.15.201: icmp_seq=624 ttl=64 time=0.266 ms 64 bytes from 192.168.15.201: icmp_seq=625 ttl=64 time=0.196 ms 64 bytes from 192.168.15.201: icmp_seq=626 ttl=64 time=0.210 ms 64 bytes from 192.168.15.201: icmp_seq=627 ttl=64 time=0.273 ms 64 bytes from 192.168.15.201: icmp_seq=628 ttl=64 time=0.202 ms 64 bytes from 192.168.15.201: icmp_seq=629 ttl=64 time=0.191 ms 64 bytes from 192.168.15.201: icmp_seq=630 ttl=64 time=0.223 ms ... 64 bytes from 192.168.15.201: icmp_seq=760 ttl=64 time=0.199 ms 64 bytes from 192.168.15.201: icmp_seq=761 ttl=64 time=0.170 ms 64 bytes from 192.168.15.201: icmp_seq=762 ttl=64 time=0.191 ms 64 bytes from 192.168.15.201: icmp_seq=763 ttl=64 time=0.204 ms 64 bytes from 192.168.15.201: icmp_seq=764 ttl=64 time=0.202 ms 64 bytes from 192.168.15.201: icmp_seq=765 ttl=64 time=0.199 ms 64 bytes from 192.168.15.201: icmp_seq=766 ttl=64 time=0.242 ms 64 bytes from 192.168.15.201: icmp_seq=767 ttl=64 time=0.206 ms 64 bytes from 192.168.15.201: icmp_seq=768 ttl=64 time=0.198 ms 64 bytes from 192.168.15.201: icmp_seq=769 ttl=64 time=0.201 ms |
$exit
exit Connection to linux3 closed. |
#ifconfig
eth0 Link encap:Ethernet HWaddr 00:04:75:75:46:B1 inet addr:192.168.15.201 Bcast:192.168.15.255 Mask:255.255.255.0 inet6 addr: fe80::204:75ff:fe75:46b1/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:26 errors:0 dropped:0 overruns:1 frame:0 TX packets:34 errors:0 dropped:0 overruns:0 carrier:1 collisions:0 txqueuelen:1000 RX bytes:2720 (2.6 KiB) TX bytes:3755 (3.6 KiB) Interrupt:169 Base address:0x2c00 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) |
#route
Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 192.168.15.0 * 255.255.255.0 U 0 0 0 eth0 default 192.168.15.254 0.0.0.0 UG 0 0 0 eth0 |
#apt-cache search snort
acidbase - Basic Analysis and Security Engine airsnort - WLAN sniffer ippl - IP protocols logger libprelude-dev - Hybrid Intrusion Detection System [ Development files ] libprelude2 - Hybrid Intrusion Detection System [ Base library ] libpreludedb-dev - Hybrid Intrusion Detection System [ Development files ] libpreludedb0 - Hybrid Intrusion Detection System [ Base library ] oinkmaster - Snort rules manager psad - The Port Scan Attack Detector snort - Flexible Network Intrusion Detection System snort-common - Flexible Network Intrusion Detection System [common files] snort-doc - Documentation for the Snort IDS [documentation] snort-mysql - Flexible Network Intrusion Detection System [MySQL] snort-pgsql - Flexible Network Intrusion Detection System [PostgreSQL] snort-rules-default - Flexible Network Intrusion Detection System ruleset wflogs - The modular firewall log analyzer of the WallFire project |
#apt-get install snort
Selecting previously deselected package snort-common. Unpacking snort-common (from .../snort-common_2.3.3-11_all.deb) ... Selecting previously deselected package snort. Unpacking snort (from .../snort_2.3.3-11_i386.deb) ... Setting up snort-rules-default (2.3.3-11) ... Setting up snort-common (2.3.3-11) ... Setting up snort (2.3.3-11) ... No snort instance found to be stopped! Starting Network Intrusion Detection System: snort(eth0)No /etc/snort/snort.eth0.conf, defaulting to snort.conf . |
#apt-get install acidbase
│ An error seems to have occurred while installing the database. If it's │ │ of any help, this was the error encountered: │ │ │ │ ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using │ │ password: YES) │ │ │ │ At this point, you have the option to retry or abort the operation. If │ │ you choose "retry", you will be prompted with all the configuration │ │ questions once more and another attempt will be made at performing the │ │ operation. "retry (skip questions)" will immediately attempt the │ │ operation again, skipping all questions. If you choose "abort", the │ │ operation will fail and you will need to downgrade, reinstall, │ │ reconfigure this package, or otherwise manually intervene to continue │ │ using it. If you choose "ignore", the operation will continue, ignoring │ │ further errors from dbconfig-common. │ │ │ │ <Ok> │ │ │ └───────────────────────────────────────────────────────────────────────────┘ |
#mysql
Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 9 Server version: 5.0.32-Debian_7etch1-log Debian etch distribution Type 'help;' or '\h' for help. Type '\c' to clear the buffer. mysql> exit Bye |
#mysql -u root -p
Enter password: Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 10 Server version: 5.0.32-Debian_7etch1-log Debian etch distribution Type 'help;' or '\h' for help. Type '\c' to clear the buffer. mysql> set password for user root@localhost=password('password'); ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'root@localhost=password('password')' at line 1 mysql> set password for root@localhost=password('password'); Query OK, 0 rows affected (0.00 sec) mysql> exit Bye |
#mysql -u root -p
![]() Enter password: ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO) |
#mysql -u root -p
Enter password: Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 12 Server version: 5.0.32-Debian_7etch1-log Debian etch distribution Type 'help;' or '\h' for help. Type '\c' to clear the buffer. mysql> exit Bye |
#logger ___test____
#url = http://www.snort.org/dl/rules/snortrules-snapshot-2_1.tar.gz url=http://www.snort.org/pub-bin/oinkmaster.cgi/5a08f649c16a278e1012e1c84bdc8fab9a70e2a4/snortrules-snapshot-2.3.tar.gz # url = http://www.snort.org/dl/rules/snortrules-snapshot-2_0.tar.gz # To use CVS snapshots # url = http://www.snort.org/dl/rules/snortrules-snapshot-CURRENT.tar.gz # -------------------- "/etc/oinkmaster.conf" 164L, 8028C written [root@linux3:~]# oinkmaster -o /etc/snort/rules/ Loading /etc/oinkmaster.conf Downloading file from http://www.snort.org/pub-bin/oinkmaster.cgi/*oinkcode*/snortrules-snapshot-2.3.tar.gz... |
#apt-get install snort-mysql
Selecting previously deselected package snort-mysql. (Reading database ... 27686 files and directories currently installed.) Unpacking snort-mysql (from .../snort-mysql_2.3.3-11_i386.deb) ... Setting up snort-mysql (2.3.3-11) ... No snort instance found to be stopped! WARN: /etc/snort/db-pending-config file found WARN: Snort will not start as its database is not yet configured. WARN: Please configure the database as described in WARN: /usr/share/doc/snort-{pgsql,mysql}/README-database.Debian WARN: and remove /etc/snort/db-pending-config invoke-rc.d: initscript snort, action "start" failed. |
#oinkmaster
![]() bash: oinkmaster: command not found |
#ssh user@linux3
user@linux3's password: Linux linux3 2.6.18-4-686 #1 SMP Mon Mar 26 17:17:36 UTC 2007 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. You have new mail. Last login: Sat Jun 23 09:39:38 2007 from 192.168.15.254 l3-agent is already running: pid=3998; pidfile=/home/user/.lilalo/l3-agent.pid |
#snort -h
![]() snort: option requires an argument -- h ,,_ -*> Snort! <*- o" )~ Version 2.3.3 (Build 14) '''' By Martin Roesch & The Snort Team: http://www.snort.org/team.html (C) Copyright 1998-2004 Sourcefire Inc., et al. USAGE: snort [-options] <filter options> Options: -A Set alert mode: fast, full, console, or none (alert file alerts only) "unsock" enables UNIX socket logging (experimental). -b Log packets in tcpdump format (much faster!) ... -u <uname> Run snort uid as <uname> user (or uid) after initialization -U Use UTC for timestamps -v Be verbose -V Show version number -w Dump 802.11 management and control frames -X Dump the raw packet data starting at the link layer -y Include year in timestamp in the alert and log files -z Set assurance mode, match on established sesions (for TCP) -? Show this information <Filter Options> are standard BPF options, as seen in TCPDump |
#cd /etc/o
![]() oinkmaster.conf openoffice/ opt/ |
#apt-get install oinkmaster
Reading package lists... Done Building dependency tree... Done The following extra packages will be installed: libarchive-tar-perl libcompress-zlib-perl libio-zlib-perl Suggested packages: libio-string-perl The following NEW packages will be installed: libarchive-tar-perl libcompress-zlib-perl libio-zlib-perl oinkmaster 0 upgraded, 4 newly installed, 0 to remove and 0 not upgraded. Need to get 215kB of archives. ... Selecting previously deselected package libio-zlib-perl. Unpacking libio-zlib-perl (from .../libio-zlib-perl_1.04-1_all.deb) ... Selecting previously deselected package libarchive-tar-perl. Unpacking libarchive-tar-perl (from .../libarchive-tar-perl_1.30-2_all.deb) ... Selecting previously deselected package oinkmaster. Unpacking oinkmaster (from .../oinkmaster_2.0-1_all.deb) ... Setting up libcompress-zlib-perl (1.42-2) ... Setting up libio-zlib-perl (1.04-1) ... Setting up libarchive-tar-perl (1.30-2) ... Setting up oinkmaster (2.0-1) ... |
Время первой команды журнала | 19:27:11 2007- 6-22 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Время последней команды журнала | 13:32:20 2007- 6-23 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в журнале | 101 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент команд с ненулевым кодом завершения, % | 12.87 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент синтаксически неверно набранных команд, % | 4.95 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Суммарное время работы с терминалом *, час | 2.47 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в единицу времени, команда/мин | 0.68 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду 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