forked from aryanguenthner/365
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtxt-alert-install.sh
45 lines (40 loc) · 1.05 KB
/
txt-alert-install.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
# Setup Text and Email alerts on Kali Linux 2014.4
# Generate Applicaiton Password
# Last updated 12/19/2022
: '
apt update && apt -y upgrade
apt -y install mailutils mpack ssmtp
'
# Generate ssmtp Applicaiton Password
: '
https://myaccount.google.com/apppasswords
Choose Other (Custom name), type ssmtp and click Generate.
Copy the generated password and save it.
'
# ssmtp Config
: '
sudo nano -c /etc/ssmtp/ssmtp.conf
# comment everything out everything and keep it in this format.
mailhub=smtp.gmail.com:587
hostname=kali
rewriteDomain=hacked.com
useSTARTTLS=YES
AuthPass=TheGeneratedPassword
TLS_CA_File=/etc/pki/tls/certs/ca-bundle.crt
FromLineOverride=YES
'
# Save and close ssmtp.conf
#
: '
mkdir -p /home/kali/Desktop/testing
cd /home/kali/Desktop/testing
nano -c txt-alert.sh
# Enter this in the txt-alert.sh
DATE="$(date +%Y%m%d)"
xfce4-screenshooter -f -c -s $DATE.jpg --no-border
mpack -s "hacked" $DATE.jpg [email protected]
'
# Save and close txt-alert.sh
# Test it out!!
nmap -sn -n yahoo.com && ./txt-alert.sh