If we run the ftp-anon script on our target machine on port 21 , we can know if the FTP service allows authentication anonymously without having to enter a username and password. In this case, we see how such authentication is possible on the FTP server:
In the following script, we execute the scan asynchronously so that we can execute it on a certain port and launch parallel scripts, so that when one of the scripts is finalized, the defined function is executed. In this case, we execute the scripts defined for the FTP service and each time a response is obtained from a script, the callbackFTP function ...