Last active
December 30, 2021 00:05
-
-
Save suuhm/cd4559783639c0f7f19e3f41c7aa84dd to your computer and use it in GitHub Desktop.
find hidden password on filesystem, linux , kodi / windows / mac
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash | |
# (C) 2021 - suuhm | |
# | |
# Needs: xrags, egrep, bash | |
# | |
# Mounting desired partition/drive | |
# mount /dev/windows /mnt | |
# Setup dir | |
dir=/home/ | |
grep -rloi password $dir | xargs -I-- bash -c 'echo -e "\n\n >> File: -- \n $(grep -i -E "user*|passw*" --)"' | tee pwds_file.txt | |
grep --color -E 'pass.*\=' pwds_file.txt | |
grep --color -E 'pass.*\>' pwds_file.txt | |
# manual searching | |
less pwds_file.txt | |
exit 0; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment