Hi folks,
I need to read a text file on a remote host, I cant use smb since the
file is not in a shared directory (and I am using Linux, the file in
fact is in the /etc/samba/ directory).
I want to use ssh with the following code:
buf = ssh_cmd(socket:22, cmd:"cat /etc/samba/smb.conf", timeout:60);
if (buf) {
my_report += buf;
}
display("\nbuffer: ",my_report," ",strlen(buf),"\n");
But this doesn't work, and it gives as result an empty char.
Do you have any better idea, or an advice about how make this work?
--
Marco
_______________________________________________
Nessus mailing list
[email protected]
http://mail.nessus.org/mailman/listinfo/nessus