🟥
LSWSec - Offensive
  • Introduction
  • File transfer
    • Transferring Files
      • Transferring Files - Linux
      • Transferring Files - Windows
  • Recon
    • Passive information Gathering
      • Website
      • Finding SubDomains
        • DNS
        • DNS Zone Transfer
    • Subdomain Enumeration
    • OSINT
      • Email
      • People
      • Social Media
      • Username and Accounts
      • Passwords
      • Business
      • Image and Location
    • Active Information Gathering
      • Nmap
      • Netcat
      • ss
      • Unknown Port Scanning
      • Footprinting
        • FTP
        • SMB
        • NFS
        • DNS
    • Vulnerability Searching
  • Ports
    • 21 - FTP
    • 22 - SSH
    • 23 - Telnet
    • 25 - SMTP
    • 69 - TFTP
    • 80 - HTTP
    • 88 - Kerberos
    • 110 - Pop3
    • 111 - RPCBind
    • 119 - NNTP
    • 135 - MSRPC
    • 139/445 - SMB
      • PSExec
      • Nmap
      • Other tools
    • 143/993 - IMAP
    • 161/162 - SNMP
    • 389/636 - LDAP
    • 443 - HTTPS
    • 554 - RTSP
    • 587 - Submission
    • 631 - Cups
    • 1433 - MsSQL
    • 2049 - NFS
    • 3306 - MySQL
    • 3389 - RDP
  • Web
    • useful information
    • Web Proxy
      • Burp
    • Web Content Discovery
    • SQL
    • Web Fuzzing with FFUF
      • Directory Fuzzing
      • Domain Fuzzing
      • Paramater fuzzing
    • Local File Inclusion
      • LFI
      • Basic Bypass
    • Authentication Bypass
    • IDOR
  • Priv-esc
    • Windows
      • mimikatz
  • Pivoting
    • Info
    • Locating other machines
    • proxy
    • SSH tunneling/port forwarding
    • plink
    • socat
    • chisel
    • sshuttle
    • connecting to windows environments with a user account
  • Command and Control
    • powershell empire
    • Armitage
  • Active Directory
    • Debugging DNS
    • NTLM Authenticated Services
    • LDAP Bind Credentials
Powered by GitBook
On this page
  1. Recon
  2. Active Information Gathering
  3. Footprinting

FTP

  • File transfer protocol

  • usually credentials are needed for FTP

  • FTP is clear text so could be sniffed

TFTP

  • Trivial file transfer protocol

  • does not provide user auth

  • uses UDP

  • provides access based only on the read write permissions of a file in the OS

  • used exclusibely in directories and with files that have been shared with alluses and can be read and written globally

  • may only be used in local and protected networks

vsftp

  • config file at /etc/vsftpd.conf

  • user list at /etc/ftpusers

dangerous settings

anonymous_enable=YES

anon_upload_enable=YES

anon_mkdir_write_enable=YES

no_anon_password=YES

anon_root=/home/username/ftp

write_enable=YES

download all available files

wget -m --no-passive ftp://anonymous:anonymous@<ip>

Nmap

update scripts

nmap --script-updatedb

find scripts for ftp

find / -type f -name ftp* 2>/dev/null | grep scripts

service interaction

nc -nv <ip> 21

telnet <ip> 21

openssl s_client -connect <ip>:21 -starttls ftp

PreviousFootprintingNextSMB

Last updated 10 days ago