FTP Upload

How the FTP exploitation works

This function automates FTP exploitation by checking servers, deleting index files, and uploading local files.

Workflow

  • Reads FTP credentials from a user-selected .txt file
  • (format: ip;port;username;password).
  • Connects to each FTP server and checks for write permissions.
  • Deletes index.php and index.html files found on the server.
  • Uploads all files from a specified local directory to the FTP server.
  • Uses multithreading to process multiple servers simultaneously.
  • Modes

  • Mode 1 — uploads all files from the specified local directory to the FTP
  • server.
  • Mode 2 — requires creating a payload.txt file; its contents will be
  • placed into files in the specified block.

    Logging

    Logs actions:

  • Successful uploads and deletions in upload_log.txt and Goods_ULP.txt.
  • Failed attempts in delete_log.txt and BAD_log.txt.
  • Notes

  • Excludes certain directories from processing (e.g., logs, wp-admin, js,
  • css).
  • Displays final statistics: number of successful (Good) and failed (Bad) FTP
connections.