惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

The GitHub Blog
The GitHub Blog
有赞技术团队
有赞技术团队
Apple Machine Learning Research
Apple Machine Learning Research
V
V2EX
Engineering at Meta
Engineering at Meta
美团技术团队
H
Hackread – Cybersecurity News, Data Breaches, AI and More
博客园 - 司徒正美
I
InfoQ
S
SegmentFault 最新的问题
博客园 - 叶小钗
N
Netflix TechBlog - Medium
Y
Y Combinator Blog
IT之家
IT之家
博客园 - Franky
大猫的无限游戏
大猫的无限游戏
人人都是产品经理
人人都是产品经理
T
The Blog of Author Tim Ferriss
月光博客
月光博客
The Cloudflare Blog
U
Unit 42
GbyAI
GbyAI
L
LangChain Blog
Microsoft Azure Blog
Microsoft Azure Blog

Phpmyadmin on 轻风云

phpMyAdmin 4.7.x CSRF 漏洞利用
centos7安装phpmyadmin
2018-03-25 · via Phpmyadmin on 轻风云

首先服务器要有web 环境

有时候会安装不成功,提示没有可用软件包,则需要安装Remi源

1
2
yum install epel-release
rpm -ivh http://rpms.famillecollet.com/enterprise/remi-release-7.rpm

修改配置

1
vim /etc/httpd/conf.d/phpMyadmin.conf

Require ip 127.0.0.1 Require ip ::1 注释
添加Require all granted

即可在浏览器本地通过localhost/phpmyadmin 访问

img

修改配置

1
vim /etc/phpMyAdmin/config.inc.php
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
$cfg['Servers'][$i]['host'] = 'localhost';
//设定MySQL所在的主机名或IP地址。如127.0.0.1这步很重要

$cfg['Servers'][$i]['auth_type'] = 'cookie';
// 设定进入phpMyAdmin管理MySQL的方式,共有三个选项:config、http、cookie。config是按配置文件登录,为默认方式, 无需任何确认;http是使用HTTP登录管理,在Apache模块安装下才能支持;cookie是最通用的管理方式。后两种方式的用户名和密码都是直接到数据库中验证。

$cfg['Servers'][$i]['user'] = 'root' ;
//设定管理MySQL的账号。

$cfg['Servers'][$i]['password'] = '' ;
//设定管理MySQL的密码。 

设置完成后,保存config.inc.php文件,重启Apache,测试:访问http://localhost/phpMyAdmin/

如果访问报错如下图:
img

不慌这种情况是给phpMyAdmin目录的权限太高,给755权限就不会报错了

1
chmod -R 755 /etc/phpMyadmin