Jump to content

BobZach

New Members
  • Posts

    2
  • Joined

  • Last visited

BobZach's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. @gw1500se Thanks for your reply. Convert unless a better way. The script searches in content of folders for whatever email address you query and greps all the lines with that email and posts it back in my terminal window. Here is an example of content in the plain text files. johndoe@gmail.com:1234567 janedoe@yahoo.com:abc123 bobbydoe@yahoo.com:password123 jennydoe@mail.com:8675309 jennydoe@mail.com:letmein123 Example of using the bash script in terminal. bash query.sh jennydoe@mail.com <---- Hit enter the script does its search checking for email in plain text doc. jennydoe@mail.com:8675309 <---- These results are displayed in the terminal window. jennydoe@mail.com:letmein123 <---- As you can see it is showing the plain text password. I do not want to expose peoples passwords online. le**ei**23 vs letmein123 is better for people checking to see if the email and password was breached online. Once again I will appreciate any help as I am very new to PHP. I have attached a picture of how in theory it should look. Thanks again.
  2. First off I want to thank everyone that is involved here in passing on the knowledge. After all that is what its all about. Okay so I want to do a campaign on password awareness and try to capitalize a little off of it. I came across the Breached_Compilation which is 1.4 billion email and plain text passwords. It has bash scripting in it to search and parse out the info from plain text documents which are in folders then prints the results in terminal. The other thing is that it posts the passwords in clear text. How would I obfuscate a portion of the clear text passwords? What would be the best way to integrate this to PHP? I am new to coding in PHP so any help is very much appreciated. Thanks an advance. Here is the Bash script. #!/bin/bash dir=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd ) if [ "$1" != "" ]; then letter1=$(echo ${1,,}|cut -b1) if [[ $letter1 == [a-zA-Z0-9] ]]; then if [ -f "$dir/data/$letter1" ]; then grep -ai "^$1" "$dir/data/$letter1" else letter2=$(echo ${1,,}|cut -b2) if [[ $letter2 == [a-zA-Z0-9] ]]; then if [ -f "$dir/data/$letter1/$letter2" ]; then grep -ai "^$1" "$dir/data/$letter1/$letter2" else letter3=$(echo ${1,,}|cut -b3) if [[ $letter3 == [a-zA-Z0-9] ]]; then if [ -f "$dir/data/$letter1/$letter2/$letter3" ]; then grep -ai "^$1" "$dir/data/$letter1/$letter2/$letter3" fi else if [ -f "$dir/data/$letter1/$letter2/symbols" ]; then grep -ai "^$1" "$dir/data/$letter1/$letter2/symbols" fi fi fi else if [ -f "$dir/data/$letter1/symbols" ]; then grep -ai "^$1" "$dir/data/$letter1/symbols" fi fi fi else if [ -f "$dir/data/symbols" ]; then grep -ai "^$1" "$dir/data/symbols" fi fi else echo "[*] Example: ./query name@domain.com" fi
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.