Fix Formatting
1 parent 6cd8c38 commit 1d8c0035698b666efd9ce4a52950bdc638a102d2
root authored on 18 May 2019
Showing 1 changed file
View
16
README.md
<u>GoSMS</u>
===============
 
SMSishing implementation using GoPhish and Trilio SMS gateway
SMShing implementation using GoPhish and Trilio SMS gateway
 
<u>Usage</u>
===============
replace email addresses with [mobile no]@gophish.sms where mobile number stats with country code prefix e.g. +44 = UK
Replace email addresses with [mobile no]@gophish.sms where mobile number starts with country code prefix e.g. +44 = UK
 
SMS should contain less than 1600 characters otherwise will be split into multiple SMS's
 
Email template should be plaintext only, not HTML (this should be obvious)
 
non-MMS so dont use tracking image {{.Tracker}} or HTML contents
Non-MMS so dont use tracking image {{.Tracker}} or HTML contents
 
Email Opened - actually means delivered (Response from Trilio API)
Email Opened - Actually means delivered (Response from Trilio API)
 
<u>Setup</u>
===============
Clone this repo into /opt/GoSMS/
 
<u>**Setup Postfix**</u>
 
1) Tell Postfix To Use Our Virtual Alias db and virtual domains in **/etc/postfix/main.cf**:
1) Tell postfix to use virtual alias db and virtual domains in **/etc/postfix/main.cf**:
 
virtual_alias_maps = hash:/etc/postfix/virtual_maps, regexp:/etc/postfix/virtual_regexp
virtual_alias_domains=/etc/postfix/virtual_domains
 
2) add domain to **/etc/postfix/virtual_domains**
2) Add domain to **/etc/postfix/virtual_domains**
 
echo "gophish.sms" >> /etc/postfix/virtual_domains
 
3) Redirect the email to a local user by adding to **/etc/postfix/virtual_regexp**:
4) Update **/etc/aliases** to redirect email addressed to the local user to a script:
 
apache: "|/usr/bin/php -q /opt/GoSMS/SendSMS.php"
 
5) Rebuild Aliases & Restart Postfix
5) Rebuild aliases & restart postfix
 
sudo newaliases; sudo postfix reload; sudo service postfix restart
 
 
2) Make SMSResponse.php accessible from the web, a couple of ways of doing this:
 
2a) Sore in webserver folder running on different port e.g. /var/www/html/SMSResponse.php with apache running on port 8888
 
2b) run a simple PHP server from the GoSMS directory:
2b) Run a simple PHP server from the GoSMS directory:
 
php -S 0.0.0.0:8888
 
Buy Me A Coffee