Showing posts with label BREAKING PASSWORD AND ENCRYPTION. Show all posts
Showing posts with label BREAKING PASSWORD AND ENCRYPTION. Show all posts

Friday, July 11, 2025

Hashcat A practical Guide

Hashcat A practical Guide

Hashcat A practical Guide
How hashing works
Hashcat A practical Guide
How to Defend Against Hashcat

Hashcat A practical Guide

How to Install Hashcat
Hashcat A practical Guide

Hashcat A practical Guide

How to Work with Hashcat
Hashcat A practical Guide


Hashcat A practical Guide

What is Hashcat?
Hashcat A practical Guide

Summary
Hashcat A practical Guide

LAB Hashcat 

1.Crack the hash “d0199f51d2728db6011945145a1b607a” using the ainbow table manually.?

As mentioned at the beginning, let’s use Crack Station without taking the long route: www.crackstation.net or  Hashes.com

Hashcat A practical Guide

Ans:

2.Crack the hash “eb61eead90e3b899c6bcbe27ac581660” using online tools?

Normally, I would say “Let’s Google it, and go with the first result,” accepting that information can come from everywhere. However, I definitely do not recommend that in this case. If Crack Station isn’t working, the next site to try would be https://md5.gromweb.com/. That’s because some other sites can be quite problematic. Result:

Hashcat A practical Guide

Ans:

3.Identify the hash type: c44a471bd78cc6c2fea32b9fe028d30a  ?


As mentioned at the beginning, let’s use "Identify hash types" without taking the long route:https://hashes.com/en/tools/hash_identifier or  https://www.tunnelsup.com/hash-analyzer/ 

Hashcat A practical Guide

ANS:

4.Bored of this yet? Crack this hash: b6b0d451bbf6fed658659a9e7e5598fe ?

Ans:

5.Password Cracking : cb5e8a23ec9e46a858372247af29a414 ?

Ans:

6.Bored of this yet? Crack this hash: c44a471bd78cc6c2fea32b9fe028d30a ?


Ans: 

7.Crack an MD5 hash using a wordlist: hash_lab.txt ? (Basic Dictionary Attack)


Hashcat A practical Guide

Ans:

8.Crack an MD5 hash using a wordlist: hash_lab2.txt ? (Basic Dictionary Attack)

Hashcat A practical Guide

ANS:


อ่านเพิ่มเติม:
ที่มา: 
  • https://hashcat.net/hashcat/
  • https://github.com/hashcat/hashcat
  • https://hashcat.net/wiki/
  • hashingcrypto101

หมายเหตุ:เนื้อหาในเว็บไซต์นี้มีขึ้นเพื่อวัตถุประสงค์ในการให้ข้อมูล  เผยแพร่ความรู้และให้โอกาสในการค้นคว้าหาข้อมูลเพื่อการศึกษา   บุคคลที่สนใจโดยทั่วไป รวมถึงนักเรียน นิสิต นักศึกษา  ในการเรียนรู้เท่านั้น


* หากมีข้อมูลข้อผิดพลาดประการใด ขออภัยมา ณ ที่นี้ด้วย  รบกวนแจ้ง Admin เพื่อแก้ไขต่อไป
ขอบคุณครับ

#WINDOWSFORENSIC #COMPUTERFORENSICS #DFIR #FORENSICS #DIGITALFORENSICS #COMPUTERFORENSIC #INVESTIGATION #CYBERCRIME #FRAUD #คดีอาชญากรรมคอมพิวเตอร์ #พยานหลักฐานดิจิทัล

Thursday, January 2, 2025

Digital Forensics:DumpMe Lab—Memory Forensics Writeup— Cyber Defenders

Digital Forensics:DumpMe Lab—Memory Forensics Writeup— Cyber Defenders


Cyberdefenders: DumpMe

Description

One of the SOC analysts took a memory dump from a machine infected with a meterpreter malware. As a Digital Forensicators, your job is to analyze the dump, extract the available indicators of compromise (IOCs) and answer the provided questions.


Digital Forensics:DumpMe Lab—Memory Forensics Writeup— Cyber Defenders


Q1 What is the SHA1 hash of Triage-Memory.mem (memory dump)?

Digital Forensics:DumpMe Lab—Memory Forensics Writeup— Cyber Defenders

Ans: c95e8cc8c946f95a109ea8e47a6800de10a27abd 


Q2: What volatility profile is the most appropriate for this machine? (ex: Win10x86_14393)
We can use the imageinfo  plugins to determine the proper profile of Triage-Memory.mem.

vol.py -f Triage-Memory.mem imageinfo
Digital Forensics:DumpMe Lab—Memory Forensics Writeup— Cyber Defenders


Q9 What is the LM hash of Bob's account?

#vol.py -f Triage-Memory.mem --profile=Win7SP1x64 procdump hashdump | grep "Bob"

Digital Forensics:DumpMe Lab—Memory Forensics Writeup— Cyber Defenders

Bob:1000:aad3b435b51404eeaad3b435b51404ee:31d6cfe0d16ae931b73c59d7e0c089c0:::
User: Bob
LM:aad3b435b51404eeaad3b435b51404ee

Make a file on your computer and copy/paste Bob_account’s hash in there. 

We will use Hashcat to crack it. Look through Hashcat’s mode LIST and you’ll see that NTLM is mode 1000:
Make sure you have the rockyou.txt list saved on your system before we start.
#hashcat -m 1000 <hash file location> <wordlist file location>

Digital Forensics:DumpMe Lab—Memory Forensics Writeup— Cyber Defenders


In a few seconds we will have our password (up top after the hash).

Digital Forensics:DumpMe Lab—Memory Forensics Writeup— Cyber Defenders


If you’d like an easier alternative, use CrackStation.

Digital Forensics:DumpMe Lab—Memory Forensics Writeup— Cyber Defenders



*ขออภัยที่ทำไม่เสรฺ็จ ค่อยกลับมาทำใหม่ครับ


ที่มา:   cyberdefenders.org 



หมายเหตุ:เนื้อหาในเว็บไซต์นี้มีขึ้นเพื่อวัตถุประสงค์ในการให้ข้อมูล  เผยแพร่ความรู้และให้โอกาสในการค้นคว้าหาข้อมูลเพื่อการศึกษา   บุคคลที่สนใจโดยทั่วไป รวมถึงนักเรียน นิสิต นักศึกษา  ในการเรียนรู้เท่านั้น

* หากมีข้อมูลข้อผิดพลาดประการใด ขออภัยมา ณ ที่นี้ด้วย  รบกวนแจ้ง Admin เพื่อแก้ไขต่อไป
ขอบคุณครับ


#WINDOWSFORENSIC #COMPUTERFORENSICS #DFIR #FORENSICS #DIGITALFORENSICS #COMPUTERFORENSIC #INVESTIGATION #CYBERCRIME #FRAUD

DIGITAL FORENSICS: Breaking Password and Encryption

DIGITAL FORENSICS: Breaking Password and Encryption


#sb_release -a
DIGITAL FORENSICS: Breaking Password and Encryption

Example 1.Brute-Force Attacks

We will create & compress a text file name text.txt into a password-protected ZIP file named Protected.zip, with the password kali. The command we will be using is zip --encrypt Protected.zip text.txt.

  • zip – Selects the tool we want to use
  • –encrypt – Selections the function of the tool we want to use. ‘Encrypt’ will encrypt our ZIP archive and require a password to decrypt the contents.
  • Protected.zip – The name of the outputted ZIP file.
  • text.txt – The file we want to compress.
DIGITAL FORENSICS: BREAKING PASSWORD AND ENCRYPTION

#zip --encrypt Protected.zip Desktop/text.txt 

Brute-Force Attacks

fcrackzip is a fast password cracker partly written in assembler. It is able to crack password protected zip files with brute force or dictionary based attacks, optionally testing with unzip its results. It can also crack cpmask’ed images.

This package is useful for pentesters, ethical hackers and forensics experts.


How to install: sudo apt install fcrackzip

#fcrackzip -h

DIGITAL FORENSICS: Breaking Password and Encryption

Known Characters:

  • If you recall parts of the password, fcrackzip can use this information to reduce cracking time: 
  • -l denotes the password length(in this case, between 1 and 4 characters), กำหนดความยาวของค่ารหัสผ่าน
  • [-b| — brute-force] ต้องการทำ Brute Force
  • -c defines the character set (a for lower-case). โดยการกำหนดรูปแบบที่เป็นตัวอักษร เริ่มต้นด้วย a
  • -u ทำการ Brute Force สำเร็จจะ unzip file โดยจะทำการแสดงรหัสออกมา


#fcrackzip -b Protected.zip -u -c a -l 1-4 –u

DIGITAL FORENSICS: Breaking Password and Encryption

PASSWORD FOUND!!!!: pw == kali


Example 2. Brute-Force Attacks

#zip --encrypt Protected.zip Desktop/text.txt 

#fcrackzip -b Protected.zip -u -c a1 -l 1-4 –u

DIGITAL FORENSICS: Breaking Password and Encryption

Example 3.Dictionary Attacks

In this example, our target ZIP is topsecret.zip  with the password monkeybutts. Here’s the command we’ll be using.

  • fcrackzip – Selecting the tool we want to use.
  • -D – Selecting the option for a dictionary attack.
  • -u – This makes sure fcrackzip actually tries to unzip the file, without this we won’t actually get the right password.
  • -p – Use strings as password.
  • /usr/share/wordlists/rockyou.txt – This is the location of our wordlist, required to perform a dictionary attack.
  • topsecret.zip – The file we want to crack.
DIGITAL FORENSICS: Breaking Password and Encryption

#fcrackzip -D -u -p Downloads/rockyou.txt Downloads/topsecret.zip 
fcrackzip tells us that it has found the correct password

DIGITAL FORENSICS: Breaking Password and Encryption
we can now successfully extract the contents of the file.

DIGITAL FORENSICS: Breaking Password and Encryption

Credit:  kali 

หมายเหตุ: เนื้อหาในเว็บไซต์นี้มีขึ้นเพื่อวัตถุประสงค์ในการให้ข้อมูล  เผยแพร่ความรู้และให้โอกาสในการค้นคว้าหาข้อมูลเพื่อการศึกษา   บุคคลที่สนใจโดยทั่วไป รวมถึงนักเรียน นิสิต นักศึกษา  ในการเรียนรู้เท่านั้น

* หากมีข้อมูลข้อผิดพลาดประการใด ขออภัยมา ณ ที่นี้ด้วย  รบกวนแจ้ง Admin เพื่อแก้ไขต่อไป
ขอบคุณครับ

#WINDOWSFORENSIC #COMPUTERFORENSICS #DFIR #FORENSICS #DIGITALFORENSICS #COMPUTERFORENSIC #INVESTIGATION #CYBERCRIME #FRAUD #คดีอาชญากรรมคอมพิวเตอร์ #พยานหลักฐานดิจิทัล

Friday, November 8, 2024

Breaking Password and Encryption:hashcat

Breaking Password and Encryption:hashcat

Hashcat  เป็นเครื่องมือ **Password Recovery / Breaking Password** ที่ใช้เทคนิคการคำนวณและเปรียบเทียบ Hash ของรหัสผ่าน เพื่อถอดรหัสหรือค้นหารหัสผ่านที่ถูกต้อง โดยใช้ **CPU / GPU** ในการประมวลผลความเร็วสูงที่ได้รับความนิยมและถูกติดตั้งมาใน “Kali Linux” 

Breaking Password and Encryption:hashcat

Download  https://github.com/hashcat/hashcat

hashcat -a -m 1000 <hash file location> <wordlist file location>

-a คือ เลือกโหมดในการโจมตี (Straight คือ 0)  Dictionary attack (-a 0)

-m คือ เลือกประเภทของ Hash

Identifying Hash

ก่อนที่จะเริ่มทำการถอดรหัส Hash นั้นควรจำที่จะต้องรู้อัลกอริทึ่มที่ทำ Hashing นั้นก่อน

Breaking Password and Encryption:hashcat
Ex1 :ffb43f0de35be4d9917ac0cc8ad57f8d

ตัวอย่างที่1.  ทดสอบใน Kali linux
1.1 ได้ Hash มาจากไฟล์ / ระบบ** เช่น ไฟล์ SAM ของ Windows หรือไฟล์ Dump ของแอปพลิเคชัน
1.2 เลือก Attack Mode

hashcat -a -m 1000 Downloads/bob_account.txt Downloads/rockyou.txt --show


Breaking Password and Encryption:hashcat

 0  Straight (Dictionary Attack) – ใช้พจนานุกรมรหัสผ่าน

 3 Brute-force – ทดลองทุกความเป็นไปได้

 6  Mask Attack – ระบุรูปแบบรหัสผ่าน เช่น `?d?d?d?d` (ตัวเลข 4 หลัก)

7  Hybrid Attack – ผสม Dictionary + Brute-force


-a  Mode (Straight = 0)

Breaking Password and Encryption:hashcat

-m Hash Type (md5= 0)

Ex2: Md5 hash =      161ebd7d45089b3446ee4e0d86dbcf92 

                  Md5 hash =      25f9e794323b453885f5181f1b624d0b

                        Md5 hash =      f25a2fc72690b780b2a14e140ef6a9e0

               sha1 hash =     ee8d8728f435fd550f83852aabab5234ce1da528

S

The hash mode value for MD5 is  0.

ใช้ GPU ประมวลผล** – Hashcat จะลอง Hash ค่ารหัสผ่านจาก Dictionary  แล้วเปรียบเทียบกับ Hash ที่ได้มา

#hashcat -a 0 -m 0 161ebd7d45089b3446ee4e0d86dbcf92 Downloads/rockyou.txt --show

อธิบายคำสั่ง  

   * -m  0 = MD5

   * -a 0 = Dictionary Attack

   * 161ebd7d45089b3446ee4e0d86dbcf92 = ค่า hash

   * `rockyou.txt` = ไฟล์พจนานุกรม

Breaking Password and Encryption:hashcat

Breaking Password and Encryption:hashcat

Breaking Password and Encryption:hashcat

The hash mode value for SHA is  100.
$ hashcat -a 0 -m 100 ee8d8728f435fd550f83852aabab5234ce1da528 Downloads/rockyou.txt
อธิบายคำสั่ง  

   * -m  100 = SHA

   * -a 0 = Dictionary Attack

   * ee8d8728f435fd550f83852aabab5234ce1da528 = ค่า hash

   * `rockyou.txt` = ไฟล์พจนานุกรม

Breaking Password and Encryption:hashcat

 Ex3. sha1 hash =     ee8d8728f435fd550f83852aabab5234ce1da528

#hashcat -a 0 -m 100 ee8d8728f435fd550f83852aabab5234ce1da528 Downloads/rockyou.txt --show


Breaking Password and Encryption:hashcat


เลิกใช้ Password เหล่านี้ ด่วน!

Breaking Password and Encryption:hashcat
Photo credit: NCSA Thailand 

Ex4:   Mask Attack (Brute-force แบบกำหนดรูปแบบ)
 hash =      161ebd7d45089b3446ee4e0d86dbcf92 

โจทย์: รหัสผ่านมี 8 ตัวเลข เช่น  P@ssw0rd 
วิธีการกำหนดรูปแบบ

?l = a — z
?u = A — Z
?d = 0–9
?h = 0–9abcdef
?H = 0–9ABCDEF
?s = อักขระพิเศษ

#hashcat -a 3 -m 0 161ebd7d45089b3446ee4e0d86dbcf92  '?u?s?l?l?l?d?l?l' --show

อธิบายคำสั่ง  

   * -m  0 = MD5

   * -a 3 = Brute-force

   * ee8d8728f435fd550f83852aabab5234ce1da528 = ค่า hash

   * `'?u?s?l?l?l?d?l?l'` = A-Z, อักขระพิเศษ, a — z ,a — z ,a — z ,0–9, a — z, a — z

Breaking Password and Encryption:hashcat

✅ ผลลัพธ์: Hashcat จะไล่ทุกความเป็นไปได้จนได้ `P@ssw0rd`


ขอขอบคุณข้อมูลจ่ากสกมช. (NCSA)
จากการวิเคราะห์ของ ThaiCERT/NCSA พบว่า "พาสเวิร์ดยอดฮิต" เหล่านี้ ถูกใช้ซ้ำมากที่สุด และ รั่วไหลแล้วในหลายแหล่ง!
หากคุณหรือเพื่อนยังใช้พาสเวิร์ดเหล่านี้ ❗เปลี่ยนทันที ❗ก่อนที่บัญชีจะถูกแฮกแบบไม่รู้ตัว
📌 ตั้งพาสเวิร์ดหรือรหัสผ่านที่ ยาว คาดเดาได้ยาก และ ไม่ซ้ำกันในแต่ละระบบ
🔒 เปิดใช้ MFA (Multi-Factor Authentication) ทุกระบบ
🔁 ส่งต่อให้คนรอบตัวรู้ และเปลี่ยนให้มั่นคงปลอดภัยไปด้วยกัน
🧠 ปล.1: หลายพาสเวิร์ดที่พบนั้น ไม่เคยอยู่ในฐานข้อมูล RockYou มาก่อน
แปลว่าแฮกเกอร์ยังมีของใหม่อีกเพียบจากข้อมูลที่รั่วล่าสุด — อย่าชะล่าใจ!
🤖 ปล.2: แฮกเกอร์ไม่จำเป็นต้องเก่ง — แค่เราชุ่ย ตั้งพาสเวิร์ดง่าย ๆ เขาก็แฮกได้แล้ว
🛡 ปล.3: เปิด MFA คือพื้นฐาน และแนวคิด Zero Trust ควรเริ่มใช้จริงจัง
(ทุกคนมีสิทธิ์ถูกแฮก ต้องยืนยันตัวตนเสมอ)
Breaking Password and Encryption:hashcat

หมายเหตุ:เนื้อหาในเว็บไซต์นี้มีขึ้นเพื่อวัตถุประสงค์ในการให้ข้อมูล  เผยแพร่ความรู้และให้โอกาสในการค้นคว้าหาข้อมูลเพื่อการศึกษา   บุคคลที่สนใจโดยทั่วไป รวมถึงนักเรียน นิสิต นักศึกษา  ในการเรียนรู้เท่านั้น


* หากมีข้อมูลข้อผิดพลาดประการใด ขออภัยมา ณ ที่นี้ด้วย  รบกวนแจ้ง Admin เพื่อแก้ไขต่อไป
ขอบคุณครับ

#WINDOWSFORENSIC #COMPUTERFORENSICS #DFIR #FORENSICS #DIGITALFORENSICS #COMPUTERFORENSIC #INVESTIGATION #CYBERCRIME #FRAUD #คดีอาชญากรรมคอมพิวเตอร์ #พยานหลักฐานดิจิทัล

Volatility Lab

Volatility Lab  Image Wanna.vmem P.73 windows.info #python3  vol.py   -f '/home/kali/Desktop/Wanna/Wanna-MEM.vmem' windows.info     ...