Kalau dilihat service yang ada di Kali Linux, kayaknya FTP server sudah ada. Dengan menjalankan eprintah baris sbb :
root@Hulk:~# service --status-all
[ - ] apache2
[ - ] apt-cacher-ng
[ ? ] arpwatch
[ + ] atd
[ ? ] atftpd
[ + ] avahi-daemon
[ - ] beef-xss
[ ? ] binfmt-support
[ - ] bluetooth
[ - ] bootlogs
[ ? ] bootmisc.sh
Meskipun saya tidak tahu persis apakah paket atftpd itu FTP client atau FTP server. Untuk meastikan ada FTP server, coba diinstall vsftpd.
root@Hulk:~# apt-get install vsftpd
Jalankan service :
root@Hulk:~# service vsftpd start
Cek apakah sudah jalan :
root@Hulk:~# service --status-all
[ + ] udev
[ ? ] udev-mtab
[ ? ] umountfs
[ ? ] umountnfs.sh
[ ? ] umountroot
[ - ] urandom
[ + ] vsftpd
[ - ] x11-common
Coba diakses dari client menggunakan ws_ftp, tidak bisa tersambung. Ada masalah dimana ini?
Coba direstart VSFTPD nya
root@Hulk:~# service vsftpd restart
Stopping FTP server: vsftpd.
Starting FTP server: vsftpd.
Cek apakah port 21 terbuka?
root@Hulk:~# nmap 192.168.130.125
Starting Nmap 6.46 ( http://nmap.org ) at 2014-06-18 13:31 WIB
Nmap scan report for 192.168.130.125
Host is up (0.00016s latency).
Not shown: 998 closed ports
PORT STATE SERVICE
53/tcp open domain
8291/tcp open unknown
Nmap done: 1 IP address (1 host up) scanned in 0.47 seconds
Tampaknya port 21 belum dibuka. Pantes aja gak bisa di FTP
root@Hulk:~# vi /etc/vsftpd.conf
anonymous_enable=NO
local_enable=YES
write_enable=YES
chroot_list_enable=YES
chroot_list_file=/etc/vsftpd.chroot_list
root@Hulk:~# service vsftpd restart
Stopping FTP server: vsftpd.
Starting FTP server: vsftpd.
root@Hulk:~# netstat -nat | grep 21
tcp 0 0 0.0.0.0:21 0.0.0.0:* LISTEN
tcp 0 0 192.168.130.250:53266 119.81.26.218:5938 ESTABLISHED
tcp 0 52 192.168.130.250:22 172.16.181.10:1121 ESTABLISHED
root@Hulk:~# ftp 127.0.0.1
Connected to 127.0.0.1.
220 (vsFTPd 2.3.5)
Name (127.0.0.1:msmunir): msmunir
331 Please specify the password.
Password:
500 OOPS: could not read chroot() list file:/etc/vsftpd.chroot_list
Login failed.
421 Service not available, remote server has closed connection
ftp>
http://www.gosecure.it/blog/art/93/note/install-ftp-server-on-kali-linux/
http://www.blackmoreops.com/2014/03/03/20-things-installing-kali-linux/
Kesimuplan :
FTP Server belum bisa. Transfer file menggunakan TiemViewer, aplikasi Remote Control
No comments:
Post a Comment