当前位置:网站首页>【Mongodb】READ_ME_TO_RECOVER_YOUR_DATA,数据库被恶意删除
【Mongodb】READ_ME_TO_RECOVER_YOUR_DATA,数据库被恶意删除
2022-06-24 19:38:00 【顾鸟】
1. 介绍
自己个人的一台百度云云服务器上安装了MongoDB,用的默认配置(端口是默认端口,也没设置密码),后来就把这事抛到脑后了,也因为经常用无线网卡上网,ip经常是动态的,云服务器的安全组就放开了所有的ip。完全就是一台裸奔在云上的数据库 ,几天后发现MongoDB客户端连接失效,重连了一下MongoDB,建的库不见了,留下了一个新库:READ_ME_TO_RECOVER_YOUR_DATA,里面只有一张表:README,大致内容是说被攻击了,需要支付比特币才能恢复。

2. 解决方法
我使用的是配置用户名和密码的方式来现在访问服务器上的mongodb数据库,还有其他方法。我是通过宝塔面板工具来访问终端的,也可以使用其他shell工具。
连接 mongodb

为数据库库添加用户和读写权限
use hcs-server db.createUser({ user: "guniao", pwd: "123456", roles: [{ role: "readWrite", db: "hcs-server" }] })验证,输出1表示验证成功
db.auth("guniao","123456")修改mongodb配置文件中的authorization 为 enabled,并重启

使用Mongodb Compass 可视化工具再次验证用户和密码,并重新导入数据


修改后台连接mongodb的URL地址

参考连接:
https://blog.csdn.net/qq_34241004/article/details/120704586
https://www.freesion.com/article/3431841152/
边栏推荐
- 华大04a工作模式/低功耗模式
- 【个人实验报告】
- Learn more about the practical application of sentinel
- Can AI chat robots replace manual customer service?
- Idea close global search box
- 进程的通信方式
- [Software Engineering] key points at the end of the period
- Why can some programmers get good offers with average ability?
- Virtual private network foundation
- Rip protocol of dynamic routing protocol
猜你喜欢

关于自动控制原理资料更新

YGG 近期游戏合作伙伴一览

Online filing process

What aspects should we start with in the feasibility analysis of dry goods?

Docker 安装 Redis-5.0.12,详细步骤

Seven principles of software design

Description of transparent transmission function before master and slave of kt6368a Bluetooth chip, 2.4G frequency hopping automatic connection

NIO、BIO、AIO

NiO, bio, AIO

Basic principles of spanning tree protocol
随机推荐
Web攻击之CSRF和SSRF
seven
Main steps of system test
故障安全移动面板KTP900F Mobile下载程序提示无法下载,目标设备正在运行或未处于传输模式的解决办法
Introduction, installation and use of postman tool
Web security XSS foundation 06
关于自动控制原理资料更新
Docker installs redis-5.0.12. Detailed steps
Online filing process
Structure du disque
FANUC机器人_KAREL编程入门学习(1)
Data communication foundation - Ethernet port mirroring and link aggregation
Programmers become gods by digging holes in one year, carrying flags in five years and becoming gods in ten years
Redis-跳表
Fanuc robot_ Introduction to Karel programming (1)
Information update on automatic control principle
Visitor tweets tell you which groups are consuming blind boxes
【软件工程】期末重点
HTTP的缓存控制
一个女孩子居然做了十年硬件。。。