wordpress密码被盗

登录阿里云
进入数据库信息
管理
DMS+AI

UPDATE wp_users SET
user_pass = MD5(‘新密码’),
user_email = ‘邮箱’
WHERE ID = 1;

执行

特别是index.php这个文件里是不是有特殊的代码。

所有含有意思不明字符串的代码都要查看一下,特别是带有看上去像是加密字符串的文件,可以下载下来让ai分析一下是不是含有恶意代码,如果是,一定要删除这个文件。

nvim安装插件

-- ~/.config/nvim/init.lua

local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
if not vim.loop.fs_stat(lazypath) then
  print("Installing lazy.nvim... Please wait.")
  vim.fn.system({
    "git",
    "clone",
    "--filter=blob:none",
    "https://github.com/folke/lazy.nvim.git",
    "--branch=stable",
    lazypath,
  })
end
vim.opt.rtp:prepend(lazypath)

require("lazy").setup({
  {
    "nvim-treesitter/nvim-treesitter",
    build = ":TSUpdate",  -- ✅ 字符串形式,安全可靠
    lazy = false,
    init = function()
      local ok, configs = pcall(require, "nvim-treesitter.configs")
      if not ok then return end

      configs.setup({
        ensure_installed = { "lua", "python", "javascript", "typescript", "c", "cpp" },
        highlight = { enable = true },
        folding = { enable = true },
        indent = { enable = true },
        auto_install = true,
      })

      vim.opt.foldmethod = "expr"
      vim.opt.foldexpr = "nvim_treesitter#foldexpr()"
      vim.opt.foldlevel = 99
    end,
  },
})