A. 瀛樺偍鐢ㄦ埛瀵嗙爜鐨刴d5鍝堝笇鍊,涓鑸浣跨敤鐨勬暟鎹绫诲瀷鏄浠涔
瀛樺偍鐢ㄦ埛瀵嗙爜鐨凪D5鍝堝笇鍊硷紝涓鑸浣跨敤鐨勬暟鎹绫诲瀷鏄瀛楃︿覆銆
璇︾粏
MD5鏄涓绉嶅箍娉涗娇鐢ㄧ殑瀵嗙爜鍝堝笇鍑芥暟锛屽畠鎺ュ彈浠绘剰闀垮害鐨勬暟鎹浣滀负杈撳叆锛屽苟鐢熸垚涓涓鍥哄畾闀垮害鐨勫崄鍏杩涘埗鏁板瓧瀛楃︿覆浣滀负杈撳嚭銆傝繖涓杈撳嚭瀛楃︿覆鏄杈撳叆鏁版嵁鐨勬暟瀛楁憳瑕侊紝瀵硅緭鍏ユ暟鎹鐨勪换浣曞井灏忔敼鍔ㄩ兘浼氬艰嚧鐢熸垚鐨勫搱甯屽煎彂鐢熸樉钁楀彉鍖栥
鐢变簬MD5鍝堝笇鍊肩殑琛ㄧず褰㈠紡鏄32涓瀛楃︾殑鍗佸叚杩涘埗鏁板瓧瀛楃︿覆锛屽洜姝ゅ湪鏁版嵁搴撲腑瀛樺偍杩欎簺鍊兼椂锛屾渶鍚堥傜殑鏁版嵁绫诲瀷鏄瀛楃︿覆绫诲瀷銆傚湪鍏崇郴鍨嬫暟鎹搴撲腑锛屽侻ySQL锛岃繖閫氬父鎰忓懗鐫浣跨敤VARCHAR鎴朇HAR鏁版嵁绫诲瀷銆俈ARCHAR绫诲瀷鐢ㄤ簬瀛樺偍鍙鍙橀暱搴︾殑瀛楃︿覆锛岃孋HAR绫诲瀷鐢ㄤ簬瀛樺偍鍥哄畾闀垮害鐨勫瓧绗︿覆銆傚湪杩欑嶆儏鍐典笅锛岀敱浜嶮D5鍝堝笇鍊兼绘槸32涓瀛楃﹂暱锛屾墍浠CHAR鍙鑳芥槸涓涓鏇村悎閫傜殑閫夋嫨锛屽洜涓哄畠浼氶勫垎閰嶅浐瀹氶暱搴︾殑瀛樺偍绌洪棿锛屼粠鑰屽彲鑳芥彁楂樻煡璇㈡ц兘銆
涓句釜渚嬪瓙锛屽傛灉浣犲湪MySQL鏁版嵁搴撲腑鍒涘缓涓涓鐢ㄦ埛琛ㄦ潵瀛樺偍鐢ㄦ埛鍚嶅拰瀵嗙爜鐨凪D5鍝堝笇鍊硷紝浣犲彲鑳戒細杩欐牱瀹氫箟琛ㄧ粨鏋勶細
sql
CREATE TABLE users NOT NULL,
password_hash CHAR NOT NULL
);
鍦ㄨ繖涓渚嬪瓙涓锛宍password_hash`鍒椾娇鐢ㄤ簡CHAR鏁版嵁绫诲瀷鏉ュ瓨鍌∕D5鍝堝笇鍊笺傚綋鐢ㄦ埛娉ㄥ唽鎴栨洿鏂板瘑鐮佹椂锛屼綘浼氳$畻瀵嗙爜鐨凪D5鍝堝笇鍊硷紝骞跺皢鍏跺瓨鍌ㄥ湪`password_hash`鍒椾腑銆
闇瑕佹敞鎰忕殑鏄锛屽敖绠MD5绠楁硶鍦ㄨ繃鍘昏骞挎硾浣跨敤锛屼絾鐜板湪宸蹭笉琚鎺ㄨ崘鐢ㄤ簬瀵嗙爜瀛樺偍锛屽洜涓哄畠瀛樺湪涓浜涘凡鐭ョ殑瀹夊叏婕忔礊銆傜幇浠e簲鐢ㄧ▼搴忔洿鍊惧悜浜庝娇鐢ㄦ洿瀹夊叏鐨勫搱甯岀畻娉曪紝濡俠crypt鎴朅rgon2锛岃繖浜涚畻娉曟彁渚涗簡鏇村己鐨勫畨鍏ㄦэ紝鐗瑰埆鏄閽堝瑰僵铏硅〃绛夋敾鍑绘墜娈点傜劧鑰岋紝濡傛灉浣犳e湪澶勭悊涓涓閬楃暀绯荤粺鎴栧嚭浜庢煇绉嶅師鍥犲繀椤讳娇鐢∕D5锛岄偅涔堜娇鐢ㄤ笂杩版柟娉曞瓨鍌ㄥ搱甯屽兼槸鍚堥傜殑銆
B. 骞茶揣 | 涓栫晫涓婃渶蹇鏈楂樼骇鐨勫瘑鐮佺牬瑙e伐鍏稨ashcat鍏ラ棬鎸囧崡
鎺㈢储鏈灏栫鐨勫瘑鐮佽В瀵嗘妧鏈锛孒ashcat鍏ラ棬鍏ㄨВ鏋
Hashcat锛岃瑾変负瀵嗙爜鐮磋В鐣岀殑瓒呯骇宸ㄦ槦锛屽嚟鍊熷叾瓒呭嚒鐨勯熷害鍜屽己澶х殑鍔熻兘锛屾垚涓虹牬瑙LM鍝堝笇銆丮D5銆丼HA绛夊瘑鐮佺被鍨嬬殑棣栭夊伐鍏枫傛棤璁轰綘鏄疞inux銆丮ac杩樻槸Windows鐨勭敤鎴凤紝閮借兘鍦ㄨ繖娆捐法骞冲彴鐨勭炲櫒涓鎵惧埌浣犵殑鐮磋В涔嬮亾銆傚畠绋垮潶鐨勫畼鏂圭綉绔欏拰GitHub浠撳簱鍒嗗埆鏄锛
瀹樻柟缃戠珯锛 https://hashcat.net
GitHub椤圭洰锛 https://github.com/hashcat/hashcat
璁╂垜浠娣卞叆浜嗚В鍑犱釜鍏抽敭鍛戒护锛岃╀綘蹇閫熶笂鎵嬶細
浣跨敤濡備笅鐨勯夐」瀹氬埗浣犵殑鐮磋В绛栫暐锛
鐮磋В杩囩▼閿绔栨愪腑锛岄傛椂鎸塻閿鏌ョ湅杩涘害锛宲閿鏆傚仠锛宺閿鎭㈠嶏紝q閿閫鍑猴紝鐏垫椿搴斿圭牬瑙h繘搴︺
Hashcat鐨勫▉鍔涘湪浜庡畠鐨勭伒娲绘у拰鏁堢巼锛屾帉鎻¤繖浜涘熀纭鍛戒护鍜屾ā寮忥紝浣犲皢鑳芥洿楂樻晥鍦版帰绱㈠瘑鐮佷笘鐣屻傜珛鍗充笅杞藉苟寮濮嬩綘鐨勭牬瑙d箣鏃呭惂锛岃В閿侀殣钘忓湪缃戠粶瑙掕惤鐨勫瘑鐮佺樺瘑銆