The script wont trigger it. Thief Catcher program (open source)


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting The script wont trigger it. Thief Catcher program (open source)
# 1  
Old 04-13-2011
PHP The script wont trigger it. Thief Catcher program (open source)

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.

how it work is:
The scripts will triggered by the owner itself. he or she might go to another pc, compose new email and send email to integrated email which is configured in the stealth hunter script earlier (in stolen laptop) with "STOLEN" subject email. but nothing happened. it suppose trigger the scripts, once it triggered, it automatically capture the webcam (stolen laptop) together with their ip too. but, nothing happened. maybe something wrong with it.

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 - (SEE ATTACHMENT)

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

Code:
# ! /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 - 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

Login or Register to Ask a Question

Previous Thread | Next Thread

6 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Exit script and open program via other user

Hello all.. so i have a problem i need to solve .. #! /bin/bash $SHELL dtterm -title my_prog -e su -user -c 'export DISPLAY=:0.0 ; /path/to/my/prog' & 2> /dev/null $SHELL intr exit This script will work on solaris 10 system in right clikt menu - in a secure system so i need to... (0 Replies)
Discussion started by: defs
0 Replies

2. Programming

Program wont print prime numbers

The problem I'm having is that when you put in the two numbers the answer is just prime.... nothing. I cannot figure this out ive been working on this forever, can someone please god just tell me how to fix this without encrypted "hints". #include <iostream> #include <cmath> using... (3 Replies)
Discussion started by: c++newb
3 Replies

3. Shell Programming and Scripting

Source trigger in Unix shell

Hi All, Is ther any way to write the script with source trigger ? To trigger the script on particular time we have crontab. Similarly in a path, when a file comes particular script has to run. Thanks:) (7 Replies)
Discussion started by: jesu
7 Replies

4. UNIX for Dummies Questions & Answers

Match the amount fields in the source file vs trigger file

Hello, I have to write a script to compare the sum of the amount fields in a source file and the amount field in another file. details are: based on the name of the source file (say SALES as an example), a file already available in a path will be grabbed (say SALES_ParmFile) and this file... (4 Replies)
Discussion started by: vijaylak
4 Replies

5. UNIX for Dummies Questions & Answers

Script to open program and send/execute command in program

Hi, i want to write a script that executes a program (exec?) . this program then requires a filename as input. how do i give it this input in the script so the program will be complete run and close by the script. e.g. exec prog.exe program then asks for filename "enter filename:"... (1 Reply)
Discussion started by: tuathan
1 Replies

6. Cybersecurity

PF wont open port despite rules...

Hello, I just dont get it. I have a PF firewall on my DSL connection with 3 internal network interfaces. On one of the internal networks (LNETTR) theres a web server and a smtp server. However; despite redirections and filtering rules it doesn't work. The ports redirected does not open. If I... (2 Replies)
Discussion started by: Dain_L
2 Replies
Login or Register to Ask a Question