Jump to content
Sign in to follow this  
sunjester

A Simple Social Username Checker

1 post in this topic

Offline
#!/bin/bash
#sunjester

if [ $# -eq 0 ]
       then
       echo "No username supplied"
       exit 1
fi

echo "checking for username: "[email protected]

RED=`tput setaf 1`
GRN=`tput setaf 2`
RST=`tput sgr0`

sites=(
       "https://www.facebook.com"
       "https://www.instagram.com"
       "https://www.twitter.com"
       "https://www.youtube.com/user"
       "https://www.reddit.com/user"
       "https://www.pinterest.com"
       "https://www.github.com"
       "https://www.patreon.com"
)

for site in "${sites[@]}"
do
       res=$(curl -Is $site"/"[email protected]"/" >social;head -n1 social)
       code=`echo $res|cut -d' ' -f2`
       case $code in
               200)
               echo $GRN $site"/"[email protected]"/" $RST
               ;;
               404)
               echo $RED $site"/"[email protected]"/" $RST
               ;;
               301)
               echo $GRN $site"/"[email protected]"/" $RST
               ;;
               405)
               echo $RED $site"/"[email protected]"/" $RST
               ;;
       esac
done

rm social

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

About us

3rdWorld.cc is a cracking forum community that suits the purpose of everyone. We offer paid program for free, cracking tools, combolists, marketplace and many more. You can also expand on knowledge and participate in active discussions.

×