[Original] FTP Protocol Security Analysis
-------------------------------------------------------------------------------- FTP Protocol Security AnalysisAuthor: Xinhe
PrefaceFile Transfer Protocol (FTP) is one of the common protocols on the Internet.
Edtftpj is a very powerful FTP component, including Java,. net, and JavaScript.
The Java version is chargedEdtftpj/Pro and free open-sourceEdtftpj/free.
Used hereEdtftpj/free.
Edtftpj/free provides a stable, powerful, and easy-to-use class
How to upload a java file to an ftp server: how to upload a java file to an ftp server
Use java to upload ftp files. I use commons-net-1.4.1.zip. It contains many java Network Programming toolkit.
1. Load the commons-net-1.4.1.jar package into the
FTP is a File Transfer Protocol that supports two modes: Standard (Active) and Passive (PASV, passive mode ). The FTP client in Standard mode sends the PORT command to the FTP server. The client in Passive mode sends the PASV command to the FTP
Why use this class?
Because of an egg ache project, Project Server in another company (referred to as company A) hands, company A, their servers do not open the network permissions, afraid of problems. Because the project is under development, so
Import Packages First
Import org.apache.commons.net.ftp.FTPClient;Import Org.apache.commons.net.ftp.FTPFile;
The FtpClient class library mainly provides classes for establishing an FTP connection. Using these classes, programmers can log on remotely
/etc/vsftpd/vsftpd.conf document detailed, divided into good categories, convenient for everyone to find and learn
################ #匿名权限控制 ###############
Anonymous_enable=yes #是否启用匿名用户No_anon_password=yes #匿名用户login时不询问口令
The following four main
Project Download Address: http://download.csdn.net/download/ljj2312/10187480
Engineering structure: (used in the project, supporting the Chinese file name, pro-Test ok!)
Need to download the three jar packages above
FTP Tools class:
Package cn.ftp.
FTP is a file transfer protocol, it supports two modes, one is called standard (that is, active, active), one is Passive (that is, PASV, passive mode). The standard mode FTP client sends the PORT command to the FTP server. The passive mode FTP
FTP is a file transfer protocol, it supports two modes, one is called standard (that is, active, active mode), one is passive (that is, PASV, passive mode). Standard mode FTP client sends PORT command to FTP server. Passive mode FTP client sends
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.