Pages
Pages are the HTML pages a recipient sees after clicking the link in a campaign email. A page is used in the Page Flow of a template as the Before Landing, Landing or After Landing page. A campaign can also use a page as its Deny Page or Anti-bot / Evasion Page.
Overview
Where: Domains > Pages
The list shows all pages. Click a page name to edit it. The row menu has Update, Copy and Delete. Deleting a page makes the templates that use it unusable and closes scheduled or active campaigns that use it right away, also when they have a later close time. A program keeps running, skips that template and shows as needs attention. A page used as deny or evasion page by an open campaign or program cannot be deleted. A closed one that uses it as deny page also loses its evasion page and allow or deny lists, as those need a deny page. One that uses it only as evasion page loses just that.
Create new page
Click New Page, enter a Name (up to 64 characters) and write the HTML content in the editor.
To capture data, let the form submit to {{.URL}} with
POST. Submitted fields are recorded as a submitted data event (stored only when
the campaign saves submitted data) and the recipient moves on to the next page in the flow.
Editor
The page editor has a toolbar above the code.
| Control | Description |
|---|---|
| Load File | Load HTML content from a file |
| Templates... | Insert a template variable or function |
| Select preview domain... | Domain used to render the preview, so assets and URLs resolve |
| Vim | Turn Vim key bindings on or off (Ctrl+Alt+V) |
| Preview | Show a live preview next to the editor that updates as you type |
| New Window | Open the preview in a new window |
| Expand | Show the editor in full screen |
Template Variables
Variables in the page content are replaced with the values of the recipient and campaign when the page is served.
| Variable | Description |
|---|---|
{{.rID}} | Identifier of the recipient in this campaign |
{{.FirstName}} | Recipient's first name |
{{.LastName}} | Recipient's last name |
{{.Email}} | Recipient's email address |
{{.To}} | Alias for recipient's email address (same as {{.Email}}) |
{{.Phone}} | Recipient's phone number |
{{.ExtraIdentifier}} | Additional custom identifier for recipient |
{{.Position}} | Recipient's job position |
{{.Department}} | Recipient's department |
{{.City}} | Recipient's city |
{{.Country}} | Recipient's country |
{{.Misc}} | Miscellaneous recipient information |
{{.From}} | Sender's full address (name and email) |
{{.FromName}} | Sender's display name |
{{.FromEmail}} | Sender's email address |
{{.Subject}} | Email subject line |
{{.BaseURL}} | Base URL of the campaign domain (e.g., https://example.com) |
{{.URL}} | Full campaign URL that links to the next page in the flow. Prefer this in almost all cases, it always points recipients to the correct next step. |
{{.BeforeLandingPageURL}} | Direct URL to the before landing page. Empty when the campaign template has no
before landing page. For special flows only, prefer {{.URL}}. |
{{.LandingPageURL}} | Direct URL to the landing page. For special flows only, prefer
{{.URL}}. |
{{.AfterLandingPageURL}} | Direct URL to the after landing page. Empty when the campaign template has no
after landing page. For special flows only, prefer {{.URL}}. |
{{.DenyURL}} | URL that shows the campaign deny page. Used in an Anti-bot / Evasion Page to send a visitor that fails the check to the deny page. |
{{.RandomRecipient.*}} | Access to a random recipient's data from the same company (excludes current recipient).
Available fields: FirstName, LastName,
Email, Phone, ExtraIdentifier,
Position, Department, City,
Country, Misc |
Template Functions
Pages also support these functions:
| Function | Description | Example |
|---|---|---|
urlEscape | Encodes a string for use in a URL query | {{urlEscape .Email}} |
htmlEscape | Escapes HTML special characters in a string | {{htmlEscape .FirstName}} |
randInt | Generates a random integer between two numbers (inclusive) | {{randInt 1 100}} (a number from 1 to 100) |
randAlpha | Random string of letters (a to z, A to Z), up to 32 characters | {{randAlpha 8}} (8 random letters) |
qr | QR code as HTML for a string. An optional second number sets the dot size (default 5) | {{qr .URL}}{{qr .URL 4}} |
date | Current date and time in the given format, with an optional offset in seconds. The
format uses tokens like Y, m, d,
H, i and s | {{date "Y-m-d H:i:s"}}{{date "Y-m-d H:i:s" 3600}} (1 hour ahead) |
base64 | Base64 encodes a string | {{base64 .Email}} |
mul | Multiplies two numbers | {{mul 2.0 1.5}} |
hostUpper | Uppercases letters in the host of a URL, to show a look alike domain such as
mIzzil.tld. Without a number every match changes, with a number only that
match. Only the host changes, so the link still reaches your domain. If the letters are
not in the host, the URL is used unchanged. | {{.URL | hostUpper "i"}} (every i){{.URL | hostUpper "i" 1}} (first i only) |
In the Red Team Phishing and Show All display modes, Templates... also lists the
device code functions
({{MicrosoftDeviceCode}}, {{MicrosoftDeviceCodeURL}},
{{DeviceCodeCaptured}}) and the
remote browser script tag
({{RemoteBrowserScript "remote_browser_name"}}).
Usage Examples
Personalized greeting:
<h1>Welcome, {{.FirstName}} {{.LastName}}</h1>
<p>Your secure verification link has been prepared.</p> Form with pre-filled data:
<form action="{{.URL}}" method="post">
<input type="email" name="email" value="{{.Email}}" readonly>
<input type="text" name="name" placeholder="Full Name">
<button type="submit">Verify Account</button>
</form> Evasion with deny URL:
<!-- send the visitor to the deny page when a check fails -->
<a href="{{.DenyURL}}" id="deny-link" style="display:none;">Deny</a> Dynamic content with random values:
<p>Your verification code: {{randInt 100000 999999}}</p>
<p>Session ID: {{randAlpha 16}}</p>
<p>Request date: {{date "Y-m-d H:i:s"}}</p> QR code for mobile access:
<div class="qr-container">
<p>Scan to continue on mobile:</p>
{{qr .URL}}
</div>