permalink: spells/ftp
tags:
- Application/ftp
- Protocol/FTP
- Application/sudo
- AttackCycle/PrivEscThere are a lot more obscure commands as well, though the above is sufficient for basic operations.
Note that you cannot receive files using FTP with a single telnet/netcat session, as file transfers are conducted over a separate channel (either a channel originating from port 20 on the server for "active" mode or a random port above 1023 on the client for "passive" mode). Which is a lot of work, but sometimes you just don't have an FTP client.permalink: spells/transfer-files-over-ftp-using-netcat
tags:
- Application/netcat
- Protocol/FTP
- HowToTransfer files over FTP using netcat
FTPS (FTP over SSL) uses port 990 by default. Mostly supplanted by SFTP.permalink: spells/ftps
tags:
- Protocol/FTPSFTPS
If the ftp binary can be run with NOPASSWD via sudo, then you can break out into a root shell using !/bin/sh.