#!/usr/bin/env python # -*- coding:UTF-8 -*- import crypt import sys # 哈希密码的前两位就是盐的前两位,这里我们假设盐只有两位. # 程序分两部分,一部分是打开字典,另一部分是哈希匹配密码 #standard DES, two salt def desPass(cryptpass): #get salt from the front place saltf = cryptpass[0:2] return saltf #for…
官方网站:http://www.openwall.com/john/ 下载:wget http://www.openwall.com/john/j/john-1.8.0.tar.gz 解压:tar -xvf john-1.8.0.tar.gz 进入src目录: cd john-1.8.0 && cd src root@ubuntu:/usr/local/john/john-1.8.0/src# make To build John the Ripper, type: make clean …
使用单用户模式破解Linux密码 特别说明:在实际工作应用中,安装Linux操作系统必须设置装载口令,否则很容易被破解. 1.使用reboot指令重启Linux操作系统 2.在进入操作系统数秒时,单击Esc按键,进入如下界面 3.按字母小e进入如下编辑模式 4.选择第二个选项,然后再次单击字母小e 更改完成后,单击回车,如下图所示: 5.单击字母小b,重启操作系统,进入如下界面 在#号后面,输入passwd root(重置root管理员密码) 6.设置完成后,使用reboot指令重启操作系统,使…
这篇文章主要介绍了使用John the ripper工具来尝试破解Linux密码的方法,这款工具可能主要被用来破解系统用户的密码以获得文件操作权限,需要的朋友可以参考下 John有别于Hdra之类的工具.Hydra进行盲目的蛮力攻击,其方法是在FTP服务器或Telnet服务器上的服务后台程序上尝试用户名/密码组合.不过,John首先需要散列.所以,对黑客来说更大的挑战是,先搞到需要破解的散列.如今,使用网上随处可得的免费彩虹表(rainbow table),比较容易破解散列.只要进入到其中一个网…
To reset the root password of your server, you will need to boot into single user mode. Access the Manage section of your server in the customer portal and follow these steps. The option depends on the bootloader version on the machine: CentOS 6 Clic…
简介:因为Linux的密码都是加密过的(例如:$6$X.0bBN3w$NfM7YYHevVfCnZAVruItAEydaMJCF.muefZsxsgLK5DQoahW8Pqs1BSmoAFfi5J/blvlobrSmFtNQFsYMyIIh1),现在我们把这段密码的密文拿出来解密,就可以得到明文的密码啦~ 说明:wordlist.TXT  是事先准备的密码字典,test.txt 文件内容是复制了Linux中shadow文件中的一条信息拿来做实验的,内容如下: 下面的代码我是在Linux下执行的,…
http://blog.163.com/xygzlyq@126/blog/static/22585899200810471512530/…
查看当前主机的加密算法: [root@realserver ~]# authconfig --test |grep hashing password hashing algorithm is sha512 设置使用sha512算法: # authconfig --passalgo=SHA512 --update 最后,所有用户都需要重新设置密码才能生效.可以使用# chage -d 0 root 强制该用户下次登录修改密码.…
方法一.直接使用passwd命令 /bin/echo newpass|/usr/bin/passwd --stdin username *注:该方式只适用于红帽系操作系统,比如centos,redhat等系统,在Debian系操作系统中,如Debian,Ubuntu等系统下,passwd命令没有 --stdin参数,无法完成该命令 方法二:使用chpasswd命令 上面用passwd命令的方法只能用于红帽系系统,这里提供一个可以用于Debian系系统的方法,使用chpasswd命令 /bin/e…
import zipfile from threading import Thread #多线程库 import optparse #选定字典或者文件 def extractFile(zfile,password): try: zfile.extractall(pwd=password) print('[+] found password' + password +'\n') except: pass def main(): #zfile=zipfile.ZipFile('decode.zip'…