Skip to content

Instantly share code, notes, and snippets.

@AnimeshShaw
Created June 23, 2019 12:24
Show Gist options
  • Save AnimeshShaw/469c1c004ddaec130250052e90ff2d74 to your computer and use it in GitHub Desktop.
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.
#!/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