Skip to content

Commit

Permalink
GitBook: [master] 2 pages modified
Browse files Browse the repository at this point in the history
  • Loading branch information
jordan-wright authored and gitbook-bot committed Oct 11, 2018
1 parent 406aaed commit beefe26
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
6 changes: 5 additions & 1 deletion landing-pages.md
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,11 @@ The JSON representation of the landing page to be created

This method expects the landing page to be provided in JSON format. You must provide a landing page `name` and the `html` for the landing page.

> Note: The `modified_date` field is updated automatically. It is not required to set this when creating or modifying a landing page.
{% hint style="info" %}
**Importing a Site**

Let Gophish do the hard work for you by importing a site. By using the [Import Site](landing-pages.md#import-site) endpoint, you can simply give Gophish a URL and have the site fetched for you and returned in a format that can be used with this method.
{% endhint %}

#### Capturing Credentials

Expand Down
8 changes: 7 additions & 1 deletion templates.md
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,13 @@ At least one text or HTML field must be specified, otherwise a 400: Bad Request

This method expects the template to be provided in JSON format. You must provide a template `name` and the `text` and/or `html` for the template.

> Note: The `modified_date` field is updated automatically. It is not required to set this when creating or modifying a template.
{% hint style="info" %}
**Importing an Existing Email**

What better way to make pixel-perfect emails than by importing an existing email you already have in your inbox?

Using the [Import Email](templates.md#import-template) endpoint, you can take a raw email and parse it as a valid Gophish template.
{% endhint %}

To add tracking, make sure you specify a `{{.Tracker}}` in the `html` field. The UI adds this automatically, but it needs to be specified if you're using the API.

Expand Down

0 comments on commit beefe26

Please sign in to comment.