数据库被黑了

要恢复丢失的数据库并避免泄漏:请将0.035比特币(BTC)发送到我们的比特币地址1sga4vu8h7hymmfua6iqu7p8hez8bsegn,并通过电子邮件与您的服务器IP或域名和付款证明联系。您的数据库已下载并备份到我们的服务器上。我们现在拥有的备份:bbs、blog、chat、laravelshop。任何没有您的服务器IP地址或域名和付款证明一起的电子邮件都将被忽略。如果我们在未来10天内没有收到您的付款,我们将公开您的数据库或使用它们。| 1sga4vu8h7hymmfua6iqu7p8hez8bsegn dbrecovery@annonmail.to

 

mysql> show databases; +--------------------+ | Database | +--------------------+ | information_schema | | PLEASE_READ_ME_VVV | | mysql | | performance_schema | | sys | +--------------------+ 5 rows in set (0.00 sec)

mysql> use PLEASE_READ_ME_VVV; Reading table information for completion of table and column names You can turn off this feature to get a quicker startup with -A

Database changed mysql> show tables; +------------------------------+ | Tables_in_PLEASE_READ_ME_VVV | +------------------------------+ | WARNING | +------------------------------+ 1 row in set (0.00 sec)

mysql> select * from WARNING; +----+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+-----------------------------------+-------------------------+ | id | warning | Bitcoin_Address | Email | +----+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+-----------------------------------+-------------------------+ | 1 | To recover your lost Database and avoid leaking it: Send us 0.035 Bitcoin (BTC) to our Bitcoin address 1sga4Vu8H7HymmfUa6iqu7p8heZ8BSegN and contact us by Email with your Server IP or Domain name and a Proof of Payment. Your Database is downloaded and backed up on our servers. Backups that we have right now: bbs, blog, chat, laravelshop. Any email without your server IP Address or Domain Name and a Proof of Payment together will be ignored. If we dont receive your payment in the next 10 Days, we will make your database public or use them otherwise. | 1sga4Vu8H7HymmfUa6iqu7p8heZ8BSegN | dbrecovery@annonmail.to | +----+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+-----------------------------------+-------------------------+ 1 row in set (0.00 sec)

mysql>

 

 

为了防止这样的操作,我们进行如下配置 1.登录数据库 $ mysql -u 你的账号 -p $ 你的密码

有一个特殊的数据库,数据库名为mysql,表名为user,它存储了服务器数据库有用户信息和访问权限

use mysql;

mysql> select user,host from user; +---------------+-----------+ | user | host | +---------------+-----------+ | mysqld | % | | root | % | | mysql.session | localhost | | mysql.sys | localhost | | root | localhost | +---------------+-----------+ 5 rows in set (0.00 sec)

 

mysql> delete from user where user != 'root'; Query OK, 3 rows affected (0.00 sec)

 

mysql> flush privileges; Query OK, 0 rows affected (0.00 sec)

mysql> select user,host from user; +------+-----------+ | user | host | +------+-----------+ | root | % | | root | localhost | +------+-----------+ 2 rows in set (0.00 sec)

mysql> delete from user where host = '%'; Query OK, 1 row affected (0.00 sec)

mysql> select user,host from user; +------+-----------+

userhost
  

+------+-----------+

rootlocalhost
  

+------+-----------+ 1 row in set (0.00 sec)

 

flush privileges;

修改数据库端口 ,设置复杂的数据库密码

转载于:https://my.oschina.net/yonghan/blog/3066240

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值