-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathSCREEN_KILLERv1.2.sh
executable file
·95 lines (89 loc) · 3.38 KB
/
SCREEN_KILLERv1.2.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
#!/bin/bash
# This script was to developed to capture screenshot during pentest and OSCP
# Version="version 1"
# V1: Date Created : 17/02/2020
# Date of last modification : 19/02/2020
# @TH3_ACE - BLAIS David
##### (Cosmetic) Colour output
RED="\033[01;31m" # Issues/Errors
GREEN="\033[01;32m" # Success
YELLOW="\033[01;33m" # Warnings/Information
BLUE="\033[01;34m" # Heading
BOLD="\033[01;01m" # Highlight
RESET="\033[00m" # Normal
#$SCRIPT_PATH1="./scripts/"
cat << "EOF"
____ ____ ____ _____ _____ _ _ _ __ ___ _ _ _____ ____
/ ___| / ___|| _ \ | ____|| ____|| \ | | | |/ /|_ _|| | | | | ____|| _ \
\___ \ | | | |_) || _| | _| | \| | | ' / | | | | | | | _| | |_) |
___) || |___ | _ < | |___ | |___ | |\ | | . \ | | | |___ | |___ | |___ | _ <
|____/ \____||_| \_\|_____||_____||_| \_|_____|_|\_\|___||_____||_____||_____||_| \_\
|_____|
EOF
#echo -e "\n"
#echo -e "\n"
echo -e "${BLUE} @TH3_ACE - BLAIS David"
echo -e "${BLUE} Contribute and collaborate to the KILLER project @ https://github.com/TH3xACE ${RESET}"
#echo -e "\n"
PS3="Please enter your choice:"
options=("Start recording commands" "Stop recording commands" "Start Screen Capture" "Stop Screen Capture" "Quit")
select opt in "${options[@]}"
do
case $opt in
"Start recording commands")
chkterm=" "
chkterm=$(cat $HOME/.bashrc | grep "tcommands")
if [ "$chkterm" ]; then
echo -e "${RED}[*] There is already a recording session running. ${RESET}"
else
:
echo -e "${GREEN}[+] Recording of commands - Started ${RESET}"
bash "$PWD/start_recterm.sh"
echo -e "${YELLOW}[*] Please open new ternimal/s for the logging.${RESET}"
fi
;;
"Stop recording commands")
chkterm=" "
chkterm=$(cat $HOME/.bashrc | grep "tcommands")
if [ "$chkterm" ]; then
echo -e "${YELLOW}[-] Stopping the recording of commands...Leave a little time for all commands to get saved then close all the terminals. ${RESET}"
bash "$PWD/stop_recterm.sh"
else
:
echo -e "${RED}[*] There is no running session to stop... ${RESET}"
fi
;;
"Start Screen Capture")
chkscr=" "
chkscr=$(crontab -l | grep "scr_cap")
if [ "$chkscr" ]; then
echo -e "${RED}[*] There is already a recording session running. ${RESET}"
else
:
#echo -e "${YELLOW} Starting screen capture... ${RESET}"
echo -e "${RED} [+] Please enter the frequency screen capture in seconds: ${RESET}"
read freq
#echo $freq
echo -e "${YELLOW}[-] Starting screen capture... ${RESET}"
bash "$PWD/start_recscr.sh" $freq
freq=" "
echo -e "${GREEN}[+] Screen capture started... ${RESET}"
fi
;;
"Stop Screen Capture")
chkscr=" "
chkscr=$(crontab -l | grep "scr_cap")
if [ "$chkscr" ]; then
echo -e "${YELLOW}[-] Stopping screen capture...Please wait a few moment! ${RESET}"
bash "$PWD/stop_recscr.sh"
else
:
echo -e "${RED}[*] There is no running session to stop... ${RESET}"
fi
;;
"Quit")
break
;;
*) echo invalid option;;
esac
done