ftp サーバ
hackkit
パッケージのインストール
inetutils-ftpd をインストールします。
ude:~# apt-get install inetutils-ftpd
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
inetutils-ftpd
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 94.1kB of archives.
After this operation, 197kB of additional disk space will be used.
Get:1 http://ftp.jp.debian.org lenny/main inetutils-ftpd 2:1.5.dfsg.1-9 [94.1kB]
Fetched 94.1kB in 2s (33.2kB/s)
Selecting previously deselected package inetutils-ftpd.
(Reading database ... 10039 files and directories currently installed.)
Unpacking inetutils-ftpd (from .../inetutils-ftpd_2%3a1.5.dfsg.1-9_armel.deb) ...
Processing triggers for man-db ...
Setting up inetutils-ftpd (2:1.5.dfsg.1-9) ...
ude:~#
/etc/inetd.cof への追加
inetd.conf に /usr/sbin/ftpd を起動する設定を追加します。
ude:~# echo "ftp stream tcp nowait root /usr/sbin/tcpd ftpd" >> /etc/inetd.conf
ude:~# tail /etc/inetd.conf
# run this only on machines acting as "boot servers."
#:RPC: RPC based services
#:HAM-RADIO: amateur-radio services
#:OTHER: Other services
## netbios-ssn stream tcp nowait root /usr/sbin/tcpd /usr/sbin/smbd
ftp stream tcp nowait root /usr/sbin/tcpd ftpd
ude:~#
inetd.conf の再読込み
inetd に inetd.conf を読込み直させます。
ude:~# kill -HUP `cat /var/run/inetd.pid `
ude:~#
確認
別マシン(HS-DHGL)から ftp で接続してみます。
yasunari@sil:~$ ftp ude
Connected to ude.
220 ude FTP server (GNU inetutils 1.5) ready.
Name (ude:yasunari): yasunari
331 Password required for yasunari.
Password:
230- Linux ude 2.6.16.16-arm1 #37 Tue May 20 10:01:57 JST 2008 armv5tejl
230-
230- The programs included with the Debian GNU/Linux system are free software;
230- the exact distribution terms for each program are described in the
230- individual files in /usr/share/doc/*/copyright.
230-
230- Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
230- permitted by applicable law.
230 User yasunari logged in.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> bye
221 Goodbye.
yasunari@sil:~$
第三世代 LinkStation/玄箱をハックしよう
LinkStation/玄箱をハックしよう
Copyright (C) 2008-2009 Yasunari Yamashita. All Rights Reserved.
yasunari @ yamasita.jp 山下康成@京都府向日市