Linux清除Windows密码

简介: 下载安装ntfs-3g下载驱动让linux挂载windows磁盘https://tuxera.com/opensource/ntfs-3g_ntfsprogs-2017.3.23.tgz安装tar -xvf ntfs-3g_ntfsprogs-2017.

下载安装ntfs-3g

  • 下载驱动让linux挂载windows磁盘

    https://tuxera.com/opensource/ntfs-3g_ntfsprogs-2017.3.23.tgz
  • 安装

    tar -xvf ntfs-3g_ntfsprogs-2017.3.23.tgz
    cd ntfs-3g_ntfsprogs-2017.3.23
    ./configure
    make
    make install 

下载安装chntpw

  • 下载chntpw

    https://pkgs.org/download/chntpw
    wget http://li.nux.ro/download/nux/dextop/el7/x86_64//chntpw-0.99.6-22.110511.el7.nux.x86_64.rpm
    yum -y install ./hntpw-0.99.6-22.110511.el7.nux.x86_64.rpm

挂载windows磁盘

  • 挂载windows的系统盘
    默认第二个分区才是C盘

    mkdir /win
    mount -t  ntfs-3g /dev/xvdb2 /win
  • 备份SAM文件

    cd /win/Windows/System32/config/
    cp SAM{,.bak}
  • 清除Windows密码

    chntpw SAM
    User Edit Menu:
     1 - Clear (blank) user password
     2 - Edit (set new) user password (careful with this on XP or Vista)
     3 - Promote user (make user an administrator)
    (4 - Unlock and enable user account) [seems unlocked already]
     q - Quit editing user, back to user select
    Select: [q] > 1                         # 1 清除密码
    Password cleared!
    Hives that have changed:
     #  Name
     0  <SAM>
    Write hive files? (y/n) [n] : y         # y保存
     0  <SAM> - OK
  • 将windows系统盘重新挂载回windows中即可

目录
相关文章
|
25天前
|
安全 Linux 生物认证
Nexpose 8.25.0 for Linux & Windows - 漏洞扫描
Nexpose 8.25.0 for Linux & Windows - 漏洞扫描
72 0
Nexpose 8.25.0 for Linux & Windows - 漏洞扫描
|
1月前
|
安全 Linux iOS开发
Binary Ninja 5.1.8104 (macOS, Linux, Windows) - 反编译器、反汇编器、调试器和二进制分析平台
Binary Ninja 5.1.8104 (macOS, Linux, Windows) - 反编译器、反汇编器、调试器和二进制分析平台
298 53
Binary Ninja 5.1.8104 (macOS, Linux, Windows) - 反编译器、反汇编器、调试器和二进制分析平台
|
28天前
|
安全 Linux 生物认证
Nexpose 8.24.0 for Linux & Windows - 漏洞扫描
Nexpose 8.24.0 for Linux & Windows - 漏洞扫描
120 1
Nexpose 8.24.0 for Linux & Windows - 漏洞扫描
|
28天前
|
SQL 安全 Linux
Metasploit Pro 4.22.8-20251014 (Linux, Windows) - 专业渗透测试框架
Metasploit Pro 4.22.8-20251014 (Linux, Windows) - 专业渗透测试框架
99 1
Metasploit Pro 4.22.8-20251014 (Linux, Windows) - 专业渗透测试框架
|
30天前
|
Linux 网络安全 iOS开发
Metasploit Framework 6.4.95 (macOS, Linux, Windows) - 开源渗透测试框架
Metasploit Framework 6.4.95 (macOS, Linux, Windows) - 开源渗透测试框架
160 1
Metasploit Framework 6.4.95 (macOS, Linux, Windows) - 开源渗透测试框架
|
1月前
|
Linux API iOS开发
Binary Ninja 4.2.6455 (macOS, Linux, Windows) - 反编译器、反汇编器、调试器和二进制分析平台
Binary Ninja 4.2.6455 (macOS, Linux, Windows) - 反编译器、反汇编器、调试器和二进制分析平台
166 14
Binary Ninja 4.2.6455 (macOS, Linux, Windows) - 反编译器、反汇编器、调试器和二进制分析平台
|
26天前
|
Linux 虚拟化 iOS开发
VMware Remote Console 13.0.1 for macOS, Linux, Windows - vSphere 虚拟机控制台的桌面客户端
VMware Remote Console 13.0.1 for macOS, Linux, Windows - vSphere 虚拟机控制台的桌面客户端
274 0
VMware Remote Console 13.0.1 for macOS, Linux, Windows - vSphere 虚拟机控制台的桌面客户端
|
2月前
|
JSON 安全 Linux
Nexpose 8.22.0 for Linux & Windows - 漏洞扫描
Nexpose 8.22.0 for Linux & Windows - 漏洞扫描
127 1
Nexpose 8.22.0 for Linux & Windows - 漏洞扫描
|
1月前
|
Linux iOS开发 计算机视觉
GIMP 3.0.6 (Linux, macOS, Windows) 发布 - 免费开源图像编辑器
GIMP 3.0.6 (Linux, macOS, Windows) 发布 - 免费开源图像编辑器
167 0
|
2月前
|
数据管理 Linux iOS开发
Splunk Enterprise 9.4.5 (macOS, Linux, Windows) - 机器数据管理和分析
Splunk Enterprise 9.4.5 (macOS, Linux, Windows) - 机器数据管理和分析
112 0