⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 external

📁 UNIX、linux密码的破密程序源代码实现
💻
字号:
	Defining an external mode.To define an external cracking mode you need to create a configurationfile section called [List.External:MODE], where MODE is any name thatyou assign to the mode.  The section should contain some functionsprogrammed in a subset of the C language.  John will compile and use thefunctions if you enable this cracking mode via the command line.	External functions.The following functions are currently used by John:init()		called at startup, should initialize global variablesfilter()	called for each word to be tried, can filter some words outgenerate()	called to generate words, when no other cracking modes usedrestore()	called when restoring an interrupted sessionAll of them are of type "void", with no arguments, and should use theglobal variable "word" (pre-defined as "int word[]"), except for init()which is called before "word" is initialized.  The variable "word"contains the current candidate password to be tried, one character ineach array element, terminated with a zero.The functions, if defined, should do the following with "word":* filter() can modify the word, or zero out "word[0]" to skip it;* generate() should set "word" to the next word to be tried, or zero out"word[0]" when cracking is complete (this will cause John to terminate);* restore() should set global variables to continue from the "word".You can use an external mode on its own or with some other crackingmode, in which case only init() and filter() will be used (and onlyfilter() will be required).  Using an external filter is compatible withall the other cracking modes and with the "--make-charset" command lineoption.It is recommended that you don't use filter() or at least don't filtertoo many words out when using an external mode with your own generate().It is better to modify generate() not to generate words that would getfiltered out.	The language.As it has been mentioned above, the compiler supports a subset of C.The supported keywords are: void, int, if, else, while, continue, break,and return.You can define functions to be called by John (the ones describedabove), define global and local variables (including single dimensionalarrays), use all the integer operations supported in C, and use C andC++ comments.The following C features are missing from John's compiler:* function calls (any functions defined as a part of an external modecan only be called by John core, but not from within other external modefunctions);* only "while" loops are supported;* only "int" and "void" data types are supported;* only single dimensional arrays are supported;* structs/unions are not supported;* pointers are not supported (array name refers to the first element);* probably something else...You can find some external mode examples in the default configurationfile supplied with John.$Owl: Owl/packages/john/john/doc/EXTERNAL,v 1.2 2005/11/16 13:11:15 solar Exp $

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -