NVT Beispiel
Zur Navigation springen
Zur Suche springen
NVTs werden in der Script Sprache NessusAttackScriptingLanguage geschrieben
if(description) { script_version ("1.0"); script_name("FTP Banner Retriever"); script_summary("Print the FTP Banner, if available"); script_copyright("This script is under GNU GPL v2+"); FTP_PORT = 21; ftpsocket = open_sock_tcp(FTP_PORT); if(ftpsocket) { data = recv_line(socket: ftpsocket, length:1024); if(data) { display("The server’s FTP Banner is: \n", data, "\n"); } else { display("The FTP server banner cannot be acquired\n"); } close(ftpsocket); } exit(0); }