Skip to content

Instantly share code, notes, and snippets.

@suuhm
Last active December 30, 2021 00:05
Show Gist options
  • Save suuhm/cd4559783639c0f7f19e3f41c7aa84dd to your computer and use it in GitHub Desktop.
Save suuhm/cd4559783639c0f7f19e3f41c7aa84dd to your computer and use it in GitHub Desktop.
find hidden password on filesystem, linux , kodi / windows / mac
#! /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