Created
June 23, 2019 12:24
-
-
Save AnimeshShaw/469c1c004ddaec130250052e90ff2d74 to your computer and use it in GitHub Desktop.
A Simple bash script to list all users using finger service on *nix via bruteforce.
This file contains 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 | |
input="/usr/share/metasploit-framework/data/wordlists/unix_users.txt" | |
if [ "$1" == "" ]; then | |
echo "Ennter Host IP." | |
else | |
while IFS= read -r item | |
do | |
output=$(finger $item@$1) | |
if [[ $output != *'no such user'* ]] | |
then | |
[ ! -z "$item" ] && echo "Found User: $item" | |
fi | |
done < "$input" | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment