John have a lot of different features and in order to configure these features it provides a lot of configuration options. In this tutorial we will look some of them.

John具有许多不同的功能,并且为了配置这些功能,它提供了许多配置选项。 在本教程中,我们将介绍其中的一些。

获得帮助 (Getting Help)

There is two way to get help abut John. One is the simplest way by using -h .

约翰有两种获得帮助的方法。 一种是使用-h的最简单方法。

$ john -h
John the Ripper password cracker, version 1.8.0.6-jumbo-1-bleeding [linux-x86-64]
Copyright (c) 1996-2015 by Solar Designer and others
Homepage: http://www.openwall.com/john/ Usage: john [OPTIONS] [PASSWORD-FILES]
--single[=SECTION]        "single crack" mode
--wordlist[=FILE] --stdin wordlist mode, read words from FILE or stdin --pipe  like --stdin, but bulk reads, and allows rules
--loopback[=FILE]         like --wordlist, but fetch words from a .pot file
--dupe-suppression        suppress all dupes in wordlist (and force preload)
--prince[=FILE]           PRINCE mode, read words from FILE
--encoding=NAME           input encoding (eg. UTF-8, ISO-8859-1). See also doc/ENCODING and --list=hidden-options.
--rules[=SECTION]         enable word mangling rules for wordlist modes
--incremental[=MODE]      "incremental" mode [using section MODE]
--mask=MASK               mask mode using MASK
--markov[=OPTIONS]        "Markov" mode (see doc/MARKOV)
--external=MODE           external mode or word filter
--stdout[=LENGTH]         just output candidate passwords [cut at LENGTH]
--restore[=NAME]          restore an interrupted session [called NAME]
--session=NAME            give a new session the NAME
--status[=NAME]           print status of a session [called NAME]
--make-charset=FILE       make a charset file. It will be overwritten
--show[=LEFT]             show cracked passwords [if =LEFT, then uncracked]
--test[=TIME]             run tests and benchmarks for TIME seconds each
--users=[-]LOGIN|UID[,..] [do not] load this (these) user(s) only
--groups=[-]GID[,..]      load users [not] of this (these) group(s) only
--shells=[-]SHELL[,..]    load users with[out] this (these) shell(s) only
--salts=[-]COUNT[:MAX]    load salts with[out] COUNT [to MAX] hashes
--save-memory=LEVEL       enable memory saving, at LEVEL 1..3
--node=MIN[-MAX]/TOTAL    this node's number range out of TOTAL count
--fork=N                  fork N processes
--pot=NAME                pot file to use
--list=WHAT               list capabilities, see --list=help or doc/OPTIONS
--format=NAME             force hash of type NAME. The supported formats can be seen with --list=formats and --list=subformats

And the other method is by using man page. Man page provides more details.

另一种方法是使用手册页。 手册页提供了更多详细信息。

$ man johnJOHN(8)                                               System Manager's Manual                                              JOHN(8) NAME john - a tool to find weak passwords of your users SYNOPSIS john [options] password-files
...

模式 (Modes)

John have 3 different modes to crack passwords.

John有3种不同的方式来破解密码。

.u09e7f903980db6e6d6c549abacddc024 , .u09e7f903980db6e6d6c549abacddc024 .postImageUrl , .u09e7f903980db6e6d6c549abacddc024 .centered-text-area { min-height: 80px; position: relative; } .u09e7f903980db6e6d6c549abacddc024 , .u09e7f903980db6e6d6c549abacddc024:hover , .u09e7f903980db6e6d6c549abacddc024:visited , .u09e7f903980db6e6d6c549abacddc024:active { border:0!important; } .u09e7f903980db6e6d6c549abacddc024 .clearfix:after { content: ""; display: table; clear: both; } .u09e7f903980db6e6d6c549abacddc024 { display: block; transition: background-color 250ms; webkit-transition: background-color 250ms; width: 100%; opacity: 1; transition: opacity 250ms; webkit-transition: opacity 250ms; background-color: #ECF0F1; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.17); -moz-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.17); -o-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.17); -webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.17); } .u09e7f903980db6e6d6c549abacddc024:active , .u09e7f903980db6e6d6c549abacddc024:hover { opacity: 1; transition: opacity 250ms; webkit-transition: opacity 250ms; background-color: #D35400; } .u09e7f903980db6e6d6c549abacddc024 .centered-text-area { width: 100%; position: relative; } .u09e7f903980db6e6d6c549abacddc024 .ctaText { border-bottom: 0 solid #fff; color: #3498DB; font-size: 16px; font-weight: bold; margin: 0; padding: 0; text-decoration: underline; } .u09e7f903980db6e6d6c549abacddc024 .postTitle { color: #27AE60; font-size: 16px; font-weight: 600; margin: 0; padding: 0; width: 100%; } .u09e7f903980db6e6d6c549abacddc024 .ctaButton { background-color: #e6e6e6!important; color: #3498DB; border: none; border-radius: 3px; box-shadow: none; font-size: 14px; font-weight: bold; line-height: 26px; moz-border-radius: 3px; text-align: center; text-decoration: none; text-shadow: none; width: 80px; min-height: 80px; background: url(https://www.poftut.com/wp-content/plugins/intelly-related-posts/assets/images/simple-arrow.png)no-repeat; position: absolute; right: 0; top: 0; } .u09e7f903980db6e6d6c549abacddc024:hover .ctaButton { background-color: #E67E22!important; } .u09e7f903980db6e6d6c549abacddc024 .centered-text { display: table; height: 80px; padding-left: 18px; top: 0; } .u09e7f903980db6e6d6c549abacddc024 .u09e7f903980db6e6d6c549abacddc024-content { display: table-cell; margin: 0; padding: 0; padding-right: 108px; position: relative; vertical-align: middle; width: 100%; } .u09e7f903980db6e6d6c549abacddc024:after { content: ""; display: block; clear: both; }

LEARN MORE  HMAC (Hach-based Message Authentication Code) Tutorial

.u09e7f903980db6e6d6c549abacddc024 , .u09e7f903980db6e6d6c549abacddc024 .postImageUrl , .u09e7f903980db6e6d6c549abacddc024 .centered-text-area { min-height: 80px; position: relative; } .u09e7f903980db6e6d6c549abacddc024 , .u09e7f903980db6e6d6c549abacddc024:hover , .u09e7f903980db6e6d6c549abacddc024:visited , .u09e7f903980db6e6d6c549abacddc024:active { border:0!important; } .u09e7f903980db6e6d6c549abacddc024 .clearfix:after { content: ""; display: table; clear: both; } .u09e7f903980db6e6d6c549abacddc024 { display: block; transition: background-color 250ms; webkit-transition: background-color 250ms; width: 100%; opacity: 1; transition: opacity 250ms; webkit-transition: opacity 250ms; background-color: #ECF0F1; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.17); -moz-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.17); -o-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.17); -webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.17); } .u09e7f903980db6e6d6c549abacddc024:active , .u09e7f903980db6e6d6c549abacddc024:hover { opacity: 1; transition: opacity 250ms; webkit-transition: opacity 250ms; background-color: #D35400; } .u09e7f903980db6e6d6c549abacddc024 .centered-text-area { width: 100%; position: relative; } .u09e7f903980db6e6d6c549abacddc024 .ctaText { border-bottom: 0 solid #fff; color: #3498DB; font-size: 16px; font-weight: bold; margin: 0; padding: 0; text-decoration: underline; } .u09e7f903980db6e6d6c549abacddc024 .postTitle { color: #27AE60; font-size: 16px; font-weight: 600; margin: 0; padding: 0; width: 100%; } .u09e7f903980db6e6d6c549abacddc024 .ctaButton { background-color: #e6e6e6!important; color: #3498DB; border: none; border-radius: 3px; box-shadow: none; font-size: 14px; font-weight: bold; line-height: 26px; moz-border-radius: 3px; text-align: center; text-decoration: none; text-shadow: none; width: 80px; min-height: 80px; background: url(https://www.poftut.com/wp-content/plugins/intelly-related-posts/assets/images/simple-arrow.png)no-repeat; position: absolute; right: 0; top: 0; } .u09e7f903980db6e6d6c549abacddc024:hover .ctaButton { background-color: #E67E22!important; } .u09e7f903980db6e6d6c549abacddc024 .centered-text { display: table; height: 80px; padding-left: 18px; top: 0; } .u09e7f903980db6e6d6c549abacddc024 .u09e7f903980db6e6d6c549abacddc024-content { display: table-cell; margin: 0; padding: 0; padding-right: 108px; position: relative; vertical-align: middle; width: 100%; } .u09e7f903980db6e6d6c549abacddc024:after { content: ""; display: block; clear: both; }

了解更多HMAC(基于哈希的消息身份验证代码)教程

Wordlist: In this mode john will look a given wordlist to crack passwords.

单词表在这种模式下,约翰将查找给定的单词表以破解密码。

Single Crack: Int this mode john will try crack login:password files.

单一破解:在此模式下,约翰将尝试破解login:password文件。

Incremental: This is the most powerfull mode, john will try all alphabet to crack also new methods can be created in this mode.

增量式:这是最强大的模式,John将尝试所有字母进行破解,并且可以在此模式下创建新的方法。

When john started without any Mode parameter is tries Modes sequencially like Single Mode, Word List Mode, Incremental Mode.

当john在没有任何Mode参数的情况下开始尝试时,将依次尝试使用Single Mode,Word List Mode,Incremental Mode等模式。

We set Mode manually like below. After selected Mode search ends it do not jumps next Mode.

我们如下手动设置模式。 选定模式搜索结束后,不会跳到下一个模式。

$ john --single  unshadowed
  • –single is the Mode specifier or –si  can be used as abrevation

    –single是模式说明符,或–si可以用作缩写

组态(Configuration)

Configuration file about john can be found in /etc/john/john.conf 

可以在/etc/john/john.conf中找到有关john的配置文件。

If we look into john.conf we will see there is a lot of configuration like word list, alert, defaults, algorithms, rules.

如果我们查看john.conf,我们将看到有很多配置,例如单词列表,警报,默认值,算法,规则。

Local user configuration resides in user home directory with name .john . It is a hidden file where provides john history, configuration,cracked passwords etc.

本地用户配置位于名称为.john的用户主目录中。 这是一个隐藏的文件,其中提供了john的历史记录,配置,破解的密码等。

Here is some configuration about Incremental methods alphanumeric wordlist calculation

这是有关增量方法字母数字单词列表计算的一些配置

[Incremental:Alnum]
File = $JOHN/alnum.chr
MinLen = 1
MaxLen = 13
CharCount = 62

翻译自: https://www.poftut.com/john-ripper-modes-configuration/

John Ripper的模式和配置相关推荐

  1. 帧中继环境下NBMA模式的配置

    帧中继环境下NBMA模式的配置 1.  实验目的: 通过本次的实验,我们可以掌握如下技能 1)        帧中继静态映射及其broadcast参数的含义. 2)        NBMA模式下的DR ...

  2. linux(centos) NET模式网络配置

    2019独角兽企业重金招聘Python工程师标准>>> linux虚拟机一般使用桥接和net模式,但是由于桥接在不同的网络环境中,需要重新配置,所以建议使用net模式,net模式的配 ...

  3. Apache之三种工作模式和配置性能优化

    1 Apache的3种模式和版本 Apache目前一共有三种稳定的MPM(Multi-Processing Module,多进程处理模块)模式,它们分别是prefork,worker和event. 我 ...

  4. Vue Router history模式的配置方法及其原理

    转载地址:https://segmentfault.com/a/1190000019391139 vue-router分为hash和history模式,前者为其默认模式,url的表现形式为http:/ ...

  5. linux桥接设置静态,centos6.10 桥接模式下配置静态ip

    centos6.10 桥接模式下配置静态ip主要是修改以下三个地方: /etc/sysconfig/network-scripts/ifcfg-eth0(这个文件名版本不同文件名也不同,可以先cd / ...

  6. VMware安装Ubuntu 18.04虚拟机(镜像下载、硬盘分区、创建虚拟机、安装系统、桥接模式网络配置)

    1. VMware安装 安装VMware,Player免费,而且功能足够个人开发使用.(Pro的主要区别在于可以同时运行多个虚拟机,而Player只能同时运行一个) VMware Workstatio ...

  7. win10系统VMware虚拟机安装linux使用NAT模式上网配置-命令行上网

    环境描述:本机window10系统  ,安装VMware虚拟机,在VMware安装了centOS6,因为不想在本机下载镜像或者其他在转向linux,使用yum命令比较简单,在网上搜索了不少配置方法,自 ...

  8. 单片机引脚模式的配置

    1.KEY_CHK 按键引脚模式的配置 GPIO_InitStructure.GPIO_Pin = KEY_CHK_PIN;GPIO_InitStructure.GPIO_Speed = GPIO_S ...

  9. ntp协议客户端服务器模式,思科配置NTP客户端服务器模式

    思科配置NTP客户端服务器模式 内容精选 换一换 该操作指导安装工程师安装MRS集群所有服务(不包含Flume)的客户端.MRS针对不同服务提供了Shell脚本,供开发维护人员在不同场景下登录其对应的 ...

最新文章

  1. Java创建数组的三种方法
  2. 第二十六篇 面向对象初识
  3. Boost:验证atomic <>没有对void指针提供算术运算
  4. python读文本文件的过程是怎样的_读写文本文件的步骤_Python读写txt文本文件的操作方法全解析...
  5. 设计模式C++实现 ——状态模式
  6. Linux系统编程:fork函数的使用【循环创建N个子线程】
  7. 小贝拉机器人是朋友_小朋友最爱的肉松美味来啦!咸香浓郁,肉松??控一定不要错过~...
  8. 应用层协议:HTTP
  9. 华为宣布今年将投入2亿美元推动鲲鹏计算产业发展
  10. 腾讯九次面试C++,如今面试题了如指掌
  11. VMware共享文件夹Input/output error解决办法
  12. 通达OA智能开发平台CRM系统二级下拉菜单联动的实现方法
  13. 中科大EPC课程爬取
  14. 用excel做logistic回归分析_利用Excel进行统计分析——入门篇
  15. 教程|Word/WPS永久更改默认背景颜色
  16. Spring中循环依赖详解
  17. to be solved
  18. ais解码_解决ais cassandra问题
  19. 计算机组成原理之主存储器
  20. 第5周作业 #高级编程技术

热门文章

  1. 零点起飞学Visual Basic pdf
  2. 详述如何退出 Vim 编辑器
  3. 【csv乱码】csv文件打开乱码的情况
  4. FDC2214——电容传感器芯片的使用与配置(STM32控制)
  5. java集成支付宝支付接口
  6. 别光顾着吃瓜,今天来讲讲微博为何总宕机
  7. html中背景不平铺怎么写,css怎么让背景图片不平铺?
  8. 资源管理器中双击文件夹会在新窗口打开
  9. iostat命令详解指标分析
  10. Linux里面的基本指令