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
.txtfile
(format: - Connects to each FTP server and checks for write permissions.
- Deletes
index.phpandindex.htmlfiles found on the server. - Uploads all files from a specified local directory to the FTP server.
- Uses multithreading to process multiple servers simultaneously.
- Mode 1 — uploads all files from the specified local directory to the FTP server.
- Mode 2 — requires creating a
payload.txtfile; its contents will be placed into files in the specified block.
- Successful uploads and deletions in
upload_log.txtandGoods_ULP.txt. - Failed attempts in
delete_log.txtandBAD_log.txt. - Excludes certain directories from processing (e.g.,
logs,wp-admin,js, - Displays final statistics: number of successful (Good) and failed (Bad) FTP
ip;port;username;password).
Modes
Logging
Logs actions:
Notes
css).