github.com/topsteplocal/gophish@v0.6.0/templates/sending_profiles.html (about)

     1  {{define "body"}}
     2  <div class="container-fluid">
     3      <div class="row">
     4          <div class="col-sm-3 col-md-2 sidebar">
     5              <ul class="nav nav-sidebar">
     6                  <li><a href="/">Dashboard</a>
     7                  </li>
     8                  <li><a href="/campaigns">Campaigns</a>
     9                  </li>
    10                  <li><a href="/users">Users &amp; Groups</a>
    11                  </li>
    12                  <li><a href="/templates">Email Templates</a>
    13                  </li>
    14                  <li><a href="/landing_pages">Landing Pages</a>
    15                  </li>
    16                  <li class="active"><a href="/sending_profiles">Sending Profiles</a>
    17                  </li>
    18                  <li><a href="/settings">Settings</a>
    19                  </li>
    20                  <li><hr></li>
    21                  <li><a href="https://gophish.gitbooks.io/user-guide/content/">User Guide</a>
    22                  </li>
    23                  <li><a href="/api/">API Documentation</a>
    24                  </li>
    25              </ul>
    26          </div>
    27      </div>
    28  </div>
    29  <div class="col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2 main">
    30      <h1 class="page-header">
    31          Sending Profiles
    32      </h1>
    33      <div id="flashes" class="row"></div>
    34      <div class="row">
    35          <button type="button" class="btn btn-primary" onclick="edit(-1)" data-toggle="modal" data-target="#modal"><i class="fa fa-plus"></i> New Profile</button>
    36      </div>
    37      &nbsp;
    38      <div id="loading">
    39          <i class="fa fa-spinner fa-spin fa-4x"></i>
    40      </div>
    41      <div id="emptyMessage" class="row" style="display:none;">
    42          <div class="alert alert-info">
    43              No profiles created yet. Let's create one!
    44          </div>
    45      </div>
    46      <div class="row">
    47          <table id="profileTable" class="table" style="display:none;">
    48              <thead>
    49                  <tr>
    50                      <th class="col-md-4">Name</th>
    51                      <th>Interface Type</th>
    52                      <th>Last Modified Date</th>
    53                      <th class="col-md-2 no-sort"></th>
    54                  </tr>
    55              </thead>
    56              <tbody>
    57              </tbody>
    58          </table>
    59      </div>
    60  </div>
    61  <!-- Modal -->
    62  <div class="modal fade" id="modal" tabindex="-1" role="dialog" aria-labelledby="modalLabel">
    63      <div class="modal-dialog" role="document">
    64          <div class="modal-content">
    65              <!-- New Template Modal -->
    66              <div class="modal-header">
    67                  <button type="button" class="close" data-dismiss="modal" aria-label="Close" onclick="dismiss()"><span aria-hidden="true">&times;</span></button>
    68                  <h4 class="modal-title" id="profileModalLabel">New Sending Profile</h4>
    69              </div>
    70              <div class="modal-body">
    71                  <div class="row" id="modal.flashes"></div>
    72                  <div class="form-group">
    73                      <label class="control-label" for="name">Name:</label>
    74                      <input type="text" class="form-control" placeholder="Profile name" id="name" autofocus/>
    75                      <label class="control-label" for="interface_type">Interface Type:</label>
    76                      <input type="text" class="form-control" value="SMTP" id="interface_type" disabled/>
    77                      <label class="control-label" for="from">From:</label>
    78                      <input type="text" class="form-control" placeholder="First Last <test@example.com>" id="from" required/>
    79                      <label class="control-label" for="host">Host:</label>
    80                      <input type="text" class="form-control" placeholder="smtp.example.com:25" id="host" required/>
    81                      <label class="control-label" for="username">Username:</label>
    82                      <input type="text" class="form-control" placeholder="Username" id="username"/>
    83                      <label class="control-label" for="password">Password:</label>
    84                      <input type="password" class="form-control" placeholder="Password" id="password"/>
    85                      <div class="checkbox checkbox-primary">
    86                          <input id="ignore_cert_errors" type="checkbox" checked>
    87                          <label for="ignore_cert_errors">Ignore Certificate Errors <i class="fa fa-question-circle" data-toggle="tooltip" data-placement="right" title="Ignore common certificate errors such as self-signed certs (exposes you to MiTM attacks - use carefully!)"></i></label>
    88                      </div>
    89                      <label class="control-label" for="headersForm">Email Headers:</label>
    90                      <form id="headersForm">
    91                          <div class="col-md-4">
    92                              <input type="text" class="form-control" name="headerKey" id="headerKey" placeholder="X-Custom-Header">
    93                          </div>
    94                          <div class="col-md-4">
    95                              <input type="text" class="form-control" name="headerValue" id="headerValue" placeholder="{{"{{"}}.URL{{"}}"}}-gophish">
    96                          </div>
    97                          <div class="col-md-2">
    98                              <button class="btn btn-danger btn-headers" type="submit"><i class="fa fa-plus"></i> Add Custom Header</button>
    99                          </div>
   100                      </form>
   101                      <br />
   102                      <br />
   103                      <table id="headersTable" class="table table-hover table-striped table-condensed">
   104                          <thead>
   105                              <tr>
   106                                  <th>Header</th>
   107                                  <th>Value</th>
   108                                  <th class="no-sort"></th>
   109                              </tr>
   110                          </thead>    
   111                          <tbody>
   112                          </tbody>
   113                      </table>
   114                      <button type="button" data-toggle="modal" data-target="#sendTestEmailModal" class="btn btn-primary"><i class="fa fa-envelope"></i> Send Test Email</button>
   115                  </div>
   116              </div>
   117              <div class="modal-footer">
   118                  <button type="button" data-dismiss="modal" class="btn btn-default" onclick="dismiss()">Cancel</button>
   119                  <button type="button" class="btn btn-primary" id="modalSubmit">Save Profile</button>
   120              </div>
   121          </div>
   122      </div>
   123  </div>
   124  <!-- Send Test Email Modal -->
   125  <div class="modal" id="sendTestEmailModal" tabindex="-1" role="dialog" aria-labelledby="modalLabel">
   126      <div class="modal-dialog" role="document">
   127          <div class="modal-content">
   128              <!-- New Email Modal -->
   129              <div class="modal-header">
   130                  <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
   131                  <h4 class="modal-title" id="sendTestEmailModalTitle">Send Test Email</h4>
   132              </div>
   133              <div class="modal-body">
   134                  <div class="row" id="sendTestEmailModal.flashes"></div>
   135                  <div class="row">
   136                      <div class="col-sm-12">
   137                          <label class="control-label" for="to">Send Test Email to:</label>
   138                      </div>
   139                      <br>
   140                      <div class="col-sm-2">
   141                          <input type="text" class="form-control" placeholder="First Name" name="to_first_name">
   142                      </div>
   143                      <div class="col-sm-2">
   144                          <input type="text" class="form-control" placeholder="Last Name" name="to_last_name">
   145                      </div>
   146                      <div class="col-sm-4">
   147                          <input type="email" class="form-control" placeholder="Email" name="to_email" required>
   148                      </div>
   149                      <div class="col-sm-4">
   150                          <input type="text" class="form-control" placeholder="Position" name="to_position">
   151                      </div>
   152                  </div>
   153              </div>
   154              <div class="modal-footer">
   155                  <button type="button" data-dismiss="modal" class="btn btn-default">Cancel</button>
   156                  <button type="button" class="btn btn-primary" id="sendTestModalSubmit" onclick="sendTestEmail()"><i class="fa fa-envelope"></i> Send</button>
   157              </div>
   158          </div>
   159      </div>
   160  </div>
   161  {{end}}
   162  {{define "scripts"}}
   163  <script src="/js/dist/app/sending_profiles.min.js"></script>
   164  {{end}}