1
2
|
bind 127.0.0.1 |
1
|
iptables -A INPUT -s x.x.x.x -p tcp --dport 6379 -j ACCEPT |
1
|
setsid sudo -u redis /usr/bin/redis-server /etc/redis/redis .conf |
1
2
|
root@kali:~ # ps -elf|grep redis 1 S redis 14720 1 0 80 0 - 8979 - 08:40 ? 00:00:00 /usr/bin/redis-server /etc/redis/redis .conf` ` |
1
|
在 /etc/redis/redis .conf中配置如下 |
1
|
找到port 6379这行,把6379改为8888 |
1
2
3
4
5
|
root@kali:~ # redis-cli -h 192.168.10.2 redis 192.168.10.2:6379> keys * (error) ERR operation not permitted redis 192.168.10.2:6379> auth @nsF0cus!@ # OK |
1
2
|
root@kali:~ # echo -e "xxlegend"|sha256sum b59869cac63a67e7ee97e6923a75811ff58bd4936ed3be3480b46145d43ae335` |
1
|
FLUSHDB, FLUSHALL, KEYS, PEXPIRE, DEL, CONFIG, SHUTDOWN, BGREWRITEAOF, BGSAVE, SAVE, SPOP, SREM, RENAME, DEBUG, EVAL` |
1
2
3
4
|
rename- command CONFIG CONFIG_b9fc8327c4dee7 rename- command SHUTDOWN SHUTDOWN_b9fc8327c4dee7 rename- command FLUSHDB “” rename- command FLUSHALL “” |
本文始发于微信公众号(飓风网络安全):Redis安全规范----check list
免责声明:文章中涉及的程序(方法)可能带有攻击性,仅供安全研究与教学之用,读者将其信息做其他用途,由读者承担全部法律及连带责任,本站不承担任何法律及连带责任;如有问题可邮件联系(建议使用企业邮箱或有效邮箱,避免邮件被拦截,联系方式见首页),望知悉。
- 左青龙
- 微信扫一扫
-
- 右白虎
- 微信扫一扫
-
评论