Jump to content

Thief Catcher program, (free) help needed.

- - - - -

  • Please log in to reply
4 replies to this topic

#1
Kiraichi

Kiraichi

    Newbie

  • Members
  • Pip
  • 4 posts
me and my team working on a project called Stealth Hunter,

Summarize about our project.
Stealth Hunter is a thief catcher, It will silently take a snapshot of user using a stolen notebook or pc with webcam and send the information via email.

so, the problem is, the scripts wont trigger it. Maybe something wrong with the script? hope someone can take a look on it. Thanks.

Here's our full Stealth Hunter Scripts - shunter.rar

and this is where the main line/code (also included on link above).

# ! /bin/sh

### BEGIN INIT INFO

# Provides:          Stealth Hunter

# Required-Start:    $local_fs $network

# Required-Stop:     $local_fs $remote_fs

# Default-Start:     2 3 4 5

# Default-Stop:      0 1 6

# Short-Description: Stealth Hunter catcher

# Description:       Stealth Hunter is a thief catcher

#                    It will silently take a snapshot of user using a stolen notebook

#		     or pc with webcam and send back an email.

### END INIT INFO


# Author: shunter


CONFIGURE="No"


# Reads config file 

[ -r /etc/default/shunter ] && . /etc/default/shunter



if [ $CONFIGURED != "Yes" ]; then

	echo "/etc/default/shunter not configured yet!"

	echo "Exiting ..."

	exit 0

fi


PASSWORD=$(encrypt-decrypt decode $PASS | awk '$0!~/^$/ {print $0}')


do_start() 

{

ping -c 2 google.com > /dev/null 2>&1 

if [ $? -eq 0 ]; then 

	#echo "Checking alert mail ..."

	check_mail=$(wget -T 3 -t 1 -q --secure-protocol=TLSv1 --no-check-certificate  --user=$USER --password=$PASSWORD https://mail.google.com/mail/feed/atom -O - |grep "$ALERT")

	if [ $? -eq 0 ];

	then

		#echo "Alert mail found, this notebook/pc might been stolen!!"

		#echo "Retrieving ip adress ..."

		IP=$(wget -q -O - http://whatismyip.org |tail) && wait $!

		DATE=`date`

		#echo "Taking snapshot ..."

		mplayer tv:// -tv driver=v4l2:width=320:height=240:outfmt=uyvy:device=/dev/video0 -frames 3 -vo jpeg:outdir=/tmp >/dev/null 2>&1 && wait $!

		#echo -n "Sending mail ..."

		sendEmail -f shunter@google.com -t $USER -s $MAIL_SERV:$PORT -xu $USER -xp $PASSWORD -u $TITLE -m "$MESSAGE\nIP : $IP  DATE: $DATE\n" -a $ATTACHMENT >/dev/null

		#echo "Done."

		exit

	else

		#echo "No alert message found ..exiting."

		exit

	fi

else

	#echo "Not online ..."

	exit

fi

}



case "$1" in

  start)

	do_start

	;;

	

  stop)

	echo "This option is not supported."

	;;


  restart)

	echo "This option is not supported"

	;;

    *)

        echo "Usage: /etc/init.d/$0 {start|stop|restart}"

        exit 1

        ;;


esac


exit 0

Attached Files



#2
Kiraichi

Kiraichi

    Newbie

  • Members
  • Pip
  • 4 posts
its actually triggered by the owner itself. he or she might go to any pc, compose new email and send email to integrated email which is confirgured earlier (in stolen laptop) with "STOLEN" subject email. but nothing happened. it should work. all the coding is correct. hope someone can take a look at it.

sorry for my broken english. =(

#3
Alexander

Alexander

    It's Science!

  • Moderators
  • 4,118 posts
  • Location:Vancouver, Eh! Cleverness: 200
You will need to write out every step your program does for both sending and checking, and use debugging and logic to see what went wrong, and where.

For example, does your program actually send the e-mail? It may not be doing anything, it could be a statement that is never reached, it could be anything. Try some necessary error checking and report back what you think is wrong.

A side note: /dev/video or mplayer is not guaranteed to be on their system, you should check if they exist first before calling them for example.
Be sure to read the updated FAQ! || Health is achieved through the same 10,000 steps.
If a suggested code/method fails, informing us is less important than telling us why or what errors occurred.

#4
Kiraichi

Kiraichi

    Newbie

  • Members
  • Pip
  • 4 posts
thats the main problem.

"does my program actually send the e-mail"

yea, it may not be doing anything, i hope someone can take a look at it, maybe i missing something. ill take a look about ur side note. thanks anyway for ur reply.!

#5
Kiraichi

Kiraichi

    Newbie

  • Members
  • Pip
  • 4 posts
i integrated this laptop with WWAN PCi slot together with my wireless broadband (SIM).

so it will automatically connected the internet once it is on. the script supposed to capture the image of the thief and together with the IP address once the owner send an email with SUBJECT STOLEN to shunter@gmail.com, which is integrated configured with the program inside that stolen laptop.

thanks for ur reply anyway. hope hear any cents from u soon. =)

p/s: i configure/install this program OS backtrack r2.




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users