Hi everybody,
I wonder how to get ssh credentials from the gui. I successfully read
them through the command line using the function "prompt()"
Now I am going crazy to get it work over the Nessus client GUI. This
is the code I used:

login = port = get_kb_item("Secret/SSH/login");
password=get_kb_item("Secret/SSH/password");
sock=ssh_login(socket:ssh_soc, login:login, password:password);
buf = ssh_cmd(socket:ssh_soc, cmd:"file", timeout:60);

Do you have any suggestions?

thanks in advance


-- 
Marco
_______________________________________________
Nessus mailing list
[email protected]
http://mail.nessus.org/mailman/listinfo/nessus

Reply via email to