hashcat源码分析1
生活随笔
收集整理的這篇文章主要介紹了
hashcat源码分析1
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
typedef struct hash
{
? void?????? *digest;
? salt_t???? *salt;
? void?????? *esalt;
? void?????? *hook_salt; // additional salt info only used by the hook (host)
? int???????? cracked;
? hashinfo_t *hash_info;
? char?????? *pw_buf;
? int???????? pw_len;
} hash_t; 一.
{
? void?????? *digest;
? salt_t???? *salt;
? void?????? *esalt;
? void?????? *hook_salt; // additional salt info only used by the hook (host)
? int???????? cracked;
? hashinfo_t *hash_info;
? char?????? *pw_buf;
? int???????? pw_len;
} hash_t; 一.
1. 信號 = 函數,判斷是否執行成功
2. hashes.buf [ x ] .info = hash_info
hash_info = XXXXX
?
二.不太懂的地方
1.
文件:hashes.c
函數:hashes_init_stage1中
行數:454~478
描述:
依照我的理解,在ARG模式之下,應該就是輸入就是hash的,
為什么
?if (hashconfig->opts_type & OPTS_TYPE_BINARY_HASHFILE)
??? {
????? hashlist_mode = HL_MODE_ARG;
????? char *hashfile = hash_or_file;
????? hashes->hashfile = hashfile;
??? }
只有這樣才有,hashes->hashfile = hashfile;
是不是,如果是ARG模式,那么一定OPTS_TYPE_BINARY_HASHFILE的。
?
三.
用到的 extern?void?*malloc(unsigned?int?num_bytes); void *memset(void *s, int ch, size_t n);?
轉載于:https://www.cnblogs.com/rachelint/p/9337363.html
創作挑戰賽新人創作獎勵來咯,堅持創作打卡瓜分現金大獎總結
以上是生活随笔為你收集整理的hashcat源码分析1的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: word activex部件不能创建对象
- 下一篇: SAP BAPI_SALESORDER_