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: [Full-disclosure] SQL Injection + Stored Procedures |
|---|---|
| Date: | Tue, 31 Oct 2006 20:42:25 +0000 |
Andres, Stored procedures are saved in the syscomments table in the text field. They are then tied to the sysobjects table by the field id. SELECT sc.Text FROM syscomments sc JOIN sysobjects so ON so.id = sc.id WHERE so.Name LIKE '%PROC_NAME%' That query would retrieve the body of the stored procedure based on the stored procedure name. Be warned that the stored procedure body can be in multiple rows depending on how big the sp is. Thanks, Mike de Libero -------------- Original message ---------------------- From: "Andres Molinetti" <andymolinetti@hotmail.com>
HI, Does anyone know how to get the body of a stored procedure in MS SQL Server through a SELECT statement? In other words, are the Stored Procedures bodies saved in any accesible system table? Cheers, Andy. _________________________________________________________________ Grandes o?=xitos, superho?=roes, imitaciones, cine y TV... http://es.msn.kiwee.com/ Lo mejor para tu mo?=vil. _______________________________________________ Full-Disclosure - We believe in it. Charter: http://lists.grok.org.uk/full-disclosure-charter.html Hosted and sponsored by Secunia - http://secunia.com/
_______________________________________________ Full-Disclosure - We believe in it. Charter: http://lists.grok.org.uk/full-disclosure-charter.html Hosted and sponsored by Secunia - http://secunia.com/
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: [Full-disclosure] unreliable vulnerability reports en-masee [was:Re: vulnerability in Symantec products], Dave \"No, not that one\" Korn |
|---|---|
| Next by Date: | [Full-disclosure] Directory listing on B-FOCuS Wireless 802.11b/g ADSL2+ Router by "ECI Telecom LTD", LegendaryZion |
| Previous by Thread: | [Full-disclosure] SQL Injection + Stored Procedures, Andres Molinetti |
| Next by Thread: | Re: [Full-disclosure] [WEB SECURITY] Re: SQL Injection + Stored Procedures, Chris Ramirez |
| Indexes: | [Date] [Thread] [Top] [All Lists] |