Skip to content

Commit

Permalink
Rename hash to hash.txt
Browse files Browse the repository at this point in the history
Add listening scripts
Add capture converting
  • Loading branch information
ente0v1 committed May 23, 2024
1 parent e53acb8 commit 5d84bd9
Show file tree
Hide file tree
Showing 16 changed files with 80 additions and 24 deletions.
6 changes: 3 additions & 3 deletions crack-bruteforce.sh
Original file line number Diff line number Diff line change
Expand Up @@ -60,13 +60,13 @@ status_timer=${status_timer_input:-default_status_timer}

# Print the hashcat command
echo -e "${GREEN}Restore >>${NC} $default_restorepath/$session"
echo -e "${GREEN}Command >>${NC} hashcat --session="$session" --increment --increment-min="$min_length" --increment-max="$max_length" -m "$hashmode" hash -a 6 -w 4 --outfile-format=2 -o plaintext.txt "$wordlist_path/$wordlist" "$mask""
echo -e "${GREEN}Command >>${NC} hashcat --session="$session" --increment --increment-min="$min_length" --increment-max="$max_length" -m "$hashmode" hash.txt -a 6 -w 4 --outfile-format=2 -o plaintext.txt "$wordlist_path/$wordlist" "$mask""

# Execute hashcat with combined attack (wordlist + mask) and increment options
if [ "$status_timer" = "y" ]; then
hashcat --session="$session" --status --status-timer=2 -m "$hashmode" hash -a 3 -w "$workload" --outfile-format=2 -o plaintext.txt "$mask"
hashcat --session="$session" --status --status-timer=2 -m "$hashmode" hash.txt -a 3 -w "$workload" --outfile-format=2 -o plaintext.txt "$mask"
else
hashcat --session="$session" -m "$hashmode" hash -a 3 -w "$workload" --outfile-format=2 -o plaintext.txt "$mask"
hashcat --session="$session" -m "$hashmode" hash.txt -a 3 -w "$workload" --outfile-format=2 -o plaintext.txt "$mask"
fi

# Save successful settings
Expand Down
6 changes: 3 additions & 3 deletions crack-combo.sh
Original file line number Diff line number Diff line change
Expand Up @@ -72,13 +72,13 @@ status_timer=${status_timer_input:-default_status_timer}

# Print the hashcat command
echo -e "${GREEN}Restore >>${NC} $default_restorepath/$session"
echo -e "${GREEN}Command >>${NC} hashcat --session="$session" --increment --increment-min="$min_length" --increment-max="$max_length" -m "$hashmode" hash -a 6 -w 4 --outfile-format=2 -o plaintext.txt "$wordlist_path/$wordlist" "$mask""
echo -e "${GREEN}Command >>${NC} hashcat --session="$session" --increment --increment-min="$min_length" --increment-max="$max_length" -m "$hashmode" hash.txt -a 6 -w 4 --outfile-format=2 -o plaintext.txt "$wordlist_path/$wordlist" "$mask""

# Execute hashcat with combined attack (wordlist + mask) and increment options
if [ "$status_timer" = "y" ]; then
hashcat --session="$session" --status --status-timer=2 --increment --increment-min="$min_length" --increment-max="$max_length" -m "$hashmode" hash -a 6 -w "$workload" --outfile-format=2 -o plaintext.txt "$wordlist_path/$wordlist" "$mask"
hashcat --session="$session" --status --status-timer=2 --increment --increment-min="$min_length" --increment-max="$max_length" -m "$hashmode" hash.txt -a 6 -w "$workload" --outfile-format=2 -o plaintext.txt "$wordlist_path/$wordlist" "$mask"
else
hashcat --session="$session" --increment --increment-min="$min_length" --increment-max="$max_length" -m 22000 hash -a 6 -w "$workload" --outfile-format=2 -o plaintext.txt "$wordlist_path/$wordlist" "$mask"
hashcat --session="$session" --increment --increment-min="$min_length" --increment-max="$max_length" -m 22000 hash.txt -a 6 -w "$workload" --outfile-format=2 -o plaintext.txt "$wordlist_path/$wordlist" "$mask"
fi

# Save successful settings
Expand Down
6 changes: 3 additions & 3 deletions crack-rule.sh
Original file line number Diff line number Diff line change
Expand Up @@ -58,13 +58,13 @@ status_timer=${status_timer_input:-default_status_timer}

# Print the hashcat command
echo -e "${GREEN}Restore >>${NC} $default_restorepath/$session"
echo -e "${GREEN}Command >>${NC} hashcat --session="$session" -m "$hashmode" hash -a 0 -w 4 --outfile-format=2 -o plaintext.txt "$wordlist" -r "$rule""
echo -e "${GREEN}Command >>${NC} hashcat --session="$session" -m "$hashmode" hash.txt -a 0 -w 4 --outfile-format=2 -o plaintext.txt "$wordlist" -r "$rule""

# Execute hashcat with rules
if [ "$status_timer" = "y" ]; then
hashcat --session="$session" --status --status-timer=2 -m "$hashmode" hash -a 0 -w "$workload" --outfile-format=2 -o plaintext.txt "$wordlist_path/$wordlist" -r "$rule"
hashcat --session="$session" --status --status-timer=2 -m "$hashmode" hash.txt -a 0 -w "$workload" --outfile-format=2 -o plaintext.txt "$wordlist_path/$wordlist" -r "$rule"
else
hashcat --session="$session" -m "$hashmode" hash -a 0 -w "$workload" --outfile-format=2 -o plaintext.txt "$wordlist_path/$wordlist" -r "$rule"
hashcat --session="$session" -m "$hashmode" hash.txt -a 0 -w "$workload" --outfile-format=2 -o plaintext.txt "$wordlist_path/$wordlist" -r "$rule"
fi

# Save successful settings
Expand Down
6 changes: 3 additions & 3 deletions crack-wordlist.sh
Original file line number Diff line number Diff line change
Expand Up @@ -47,13 +47,13 @@ status_timer=${status_timer_input:-default_status_timer}

# Print the hashcat command
echo -e "${GREEN}Restore >>${NC} $default_restorepath/$session"
echo -e "${GREEN}Command >>${NC} hashcat --session="$session" -m "$hashmode" hash -a 0 -w $wordload --outfile-format=2 -o plaintext.txt "$wordlist_path/$wordlist""
echo -e "${GREEN}Command >>${NC} hashcat --session="$session" -m "$hashmode" hash.txt -a 0 -w $wordload --outfile-format=2 -o plaintext.txt "$wordlist_path/$wordlist""

# Execute hashcat with the specified wordlist
if [ "$status_timer" = "y" ]; then
hashcat --session="$session" --status --status-timer=2 -m "$hashmode" hash -a 0 -w "$workload" --outfile-format=2 -o plaintext.txt "$wordlist_path/$wordlist"
hashcat --session="$session" --status --status-timer=2 -m "$hashmode" hash.txt -a 0 -w "$workload" --outfile-format=2 -o plaintext.txt "$wordlist_path/$wordlist"
else
hashcat --session="$session" -m "$hashmode" hash -a 0 -w "$workload" --outfile-format=2 -o plaintext.txt "$wordlist_path/$wordlist"
hashcat --session="$session" -m "$hashmode" hash.txt -a 0 -w "$workload" --outfile-format=2 -o plaintext.txt "$wordlist_path/$wordlist"
fi
# Save successful settings
save_settings "$session" "$wordlist_path" "$wordlist" ""
Expand Down
File renamed without changes.
3 changes: 3 additions & 0 deletions scripts/airodump-gathering
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/bash
echo -n "Interface: ";read interface;
sudo airmon-ng check kill;sudo airodump-ng $interface
5 changes: 5 additions & 0 deletions scripts/airodump-target
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/bash
echo -n "Interface: ";read interface;
echo -n "MAC: ";read mac;
echo -n "Channel: ";read channel;
sudo airodump-ng -w eapol --output-format pcap -c $channel --bssid $mac $interface
33 changes: 33 additions & 0 deletions scripts/converteapol
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
#!/bin/bash

# Prompt user for capture file input
ls .
echo -n "Capture file: "
read capture

# Check if capture file exists
if [ ! -f "$capture" ]; then
echo "Error: Capture file '$capture' not found."
exit 1
fi

# Extract ESSID list using hcxpcapngtool
hcxpcapngtool -o hash.txt -E essidlist "$capture"

# Check if essidlist file was generated
if [ ! -f "essidlist" ]; then
echo "Error: Failed to generate 'essidlist' file."
exit 1
fi

# Read ESSID from essidlist
ssid=$(cat essidlist)

# Create directory with ESSID name
mkdir -p "$ssid"

# Move hash file and essidlist to directory
mv hash.hc22000 "$ssid/"
mv essidlist "$ssid/"

echo "Conversion completed successfully. Output stored in: $ssid/"
4 changes: 4 additions & 0 deletions scripts/deauth-all
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/bash
echo -n "Interface: ";read interface;
echo -n "MAC: ";read ap;
sudo aireplay-ng --ignore-negative-one --deauth 0 -a $ap $interface
5 changes: 5 additions & 0 deletions scripts/deauth-target
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/bash
echo -n "Interface: ";read interface;
echo -n "MAC-AP: ";read ap;
echo -n "MAC-TARGET: ";read target;
sudo aireplay-ng --ignore-negative-one --deauth 0 -a $ap -c $target $interface
6 changes: 6 additions & 0 deletions status.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@

Session: oppo
Wordlist Path: /home/enteo/cracking/wordlists/full.txt
Mask:
Rule:
Plaintext:
6 changes: 3 additions & 3 deletions windows/crack-bruteforce.sh
Original file line number Diff line number Diff line change
Expand Up @@ -66,13 +66,13 @@ status_timer=${status_timer_input:-default_status_timer}

# Print the hashcat command
echo -e "${GREEN}Restore >>${NC} $default_restorepath/$session"
echo -e "${GREEN}Command >>${NC} hashcat.exe --session="$session" --increment --increment-min="$min_length" --increment-max="$max_length" -m "$hashmode" hash -a 6 -w 4 --outfile-format=2 -o plaintext.txt "$wordlist_path/$wordlist" "$mask""
echo -e "${GREEN}Command >>${NC} hashcat.exe --session="$session" --increment --increment-min="$min_length" --increment-max="$max_length" -m "$hashmode" hash.txt -a 6 -w "$workload" --outfile-format=2 -o plaintext.txt "$wordlist_path/$wordlist" "$mask""

# Execute hashcat with combined attack (wordlist + mask) and increment options
if [ "$status_timer" = "y" ]; then
"$hashcat_path/hashcat.exe" --session="$session" --status --status-timer=2 -m "$hashmode" hash -a 3 -w "$workload" --outfile-format=2 -o plaintext.txt "$mask"
"$hashcat_path/hashcat.exe" --session="$session" --status --status-timer=2 -m "$hashmode" hash.txt -a 3 -w "$workload" --outfile-format=2 -o plaintext.txt "$mask"
else
"$hashcat_path/hashcat.exe" --session="$session" -m "$hashmode" hash -a 3 -w "$workload" --outfile-format=2 -o plaintext.txt "$mask"
"$hashcat_path/hashcat.exe" --session="$session" -m "$hashmode" hash.txt -a 3 -w "$workload" --outfile-format=2 -o plaintext.txt "$mask"
fi

# Save successful settings
Expand Down
6 changes: 3 additions & 3 deletions windows/crack-combo.sh
Original file line number Diff line number Diff line change
Expand Up @@ -85,13 +85,13 @@ status_timer=${status_timer_input:-default_status_timer}

# Print the hashcat command
echo -e "${GREEN}Restore >>${NC} $default_restorepath/$session"
echo -e "${GREEN}Command >>${NC} hashcat.exe --session="$session" --increment --increment-min="$min_length" --increment-max="$max_length" -m "$hashmode" hash -a 6 -w 4 --outfile-format=2 -o plaintext.txt "$wordlist_path/$wordlist" "$mask""
echo -e "${GREEN}Command >>${NC} hashcat.exe --session="$session" --increment --increment-min="$min_length" --increment-max="$max_length" -m "$hashmode" hash.txt -a 6 -w "$workload" --outfile-format=2 -o plaintext.txt "$wordlist_path/$wordlist" "$mask""

# Execute hashcat with combined attack (wordlist + mask) and increment options
if [ "$status_timer" = "y" ]; then
"$hashcat_path/hashcat.exe" --session="$session" --status --status-timer=2 --increment --increment-min="$min_length" --increment-max="$max_length" -m "$hashmode" hash -a 6 -w "$workload" --outfile-format=2 -o plaintext.txt "$wordlist_path/$wordlist" "$mask"
"$hashcat_path/hashcat.exe" --session="$session" --status --status-timer=2 --increment --increment-min="$min_length" --increment-max="$max_length" -m "$hashmode" hash.txt -a 6 -w "$workload" --outfile-format=2 -o plaintext.txt "$wordlist_path/$wordlist" "$mask"
else
"$hashcat_path/hashcat.exe" --session="$session" --increment --increment-min="$min_length" --increment-max="$max_length" -m 22000 hash -a 6 -w "$workload" --outfile-format=2 -o plaintext.txt "$wordlist_path/$wordlist" "$mask"
"$hashcat_path/hashcat.exe" --session="$session" --increment --increment-min="$min_length" --increment-max="$max_length" -m 22000 hash.txt -a 6 -w "$workload" --outfile-format=2 -o plaintext.txt "$wordlist_path/$wordlist" "$mask"
fi

# Save successful settings
Expand Down
6 changes: 3 additions & 3 deletions windows/crack-rule.sh
Original file line number Diff line number Diff line change
Expand Up @@ -71,13 +71,13 @@ status_timer=${status_timer_input:-default_status_timer}

# Print the hashcat command
echo -e "${GREEN}Restore >>${NC} $default_restorepath/$session"
echo -e "${GREEN}Command >>${NC} hashcat.exe --session="$session" -m "$hashmode" hash -a 0 -w 4 --outfile-format=2 -o plaintext.txt "$wordlist" -r "$rule""
echo -e "${GREEN}Command >>${NC} hashcat.exe --session="$session" -m "$hashmode" hash.txt -a 0 -w "$workload" --outfile-format=2 -o plaintext.txt "$wordlist" -r "$rule""

# Execute hashcat with rules
if [ "$status_timer" = "y" ]; then
"$hashcat_path/hashcat.exe" --session="$session" --status --status-timer=2 -m "$hashmode" hash -a 0 -w "$workload" --outfile-format=2 -o plaintext.txt "$wordlist_path/$wordlist" -r "$rule"
"$hashcat_path/hashcat.exe" --session="$session" --status --status-timer=2 -m "$hashmode" hash.txt -a 0 -w "$workload" --outfile-format=2 -o plaintext.txt "$wordlist_path/$wordlist" -r "$rule"
else
"$hashcat_path/hashcat.exe" --session="$session" -m "$hashmode" hash -a 0 -w "$workload" --outfile-format=2 -o plaintext.txt "$wordlist_path/$wordlist" -r "$rule"
"$hashcat_path/hashcat.exe" --session="$session" -m "$hashmode" hash.txt -a 0 -w "$workload" --outfile-format=2 -o plaintext.txt "$wordlist_path/$wordlist" -r "$rule"
fi

# Save successful settings
Expand Down
6 changes: 3 additions & 3 deletions windows/crack-wordlist.sh
Original file line number Diff line number Diff line change
Expand Up @@ -60,13 +60,13 @@ status_timer=${status_timer_input:-default_status_timer}

# Print the hashcat command
echo -e "${GREEN}Restore >>${NC} $default_restorepath/$session"
echo -e "${GREEN}Command >>${NC} hashcat.exe --session="$session" -m "$hashmode" hash -a 0 -w "$workload" --outfile-format=2 -o plaintext.txt "$wordlist_path/$wordlist""
echo -e "${GREEN}Command >>${NC} hashcat.exe --session="$session" -m "$hashmode" hash.txt -a 0 -w "$workload" --outfile-format=2 -o plaintext.txt "$wordlist_path/$wordlist""

# Execute hashcat with the specified wordlist
if [ "$status_timer" = "y" ]; then
"$hashcat_path/hashcat.exe" --session="$session" --status --status-timer=2 -m "$hashmode" hash -a 0 -w "$workload" --outfile-format=2 -o plaintext.txt "$wordlist_path/$wordlist"
"$hashcat_path/hashcat.exe" --session="$session" --status --status-timer=2 -m "$hashmode" hash.txt -a 0 -w "$workload" --outfile-format=2 -o plaintext.txt "$wordlist_path/$wordlist"
else
"$hashcat_path/hashcat.exe" --session="$session" -m "$hashmode" hash -a 0 -w "$workload" --outfile-format=2 -o plaintext.txt "$wordlist_path/$wordlist"
"$hashcat_path/hashcat.exe" --session="$session" -m "$hashmode" hash.txt -a 0 -w "$workload" --outfile-format=2 -o plaintext.txt "$wordlist_path/$wordlist"
fi

# Save successful settings
Expand Down
File renamed without changes.

0 comments on commit 5d84bd9

Please sign in to comment.