FTP
File Transfer Protocol
Uses
Port 20
for Data andPort 21
for Commands.It can use
UDP
overPort 69
forTFTP
.Always check for
anonymous
login being enabled.
Basic Commands
Start the service:
To login as any other user:
To specify a password:
Download a file:
Upload a file:
Passive mode:
Change the local directory for downloads:
Exit the session:
Transferring files using
powershell
:
Upload a file using
powershell
If
anonymous
login is enabled, usecurl
:
TFTP
TFTP
Uses
binary
mode for non-text files:
Uses
ASCII
mode for text files:
To look for files in the
TFTP
root:
Enumeration
Is always good practice to look for vulnerabilities:
Check where you land:
List directories:
This is the default config file for
TFTP
-->tftpd-hpa
FTP
Python
Server
FTP
Python
ServerFirst, Install the
Python
module:
Then, set the server:
By default,
pyftpdlib
usesPort 2121
,anonymous
authentication is enabled by default if we don't set a user and password.Allow users to upload files:
Create a command file
Is possible to create command files and execute then using the
-s
flag:
Copy this in to a file to create a script that will
download
a file:
Copy this in to a file to create a script that will
upload
a file to the server:
Last updated