
نص برمجي منظم للغاية ومرن لإرسال حملات التصيد
سكربت فائق التنظيم والمرونة لإرسال حملات التصيد.
goPhish هو خيار رائع أيضاً. لكني أفضل المرونة والبساطة في نفس الوقت. لقد استخدمت goPhish مرات عديدة ولكن في مرحلة ما، أجدها إما مُربكة أو غير مرنة.
في معظم الأوقات، لا أحتاج كل هذه الإحصائيات، أحتاج فقط طريقة مرنة لإعداد حملات التصيد وإرسالها. في كل مرة أستخدم فيها goPhish، يجب أن أذهب وأتحقق من التوثيقات حول كيفية إضافة موقع ويب، توجيه طلبات محددة، إلخ. لذا قمت بإنشاء goCabrito و getCabrito.
getCabrito يُنشئ اختيارياً رابطاً فريداً لتتبع البريد الإلكتروني.
عن طريق إنشاء رمز فريد لكل بريد إلكتروني وإلحاقه بنهاية الرابط URL أو رابط الصورة وتخزين هذه المعلومات إلى جانب أشياء أخرى مفيدة لاستيرادها في getCabrito وخدمتها. هذه الميزة هي الشيء الوحيد الذي يربط goCabrito بسكربت getCabrito، فلا داعي للهلع!
إنه مجرد اسم أحد المطاعم المفضلة لدي، وتم اختيار الاسم من قبل أحد أفراد فريقي.
تثبيت تبعات الجيمات
sudo apt-get install build-essential libsqlite3-dev
تثبيت الجيمات
gem install mail sqlite3
goCabrito.rb — A simple yet flexible email sender.
Help menu:
-s, --server HOST:PORT SMTP server and its port.
e.g. smtp.office365.com:587
-u, --user USER Username to authenticate.
e.g. [email protected]
-p, --pass PASS Password to authenticate
-f, --from EMAIL Sender's email (mostly the same as sender email)
e.g. [email protected]
-t, --to EMAIL|LIST|CSV The receiver's email or a file list of receivers.
e.g. [email protected] or targets.lst or targets.csv
The csv expected to be in fname,lname,email format without header.
-c, --copy EMAIL|LIST|CSV The CC'ed receiver's email or a file list of receivers.
-b, --bcopy EMAIL|LIST|CSV The BCC'ed receiver's email or a file list of receivers.
-B, --body MSG|FILE The mail's body string or a file contains the body (not attachements.)
For click and message opening and other trackings:
Add {{track-click}} tag to URL in the HTML message.
eg: http://phisher.com/file.exe/{{track-click}}
Add {{track-open}} tag into the HTML message.
eg: <html><body><p>Hi</p>{{track-open}}</body></html>
Add {{name}} tag into the HTML message to be replaced with name (used with --to CSV).
eg: <html><body><p>Dear {{name}},</p></body></html>
Add {{num}} tag to be replaced with a random phone number.
-a, --attachments FILE1,FILE2 One or more files to be attached seperated by comma.
-S, --subject TITLE The mail subject/title.
--no-ssl Do NOT use SSL connect when connect to the server (default: false).
-g, --groups NUM Number of receivers to send mail to at once. (default all in one group)
-d, --delay NUM The delay, in seconds, to wait after sending each group.
-P, --profile FILE A json file contains all the the above settings in a file
-D, --db FILE Create a sqlite database file (contains emails & its tracking hashes) to be imported by 'getCabrito' server.
--dry Dry test, no actual email sending.
-h, --help Show this message.
Usage:
goCabrito.rb <OPTIONS>
Examples:
$goCabrito.rb -s smtp.office365.com:587 -u [email protected] -p P@ssword1 \
-f [email protected] -t targets1.csv -c targets2.lst -b targets3.lst \
-B msg.html -S "This's title" -a file1.docx,file2.xlsx -g 3 -d 10
$goCabrito.rb --profile prf.json
dry أولاً (تحقق من قيمة dry في ملف الإعدادات)ruby goCabrito.rb -P CUSTOMER/3/camp3.json --dry
--dry والتأكد من أن قيمة dry هي false في ملف الإعداداتفي الوقت الحالي، تقوم العديد من مزودي البريد الإلكتروني السحابي بحظر مصادقة SMTP افتراضياً (مثل Office365, GSuite). هذا بالتأكيد سيسبب خطأ. لحل ذلك، فيما يلي بعض الخطوات لمساعدتك على تفعيل مصادقة SMTP على مزودين مختلفين.
لتمكين مصادقة SMTP بشكل عام، استخدم PowerShell.
$ sudo pwsh
Install-Module -Name PSWSMan -Scope AllUsers
Install-WSMan
Install-Module -Name ExchangeOnlineManagement
Import-Module ExchangeOnlineManagement
Connect-ExchangeOnline -InlineCredential
الأمر أعلاه سيطلب منك إدخال بيانات اعتماد مسؤول Office365
PowerShell credential request
Enter your credentials.
User: [email protected]
Password for user [email protected]: **********
Connect-ExchangeOnline -UserPrincipalName [email protected]
Set-TransportConfig -SmtpClientAuthenticationDisabled $false
Set-CASMailbox -Identity [email protected] -SmtpClientAuthenticationDisabled $false
Get-CASMailbox -Identity [email protected] | Format-List SmtpClientAuthenticationDisabled
Get-TransportConfig | Format-List SmtpClientAuthenticationDisabled
ثم اتبع الخطوات التالية