/l3/users/29-05-2007/nt-lnet/linux1.net.nt/root :1 :2 :3 :4 :5 :6 :7 :8 :9 :10 :11 :12 :13 :14 :15 :16 :17 :18 :19 :20 :21 :22 :23 :24 :25 :26 :27 :28 :29 :30 :31 :32 :33 :34 :35 :36 :37 :38 :39 :40 |
|
#telnet 127.0.0.1 65535
Trying 127.0.0.1... Connected to 127.0.0.1. Escape character is '^]'. Connection closed by foreign host. |
#telnet 192.168.16.2 65535
Trying 192.168.16.2... Connected to 192.168.16.2. Escape character is '^]'. Connection closed by foreign host. |
#vim /etc/hosts.allow
|
#ping 192.168.16.2
--- 192.168.16.3 ping statistics --- 1 packets transmitted, 0 received, 100% packet loss, time 0ms [root@linux1:~]# ping 192.168.16.4 PING 192.168.16.4 (192.168.16.4) 56(84) bytes of data. 64 bytes from 192.168.16.4: icmp_seq=1 ttl=64 time=0.177 ms --- 192.168.16.4 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 0.177/0.177/0.177/0.000 ms [root@linux1:~]# PING 192.168.16.2 (192.168.16.2) 56(84) bytes of data. 64 bytes from 192.168.16.2: icmp_seq=1 ttl=64 time=0.249 ms --- 192.168.16.2 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 0.249/0.249/0.249/0.000 ms 0 packets captured 0 packets received by filter 0 packets dropped by kernel [root@linux1:~]# [root@linux1:~]# [root@linux1:~]# ------------------------------------------------------------------------------------------ |
#ping 192.168.16.3
PING 192.168.16.3 (192.168.16.3) 56(84) bytes of data. --- 192.168.16.3 ping statistics --- 1 packets transmitted, 0 received, 100% packet loss, time 0ms |
#ping 192.168.16.4
PING 192.168.16.4 (192.168.16.4) 56(84) bytes of data. 64 bytes from 192.168.16.4: icmp_seq=1 ttl=64 time=0.177 ms --- 192.168.16.4 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 0.177/0.177/0.177/0.000 ms |
#less /etc/services
|
#vim /etc/xinetd.conf
|
#dpkg -l | grep inetd
afs3-errors 7006/tcp # error interpretation service afs3-errors 7006/udp afs3-bos 7007/tcp # basic overseer process afs3-bos 7007/udp afs3-update 7008/tcp # server-to-server updater afs3-update 7008/udp afs3-rmtsys 7009/tcp # remote cache manager service afs3-rmtsys 7009/udp font-service 7100/tcp xfs # X Font Service font-service 7100/udp xfs ... bacula-fd 9102/udp ii openbsd-inetd 0.20050402-6 The OpenBSD Internet Superserver ii update-inetd 4.27-0.5 inetd.conf updater 0 packets captured 0 packets received by filter 0 packets dropped by kernel [root@linux1:~]# [root@linux1:~]# [root@linux1:~]# ------------------------------------------------------------------------------------------ |
#/etc/init.d/xinetd restart
Stopping internet superserver: xinetd. Starting internet superserver: xinetd. |
#telnet 192.168.16.2 33333
Trying 192.168.16.2... Connected to 192.168.16.2. Escape character is '^]'. Connection closed by foreign host. |
#nc
afs3-volser 7005/udp afs3-errors 7006/tcp # error interpretation service afs3-errors 7006/udp afs3-bos 7007/tcp # basic overseer process afs3-bos 7007/udp afs3-update 7008/tcp # server-to-server updater afs3-update 7008/udp afs3-rmtsys 7009/tcp # remote cache manager service afs3-rmtsys 7009/udp font-service 7100/tcp xfs # X Font Service ... bacula-fd 9102/tcp # Bacula File Daemon bacula-fd 9102/udp Cmd line: 0 packets captured 0 packets received by filter 0 packets dropped by kernel [root@linux1:~]# [root@linux1:~]# [root@linux1:~]# ------------------------------------------------------------------------------------------ |
#telnet 127.0.0.1 33333
Trying 127.0.0.1... Connected to 127.0.0.1. Escape character is '^]'. ls -l # итого 52 drwxr-xr-x 3 root root 1024 2007-05-21 12:18 2 drwxr-xr-x 2 root root 2048 2007-05-24 10:04 bin drwxr-xr-x 3 root root 1024 2007-05-24 13:42 boot lrwxrwxrwx 1 root root 11 2007-05-13 17:39 cdrom -> media/cdrom drwxr-xr-x 14 root root 4200 2007-05-30 12:32 dev ... lrwxrwxrwx 1 root root 25 2007-05-21 16:29 vmlinuz -> boot/vmlinuz-2.6.18-4-686 lrwxrwxrwx 1 root root 25 2007-05-13 17:41 vmlinuz.old -> boot/vmlinuz-2.6.16-2-686 drwxr-xr-x 3 root root 4096 2007-05-18 19:10 xen drwxr-xr-x 2 root root 1024 2007-05-15 03:12 xen2 : command not found : command not found : command not found ^] telnet> q Connection closed. |
#cat /etc/passwd | nc -l -p 4000
afs3-volser 7005/udp afs3-errors 7006/tcp # error interpretation service afs3-errors 7006/udp afs3-bos 7007/tcp # basic overseer process afs3-bos 7007/udp afs3-update 7008/tcp # server-to-server updater afs3-update 7008/udp afs3-rmtsys 7009/tcp # remote cache manager service afs3-rmtsys 7009/udp font-service 7100/tcp xfs # X Font Service ... bacula-dir 9101/udp bacula-fd 9102/tcp # Bacula File Daemon bacula-fd 9102/udp 0 packets captured 0 packets received by filter 0 packets dropped by kernel [root@linux1:~]# [root@linux1:~]# [root@linux1:~]# ------------------------------------------------------------------------------------------ |
#netstat -lnp | grep :4000
afs3-volser 7005/udp afs3-errors 7006/tcp # error interpretation service afs3-errors 7006/udp afs3-bos 7007/tcp # basic overseer process afs3-bos 7007/udp afs3-update 7008/tcp # server-to-server updater afs3-update 7008/udp afs3-rmtsys 7009/tcp # remote cache manager service afs3-rmtsys 7009/udp font-service 7100/tcp xfs # X Font Service ... bacula-fd 9102/tcp # Bacula File Daemon bacula-fd 9102/udp tcp 0 0 0.0.0.0:4000 0.0.0.0:* LISTEN 5267/nc 0 packets captured 0 packets received by filter 0 packets dropped by kernel [root@linux1:~]# [root@linux1:~]# [root@linux1:~]# ------------------------------------------------------------------------------------------ |
#telnet 127.0.0.1 33333
Trying 127.0.0.1... Connected to 127.0.0.1. Escape character is '^]'. Connection closed by foreign host. |
#telnet 192.168.16.2 33333
Trying 192.168.16.2... Connected to 192.168.16.2. Escape character is '^]'. ls -l # итого 52 drwxr-xr-x 3 root root 1024 2007-05-21 12:18 2 drwxr-xr-x 2 root root 2048 2007-05-24 10:04 bin drwxr-xr-x 3 root root 1024 2007-05-24 13:42 boot lrwxrwxrwx 1 root root 11 2007-05-13 17:39 cdrom -> media/cdrom drwxr-xr-x 14 root root 4200 2007-05-30 12:32 dev ... drwxrwxrwt 5 root root 4096 2007-05-30 12:50 tmp drwxr-xr-x 12 root root 4096 2007-05-22 12:13 usr drwxr-xr-x 14 root root 4096 2007-05-13 17:40 var lrwxrwxrwx 1 root root 25 2007-05-21 16:29 vmlinuz -> boot/vmlinuz-2.6.18-4-686 lrwxrwxrwx 1 root root 25 2007-05-13 17:41 vmlinuz.old -> boot/vmlinuz-2.6.16-2-686 drwxr-xr-x 3 root root 4096 2007-05-18 19:10 xen drwxr-xr-x 2 root root 1024 2007-05-15 03:12 xen2 ^] telnet> q Connection closed. |
#telnet 127.0.0.1 4000
identd:x:103:65534::/var/run/identd:/bin/false messagebus:x:104:105::/var/run/dbus:/bin/false avahi:x:105:106:Avahi mDNS daemon,,,:/var/run/avahi-daemon:/bin/false haldaemon:x:106:109:Hardware abstraction layer,,,:/home/haldaemon:/bin/false gdm:x:107:112:Gnome Display Manager:/var/lib/gdm:/bin/false hplip:x:108:7:HPLIP system user,,,:/var/run/hplip:/bin/false user:x:1000:1000:user,,,:/home/user:/bin/bash sshd:x:109:65534::/var/run/sshd:/usr/sbin/nologin ^] telnet> q Connection closed. [2]+ Done nohup cat /etc/passwd | nc -l -p 4000 0 packets captured 0 packets received by filter 0 packets dropped by kernel [root@linux1:~]# [root@linux1:~]# [root@linux1:~]# ------------------------------------------------------------------------------------------ |
#cat /etc/hosts.allow
# /etc/hosts.allow: list of hosts that are allowed to access the system. # See the manual pages hosts_access(5), hosts_options(5) # and /usr/doc/netbase/portmapper.txt.gz # # Example: ALL: LOCAL @some_netgroup # ALL: .foobar.edu EXCEPT terminalserver.foobar.edu # # If you're going to protect the portmapper use the name "portmap" for the # daemon name. Remember that you can only use the keyword "ALL" and IP # addresses (NOT host or domain names) for the portmapper, as well as for # rpc.mountd (the NFS mount daemon). See portmap(8), rpc.mountd(8) and # /usr/share/doc/portmap/portmapper.txt.gz for further information. # ssh : 0.0.0.0/0.0.0.0 #ALL : linux2.net.nt echo : 192.168.16.2 bash : 127.0.0.1 : deny bash : 192.168.16.2 ALL : 127.0.0.1 |
#cat /etc/hosts.deny
# /etc/hosts.deny: list of hosts that are _not_ allowed to access the system. # See the manual pages hosts_access(5), hosts_options(5) # and /usr/doc/netbase/portmapper.txt.gz # # Example: ALL: some.host.name, .some.domain # ALL EXCEPT in.fingerd: other.host.name, .other.domain # # If you're going to protect the portmapper use the name "portmap" for the # daemon name. Remember that you can only use the keyword "ALL" and IP # addresses (NOT host or domain names) for the portmapper. See portmap(8) ... # The PARANOID wildcard matches any host whose name does not match its # address. # You may wish to enable this to ensure any programs that don't # validate looked up hostnames still leave understandable logs. In past # versions of Debian this has been the default. # ALL: PARANOID #calc: ALL #ALL: ALL #calc : ALL ALL : ALL |
#tar cvv /etc | nc -l -p 40000
-rw-r--r-- root/root 16 2007-03-25 17:05 /etc/modprobe.d/libpisock9 -rw-r--r-- root/root 4624 2007-02-18 20:30 /etc/modprobe.d/aliases -rw-r--r-- root/root 1406 2007-03-24 20:15 /etc/modprobe.d/blacklist lrwxrwxrwx root/root 0 2007-05-24 20:29 /etc/modprobe.d/linux-sound-base_noOSS -> /lib/linux-sound-base/noOSS.modprobe.conf -rw-r--r-- root/root 156 2007-02-26 19:05 /etc/modprobe.d/alsa-base-blacklist drwxr-xr-x root/root 0 2007-05-24 20:23 /etc/sound/ drwxr-xr-x root/root 0 2007-05-24 20:33 /etc/sound/events/ -rw-r--r-- root/root 22291 2006-10-19 12:33 /etc/sound/events/gnome-2.soundlist [1] Done nohup cat /etc/passwd | nc -l -p 4000 [2]+ Stopped tar cvv /etc | nc -l -p 40000 0 packets captured 0 packets received by filter 0 packets dropped by kernel [root@linux1:~]# [root@linux1:~]# [root@linux1:~]# ------------------------------------------------------------------------------------------ |
#apt-get install gnome
libtotem-plparser1 libvisual-0.4-0 libvolume-id0 libvorbisenc2 libvte-common libvte4 libwmf0.2-7 libwnck-common libwnck18 libxaw7 libxdamage1 libxine1 libxkbfile1 libxklavier10 libxml2-utils libxmu6 libxmuu1 libxpm4 libxres1 libxslt1.1 libxss1 libxt6 libxtrap6 libxtst6 libxul-common libxul0d libxxf86misc1 menu-xdg metacity metacity-common mkisofs nautilus nautilus-cd-burner nautilus-data notification-daemon planner pmount powermgmt-base python-cairo python-glade2 python-gmenu python-gnome2 python-gnome2-desktop python-gtk2 python-libxml2 python-numeric python-pyorbit python-support rhythmbox scrollkeeper sgml-base sgml-data shared-mime-info sound-juicer synaptic system-tools-backends totem totem-mozilla totem-xine unzip vino wodim xbase-clients xkb-data xml-core xsltproc xulrunner-gnome-support yelp zenity zip ... gnome-user-guide libglib-perl libcairo-perl libgtk2-perl libgnome2-canvas-perl libgnome2-vfs-perl libgnome2-perl libgnomevfs2-bin gnome-desktop-environment libgsf-gnome-1-114 libgoffice-1-common libgoffice-1-2 gnumeric-common gnumeric libgda2-common libgda2-3 planner libglibmm-2.4-1c2a libgtkmm-2.4-1c2a libloudmouth1-0 inkscape gnome-office libgnomecupsui1.0-1c2a gnome-cups-manager gtk2-engines-spherecrystal gnome-themes-extras gnome-games-extra-data libgpod0 libsexy2 libmpeg2-4 libsidplay1 gstreamer0.10-plugins-ugly python-gnome2 rhythmbox synaptic gnome-screensaver notification-daemon gnome-power-manager totem-mozilla gnome Установить эти пакеты без проверки [y/N]? n E: Некоторые пакеты невозможно аутентифицировать |
#bg
afs3-volser 7005/udp afs3-errors 7006/tcp # error interpretation service afs3-errors 7006/udp afs3-bos 7007/tcp # basic overseer process afs3-bos 7007/udp afs3-update 7008/tcp # server-to-server updater afs3-update 7008/udp afs3-rmtsys 7009/tcp # remote cache manager service afs3-rmtsys 7009/udp font-service 7100/tcp xfs # X Font Service ... bacula-fd 9102/tcp # Bacula File Daemon bacula-fd 9102/udp [2]+ tar cvv /etc | nc -l -p 40000 & 0 packets captured 0 packets received by filter 0 packets dropped by kernel [root@linux1:~]# [root@linux1:~]# [root@linux1:~]# ------------------------------------------------------------------------------------------ |
#ssh 192.168.16.2
bacula-dir 9101/udp bacula-fd 9102/tcp # Bacula File Daemon bacula-fd 9102/udp root@192.168.16.2's password: Permission denied, please try again. root@192.168.16.2's password: Last login: Wed May 30 09:38:25 2007 Linux linux2 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=2646; pidfile=/root/.lilalo/l3-agent.pid 0 packets captured 0 packets received by filter 0 packets dropped by kernel [root@linux1:~]# [root@linux1:~]# [root@linux1:~]# ------------------------------------------------------------------------------------------ |
#apt-get update ; apt-get install gnome -y
gimp-help gimp-python libgimp-perl gimp-data-extras cpufreqd cpudyn powernowd esound-clients gnome-audio gnome-hearts gnucash ntp wvdial gnumeric-doc gnumeric-plugins-extra gs-cjk-resource gtk-engines-pixmap hal-device-manager libxml-xql-perl python-xml skencil libartsc0 libaudio2 aspell cupsys-common libdv-bin gda2-mysql gda2-postgres gda2-odbc gda2-sqlite gda2-freetds gstreamer0.10-tools gstreamer0.10-plugins libgtk2-perl-doc libgtkhtml3.8-dbg liblcms-utils libopal-dev jpilot pilot-link malsync kpilot gnome-pilot sylpheed-claws sylpheed-claws-gtk2 sylpheed libraw1394-doc librsvg2-bin sidplay-base xsidplay cryptsetup python-gnome2-desktop-doc python-numeric-tutorial sgml-base-doc perlsgml doc-html-w3 opensp dwww tsclient mesa-utils ... Получено:63 http://debian.org.ua etch/main libstartup-notification0 0.8-2 [19,4kB] Получено:64 http://debian.org.ua etch/main libgnome-desktop-2 2.14.3-2 [74,8kB] Получено:65 http://debian.org.ua etch/main libgnome-menu2 2.16.1-3 [61,5kB] Получено:66 http://debian.org.ua etch/main gdb 6.4.90.dfsg-1 [2411kB] Получено:67 http://debian.org.ua etch/main libxslt1.1 1.1.19-1 [216kB] Получено:68 http://debian.org.ua etch/main libscrollkeeper0 0.3.14-13 [147kB] Получено:69 http://debian.org.ua etch/main sgml-base 1.26 [11,7kB] Получено:70 http://debian.org.ua etch/main xml-core 0.09-0.1 [21,5kB] Получено:71 http://debian.org.ua etch/main sgml-data 2.0.3 [279kB] Получено:72 http://debian.org.ua etch/main docbook-xml 4.4-5 [339kB] |
#tar c /etc | nc -l -p 40000
tar: Удаляется начальный `/' из имен объектов Can't grab 0.0.0.0:40000 with bind |
#tar cz /home | nc -l -p 40000
tar: Удаляется начальный `/' из имен объектов Can't grab 0.0.0.0:40000 with bind |
#telnet 127.0.0.1 50000
Trying 127.0.0.1... telnet: Unable to connect to remote host: Connection refused |
#telnet 127.0.0.1 110
Trying 127.0.0.1... telnet: Unable to connect to remote host: Connection refused |
#telnet 192.168.16.2 111
Trying 192.168.16.2... Connected to 192.168.16.2. Escape character is '^]'. ls# : command not foundls# ls; 1 12 123 1.gif ... -rw-r--r-- 1 root root 0 2007-05-22 10:57 ODINAKOVONEoDinakovoRAVNO -rw-r--r-- 1 root root 0 2007-05-22 10:57 ODINAKOVO_NEoDinakovo_RAVNO -rw-r--r-- 1 root root 5,3K 2007-05-22 10:48 userapp -rw-r--r-- 1 root root 25 2007-05-22 13:48 user_passwd -rwxr-xr-x 1 root root 42 2007-05-22 11:05 var : command not found exit : command not foundexit exit; Connection closed by foreign host. |
#ssh 192.168.16.2 -p 22000
root@192.168.16.2's password: Permission denied, please try again. root@192.168.16.2's password: Last login: Wed May 30 09:49:21 2007 from 192.168.16.1 Linux linux2 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=2646; pidfile=/root/.lilalo/l3-agent.pid |
#ssh 192.168.16.2 -p 22
root@192.168.16.2's password: Last login: Wed May 30 10:00:20 2007 from localhost Linux linux2 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=2646; pidfile=/root/.lilalo/l3-agent.pid |
#netstat -lnp | grep :80
libglibmm-2.4-1c2a-dbg - C++ wrapper for the GLib toolkit (debug symbols) libglibmm-2.4-dev - C++ wrapper for the GLib toolkit (development files) libgnetwork1.0-0 - networking wrapper library using Glib/GObject libgnetwork1.0-dev - networking wrapper library using Glib/GObject (development files) libgnome-cil - CLI binding for GNOME libgnome-desktop-2 - Utility library for loading .desktop files - runtime files libgnome-desktop-dev - Utility library for loading .desktop files - development files libgnome-dev - The GNOME libraries -- development package libgnome-keyring-dev - Development files for GNOME keyring service libgnome-keyring0 - GNOME keyring services library ... libgnome-mag2 - screen magnification library for the GNOME desktop (shared library) libgnome-media-dev - development libraries for the GNOME media utilities libgnome-media0 - runtime libraries for the GNOME media utilities libgnome-menu-dev - an implementation of the freedesktop menu specification for GNOME [root@linux1:~]# [root@linux1:~]# ping 192.168.16.4 PING 192.168.16.4 (192.168.16.4) 56(84) bytes of data. From 192.168.16.1 icmp_seq=2 Destination Host Unreachable From 192.168.16.1 icmp_seq=3 Destination Host Unreachable From 192.168.16.1 icmp_seq=4 Destination Host Unreachable |
#apt-cache search apache
libapache-mod-auth-radius - Apache module for RADIUS authentication libapache-mod-auth-shadow - An Apache module for authentication using /etc/shadow libapache-mod-auth-useragent - blocks parts of service for certain user agents libapache-mod-backhand - Load balancing module for Apache web server libapache-mod-cgi-debug - Easier debugging of CGI scripts libapache-mod-choke - concurrent connections per IP and data transfer rate limiter for Apache libapache-mod-chroot - run Apache in a secure chroot environment libapache-mod-dav - A DAV module for Apache libapache-mod-dosevasive - evasive module to minimize HTTP DoS or brute force attacks libapache-mod-encoding - Apache module for non-ascii filename interoperability ... libfile-mmagic-perl - Perl module to guess file type libhtml-embperl-perl - Library for embedding perl in HTML libhtml-lint-perl - Check for HTML errors in a string or file libhtml-mason-perl-examples - HTML::Mason example setup libiconv-hook1 - extension of iconv for libapache-mod-encoding libjaxme-java - implementation of the JAXB specification for Java/XML binding libjaxp1.2-java - Java XML parser and transformer APIs (DOM, SAX, JAXP, TrAX) liblog-log4perl-perl - A Perl port of the widely popular log4j logging package. liblog4cpp-doc - A C++ library for flexible logging (documentation) liblog4cpp4 - C++ library for flexible logging (runtime) |
#apt-get install apache
Настраивается пакет libaprutil1 (1.2.7+dfsg-2) ... Настраивается пакет apache2-utils (2.2.3-4) ... Настраивается пакет apache-common (1.3.34-4.1) ... Настраивается пакет apache (1.3.34-4.1) ... Creating config file /etc/apache/httpd.conf with new version Creating config file /etc/apache/srm.conf with new version Creating config file /etc/apache/access.conf with new version Creating config file /etc/apache/modules.conf with new version Starting apache 1.3 web server.... [root@linux1:~]# [root@linux1:~]# ping 192.168.16.4 PING 192.168.16.4 (192.168.16.4) 56(84) bytes of data. From 192.168.16.1 icmp_seq=2 Destination Host Unreachable From 192.168.16.1 icmp_seq=3 Destination Host Unreachable From 192.168.16.1 icmp_seq=4 Destination Host Unreachable |
#apt-cache search apache | grep php
libapache-mod-php4 - server-side, HTML-embedded scripting language (apache 1.3 module) libapache-mod-php5 - server-side, HTML-embedded scripting language (apache 1.3 module) libapache-mod-suphp - Apache module to run php scripts with the owner permissions libapache2-mod-php4 - server-side, HTML-embedded scripting language (apache 2 module) libapache2-mod-php5 - server-side, HTML-embedded scripting language (apache 2 module) libapache2-mod-suphp - Apache2 module to run php scripts with the owner permissions myphpmoney - Finance manager written in PHP php4-apache2-mod-bt - PHP bindings for mod_bt php4-cgi - server-side, HTML-embedded scripting language (CGI binary) php4-mapscript - module for php4-cgi to use mapserver php5-apache2-mod-bt - PHP bindings for mod_bt php5-cgi - server-side, HTML-embedded scripting language (CGI binary) php5-mapscript - module for php5-cgi to use mapserver suphp-common - Common files for mod suphp |
#apt-get install php5-mapscript php5-cgi php5-apache2-mod-bt
Настраивается пакет php5-cgi (5.2.0-8+etch1) ... Creating config file /etc/php5/cgi/php.ini with new version Настраивается пакет php5-apache2-mod-bt (0.0.19+p4.2296-1) ... Настраивается пакет libxerces27 (2.7.0-3) ... Настраивается пакет unixodbc (2.2.11-13) ... Настраивается пакет libgdal1-1.3.2 (1.3.2-4) ... Настраивается пакет proj (4.4.9d-2) ... Настраивается пакет php5-mapscript (4.10.0-5+etch1) ... [root@linux1:~]# [root@linux1:~]# ping 192.168.16.4 PING 192.168.16.4 (192.168.16.4) 56(84) bytes of data. From 192.168.16.1 icmp_seq=2 Destination Host Unreachable From 192.168.16.1 icmp_seq=3 Destination Host Unreachable From 192.168.16.1 icmp_seq=4 Destination Host Unreachable |
#yes BBBB | nc 192.168.16.2 40000
AAAA AAAA AAAA AAAA AAAA AAAA AAAA AAAA AAAA AAAA ... AAAA AAAA AAAA AAAA AAAA AAAA AAAA AAAA AAAA A |
#ssh 192.168.16.2
root@192.168.16.2's password: Last login: Wed May 30 12:04:43 2007 Linux linux2 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=2646; pidfile=/root/.lilalo/l3-agent.pid |
#apt-
libglibmm-2.4-1c2a-dbg - C++ wrapper for the GLib toolkit (debug symbols) libglibmm-2.4-dev - C++ wrapper for the GLib toolkit (development files) libgnetwork1.0-0 - networking wrapper library using Glib/GObject libgnetwork1.0-dev - networking wrapper library using Glib/GObject (development files) libgnome-cil - CLI binding for GNOME libgnome-desktop-2 - Utility library for loading .desktop files - runtime files libgnome-desktop-dev - Utility library for loading .desktop files - development files libgnome-dev - The GNOME libraries -- development package libgnome-keyring-dev - Development files for GNOME keyring service libgnome-keyring0 - GNOME keyring services library ... libgnome-mag2 - screen magnification library for the GNOME desktop (shared library) libgnome-media-dev - development libraries for the GNOME media utilities libgnome-media0 - runtime libraries for the GNOME media utilities libgnome-menu-dev - an implementation of the freedesktop menu specification for GNOME [root@linux1:~]# [root@linux1:~]# ping 192.168.16.4 PING 192.168.16.4 (192.168.16.4) 56(84) bytes of data. From 192.168.16.1 icmp_seq=2 Destination Host Unreachable From 192.168.16.1 icmp_seq=3 Destination Host Unreachable From 192.168.16.1 icmp_seq=4 Destination Host Unreachable |
#apt-get install w3m
libgnome-cil - CLI binding for GNOME libgnome-desktop-2 - Utility library for loading .desktop files - runtime files libgnome-desktop-dev - Utility library for loading .desktop files - development files libgnome-dev - The GNOME libraries -- development package libgnome-keyring-dev - Development files for GNOME keyring service libgnome-keyring0 - GNOME keyring services library libgnome-mag-dev - screen magnification library for the GNOME desktop (development headers ) libgnome-mag2 - screen magnification library for the GNOME desktop (shared library) libgnome-media-dev - development libraries for the GNOME media utilities ... Чтение списков пакетов... Готово Построение дерева зависимостей... Готово Уже установлена самая новая версия w3m. обновлено 0, установлено 0 новых пакетов, для удаления отмечено 0 пакетов, и 0 пакетов не обновлено. [root@linux1:~]# [root@linux1:~]# ping 192.168.16.4 PING 192.168.16.4 (192.168.16.4) 56(84) bytes of data. From 192.168.16.1 icmp_seq=2 Destination Host Unreachable From 192.168.16.1 icmp_seq=3 Destination Host Unreachable From 192.168.16.1 icmp_seq=4 Destination Host Unreachable |
#w3m http://127.0.0.1/
The owner of this web site has not put up any web pages yet. Please come back later. Move along, nothing to see here... :-) If you are trying to locate the administrator of this machine If you want to report something about this host's behavior, please contact the Internet Service Provider (ISP) involved directly. See the Network Abuse Clearinghouse for how to do this. If you are the administrator of this machine The initial installation of Debian's apache web server package was successful. You should replace this page with your own web pages as soon as possible. Unless you changed its configuration, your new server is configured as follows: ... • CGI scripts are looked for in /usr/lib/cgi-bin, which is where Debian packages will place their scripts. • Log files are placed in /var/log/apache, and will be rotated weekly. The frequency of rotation can be easily changed by editing /etc/logrotate.d/apache. • The default directory index is index.html, meaning that requests for a directory /foo/bar/ will give the contents of the file /var/www/foo/bar/index.html if it exists (assuming that /var/www is your DocumentRoot). • User directories are enabled, and user documents will be looked for in the public_html directory of the users' homes. These dirs should be under /home, and users will not be able to symlink to files they don't own. All the standard apache modules are available with this release and are now managed with debconf. Type dpkg-reconfigure apache to select which modules you want enabled. Many other modules are available through the Debian package system with the names 1,02/5,13kb 20% |||||||||||||||| |
#apt-get install lynx
libgnome-media0 - runtime libraries for the GNOME media utilities libgnome-menu-dev - an implementation of the freedesktop menu specification for GNOME Чтение списков пакетов... Готово Построение дерева зависимостей... Готово НОВЫЕ пакеты, которые будут установлены: lynx обновлено 0, установлено 1 новых пакетов, для удаления отмечено 0 пакетов, и 0 пакетов не обновлено. Необходимо скачать 1859kБ архивов. После распаковки объем занятого дискового пространства возрастёт на 4678kB. Получено:1 http://debian.org.ua etch/main lynx 2.8.5-2sarge2.2 [1859kB] Получено 1859kB за 9s (197kB/c) Выбор ранее не выбранного пакета lynx. (Чтение базы данных... на данный момент установлено 85053 файлов и каталогов.) Распаковывается пакет lynx (из файла .../lynx_2.8.5-2sarge2.2_i386.deb)... Настраивается пакет lynx (2.8.5-2sarge2.2) ... [root@linux1:~]# [root@linux1:~]# ping 192.168.16.4 PING 192.168.16.4 (192.168.16.4) 56(84) bytes of data. From 192.168.16.1 icmp_seq=2 Destination Host Unreachable From 192.168.16.1 icmp_seq=3 Destination Host Unreachable From 192.168.16.1 icmp_seq=4 Destination Host Unreachable |
#lynx http://127.0.0.1/
|
#ssh clint@net.nt
177 </P 134 ><H3 178 CL/DD="OTHERCREDIT" 180 ></DIV 179 ></DL 182 </P 139 >Pedro Larroy</H3 184 ></P 185 ></DIV 186 ></DIV ... 170 CLASS="COMMAND" 171 >áÃÃÃà à ëÃÃà ãÃ</B 172 > (kis_an [at] mail.ru),- 173 <B 174 CLASS="COMMAND" 175 >éÃÃà ðà ÃÃÃ</B 176 > (ipesin [at] n-ix.com.ua) 177 </P ÑÑ Ñ 178 ></DD 133,1 0% |
#vim /etc/apache/httpd.conf
|
#ldd
[root@linux1:~]# netstat -lnp | grep :4000 tcp 0 0 0.0.0.0:4000 0.0.0.0:* LISTEN 5267/nc [root@linux1:~]# telnet 127.0.0.GET / HTTP/1.1 Host: 192.168.16.1:4000 User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.11) Gecko/20070324 (Debian-1. 8.0.11-2) Epiphany/2.14 Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,im age/png,*/*;q=0.5 Accept-Encoding: gzip,deflate Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7 Keep-Alive: 300 Connection: keep-alive ldd: missing file arguments Try `ldd --help' for more information. [root@linux1:~]# ------------------------------------------------------------------------------------------ |
#ssh 192.168.16.2
[root@linux1:~]# [root@linux1:~]# netstat -lnp | grep :4000 tcp 0 0 0.0.0.0:4000 0.0.0.0:* LISTEN 5267/nc [root@linux1:~]# telnet 127.0.0.GET / HTTP/1.1 Host: 192.168.16.1:4000 User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.11) Gecko/20070324 (Debian-1. 8.0.11-2) Epiphany/2.14 Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,im age/png,*/*;q=0.5 Accept-Encoding: gzip,deflate Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7 Keep-Alive: 300 Connection: keep-alive ssh: 192.168.16.2nc: Name or service not known [root@linux1:~]# ------------------------------------------------------------------------------------------ |
#/etc/init.d/apache2 restart
libglibmm-2.4-1c2a-dbg - C++ wrapper for the GLib toolkit (debug symbols) libglibmm-2.4-dev - C++ wrapper for the GLib toolkit (development files) libgnetwork1.0-0 - networking wrapper library using Glib/GObject libgnetwork1.0-dev - networking wrapper library using Glib/GObject (development files) libgnome-cil - CLI binding for GNOME libgnome-desktop-2 - Utility library for loading .desktop files - runtime files libgnome-desktop-dev - Utility library for loading .desktop files - development files libgnome-dev - The GNOME libraries -- development package libgnome-keyring-dev - Development files for GNOME keyring service libgnome-keyring0 - GNOME keyring services library ... libgnome-mag2 - screen magnification library for the GNOME desktop (shared library) libgnome-media-dev - development libraries for the GNOME media utilities libgnome-media0 - runtime libraries for the GNOME media utilities libgnome-menu-dev - an implementation of the freedesktop menu specification for GNOME [root@linux1:~]# [root@linux1:~]# ping 192.168.16.4 PING 192.168.16.4 (192.168.16.4) 56(84) bytes of data. From 192.168.16.1 icmp_seq=2 Destination Host Unreachable From 192.168.16.1 icmp_seq=3 Destination Host Unreachable From 192.168.16.1 icmp_seq=4 Destination Host Unreachable |
#netstat -lnp |
> |
#netstat -lnp | grep :80
libglibmm-2.4-dev - C++ wrapper for the GLib toolkit (development files) libgnetwork1.0-0 - networking wrapper library using Glib/GObject libgnetwork1.0-dev - networking wrapper library using Glib/GObject (development files) libgnome-cil - CLI binding for GNOME libgnome-desktop-2 - Utility library for loading .desktop files - runtime files libgnome-desktop-dev - Utility library for loading .desktop files - development files libgnome-dev - The GNOME libraries -- development package libgnome-keyring-dev - Development files for GNOME keyring service libgnome-keyring0 - GNOME keyring services library libgnome-mag-dev - screen magnification library for the GNOME desktop (development headers ... libgnome-media-dev - development libraries for the GNOME media utilities libgnome-media0 - runtime libraries for the GNOME media utilities libgnome-menu-dev - an implementation of the freedesktop menu specification for GNOME tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 13433/apache [root@linux1:~]# [root@linux1:~]# ping 192.168.16.4 PING 192.168.16.4 (192.168.16.4) 56(84) bytes of data. From 192.168.16.1 icmp_seq=2 Destination Host Unreachable From 192.168.16.1 icmp_seq=3 Destination Host Unreachable From 192.168.16.1 icmp_seq=4 Destination Host Unreachable |
#lynx 192.168.16.1/lartc.html
|
#w3m 192.168.16.1/lartc.html
2.4. äÃÃÃÃÃÃÃà ÃÃÃÃà ÃÃÃà ÃÃÃÃà äÃÃÃÃÃÃÃà ÃÃÃÃà ÃÃÃà ÃÃÃÃà åÃÃà Ãà ÃÃÃÃÃÃà ÃÃÃà ÃÃÃÃÃ, ÃÃÃÃÃÃÃà ÃÃÃà ÃÃÃÃà ÃÃÃÃÃà ÃÃÃ, ÃÃÃÃÃÃà ÃÃÃà ÃÃÃà Ãà ÃÃÃÃà ÃÃÃà ÃÃÃÃ. ðà ÃÃÃÃÃCÃÃÃÃà ÃÃÃà ÃÃÃÃÃà Ãà ÃÃà ÃÃÃÃÃÃà ÃÃÃÃ, Ãà ÃÃà Ãà ÃÃÃà ÃÃÃà ÃÃ, ÃÃÃÃà ÃÃà ÃÃÃÃÃà ÃÃà Ãà Ãà à ÃÃÃÃÃÃÃÃÃà ÃÃÃÃà à ÃÃÃÃÃCñ ÃÃÃÃÃÃà ÃÃà ÃÃà ÃÃÃà ÃÃÃÃÃÃÃÃÃÃà ÃÃà à Open Source à ÃÃÃÃÃà ÃÃÃÃÃÃÃà ÃÃà ÃÃÃÃÃÃà ÃÃÃà ÃÃÃà Ãà ÃÃÃ, ÃÃÃÃÃÃÃà ÃÃÃ, ÃÃÃÃÃÃà ÃÃà à ÃÃ. îà ÃÃà ÃÃÃÃÃà Ãà ÃÃÃÃÃÃÃà ÃÃà à åÃÃà Ãà ÃÃà Ãà Ãà à ÃÃÃ, ÃÃÃÃÃÃÃÃà ÃÃÃÃÃCÃÃÃÃÃÃÃÃÃÃÃÃÃÃÃÃÃÃÃÃà ÃÃÃÃÃÃÃÃÃÃÃÃÃÃÃÃÃà ÃÃÃÃÃÃÃÃÃ-ÃÃà ÃÃÃÃÃÃÃÃÃÃà ÃÃÃÃÃÃÃà ÃÃà ÃÃà Ãà à ÃÃÃÃÃÃÃÃÃÃÃÃÃÃÃÃà à ÃÃÃÃà ÃÃÃÃÃÃîÃÃÃÃà ÃÃÃÃà ÃÃ--ÃÃÃÃÃÃÃÃÃÃÃÃÃÃÃÃÃ!üÃà HOWTOÃÃÃÃÃÃÃÃÃÃà Ãà à CVS, à ÃÃÃÃÃÃà SGML. ñ ÃÃÃà ÃÃÃÃÃà ÃÃÃ, à ÃÃà ÃÃÃÃà ÃÃÃÃÃÃÃÃà ÃÃà ÃÃÃÃÃÃÃ. ÷ ÃÃÃÃÃà ÃÃÃÃà ÃÃÃà Ãà ÃÃÃà Ãà à ÃÃà ÃÃÃÃÃÃà ÃÃÃÃà ÃÃÃÃà "FIXME". öà ÃÃà Ãà ÃÃà ÃÃà ÃÃÃÃÃÃÃà ÃÃà -- ÃÃà ÃÃà ÃÃÃÃÃÃÃÃÃÃ! ֈ ÃÃà , ÃÃà Ãà ÃÃÃÃà ÃÃÃà ÃÃÃÃà "FIXME", ÃÃÃÃÃà , ÃÃà Ãà ÃÃÃÃÃÃà Ãà Ãà Ãà ÃÃÃà ÃÃÃÃÃà Ãà ÃÃÃÃÃÃÃÃ. ñ Ãà Ãà ÃÃÃà ÃÃÃà ÃÃÃÃÃÃ, ÃÃà à ÃÃÃÃÃà Ãà ÃÃÃà Ãà à ÃÃCÃà ÃÃà Ãà ÃÃà ÃÃà ÃÃà à ÃÃÃà ÃÃÃÃà ÃÃà ÃÃÃÃÃÃÃÃÃÃÃ. Ã¥ÃÃà Ãà ÃÃÃÃÃà ÃÃÃÃÃà ÃÃÃÃà ÃÃÃÃÃÃÃÃÃÃÃà ÃÃÃà ÃÃà ÃÃÃÃà ÃÃà ÃÃÃÃÃÃà ÃÃÃ, 3.2. ëÃÃÃÃÃà ÃÃÃÃà iproute2 3.3. îà ÃÃÃÃÃÃÃÃà ÃÃÃÃÃÃà 3.4. ôà ÃÃÃÃà ÃÃÃÃÃÃÃÃÃÃÃà ÃÃÃÃÃÃÃÃÃÃ, ÃÃÃÃÃÃÃà ÃÃÃ, ÃÃÃÃà Ãà ÃÃÃÃà ÃÃÃÃÃÃà ÃÃÃÃà ÃÃÃÃà "FIXME". 3.4.2. ðÃÃÃÃÃÃà ÃÃÃÃÃà IP-ÃÃÃà ÃÃà à ÃÃÃÃÃÃà ÃÃÃÃÃÃà ip 3.4.3. ðÃÃÃÃÃÃà ÃÃÃÃÃà ÃÃÃÃ39;49mâ 3.5. ARPÃÃÃà ⪠â â Viewing <Linux Advanced Routing & Traffic Control HOWTO> |
#]
libglibmm-2.4-dev - C++ wrapper for the GLib toolkit (development files) libgnetwork1.0-0 - networking wrapper library using Glib/GObject libgnetwork1.0-dev - networking wrapper library using Glib/GObject (development files) libgnome-cil - CLI binding for GNOME libgnome-desktop-2 - Utility library for loading .desktop files - runtime files libgnome-desktop-dev - Utility library for loading .desktop files - development files libgnome-dev - The GNOME libraries -- development package libgnome-keyring-dev - Development files for GNOME keyring service libgnome-keyring0 - GNOME keyring services library libgnome-mag-dev - screen magnification library for the GNOME desktop (development headers ... libgnome-media-dev - development libraries for the GNOME media utilities libgnome-media0 - runtime libraries for the GNOME media utilities libgnome-menu-dev - an implementation of the freedesktop menu specification for GNOME bash: ]: command not found [root@linux1:~]# [root@linux1:~]# ping 192.168.16.4 PING 192.168.16.4 (192.168.16.4) 56(84) bytes of data. From 192.168.16.1 icmp_seq=2 Destination Host Unreachable From 192.168.16.1 icmp_seq=3 Destination Host Unreachable From 192.168.16.1 icmp_seq=4 Destination Host Unreachable |
#host avega.kiev.ua
avega.kiev.ua has address 195.182.7.254 avega.kiev.ua mail is handled by 10 mail.avega.kiev.ua. |
#host 195.182.7.254
libglibmm-2.4-dev - C++ wrapper for the GLib toolkit (development files) libgnetwork1.0-0 - networking wrapper library using Glib/GObject libgnetwork1.0-dev - networking wrapper library using Glib/GObject (development files) libgnome-cil - CLI binding for GNOME libgnome-desktop-2 - Utility library for loading .desktop files - runtime files libgnome-desktop-dev - Utility library for loading .desktop files - development files libgnome-dev - The GNOME libraries -- development package libgnome-keyring-dev - Development files for GNOME keyring service libgnome-keyring0 - GNOME keyring services library libgnome-mag-dev - screen magnification library for the GNOME desktop (development headers ... libgnome-media-dev - development libraries for the GNOME media utilities libgnome-media0 - runtime libraries for the GNOME media utilities libgnome-menu-dev - an implementation of the freedesktop menu specification for GNOME 254.7.182.195.in-addr.arpa domain name pointer hosting.crossfire.net.ua. [root@linux1:~]# [root@linux1:~]# ping 192.168.16.4 PING 192.168.16.4 (192.168.16.4) 56(84) bytes of data. From 192.168.16.1 icmp_seq=2 Destination Host Unreachable From 192.168.16.1 icmp_seq=3 Destination Host Unreachable From 192.168.16.1 icmp_seq=4 Destination Host Unreachable |
#dig avega.kiev.ua
;avega.kiev.ua. IN A ;; ANSWER SECTION: avega.kiev.ua. 86341 IN A 195.182.7.254 ;; AUTHORITY SECTION: avega.kiev.ua. 86370 IN NS ns.avega.kiev.ua. ;; ADDITIONAL SECTION: ns.avega.kiev.ua. 86370 IN A 195.182.7.254 ;; Query time: 89 msec ;; SERVER: 192.168.16.15#53(192.168.16.15) ;; WHEN: Wed May 30 13:30:09 2007 ;; MSG SIZE rcvd: 80 [root@linux1:~]# [root@linux1:~]# ping 192.168.16.4 PING 192.168.16.4 (192.168.16.4) 56(84) bytes of data. From 192.168.16.1 icmp_seq=2 Destination Host Unreachable From 192.168.16.1 icmp_seq=3 Destination Host Unreachable From 192.168.16.1 icmp_seq=4 Destination Host Unreachable |
#host ns.avega.kiev.ua
libglibmm-2.4-dev - C++ wrapper for the GLib toolkit (development files) libgnetwork1.0-0 - networking wrapper library using Glib/GObject libgnetwork1.0-dev - networking wrapper library using Glib/GObject (development files) libgnome-cil - CLI binding for GNOME libgnome-desktop-2 - Utility library for loading .desktop files - runtime files libgnome-desktop-dev - Utility library for loading .desktop files - development files libgnome-dev - The GNOME libraries -- development package libgnome-keyring-dev - Development files for GNOME keyring service libgnome-keyring0 - GNOME keyring services library libgnome-mag-dev - screen magnification library for the GNOME desktop (development headers ... libgnome-media-dev - development libraries for the GNOME media utilities libgnome-media0 - runtime libraries for the GNOME media utilities libgnome-menu-dev - an implementation of the freedesktop menu specification for GNOME ns.avega.kiev.ua has address 195.182.7.254 [root@linux1:~]# [root@linux1:~]# ping 192.168.16.4 PING 192.168.16.4 (192.168.16.4) 56(84) bytes of data. From 192.168.16.1 icmp_seq=2 Destination Host Unreachable From 192.168.16.1 icmp_seq=3 Destination Host Unreachable From 192.168.16.1 icmp_seq=4 Destination Host Unreachable |
#host ns.avega.kiev.ua
libglibmm-2.4-1c2a-dbg - C++ wrapper for the GLib toolkit (debug symbols) libglibmm-2.4-dev - C++ wrapper for the GLib toolkit (development files) libgnetwork1.0-0 - networking wrapper library using Glib/GObject libgnetwork1.0-dev - networking wrapper library using Glib/GObject (development files) libgnome-cil - CLI binding for GNOME libgnome-desktop-2 - Utility library for loading .desktop files - runtime files libgnome-desktop-dev - Utility library for loading .desktop files - development files libgnome-dev - The GNOME libraries -- development package libgnome-keyring-dev - Development files for GNOME keyring service libgnome-keyring0 - GNOME keyring services library ... libgnome-mag2 - screen magnification library for the GNOME desktop (shared library) libgnome-media-dev - development libraries for the GNOME media utilities libgnome-media0 - runtime libraries for the GNOME media utilities libgnome-menu-dev - an implementation of the freedesktop menu specification for GNOME [root@linux1:~]# [root@linux1:~]# ping 192.168.16.4 PING 192.168.16.4 (192.168.16.4) 56(84) bytes of data. From 192.168.16.1 icmp_seq=2 Destination Host Unreachable From 192.168.16.1 icmp_seq=3 Destination Host Unreachable From 192.168.16.1 icmp_seq=4 Destination Host Unreachable |
#whois hosting.crossfire.net.ua
% Ukrainian Whois server. % Please visit http://whois.com.ua for more information. % Rights restricted by copyright. % % % % .UA whois % REDIRECT BEGIN % No entries found for HOSTING.CROSSFIRE.NET.UA % REDIRECT END % % .UA whois |
#dig avega.kiev.ua
;avega.kiev.ua. IN A ;; ANSWER SECTION: avega.kiev.ua. 86249 IN A 195.182.7.254 ;; AUTHORITY SECTION: avega.kiev.ua. 86278 IN NS ns.avega.kiev.ua. ;; ADDITIONAL SECTION: ns.avega.kiev.ua. 86278 IN A 195.182.7.254 ;; Query time: 94 msec ;; SERVER: 192.168.16.15#53(192.168.16.15) ;; WHEN: Wed May 30 13:31:42 2007 ;; MSG SIZE rcvd: 80 [root@linux1:~]# [root@linux1:~]# ping 192.168.16.4 PING 192.168.16.4 (192.168.16.4) 56(84) bytes of data. From 192.168.16.1 icmp_seq=2 Destination Host Unreachable From 192.168.16.1 icmp_seq=3 Destination Host Unreachable From 192.168.16.1 icmp_seq=4 Destination Host Unreachable |
#host avega.kiev.ua
avega.kiev.ua has address 195.182.7.254 avega.kiev.ua mail is handled by 10 mail.avega.kiev.ua. |
#lynx avega.kiev.ua
|
#lynx svl.kiev.ua
|
#ls -l /etc/apache
apache/ apache2/ |
#ls -l /etc/apache/
итого 52 -rw-r--r-- 1 root root 285 2007-05-30 13:08 access.conf drwxr-xr-x 2 root root 4096 2007-05-30 13:12 conf.d -rw-r--r-- 1 root root 35458 2007-05-30 13:27 httpd.conf lrwxrwxrwx 1 root root 15 2007-05-30 13:08 mime.types -> /etc/mime.types -rw-r--r-- 1 root root 1171 2007-05-30 13:12 modules.conf -rw-r--r-- 1 root root 297 2007-05-30 13:08 srm.conf |
#ssh linux2]
ssh: linux2]: Name or service not known |
#ssh linux2
ssh: linux2: Name or service not known |
#ssh 192.168.16.2
libglibmm-2.4-dev - C++ wrapper for the GLib toolkit (development files) libgnetwork1.0-0 - networking wrapper library using Glib/GObject libgnetwork1.0-dev - networking wrapper library using Glib/GObject (development files) libgnome-cil - CLI binding for GNOME libgnome-desktop-2 - Utility library for loading .desktop files - runtime files libgnome-desktop-dev - Utility library for loading .desktop files - development files libgnome-dev - The GNOME libraries -- development package libgnome-keyring-dev - Development files for GNOME keyring service libgnome-keyring0 - GNOME keyring services library libgnome-mag-dev - screen magnification library for the GNOME desktop (development headers ... libgnome-media-dev - development libraries for the GNOME media utilities libgnome-media0 - runtime libraries for the GNOME media utilities libgnome-menu-dev - an implementation of the freedesktop menu specification for GNOME ssh_exchange_identification: Connection closed by remote host [root@linux1:~]# [root@linux1:~]# ping 192.168.16.4 PING 192.168.16.4 (192.168.16.4) 56(84) bytes of data. From 192.168.16.1 icmp_seq=2 Destination Host Unreachable From 192.168.16.1 icmp_seq=3 Destination Host Unreachable From 192.168.16.1 icmp_seq=4 Destination Host Unreachable |
#ssh 192.168.16.4
libgnome-menu-dev - an implementation of the freedesktop menu specification for GNOME The authenticity of host '192.168.16.4 (192.168.16.4)' can't be established. RSA key fingerprint is de:b0:ed:bc:87:d4:04:46:f8:f9:26:31:c3:84:2a:63. Are you sure you want to continue connecting (yes/no)? yes Warning: Permanently added '192.168.16.4' (RSA) to the list of known hosts. root@192.168.16.4's password: Last login: Wed May 30 16:38:14 2007 Linux linux4 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=2503; pidfile=/root/.lilalo/l3-agent.pid [root@linux1:~]# [root@linux1:~]# ping 192.168.16.4 PING 192.168.16.4 (192.168.16.4) 56(84) bytes of data. From 192.168.16.1 icmp_seq=2 Destination Host Unreachable From 192.168.16.1 icmp_seq=3 Destination Host Unreachable From 192.168.16.1 icmp_seq=4 Destination Host Unreachable |
#ssh root@192.168.16.2
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!! !!!!!! !!!!!! WELLCOME TO LINUX DEBIAN !!!!!! !!!!!! !!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! 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=2646; pidfile=/root/.lilalo/l3-agent.pid [root@linux1:~]# ------------------------------------------------------------------------------------------ |
#exit
[root@linux1:~]# netstat -lnp | grep :4000 tcp 0 0 0.0.0.0:4000 0.0.0.0:* LISTEN 5267/nc [root@linux1:~]# telnet 127.0.0.GET / HTTP/1.1 Host: 192.168.16.1:4000 User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.11) Gecko/20070324 (Debian-1. 8.0.11-2) Epiphany/2.14 Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,im age/png,*/*;q=0.5 Accept-Encoding: gzip,deflate Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7 Keep-Alive: 300 Connection: keep-alive exit Connection to 192.168.16.2 closed. [root@linux1:~]# ------------------------------------------------------------------------------------------ |
#cd /etc/host.conf
bash: cd: /etc/host.conf: Not a directory |
#ssh 192.168.16.2
libglibmm-2.4-dev - C++ wrapper for the GLib toolkit (development files) libgnetwork1.0-0 - networking wrapper library using Glib/GObject libgnetwork1.0-dev - networking wrapper library using Glib/GObject (development files) libgnome-cil - CLI binding for GNOME libgnome-desktop-2 - Utility library for loading .desktop files - runtime files libgnome-desktop-dev - Utility library for loading .desktop files - development files libgnome-dev - The GNOME libraries -- development package libgnome-keyring-dev - Development files for GNOME keyring service libgnome-keyring0 - GNOME keyring services library libgnome-mag-dev - screen magnification library for the GNOME desktop (development headers ... libgnome-media-dev - development libraries for the GNOME media utilities libgnome-media0 - runtime libraries for the GNOME media utilities libgnome-menu-dev - an implementation of the freedesktop menu specification for GNOME ssh: connect to host 192.168.16.2 port 22: No route to host [root@linux1:~]# [root@linux1:~]# ping 192.168.16.4 PING 192.168.16.4 (192.168.16.4) 56(84) bytes of data. From 192.168.16.1 icmp_seq=2 Destination Host Unreachable From 192.168.16.1 icmp_seq=3 Destination Host Unreachable From 192.168.16.1 icmp_seq=4 Destination Host Unreachable |
#ssh 192.168.16.2
libglibmm-2.4-1c2a-dbg - C++ wrapper for the GLib toolkit (debug symbols) libglibmm-2.4-dev - C++ wrapper for the GLib toolkit (development files) libgnetwork1.0-0 - networking wrapper library using Glib/GObject libgnetwork1.0-dev - networking wrapper library using Glib/GObject (development files) libgnome-cil - CLI binding for GNOME libgnome-desktop-2 - Utility library for loading .desktop files - runtime files libgnome-desktop-dev - Utility library for loading .desktop files - development files libgnome-dev - The GNOME libraries -- development package libgnome-keyring-dev - Development files for GNOME keyring service libgnome-keyring0 - GNOME keyring services library ... libgnome-mag2 - screen magnification library for the GNOME desktop (shared library) libgnome-media-dev - development libraries for the GNOME media utilities libgnome-media0 - runtime libraries for the GNOME media utilities libgnome-menu-dev - an implementation of the freedesktop menu specification for GNOME [root@linux1:~]# [root@linux1:~]# ping 192.168.16.4 PING 192.168.16.4 (192.168.16.4) 56(84) bytes of data. From 192.168.16.1 icmp_seq=2 Destination Host Unreachable From 192.168.16.1 icmp_seq=3 Destination Host Unreachable From 192.168.16.1 icmp_seq=4 Destination Host Unreachable |
#ping 192.168.16.2
PING 192.168.16.2 (192.168.16.2) 56(84) bytes of data. From 192.168.16.1 icmp_seq=1 Destination Host Unreachable From 192.168.16.1 icmp_seq=2 Destination Host Unreachable From 192.168.16.1 icmp_seq=3 Destination Host Unreachable --- 192.168.16.2 ping statistics --- 6 packets transmitted, 0 received, +3 errors, 100% packet loss, time 5010ms , pipe 3 |
#ping 192.168.16.94
libgnome-desktop-2 - Utility library for loading .desktop files - runtime files libgnome-desktop-dev - Utility library for loading .desktop files - development files libgnome-dev - The GNOME libraries -- development package libgnome-keyring-dev - Development files for GNOME keyring service libgnome-keyring0 - GNOME keyring services library libgnome-mag-dev - screen magnification library for the GNOME desktop (development headers ) libgnome-mag2 - screen magnification library for the GNOME desktop (shared library) libgnome-media-dev - development libraries for the GNOME media utilities libgnome-media0 - runtime libraries for the GNOME media utilities libgnome-menu-dev - an implementation of the freedesktop menu specification for GNOME PING 192.168.16.94 (192.168.16.94) 56(84) bytes of data. --- 192.168.16.94 ping statistics --- 1 packets transmitted, 0 received, 100% packet loss, time 0ms [root@linux1:~]# [root@linux1:~]# ping 192.168.16.4 PING 192.168.16.4 (192.168.16.4) 56(84) bytes of data. From 192.168.16.1 icmp_seq=2 Destination Host Unreachable From 192.168.16.1 icmp_seq=3 Destination Host Unreachable From 192.168.16.1 icmp_seq=4 Destination Host Unreachable |
#ping 192.168.16.99
PING 192.168.16.99 (192.168.16.99) 56(84) bytes of data. --- 192.168.16.99 ping statistics --- 1 packets transmitted, 0 received, 100% packet loss, time 0ms |
#ping 192.168.16.199
libgnome-desktop-2 - Utility library for loading .desktop files - runtime files libgnome-desktop-dev - Utility library for loading .desktop files - development files libgnome-dev - The GNOME libraries -- development package libgnome-keyring-dev - Development files for GNOME keyring service libgnome-keyring0 - GNOME keyring services library libgnome-mag-dev - screen magnification library for the GNOME desktop (development headers ) libgnome-mag2 - screen magnification library for the GNOME desktop (shared library) libgnome-media-dev - development libraries for the GNOME media utilities libgnome-media0 - runtime libraries for the GNOME media utilities libgnome-menu-dev - an implementation of the freedesktop menu specification for GNOME PING 192.168.16.199 (192.168.16.199) 56(84) bytes of data. --- 192.168.16.199 ping statistics --- 2 packets transmitted, 0 received, 100% packet loss, time 1002ms [root@linux1:~]# [root@linux1:~]# ping 192.168.16.4 PING 192.168.16.4 (192.168.16.4) 56(84) bytes of data. From 192.168.16.1 icmp_seq=2 Destination Host Unreachable From 192.168.16.1 icmp_seq=3 Destination Host Unreachable From 192.168.16.1 icmp_seq=4 Destination Host Unreachable |
#ping 192.168.16.199
PING 192.168.16.199 (192.168.16.199) 56(84) bytes of data. --- 192.168.16.199 ping statistics --- 2 packets transmitted, 0 received, 100% packet loss, time 1003ms |
#ping 192.168.16.1
PING 192.168.16.1 (192.168.16.1) 56(84) bytes of data. 64 bytes from 192.168.16.1: icmp_seq=1 ttl=64 time=0.086 ms 64 bytes from 192.168.16.1: icmp_seq=2 ttl=64 time=0.057 ms --- 192.168.16.1 ping statistics --- 2 packets transmitted, 2 received, 0% packet loss, time 1001ms rtt min/avg/max/mdev = 0.057/0.071/0.086/0.016 ms |
#ping 192.168.16.2
libgnome-desktop-2 - Utility library for loading .desktop files - runtime files libgnome-desktop-dev - Utility library for loading .desktop files - development files libgnome-dev - The GNOME libraries -- development package libgnome-keyring-dev - Development files for GNOME keyring service libgnome-keyring0 - GNOME keyring services library libgnome-mag-dev - screen magnification library for the GNOME desktop (development headers ) libgnome-mag2 - screen magnification library for the GNOME desktop (shared library) libgnome-media-dev - development libraries for the GNOME media utilities libgnome-media0 - runtime libraries for the GNOME media utilities libgnome-menu-dev - an implementation of the freedesktop menu specification for GNOME PING 192.168.16.2 (192.168.16.2) 56(84) bytes of data. --- 192.168.16.2 ping statistics --- 1 packets transmitted, 0 received, 100% packet loss, time 0ms [root@linux1:~]# [root@linux1:~]# ping 192.168.16.4 PING 192.168.16.4 (192.168.16.4) 56(84) bytes of data. From 192.168.16.1 icmp_seq=2 Destination Host Unreachable From 192.168.16.1 icmp_seq=3 Destination Host Unreachable From 192.168.16.1 icmp_seq=4 Destination Host Unreachable |
#ping 192.168.16.3
PING 192.168.16.3 (192.168.16.3) 56(84) bytes of data. 64 bytes from 192.168.16.3: icmp_seq=1 ttl=64 time=0.214 ms 64 bytes from 192.168.16.3: icmp_seq=2 ttl=64 time=0.168 ms --- 192.168.16.3 ping statistics --- 2 packets transmitted, 2 received, 0% packet loss, time 1001ms rtt min/avg/max/mdev = 0.168/0.191/0.214/0.023 ms |
# /etc/hosts.allow: list of hosts that are allowed to access the system. # See the manual pages hosts_access(5), hosts_options(5) # and /usr/doc/netbase/portmapper.txt.gz # # Example: ALL: LOCAL @some_netgroup # ALL: .foobar.edu EXCEPT terminalserver.foobar.edu # # If you're going to protect the portmapper use the name "portmap" for the # daemon name. Remember that you can only use the keyword "ALL" and IP # addresses (NOT host or domain names) for the portmapper, as well as for # rpc.mountd (the NFS mount daemon). See portmap(8), rpc.mountd(8) and # /usr/share/doc/portmap/portmapper.txt.gz for further information. # ssh : 0.0.0.0/0.0.0.0 #ALL : linux2.net.nt echo : 192.168.16.2 bash : 127.0.0.1 : deny bash : 192.168.16.2 ALL : 127.0.0.1
# /etc/hosts.deny: list of hosts that are _not_ allowed to access the system. # See the manual pages hosts_access(5), hosts_options(5) # and /usr/doc/netbase/portmapper.txt.gz # # Example: ALL: some.host.name, .some.domain # ALL EXCEPT in.fingerd: other.host.name, .other.domain # # If you're going to protect the portmapper use the name "portmap" for the # daemon name. Remember that you can only use the keyword "ALL" and IP # addresses (NOT host or domain names) for the portmapper. See portmap(8) # and /usr/doc/portmap/portmapper.txt.gz for further information. # # The PARANOID wildcard matches any host whose name does not match its # address. # You may wish to enable this to ensure any programs that don't # validate looked up hostnames still leave understandable logs. In past # versions of Debian this has been the default. # ALL: PARANOID #calc: ALL #ALL: ALL #calc : ALL ALL : ALL
Время первой команды журнала | 12:45:39 2007- 5-30 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Время последней команды журнала | 13:48:28 2007- 5-30 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в журнале | 101 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент команд с ненулевым кодом завершения, % | 35.64 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент синтаксически неверно набранных команд, % | 0.99 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Суммарное время работы с терминалом *, час | 1.05 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в единицу времени, команда/мин | 1.61 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду w. В поле WHAT, соответствующем текущему терминалу, должна быть указана программа script.
Команды, при наборе которых были допущены синтаксические ошибки, выводятся перечёркнутым текстом:
$ l s-l bash: l: command not found |
Если код завершения команды равен нулю, команда была выполнена без ошибок. Команды, код завершения которых отличен от нуля, выделяются цветом.
$ test 5 -lt 4 |
Команды, ход выполнения которых был прерван пользователем, выделяются цветом.
$ find / -name abc find: /home/devi-orig/.gnome2: Keine Berechtigung find: /home/devi-orig/.gnome2_private: Keine Berechtigung find: /home/devi-orig/.nautilus/metafiles: Keine Berechtigung find: /home/devi-orig/.metacity: Keine Berechtigung find: /home/devi-orig/.inkscape: Keine Berechtigung ^C |
Команды, выполненные с привилегиями суперпользователя, выделяются слева красной чертой.
# id uid=0(root) gid=0(root) Gruppen=0(root) |
Изменения, внесённые в текстовый файл с помощью редактора, запоминаются и показываются в журнале в формате ed. Строки, начинающиеся символом "<", удалены, а строки, начинающиеся символом ">" -- добавлены.
$ vi ~/.bashrc
|
Для того чтобы изменить файл в соответствии с показанными в диффшоте изменениями, можно воспользоваться командой patch. Нужно скопировать изменения, запустить программу patch, указав в качестве её аргумента файл, к которому применяются изменения, и всавить скопированный текст:
$ patch ~/.bashrc |
Для того чтобы получить краткую справочную информацию о команде, нужно подвести к ней мышь. Во всплывающей подсказке появится краткое описание команды.
Если справочная информация о команде есть, команда выделяется голубым фоном, например: vi. Если справочная информация отсутствует, команда выделяется розовым фоном, например: notepad.exe. Справочная информация может отсутствовать в том случае, если (1) команда введена неверно; (2) если распознавание команды LiLaLo выполнено неверно; (3) если информация о команде неизвестна LiLaLo. Последнее возможно для редких команд.
Большие, в особенности многострочные, всплывающие подсказки лучше всего показываются браузерами KDE Konqueror, Apple Safari и Microsoft Internet Explorer. В браузерах Mozilla и Firefox они отображаются не полностью, а вместо перевода строки выводится специальный символ.
Время ввода команды, показанное в журнале, соответствует времени начала ввода командной строки, которое равно тому моменту, когда на терминале появилось приглашение интерпретатора
Имя терминала, на котором была введена команда, показано в специальном блоке. Этот блок показывается только в том случае, если терминал текущей команды отличается от терминала предыдущей.
Вывод не интересующих вас в настоящий момент элементов журнала, таких как время, имя терминала и других, можно отключить. Для этого нужно воспользоваться формой управления журналом вверху страницы.
Небольшие комментарии к командам можно вставлять прямо из командной строки. Комментарий вводится прямо в командную строку, после символов #^ или #v. Символы ^ и v показывают направление выбора команды, к которой относится комментарий: ^ - к предыдущей, v - к следующей. Например, если в командной строке было введено:
$ whoami
user
$ #^ Интересно, кто я?в журнале это будет выглядеть так:
$ whoami
user
Интересно, кто я? |
Если комментарий содержит несколько строк, его можно вставить в журнал следующим образом:
$ whoami
user
$ cat > /dev/null #^ Интересно, кто я?
Программа whoami выводит имя пользователя, под которым мы зарегистрировались в системе. - Она не может ответить на вопрос о нашем назначении в этом мире.В журнале это будет выглядеть так:
$ whoami user
|
Комментарии, не относящиеся непосредственно ни к какой из команд, добавляются точно таким же способом, только вместо симолов #^ или #v нужно использовать символы #=
1 2 3 4Группы команд, выполненных на разных терминалах, разделяются специальной линией. Под этой линией в правом углу показано имя терминала, на котором выполнялись команды. Для того чтобы посмотреть команды только одного сенса, нужно щёкнуть по этому названию.
LiLaLo (L3) расшифровывается как Live Lab Log.
Программа разработана для повышения эффективности обучения Unix/Linux-системам.
(c) Игорь Чубин, 2004-2008