2016-02-20 23:15:34 +00:00
|
|
|
{{define "body"}}
|
|
|
|
<div class="container-fluid">
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-sm-3 col-md-2 sidebar">
|
|
|
|
<ul class="nav nav-sidebar">
|
2017-02-13 12:07:08 +00:00
|
|
|
<li><a href="/">{{T "Dashboard"}}</a>
|
2016-02-20 23:15:34 +00:00
|
|
|
</li>
|
2017-02-13 12:07:08 +00:00
|
|
|
<li><a href="/campaigns">{{T "Campaigns"}}</a>
|
2016-02-20 23:15:34 +00:00
|
|
|
</li>
|
2017-02-14 18:18:55 +00:00
|
|
|
<li><a href="/users">{{T "Users & Groups"}}</a>
|
2016-02-20 23:15:34 +00:00
|
|
|
</li>
|
2017-02-13 12:07:08 +00:00
|
|
|
<li><a href="/templates">{{T "Email Templates"}}</a>
|
2016-02-20 23:15:34 +00:00
|
|
|
</li>
|
2017-02-13 12:07:08 +00:00
|
|
|
<li><a href="/landing_pages">{{T "Landing Pages"}}</a>
|
2016-02-20 23:15:34 +00:00
|
|
|
</li>
|
2017-02-13 12:07:08 +00:00
|
|
|
<li class="active"><a href="/sending_profiles">{{T "Sending Profiles"}}</a>
|
2016-02-20 23:15:34 +00:00
|
|
|
</li>
|
2017-02-13 12:07:08 +00:00
|
|
|
<li><a href="/settings">{{T "Settings"}}</a>
|
2016-02-20 23:15:34 +00:00
|
|
|
</li>
|
|
|
|
<li><hr></li>
|
2017-02-13 12:07:08 +00:00
|
|
|
<li><a href="https://gophish.gitbooks.io/user-guide/content/">{{T "User Guide"}}</a>
|
2016-02-20 23:15:34 +00:00
|
|
|
</li>
|
2017-02-13 12:07:08 +00:00
|
|
|
<li><a href="/api/">{{T "API Documentation"}}</a>
|
2016-02-20 23:15:34 +00:00
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2 main">
|
|
|
|
<h1 class="page-header">
|
2017-02-13 12:07:08 +00:00
|
|
|
{{T "Sending Profiles"}}
|
2016-02-20 23:15:34 +00:00
|
|
|
</h1>
|
|
|
|
<div id="flashes" class="row"></div>
|
|
|
|
<div class="row">
|
2017-02-13 12:07:08 +00:00
|
|
|
<button type="button" class="btn btn-primary" onclick="edit(-1)" data-toggle="modal" data-target="#modal"><i class="fa fa-plus"></i> {{T "New Profile"}}</button>
|
2016-02-20 23:15:34 +00:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div id="loading">
|
|
|
|
<i class="fa fa-spinner fa-spin fa-4x"></i>
|
|
|
|
</div>
|
|
|
|
<div id="emptyMessage" class="row" style="display:none;">
|
|
|
|
<div class="alert alert-info">
|
2017-02-13 12:07:08 +00:00
|
|
|
{{T "No profiles created yet. Let's create one!"}}
|
2016-02-20 23:15:34 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="row">
|
2016-02-21 04:10:53 +00:00
|
|
|
<table id="profileTable" class="table" style="display:none;">
|
2016-02-20 23:15:34 +00:00
|
|
|
<thead>
|
|
|
|
<tr>
|
2017-02-13 12:07:08 +00:00
|
|
|
<th class="col-md-4">{{T "Name"}}</th>
|
|
|
|
<th>{{T "Interface Type"}}</th>
|
|
|
|
<th>{{T "Last Modified Date"}}</th>
|
2016-02-20 23:15:34 +00:00
|
|
|
<th class="col-md-2 no-sort"></th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<!-- Modal -->
|
2016-02-21 18:34:11 +00:00
|
|
|
<div class="modal fade" id="modal" tabindex="-1" role="dialog" aria-labelledby="modalLabel">
|
2016-02-20 23:15:34 +00:00
|
|
|
<div class="modal-dialog" role="document">
|
|
|
|
<div class="modal-content">
|
|
|
|
<!-- New Template Modal -->
|
|
|
|
<div class="modal-header">
|
2016-02-21 22:51:01 +00:00
|
|
|
<button type="button" class="close" data-dismiss="modal" aria-label="Close" onclick="dismiss()"><span aria-hidden="true">×</span></button>
|
2017-02-13 12:07:08 +00:00
|
|
|
<h4 class="modal-title" id="profileModalLabel">{{T "New Sending Profile"}}</h4>
|
2016-02-20 23:15:34 +00:00
|
|
|
</div>
|
|
|
|
<div class="modal-body">
|
|
|
|
<div class="row" id="modal.flashes"></div>
|
|
|
|
<div class="form-group">
|
2017-02-13 12:07:08 +00:00
|
|
|
<label class="control-label" for="name">{{T "Name"}}:</label>
|
2016-02-21 04:10:53 +00:00
|
|
|
<input type="text" class="form-control" placeholder="Profile name" id="name" autofocus/>
|
2017-02-13 12:07:08 +00:00
|
|
|
<label class="control-label" for="interface_type">{{T "Interface Type"}}:</label>
|
|
|
|
<input type="text" class="form-control" value="{{T "SMTP"}}" id="interface_type" disabled/>
|
|
|
|
<label class="control-label" for="from">{{T "From"}}:</label>
|
|
|
|
<input type="text" class="form-control" placeholder="{{T "First Last <test@example.com>"}}" id="from" required/>
|
|
|
|
<label class="control-label" for="host">{{T "Host"}}:</label>
|
|
|
|
<input type="text" class="form-control" placeholder="{{T "smtp.example.com:25"}}" id="host" required/>
|
|
|
|
<label class="control-label" for="username">{{T "Username"}}:</label>
|
|
|
|
<input type="text" class="form-control" placeholder="{{T "Username"}}" id="username"/>
|
|
|
|
<label class="control-label" for="password">{{T "Password"}}:</label>
|
|
|
|
<input type="password" class="form-control" placeholder="{{T "Password"}}" id="password"/>
|
2016-02-21 18:34:11 +00:00
|
|
|
<div class="checkbox checkbox-primary">
|
|
|
|
<input id="ignore_cert_errors" type="checkbox" checked>
|
2017-02-13 12:07:08 +00:00
|
|
|
<label for="ignore_cert_errors">{{T "Ignore Certificate Errors"}} <i class="fa fa-question-circle" data-toggle="tooltip" data-placement="right" title="{{T "Ignore common certificate errors such as self-signed certs (exposes you to MiTM attacks - use carefully!)"}}"></i></label>
|
2016-02-21 18:34:11 +00:00
|
|
|
</div>
|
2017-02-13 12:07:08 +00:00
|
|
|
<button type="button" data-toggle="modal" data-target="#sendTestEmailModal" class="btn btn-primary"><i class="fa fa-envelope"></i> {{T "Send Test Email"}}</button>
|
2016-02-21 18:34:11 +00:00
|
|
|
<!-- disable sendTestEmail functionality on sending profile page until update handling of /util/send_test_email -->
|
|
|
|
</div>
|
2016-02-20 23:15:34 +00:00
|
|
|
</div>
|
|
|
|
<div class="modal-footer">
|
2017-02-13 12:07:08 +00:00
|
|
|
<button type="button" data-dismiss="modal" class="btn btn-default" onclick="dismiss()">{{T "Cancel"}}</button>
|
|
|
|
<button type="button" class="btn btn-primary" id="modalSubmit">{{T "Save Profile"}}</button>
|
2016-02-20 23:15:34 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2016-02-21 16:40:26 +00:00
|
|
|
<!-- Send Test Email Modal -->
|
2016-02-22 12:25:29 +00:00
|
|
|
<div class="modal" id="sendTestEmailModal" tabindex="-1" role="dialog" aria-labelledby="modalLabel">
|
2016-02-21 16:40:26 +00:00
|
|
|
<div class="modal-dialog" role="document">
|
2016-02-22 12:25:29 +00:00
|
|
|
<div class="modal-content">
|
|
|
|
<!-- New Email Modal -->
|
|
|
|
<div class="modal-header">
|
|
|
|
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
|
2017-02-13 12:07:08 +00:00
|
|
|
<h4 class="modal-title" id="sendTestEmailModalTitle">{{T "Send Test Email"}}</h4>
|
2016-02-22 12:25:29 +00:00
|
|
|
</div>
|
|
|
|
<div class="modal-body">
|
|
|
|
<div class="row" id="sendTestEmailModal.flashes"></div>
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-sm-12">
|
2017-02-13 12:07:08 +00:00
|
|
|
<label class="control-label" for="to">{{T "Send Test Email to"}}:</label>
|
2016-02-22 12:25:29 +00:00
|
|
|
</div>
|
|
|
|
<br>
|
|
|
|
<div class="col-sm-2">
|
2017-02-13 12:07:08 +00:00
|
|
|
<input type="text" class="form-control" placeholder="{{T "First Name"}}" name="to_first_name">
|
2016-02-22 12:25:29 +00:00
|
|
|
</div>
|
|
|
|
<div class="col-sm-2">
|
2017-02-13 12:07:08 +00:00
|
|
|
<input type="text" class="form-control" placeholder="{{T "Last Name"}}" name="to_last_name">
|
2016-02-22 12:25:29 +00:00
|
|
|
</div>
|
|
|
|
<div class="col-sm-4">
|
2017-02-13 12:07:08 +00:00
|
|
|
<input type="email" class="form-control" placeholder="{{T "Email"}}" name="to_email" required>
|
2016-02-22 12:25:29 +00:00
|
|
|
</div>
|
|
|
|
<div class="col-sm-4">
|
2017-02-13 12:07:08 +00:00
|
|
|
<input type="text" class="form-control" placeholder="{{T "Position"}}" name="to_position">
|
2016-02-22 12:25:29 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="modal-footer">
|
2017-02-13 12:07:08 +00:00
|
|
|
<button type="button" data-dismiss="modal" class="btn btn-default">{{T "Cancel"}}</button>
|
|
|
|
<button type="button" class="btn btn-primary" id="sendTestModalSubmit" onclick="sendTestEmail()"><i class="fa fa-envelope"></i> {{T "Send"}}</button>
|
2016-02-22 12:25:29 +00:00
|
|
|
</div>
|
2016-02-21 16:40:26 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2016-02-22 12:25:29 +00:00
|
|
|
</div>
|
2016-02-20 23:15:34 +00:00
|
|
|
{{end}}
|
|
|
|
{{define "scripts"}}
|
2017-02-13 12:50:01 +00:00
|
|
|
<script>
|
|
|
|
localizedDatas = {
|
|
|
|
"Email Sent!": "{{T "Email Sent!"}}",
|
|
|
|
"Profile edited successfully!": "{{T "Profile edited successfully!"}}",
|
|
|
|
"Profile added successfully!": "{{T "Profile added successfully!"}}",
|
|
|
|
"Edit Profile": "{{T "Edit Profile"}}",
|
|
|
|
"Copy Profile": "{{T "Copy Profile"}}",
|
|
|
|
"Delete Profile": "{{T "Delete Profile"}}",
|
|
|
|
"Error fetching profiles": "{{T "Error fetching profiles"}}"
|
|
|
|
}
|
|
|
|
</script>
|
2016-02-20 23:15:34 +00:00
|
|
|
<script src="/js/ckeditor/ckeditor.js"></script>
|
|
|
|
<script src="/js/ckeditor/adapters/jquery.js"></script>
|
2017-02-14 17:09:26 +00:00
|
|
|
<script src="/js/dist/app/sending_profiles.min.js"></script>
|
2016-02-20 23:15:34 +00:00
|
|
|
{{end}}
|