This article outlines how to use shortcodes in the Phishing Creator
Shortcodes are a powerful tool that will allow you to add dynamic (and sometimes randomized) information to custom phishing campaigns. A shortcode is written inside two square brackets. For example, the [firstname] shortcode can be used to insert the target recipient's first name into the body of the scenario.
Some shortcodes are modifiers. Modifiers are unique in that they need the addition of a closing code, which will always be forward slash followed by the shortcode name itself.
The [future-date] shortcode will generate a future date/time and parse it into the desired format. The available periods are minutes, hours, days, weeks, months, or years.
I will be out of the office on [future-date amount="5" period="days" format="m-d-Y"]
This will generate a future date 5 days in the future based on the current date/time.
The [past-date] shortcode will generate a past date/time and parse it into the desired format.
I was out of the office on [past-date amount="2" period="months" format="m-d-Y"].
This will generate a past date 2 months in the past based on the current date/time.
Name To Email
The [name-to-email] shortcode will transform the given name into a formatted email address. This can be helpful when dynamically generating a random name and needing a matching email to go with it.
- "f" = first name, email@example.com
- "l" = last name, firstname.lastname@example.org
- "f.l" = first period last, email@example.com
- "l.f" = last period first, firstname.lastname@example.org
- "fi.l" = first initial period last, email@example.com
- "f.li" = first period last initial, firstname.lastname@example.org
[name-to-email format="l.f" domain="gmail.com"]David Brent[/name-to-email]
The [random-ip-address] shortcode will generate a random IP address in either IPV4 (default) or IPV6 variations.
Might become "192.0. 2.146".
The [random-name] shortcode will generate a random fictitious persons name. You can optionally pass a gender of "male" or "female" as well as the option of generating only a first or last name.
The [random-number] shortcode will generate a random integer between the "from" and "to" attributes passed.
My account number is [random-number from="999" to="9999"]
Might become "2975".
The [random-option] shortcode will generate a random string based on the options provided. Options must be separated by a tilde symbol (~). This can be useful when you want to create some uniqueness to a scenario but still within the context of your options.
I am from the local [random-option options="Fire~Police"] Department.
Might become "Police".
The [random-state] shortcode will generate a random US state and can optionally abbreviate the response by passing a format attribute of "abbr".
I live in [random-state] or [random-state format="abbr"].
Might become "New Jersey" or "NJ".
The [bait-link] shortcode will generate a hyperlink that directs the recipient to the valid "bait link" URL configured for the scenario. You may optionally pass a "class" or "style" attribute.
Please click [bait-link]here[/bait-link].
Might become "<a href="http://www.businessnotice.org/scam">here</a>".
The following shortcodes are all specific to the recipient the scenario is being sent to and will only work if the recipient has corresponding data. This is decided at the time of sending, and therefore may be different than what is shown in a preview.
The [company] shortcode will generate the learner's parent company name with option to "normalize" the name (useful for URL encoding).
You work for [company].
The [coworker] shortcode will generate the email address of a fellow co-worker to the recipient. An optional "pattern" attribute accepts a string that contains an asterisk (*) and will replace the asterisk with the co-worker's email address. Additionally a "fallback" attribute can be provided in the event that the recipient doesn't have any other active learner's in their parent company.
Want to grab a coffee with [coworker pattern="me and *" fallback="me"].
The [domain] shortcode will generate the domain name of the recipient's email address.
I was found you on [domain].
The [email] shortcode will generate the email address of the recipient.
This email is intended for [email] only.
The [firstname] shortcode will generate the recipient's first name if provided inside the Learner settings. An optional "pattern" attribute accepts a string that contains an asterisk (*) and will replace the asterisk with first name. Additionally a "fallback" attribute can be provided in the event that the recipient doesn't have a first name provided.
Hi [firstname pattern="*" fallback="User"]
The [lastname] shortcode will generate the recipient's last name if provided inside the Learner settings. An optional "pattern" attribute accepts a string that contains an asterisk (*) and will replace the asterisk with last name. Additionally a "fallback" attribute can be provided in the event that the recipient doesn't have a last name provided.
Happy Holidays from the [lastname pattern="* family" fallback="whole team"]!
Might become "Johnson family" or "whole team" if no last name is available.