Ethical Hacking Learn to find vulnerabilities before the bad guys do! Gain real world hands on hacking experience in our state of the art hacking lab. Course designed and taught by expert instructors with years of penetration testing experience. 12 student maximum in every class. Certification attempt included in every package. | Computer Forensics Training at InfoSec Institute Gain the in-demand skills of a certified computer examiner, learn to recover trace data left behind by fraud, theft, and cybercrime perpetrators. Discover the source of computer crime and abuse at your organization so that it never happens again. All of our class sizes are guaranteed to be 12 students or less to facilitate one-on-one interaction with one of our expert instructors. |

| Subject: | reading a text file on a remote host |
|---|---|
| Date: | Sat, 16 Feb 2008 16:51:42 +0100 |
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
Nessus@list.nessus.org
http://mail.nessus.org/mailman/listinfo/nessus
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: plugin 10919 check open ports, Michel Arboi |
|---|---|
| Next by Date: | Re: reading a text file on a remote host, Michel Arboi |
| Previous by Thread: | plugin 10919 check open ports, Kevin Mc Grath |
| Next by Thread: | Re: reading a text file on a remote host, Michel Arboi |
| Indexes: | [Date] [Thread] [Top] [All Lists] |