/l3/users/18-01-2010/nt-fbsdnet/fbsd7.net.nt/root :1 :2 :3 :4 :5 :6 :7 :8 :9 :10 :11 :12 :13 :14 :15 :16 :17 :18 :19 :20 :21 |
|
#make install
![]() ===> Compressing manual pages for popa3d-standalone-1.0.2_1 ===> Registering installation for popa3d-standalone-1.0.2_1 ===> SECURITY REPORT: This port has installed the following files which may act as network servers and may therefore pose a remote security risk to the system. /usr/local/libexec/popa3d This port has installed the following startup scripts which may cause these network services to be started at boot time. /usr/local/etc/rc.d/popa3d.sh If there are vulnerabilities in these programs there may be a security risk to the system. FreeBSD makes no guarantee about the security of ports included in the Ports Collection. Please type 'make deinstall' to deinstall the port if this is a concern. For more information, and contact details about the security status of this software, see the following webpage: http://www.openwall.com/popa3d/ |
#make install
===> Compressing manual pages for popa3d-standalone-1.0.2_1 ===> Registering installation for popa3d-standalone-1.0.2_1 ===> SECURITY REPORT: This port has installed the following files which may act as network servers and may therefore pose a remote security risk to the system. /usr/local/libexec/popa3d This port has installed the following startup scripts which may cause these network services to be started at boot time. /usr/local/etc/rc.d/popa3d.sh If there are vulnerabilities in these programs there may be a security risk to the system. FreeBSD makes no guarantee about the security of ports included in the Ports Collection. Please type 'make deinstall' to deinstall the port if this is a concern. For more information, and contact details about the security status of this software, see the following webpage: http://www.openwall.com/popa3d/ |
#vim /usr/local/etc/rc.d/popa3d.sh
![]() |
#vim /usr/local/etc/rc.d/popa3d.sh
|
#sockstat -4l | grep :110
![]() |
#sockstat -4l | grep :110
![]() |
#/usr/local/etc/rc.d/popa3d.sh start
![]() /usr/local/etc/rc.d/popa3d.sh: WARNING: $popa3d_enable is not set properly - see rc.conf(5). |
#/usr/local/etc/rc.d/popa3d.sh start
/usr/local/etc/rc.d/popa3d.sh: WARNING: $popa3d_enable is not set properly - see rc.conf(5). |
#vim /etc/rc.conf
![]() --- /tmp/l3-saved-32151.7480.18087 2010-01-19 14:40:00.000000000 +0200 +++ /etc/rc.conf 2010-01-19 14:40:16.000000000 +0200 @@ -23,3 +23,4 @@ gateway_enable="YES" defaultrouter="192.168.16.254" webmin_enable="YES" +popa3d_enable="YES" |
#vim /etc/rc.conf
--- /tmp/l3-saved-32151.7480.18087 2010-01-19 14:40:00.000000000 +0200 +++ /etc/rc.conf 2010-01-19 14:40:16.000000000 +0200 @@ -23,3 +23,4 @@ gateway_enable="YES" defaultrouter="192.168.16.254" webmin_enable="YES" +popa3d_enable="YES" |
#/usr/local/etc/rc.d/popa3d.sh start
![]() Starting popa3d. |
#/usr/local/etc/rc.d/popa3d.sh start
Starting popa3d. |
#sockstat -4l | grep :110
![]() root popa3d 33600 3 tcp4 *:110 *:* |
#sockstat -4l | grep :110
root popa3d 33600 3 tcp4 *:110 *:* |
#nc 127.0.0.1 110
![]() +OK USER root +OK PASS rootpass -ERR Authentication failed (bad password?) õ ×ÁÓ ÅÓÔØ ÎÏ×ÁÑ ÐÏÞÔÁ × /var/mail/root |
#nc 127.0.0.1 110
+OK USER root +OK PASS rootpass -ERR Authentication failed (bad password?) õ ×ÁÓ ÅÓÔØ ÎÏ×ÁÑ ÐÏÞÔÁ × /var/mail/root |
#nc 127.0.0.1 110
![]() +OK USER user +OK PASS password +OK LIST +OK . QUIT +OK |
#nc 127.0.0.1 110
+OK USER user +OK PASS password +OK LIST +OK . QUIT +OK |
#cd /tmp
![]() |
#cd /tmp
|
#mkfifo /tmp/fifo
![]() |
#mkfifo /tmp/fifo
|
#ls -l /tmp/fifo
![]() prw-r--r-- 1 root wheel 0 19 ÑÎ× 14:41 /tmp/fifo |
#ls -l /tmp/fifo
prw-r--r-- 1 root wheel 0 19 ÑÎ× 14:41 /tmp/fifo |
#nc 127.0.0.1 110 < /tmp/fifo | nc -l 1100 > /tmp/fifo
![]() |
#nc 127.0.0.1 110 < /tmp/fifo | nc -l 1100 > /tmp/fifo
|
#nc 127.0.0.1 110 < /tmp/fifo | nc -l 1100 > /tmp/fifo
![]() |
#nc 127.0.0.1 110 < /tmp/fifo | nc -l 1100 > /tmp/fifo
|
#tar cvz /etc | nc -l 55555
![]() tar: Failed to open '/dev/sa0': Operation not supported õ ×ÁÓ ÅÓÔØ ÎÏ×ÁÑ ÐÏÞÔÁ × /var/mail/root |
#tar cvz /etc | nc -l 55555
tar: Failed to open '/dev/sa0': Operation not supported õ ×ÁÓ ÅÓÔØ ÎÏ×ÁÑ ÐÏÞÔÁ × /var/mail/root |
#tar cvz - /etc | nc -l 55555
![]() tar: Failed to open '/dev/sa0': Operation not supported |
#tar cvz - /etc | nc -l 55555
tar: Failed to open '/dev/sa0': Operation not supported |
#man tar
![]() |
#man tar
|
#tar cvz /etc - | nc -l 55555
![]() tar: Failed to open '/dev/sa0': Operation not supported |
#tar cvz /etc - | nc -l 55555
![]() tar: Failed to open '/dev/sa0': Operation not supported |
#tar cvz /etc - | nc -l 55555
tar: Failed to open '/dev/sa0': Operation not supported |
#tar cvf /etc - | nc -l 55555
![]() tar: Failed to open '/etc': Is a directory ^C |
#tar cvf /etc - | nc -l 55555
![]() tar: Failed to open '/etc': Is a directory ^C |
#tar cv /etc - | nc -l 55555
![]() tar: Failed to open '/dev/sa0': Operation not supported |
#tar cv /etc - | nc -l 55555
tar: Failed to open '/dev/sa0': Operation not supported |
#tar -cvf - /etc | nc -l 55555
![]() a etc/rc.d/routed a etc/rc.d/routing a etc/rc.d/rpcbind a etc/rc.d/rtadvd a etc/rc.d/rwho a etc/rc.d/savecore a etc/rc.d/sdpd a etc/rc.d/securelevel a etc/rc.d/sendmail a etc/rc.d/serial ... a etc/bluetooth/hcsecd.conf a etc/bluetooth/hosts a etc/bluetooth/protocols a etc/X11/xorg.conf a etc/defaults/rc.conf a etc/defaults/bluetooth.device.conf a etc/defaults/devfs.rules a etc/defaults/pccard.conf a etc/defaults/periodic.conf õ ×ÁÓ ÅÓÔØ ÎÏ×ÁÑ ÐÏÞÔÁ × /var/mail/root |
#tar -cvf - /etc | nc -l 55555
a etc/rc.d/routed a etc/rc.d/routing a etc/rc.d/rpcbind a etc/rc.d/rtadvd a etc/rc.d/rwho a etc/rc.d/savecore a etc/rc.d/sdpd a etc/rc.d/securelevel a etc/rc.d/sendmail a etc/rc.d/serial ... a etc/bluetooth/hcsecd.conf a etc/bluetooth/hosts a etc/bluetooth/protocols a etc/X11/xorg.conf a etc/defaults/rc.conf a etc/defaults/bluetooth.device.conf a etc/defaults/devfs.rules a etc/defaults/pccard.conf a etc/defaults/periodic.conf õ ×ÁÓ ÅÓÔØ ÎÏ×ÁÑ ÐÏÞÔÁ × /var/mail/root |
#tar -czvf - /etc | nc -l 55555
![]() õ ×ÁÓ ÅÓÔØ ÎÏ×ÁÑ ÐÏÞÔÁ × /var/mail/root |
#tar -czvf - /etc | nc -l 55555
![]() õ ×ÁÓ ÅÓÔØ ÎÏ×ÁÑ ÐÏÞÔÁ × /var/mail/root |
#vim /etc/inetd.conf
![]() |
#vim /etc/inetd.conf
![]() |
#vim /etc/inetd.conf
|
#vim /etc/services
|
#:q!
![]() bc 1.06 Copyright 1991-1994, 1997, 1998, 2000 Free Software Foundation, Inc. This is free software with ABSOLUTELY NO WARRANTY. For details type `warranty'. 4+4 8 q 0 qiot 0 quit |
#:q!
bc 1.06 Copyright 1991-1994, 1997, 1998, 2000 Free Software Foundation, Inc. This is free software with ABSOLUTELY NO WARRANTY. For details type `warranty'. 4+4 8 q 0 qiot 0 quit |
#vim /etc/services
![]() --- /tmp/l3-saved-32151.4284.9087 2010-01-19 15:27:04.000000000 +0200 +++ /etc/services 2010-01-19 15:27:27.000000000 +0200 @@ -2120,3 +2120,4 @@ dbbrowse 47557/tcp #Databeam Corporation dbbrowse 47557/udp #Databeam Corporation vnc1 5902/tcp +calc 5555/tcp |
#vim /etc/services
--- /tmp/l3-saved-32151.4284.9087 2010-01-19 15:27:04.000000000 +0200 +++ /etc/services 2010-01-19 15:27:27.000000000 +0200 @@ -2120,3 +2120,4 @@ dbbrowse 47557/tcp #Databeam Corporation dbbrowse 47557/udp #Databeam Corporation vnc1 5902/tcp +calc 5555/tcp |
#vim /etc/inetd.conf
![]() --- /tmp/l3-saved-32151.24990.26819 2010-01-19 15:27:50.000000000 +0200 +++ /etc/inetd.conf 2010-01-19 15:28:37.000000000 +0200 @@ -125,3 +125,5 @@ # #ftp-proxy stream tcp nowait root /usr/libexec/ftp-proxy ftp-proxy vnc1 stream tcp nowait nobody /usr/X11R6/bin/Xvnc Xvnc -inetd -query localhost -depth 24 -geometry 1000x700 SecurityTypes=none + +calc stream tcp nowait root /usr/bin/bc |
#vim /etc/inetd.conf
--- /tmp/l3-saved-32151.24990.26819 2010-01-19 15:27:50.000000000 +0200 +++ /etc/inetd.conf 2010-01-19 15:28:37.000000000 +0200 @@ -125,3 +125,5 @@ # #ftp-proxy stream tcp nowait root /usr/libexec/ftp-proxy ftp-proxy vnc1 stream tcp nowait nobody /usr/X11R6/bin/Xvnc Xvnc -inetd -query localhost -depth 24 -geometry 1000x700 SecurityTypes=none + +calc stream tcp nowait root /usr/bin/bc |
#/etc/rc.d/inetd restart
![]() Stopping inetd. Starting inetd. |
#/etc/rc.d/inetd restart
Stopping inetd. Starting inetd. |
#sockstat -4l | less
![]() |
#sockstat -4l | less
|
#sockstat -4l | grep 5555
![]() root inetd 34058 6 tcp4 *:5555 *:* |
#sockstat -4l | grep 5555
root inetd 34058 6 tcp4 *:5555 *:* |
#sockstat -4 | less
![]() |
#sockstat -4 | less
|
#sockstat -4 | grep sshd
![]() root sshd 32044 3 tcp4 192.168.16.27:22 192.168.16.227:3431 root sshd 31693 3 tcp4 192.168.16.27:22 192.168.16.32:64465 root sshd 31185 3 tcp4 192.168.16.27:22 192.168.16.24:55723 root sshd 885 3 tcp46 *:22 *:* root sshd 885 4 tcp4 *:22 *:* õ ×ÁÓ ÅÓÔØ ÎÏ×ÁÑ ÐÏÞÔÁ × /var/mail/root |
#sockstat -4 | grep sshd
root sshd 32044 3 tcp4 192.168.16.27:22 192.168.16.227:3431 root sshd 31693 3 tcp4 192.168.16.27:22 192.168.16.32:64465 root sshd 31185 3 tcp4 192.168.16.27:22 192.168.16.24:55723 root sshd 885 3 tcp46 *:22 *:* root sshd 885 4 tcp4 *:22 *:* õ ×ÁÓ ÅÓÔØ ÎÏ×ÁÑ ÐÏÞÔÁ × /var/mail/root |
#sockstat -4l | grep sshd
![]() root sshd 885 3 tcp46 *:22 *:* root sshd 885 4 tcp4 *:22 *:* |
#sockstat -4l | grep sshd
root sshd 885 3 tcp46 *:22 *:* root sshd 885 4 tcp4 *:22 *:* |
#sockstat -4l | grep 5555
![]() root inetd 34058 6 tcp4 *:5555 *:* |
#sockstat -4l | grep 5555
root inetd 34058 6 tcp4 *:5555 *:* |
#whereis inetd
![]() inetd: /usr/sbin/inetd /usr/share/man/man8/inetd.8.gz /usr/src/usr.sbin/inetd |
#whereis inetd
inetd: /usr/sbin/inetd /usr/share/man/man8/inetd.8.gz /usr/src/usr.sbin/inetd |
#ldd /usr/sbin/inetd
![]() /usr/sbin/inetd: libutil.so.5 => /lib/libutil.so.5 (0x28082000) libwrap.so.4 => /usr/lib/libwrap.so.4 (0x2808e000) libipsec.so.2 => /lib/libipsec.so.2 (0x28095000) libc.so.6 => /lib/libc.so.6 (0x2809b000) |
#ldd /usr/sbin/inetd
/usr/sbin/inetd: libutil.so.5 => /lib/libutil.so.5 (0x28082000) libwrap.so.4 => /usr/lib/libwrap.so.4 (0x2808e000) libipsec.so.2 => /lib/libipsec.so.2 (0x28095000) libc.so.6 => /lib/libc.so.6 (0x2809b000) |
#ldd /usr/sbin/inetd
![]() /usr/sbin/inetd: libutil.so.5 => /lib/libutil.so.5 (0x28082000) libwrap.so.4 => /usr/lib/libwrap.so.4 (0x2808e000) libipsec.so.2 => /lib/libipsec.so.2 (0x28095000) libc.so.6 => /lib/libc.so.6 (0x2809b000) |
#ldd /usr/sbin/inetd
/usr/sbin/inetd: libutil.so.5 => /lib/libutil.so.5 (0x28082000) libwrap.so.4 => /usr/lib/libwrap.so.4 (0x2808e000) libipsec.so.2 => /lib/libipsec.so.2 (0x28095000) libc.so.6 => /lib/libc.so.6 (0x2809b000) |
#man tcpd
![]() |
#man tcpd
![]() |
#man tcpd
|
#whereis tcpd
![]() tcpd: /usr/libexec/tcpd /usr/share/man/man8/tcpd.8.gz /usr/src/libexec/tcpd |
#whereis tcpd
![]() tcpd: /usr/libexec/tcpd /usr/share/man/man8/tcpd.8.gz /usr/src/libexec/tcpd |
#whereis tcpd
tcpd: /usr/libexec/tcpd /usr/share/man/man8/tcpd.8.gz /usr/src/libexec/tcpd |
#vim /etc/inetd.conf
--- /tmp/l3-saved-32151.11020.25065 2010-01-19 15:47:02.000000000 +0200 +++ /etc/inetd.conf 2010-01-19 15:50:00.000000000 +0200 @@ -126,4 +126,4 @@ #ftp-proxy stream tcp nowait root /usr/libexec/ftp-proxy ftp-proxy vnc1 stream tcp nowait nobody /usr/X11R6/bin/Xvnc Xvnc -inetd -query localhost -depth 24 -geometry 1000x700 SecurityTypes=none -calc stream tcp nowait root /usr/bin/bc +calc stream tcp nowait root /usr/libexec/tcpd /usr/bin/bc |
#/etc/rc.d/inetd restart
Stopping inetd. Starting inetd. |
#sockstat -4l | grep 5555
root inetd 34345 6 tcp4 *:5555 *:* |
#/etc/rc.d/inetd restart
![]() Stopping inetd. Starting inetd. |
#/etc/rc.d/inetd restart
Stopping inetd. Starting inetd. |
#vim /etc/inetd.conf
![]() |
#vim /etc/inetd.conf
|
#vim /etc/hosts.
![]() |
#vim /etc/hosts.
![]() |
#vim /etc/hosts.allow
![]() --- /tmp/l3-saved-32151.18895.3515 2010-01-19 15:52:23.000000000 +0200 +++ /etc/hosts.allow 2010-01-19 15:52:59.000000000 +0200 @@ -20,6 +20,7 @@ # Start by allowing everything (this prevents the rest of the file # from working, so remove it when you need protection). # The rules here work on a "First match wins" basis. +bc : 192.168.16.32 : deny ALL : ALL : allow # Wrapping sshd(8) is not normally a good idea, but if you |
#vim /etc/hosts.allow
--- /tmp/l3-saved-32151.18895.3515 2010-01-19 15:52:23.000000000 +0200 +++ /etc/hosts.allow 2010-01-19 15:52:59.000000000 +0200 @@ -20,6 +20,7 @@ # Start by allowing everything (this prevents the rest of the file # from working, so remove it when you need protection). # The rules here work on a "First match wins" basis. +bc : 192.168.16.32 : deny ALL : ALL : allow # Wrapping sshd(8) is not normally a good idea, but if you |
#vim /etc/hosts.allow
![]() --- /tmp/l3-saved-32151.25213.3339 2010-01-19 15:53:54.000000000 +0200 +++ /etc/hosts.allow 2010-01-19 15:58:18.000000000 +0200 @@ -20,9 +20,12 @@ # Start by allowing everything (this prevents the rest of the file # from working, so remove it when you need protection). # The rules here work on a "First match wins" basis. -bc : 192.168.16.32 : deny + +#tcpd : 192.168.16.32 : allow ALL : ALL : allow + + # Wrapping sshd(8) is not normally a good idea, but if you # need to do it, here's how #sshd : .evil.cracker.example.com : deny |
#vim /etc/hosts.allow
--- /tmp/l3-saved-32151.25213.3339 2010-01-19 15:53:54.000000000 +0200 +++ /etc/hosts.allow 2010-01-19 15:58:18.000000000 +0200 @@ -20,9 +20,12 @@ # Start by allowing everything (this prevents the rest of the file # from working, so remove it when you need protection). # The rules here work on a "First match wins" basis. -bc : 192.168.16.32 : deny + +#tcpd : 192.168.16.32 : allow ALL : ALL : allow + + # Wrapping sshd(8) is not normally a good idea, but if you # need to do it, here's how #sshd : .evil.cracker.example.com : deny |
#:q!
![]() calc stream tcp nowait root /usr/libexec/tcpd /usr/bin/bc |
#:q!
calc stream tcp nowait root /usr/libexec/tcpd /usr/bin/bc |
#grep 192.168 /etc/hosts.allow
![]() #tcpd : 192.168.16.32 : allow |
#grep 192.168 /etc/hosts.allow
#tcpd : 192.168.16.32 : allow |
#grep 192.168 /etc/hosts.allow -A 1
![]() #tcpd : 192.168.16.32 : allow ALL : ALL : allow |
#grep 192.168 /etc/hosts.allow -A 1
#tcpd : 192.168.16.32 : allow ALL : ALL : allow |
Время первой команды журнала | 13:38:25 2010- 1-19 | |||||||||||||||||||||||||||||||||||||||||||||||||||
Время последней команды журнала | 14:59:21 2010- 1-19 | |||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в журнале | 101 | |||||||||||||||||||||||||||||||||||||||||||||||||||
Процент команд с ненулевым кодом завершения, % | 3.96 | |||||||||||||||||||||||||||||||||||||||||||||||||||
Процент синтаксически неверно набранных команд, % | 0.00 | |||||||||||||||||||||||||||||||||||||||||||||||||||
Суммарное время работы с терминалом *, час | 1.35 | |||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в единицу времени, команда/мин | 1.25 | |||||||||||||||||||||||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду 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