Tip of the day

freeroute

Community Manager
Staff member
Community Manager
Super Moderator
Trusted
Feedback: 8 / 0 / 0
Joined
Dec 30, 2019
Messages
23,330
Reaction score
6,057
Credits
25,976
Convert file format "hccapx" to "cap"
 

ukris

Active member
Feedback: 0 / 0 / 0
Joined
Dec 30, 2019
Messages
226
Reaction score
0
Credits
0
freeroute said:
Convert file format "hccapx" to "cap"

A cap file fabricated this way can only contain information already included
in hccapx

The real cap file may contain other information like PMKID or Probe Response info
which are much more useful to skilled crackers than a cap generated by wlanhcx2cap
 

freeroute

Community Manager
Staff member
Community Manager
Super Moderator
Trusted
Feedback: 8 / 0 / 0
Joined
Dec 30, 2019
Messages
23,330
Reaction score
6,057
Credits
25,976
How-to use hashcat-brain function for slow hashes.

Command on the server side: "hashcat --brain-server --brain-host=IP --brain-port=port_number --brain-password=your_password"

Command on the client side (example): "hashcat -O --brain-client --brain-client-features=3 --brain-host=IP --brain-port=port_number --brain-password=password -m 0 -a 0 hash_file.txt dictionary.txt -r your_rule.rule"

More info can be found here and here.
 

freeroute

Community Manager
Staff member
Community Manager
Super Moderator
Trusted
Feedback: 8 / 0 / 0
Joined
Dec 30, 2019
Messages
23,330
Reaction score
6,057
Credits
25,976
How-to check the candidates generated by hashcat' rule file

Command: "echo 'password' | hashcat -r /usr/share/hashcat/rules/best64.rule --stdout"

Output
 

freeroute

Community Manager
Staff member
Community Manager
Super Moderator
Trusted
Feedback: 8 / 0 / 0
Joined
Dec 30, 2019
Messages
23,330
Reaction score
6,057
Credits
25,976
To clean a cap or pcap file, man can use tshark:

The following command read from input.cap, remove unneeded frames and store the result to output.pcapng

$ tshark -r input.cap -R "(wlan.fc.type_subtype == 0x00 || wlan.fc.type_subtype == 0x02 || wlan.fc.type_subtype == 0x04
|| wlan.fc.type_subtype == 0x05 || wlan.fc.type_subtype == 0x08 || wlan.fc.type_subtype == 0x0b || eapol)" -2 -F pcapng
-w output.pcapng

$ tshark -r input.cap -R "(wlan.fc.type_subtype == 0x00 || wlan.fc.type_subtype == 0x02 || wlan.fc.type_subtype == 0x04
|| wlan.fc.type_subtype == 0x05 || wlan.fc.type_subtype == 0x08 || wlan.fc.type_subtype == 0x0b || eapol)" -2 -F pcap -w
output.pcap


Then you can compress the output file to reduce size before uploading it to an online hash cracker.
$ gzip output.pcapng
or
$ gzip output.pcap

All "state of the art" tools (for example wireshark) and online hashcrackers will understand compressed pcapng files!
 

freeroute

Community Manager
Staff member
Community Manager
Super Moderator
Trusted
Feedback: 8 / 0 / 0
Joined
Dec 30, 2019
Messages
23,330
Reaction score
6,057
Credits
25,976
Erase hashcat-brain memory:

remove/delete the files starting with brain.*
brain.*.admp (attack storage)
brain.*.ldmp (session storage, long time memory)
 

kevtheskin

Active member
Contributor
Feedback: 3 / 0 / 0
Joined
Dec 30, 2019
Messages
2,894
Reaction score
708
Credits
2,392
Hi everyone,

I dont know if this is already done but from a noobie perspective i found it to be helpfull . When I see any new passwords found on here from wpa handshake or hashes etc rather than copy the hash or download the hccapx to try and replicate the crack(which I usually do for practice). I realized tonight that instead of running all my wordlist against the found hash or hccapx . I used the grep -r (password found already) wordlist/wlistfolder against my wordlist to see if any instance of the found password was in any of my lists. It saves wasting practice time. If it finds something near like eg Kevin but password is Kevin1999 I can then try running rules for practice against the found wordlist. It only work if the password is already known already LOL :) . Just my wee tuppence worth might be helpfull


Cheers Kev
 

dipeperon

Active member
Contributor
Feedback: 0 / 0 / 0
Joined
Dec 30, 2019
Messages
2,415
Reaction score
4
Credits
0
kevtheskin said:
Hi everyone,

I dont know if this is already done but from a noobie perspective i found it to be helpfull . When I see any new passwords found on here from wpa handshake or hashes etc rather than copy the hash or download the hccapx to try and replicate the crack(which I usually do for practice). I realized tonight that instead of running all my wordlist against the found hash or hccapx . I used the grep -r (password found already) wordlist/wlistfolder against my wordlist to see if any instance of the found password was in any of my lists. It saves wasting practice time. If it finds something near like eg Kevin but password is Kevin1999 I can then try running rules for practice against the found wordlist. It only work if the password is already known already LOL :) . Just my wee tuppence worth might be helpfull


Cheers Kev

Hashcat has an stdout mode in which it dumps out password candidates to stdout for whichever password list you specify with rules applied to the candidates.

So you can make a very simple script that reads from stdin with one if statement to check if the candidate is the password you're looking for

And then just pipe hashcat's stdout to the script

Using rules on WPA seems like a crazy idea though, on slow algorithms plain wordlists are king.
 

kevtheskin

Active member
Contributor
Feedback: 3 / 0 / 0
Joined
Dec 30, 2019
Messages
2,894
Reaction score
708
Credits
2,392
dipeperon said:
kevtheskin said:
Hi everyone,

I dont know if this is already done but from a noobie perspective i found it to be helpfull . When I see any new passwords found on here from wpa handshake or hashes etc rather than copy the hash or download the hccapx to try and replicate the crack(which I usually do for practice). I realized tonight that instead of running all my wordlist against the found hash or hccapx . I used the grep -r (password found already) wordlist/wlistfolder against my wordlist to see if any instance of the found password was in any of my lists. It saves wasting practice time. If it finds something near like eg Kevin but password is Kevin1999 I can then try running rules for practice against the found wordlist. It only work if the password is already known already LOL :) . Just my wee tuppence worth might be helpfull


Cheers Kev

Hashcat has an stdout mode in which it dumps out password candidates to stdout for whichever password list you specify with rules applied to the candidates.

So you can make a very simple script that reads from stdin with one if statement to check if the candidate is the password you're looking for

And then just pipe hashcat's stdout to the script

Using rules on WPA seems like a crazy idea though, on slow algorithms plain wordlists are king.

Hi dipeperon, Can you give a example please on how to do the stdout. Cheers Kev
 

dipeperon

Active member
Contributor
Feedback: 0 / 0 / 0
Joined
Dec 30, 2019
Messages
2,415
Reaction score
4
Credits
0
kevtheskin said:
Hi dipeperon, Can you give a example please on how to do the stdout. Cheers Kev

hashcat64.exe --stdout wordlist.txt -r rules/best64.rule
 

freeroute

Community Manager
Staff member
Community Manager
Super Moderator
Trusted
Feedback: 8 / 0 / 0
Joined
Dec 30, 2019
Messages
23,330
Reaction score
6,057
Credits
25,976
Check example hash-types, modes with hashcat

Command: "hashcat --example-hashes"

Output:
....
MODE: 17900
TYPE: Keccak-384
HASH: 5804b7ada5806ba79540100e9a7ef493654ff2a21d94d4f2ce4bf69abda5d94bf03701fe9525a15dfdc625bfbd769701
PASS: hashcat

MODE: 18000
TYPE: Keccak-512
HASH: 2fbf5c9080f0a704de2e915ba8fdae6ab00bbc026b2c1c8fa07da1239381c6b7f4dfd399bf9652500da723694a4c719587dd0219cb30eabe61210a8ae4dc0b03
PASS: hashcat

MODE: 18100
TYPE: TOTP (HMAC-SHA1)
HASH: 597056:3600
PASS: hashcat
....
 

dipeperon

Active member
Contributor
Feedback: 0 / 0 / 0
Joined
Dec 30, 2019
Messages
2,415
Reaction score
4
Credits
0
Removing counts from a standard frequency analysis (format count:string) is very easy with regex.

Regex: ^\d+:
replace with an empty string, can be done with notepad++ or ULM
 

kevtheskin

Active member
Contributor
Feedback: 3 / 0 / 0
Joined
Dec 30, 2019
Messages
2,894
Reaction score
708
Credits
2,392
dipeperon said:
Removing counts from a standard frequency analysis (format count:string) is very easy with regex.

Regex: ^\d+:
replace with an empty string, can be done with notepad++ or ULM

Hi there can you explain what you mean by counts?

Kev
 

kevtheskin

Active member
Contributor
Feedback: 3 / 0 / 0
Joined
Dec 30, 2019
Messages
2,894
Reaction score
708
Credits
2,392

freeroute

Community Manager
Staff member
Community Manager
Super Moderator
Trusted
Feedback: 8 / 0 / 0
Joined
Dec 30, 2019
Messages
23,330
Reaction score
6,057
Credits
25,976
Separate mail and password fields with sed.
Format email:password/line

What characters are allowed in an email address?

"cat email_pass.txt "

manishvasava27@gmail.com:password123
sarbani.bose@techmahindra.com:pass:?$
mit?esh@nascentinfo.net:123**!
mits.tandel@gmail.com:Password123*$?!+
test@co.uk:Password123>É

Split mail field (field 1):

"sed -r "s/^([a-zA-Z0-9%&'*+-/=?^_\`{|}~]+@[a-zA-Z0-9.]+\w{2,6}):(.*)/\1/" email_pass.txt "

manishvasava27@gmail.com
sarbani.bose@techmahindra.com
mit?esh@nascentinfo.net
mits.tandel@gmail.com
test@co.uk

Split password field (field 2):


"sed -r "s/^([a-zA-Z0-9%&'*+-/=?^_\`{|}~]+@[a-zA-Z0-9.]+\w{2,6}):(.*)/\2/" email_pass.txt "

password123
pass:?$
123**!
Password123*$?!+
Password123>É

Code: https://paste.hashkiller.co.uk/Gl6YVq9f
 
Top