Click here to Skip to main content
13,043,491 members (53,511 online)
Rate this:
Please Sign up or sign in to vote.
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 -

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

# ! /bin/sh
# 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.
# Author: shunter
# 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
PASSWORD=$(encrypt-decrypt decode $PASS | awk '$0!~/^$/ {print $0}')
ping -c 2 > /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 -O - |grep "$ALERT")
	if [ $? -eq 0 ];
		#echo "Alert mail found, this notebook/pc might been stolen!!"
		#echo "Retrieving ip adress ..."
		IP=$(wget -q -O - |tail) && wait $!
		#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 -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."
		#echo "No alert message found ..exiting."
	#echo "Not online ..."

case "$1" in
	echo "This option is not supported."
	echo "This option is not supported"
        echo "Usage: /etc/init.d/$0 {start|stop|restart}"
        exit 1
exit 0
Posted 5-Apr-11 17:10pm
Updated 5-Apr-11 18:11pm
Richard MacCutchan 12-Apr-11 16:38pm
So how does the thief actually trigger this script, which is a UNIX shell script - not much use on a Windows laptop.
Kiraichi 12-Apr-11 17:05pm
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. =(
Richard MacCutchan 13-Apr-11 3:13am
I still don't understand how this can trigger a Unix shell script in the stolen laptop. Is this laptop running a version of UNIX that is always connected to the internet and automatically receiving the email messages?
Kiraichi 13-Apr-11 7:03am
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, 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.
Richard MacCutchan 13-Apr-11 8:40am
Sorry, but I cannot think of anything else to suggest; I guess you need to do some detailed test/debugging to find out what is happening at each stage.

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

any takers? =( =( =( =( =( =( =( =( =( =( =( =( =( =( =( =(

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web02 | 2.8.170713.1 | Last Updated 12 Apr 2011
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100