2015-06-15 21:49:16 +00:00
{{define "body"}}
2015-07-30 04:15:49 +00:00
< div class = "col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2 main" >
2015-06-21 21:10:47 +00:00
< div class = "row" >
< h1 class = "page-header" > Settings< / h1 >
< / div >
< div id = "flashes" class = "row" > < / div >
2020-06-20 03:03:51 +00:00
{{template "flashes" .Flashes}}
2017-09-17 04:30:04 +00:00
<!-- Nav tabs -->
< ul class = "nav nav-tabs" role = "tablist" >
2018-10-11 17:06:36 +00:00
< li class = "active" role = "mainSettings" > < a href = "#mainSettings" aria-controls = "mainSettings" role = "tab"
data-toggle="tab">Account Settings< / a > < / li >
2019-05-31 18:58:18 +00:00
< li role = "uiSettings" > < a href = "#uiSettings" aria-controls = "uiSettings" role = "tab" data-toggle = "tab" > UI
Settings< / a > < / li >
2020-01-18 17:58:34 +00:00
< li role = "reportingSettings" > < a href = "#reportingSettings" aria-controls = "reportingSettings" role = "tab" id = "reporttab"
data-toggle="tab">Reporting Settings< / a > < / li >
2017-09-17 04:30:04 +00:00
< / ul >
<!-- Tab Panes -->
< div class = "tab-content" >
< div role = "tabpanel" class = "tab-pane active" id = "mainSettings" >
2018-10-11 17:06:36 +00:00
< br / >
2019-02-20 02:33:50 +00:00
{{if .ModifySystem }}
2017-09-17 04:30:04 +00:00
< div class = "row" >
< label class = "col-sm-2 control-label form-label" > Gophish version< / label >
< div class = "col-md-6" >
< label class = "form-label" > {{.Version}}< / label >
< / div >
2016-02-10 04:19:06 +00:00
< / div >
2018-10-11 17:06:36 +00:00
< br / >
2019-02-20 02:33:50 +00:00
{{end}}
2017-09-17 04:30:04 +00:00
< div class = "row" >
< label for = "api_key" class = "col-sm-2 control-label form-label" > API Key:< / label >
< div class = "col-md-6" >
2019-05-31 18:58:18 +00:00
< input type = "text" id = "api_key" onclick = "this.select();" value = "{{.User.ApiKey}}"
class="form-control" readonly />
2017-09-17 04:30:04 +00:00
< / div >
< form id = "apiResetForm" >
< button class = "btn btn-primary" > < i class = "fa fa-refresh" type = "submit" > < / i > Reset< / button >
< input type = "hidden" name = "csrf_token" value = "{{.Token}}" / >
< / form >
2014-02-06 16:49:53 +00:00
< / div >
2017-09-17 04:30:04 +00:00
< br / >
< form id = "settingsForm" >
< div class = "row" >
< label for = "username" class = "col-sm-2 control-label form-label" > Username:< / label >
< div class = "col-md-6" >
2019-05-31 18:58:18 +00:00
< input type = "text" id = "username" name = "username" value = "{{.User.Username}}"
class="form-control" />
2017-09-17 04:30:04 +00:00
< / div >
< / div >
< br / >
< div class = "row" >
< label for = "current_password" class = "col-sm-2 control-label form-label" > Old Password:< / label >
< div class = "col-md-6" >
2019-05-31 18:58:18 +00:00
< input type = "password" id = "current_password" name = "current_password" autocomplete = "off"
class="form-control" />
2017-09-17 04:30:04 +00:00
< / div >
< / div >
< br / >
< div class = "row" >
< label for = "new_password" class = "col-sm-2 control-label form-label" > New Password:< / label >
< div class = "col-md-6" >
2020-06-20 03:03:51 +00:00
< input type = "password" id = "password" name = "new_password" autocomplete = "new-password"
2019-05-31 18:58:18 +00:00
class="form-control" />
2020-06-20 03:03:51 +00:00
< div class = "hidden" id = "password-strength-container" >
< div class = "progress" id = "password-strength" >
< div id = "password-strength-bar" class = "progress-bar" role = "progressbar"
aria-valuenow="0" aria-valuemin="0" aria-valuemax="100">< / div >
< / div >
< span id = "password-strength-description" > < / span >
< / div >
2017-09-17 04:30:04 +00:00
< / div >
< / div >
< br / >
< div class = "row" >
2019-05-31 18:58:18 +00:00
< label for = "confirm_new_password" class = "col-sm-2 control-label form-label" > Confirm New
Password:< / label >
2017-09-17 04:30:04 +00:00
< div class = "col-md-6" >
2018-10-11 17:06:36 +00:00
< input type = "password" id = "confirm_new_password" name = "confirm_new_password" autocomplete = "off"
class="form-control" />
2017-09-17 04:30:04 +00:00
< / div >
< / div >
< input type = "hidden" name = "csrf_token" value = "{{.Token}}" / >
< br / >
< button class = "btn btn-primary" type = "submit" > < i class = "fa fa-save" > < / i > Save< / button >
< / form >
2018-10-11 17:06:36 +00:00
< br / >
2015-06-21 21:10:47 +00:00
< / div >
2017-09-17 04:30:04 +00:00
< div role = "tabpanel" class = "tab-pane" id = "uiSettings" >
2018-10-11 17:06:36 +00:00
< br / >
2017-09-17 04:30:04 +00:00
< div class = "checkbox checkbox-primary" >
< input id = "use_map" type = "checkbox" >
< label for = "use_map" > Show campaign results map< / label >
2016-03-02 13:30:46 +00:00
< / div >
< / div >
2020-01-18 17:58:34 +00:00
<!-- Reporting Settings Begin -->
< div role = "tabpanel" class = "tab-pane" id = "reportingSettings" >
< form id = "imapForm" >
< br / >
< div class = "row" >
< div class = "col-md-6" >
Monitor an IMAP account for emails reported by users.
< / div >
< / div >
< br / >
< div class = "row" >
< div class = "col-md-6" >
< div class = "checkbox checkbox-primary" >
< input id = "use_imap" type = "checkbox" >
< label for = "use_imap" > Enable Email Account Monitoring< / label >
< / div >
< / div >
< / div >
< br / >
< div class = "row" >
< label for = "imaphost" class = "col-sm-2 control-label form-label" > IMAP Host:< / label >
< div class = "col-md-6" >
< input type = "text" id = "imaphost" name = "imaphost" placeholder = "imap.example.com"
class="form-control" />
< / div >
< / div >
< br / >
< div class = "row" >
< label for = "imapport" class = "col-sm-2 control-label form-label" > IMAP Port:< / label >
< div class = "col-md-6" >
< input type = "text" id = "imapport" name = "imapport" placeholder = "993"
class="form-control" />
< / div >
< / div >
< br / >
< div class = "row" >
< label for = "imapusername" class = "col-sm-2 control-label form-label" > IMAP Username:< / label >
< div class = "col-md-6" >
< input type = "text" id = "imapusername" name = "imapusername" placeholder = "Username"
class="form-control" />
< / div >
< / div >
< br / >
< div class = "row" >
< label for = "imappassword" class = "col-sm-2 control-label form-label" > IMAP Password:< / label >
< div class = "col-md-6" >
< input type = "password" id = "imappassword" name = "imappassword" placeholder = "Password" autocomplete = "off"
class="form-control" />
< / div >
< / div >
< br / >
< div class = "row" >
< label for = "use_tls" class = "col-sm-2 control-label form-label" > Use TLS:< / label >
< div class = "col-md-6" >
< div class = "checkbox checkbox-primary" >
< input id = "use_tls" type = "checkbox" >
< label for = "use_tls" > < / label >
< / div >
< / div >
< / div >
<!-- Advanced Settings -->
< div id = "advancedarea" style = "display: none;" >
< hr >
< div class = "row" >
< label for = "folder" class = "col-sm-2 control-label form-label" > Folder:< / label >
< div class = "col-md-6" >
< input type = "text" id = "folder" name = "folder" placeholder = "Leave blank for default of INBOX."
class="form-control" />
< / div >
< / div >
< br / >
< div class = "row" >
< label for = "folder" class = "col-sm-2 control-label form-label" data-toggle = "tooltip" title = "How often to check for new emails. 30 seconds minimum." > Polling frequency:< / label >
< div class = "col-md-6" >
< input type = "number" id = "imapfreq" name = "imapfreq" placeholder = "Leave blank for default of every 60 seconds."
class="form-control" />
< / div >
< / div >
< br / >
< div class = "row" >
< label for = "restrictdomain" class = "col-sm-2 control-label form-label" data-toggle = "tooltip" title = "Only check emails reported from the supplied domain." > Restrict to domain:< / label >
< div class = "col-md-6" >
< input type = "text" id = "restrictdomain" name = "restrictdomain" placeholder = "e.g. widgets.com. Leave blank for all domains."
class="form-control" />
< / div >
< / div >
< br / >
2020-08-08 20:03:42 +00:00
< div class = "row" >
< label for = "ignorecerterrors" class = "col-sm-2 control-label form-label" data-toggle = "tooltip" title = "Ignore common certificate errors such as self-signed certs (exposes you to MiTM attacks - use carefully!)" > Ignore Certificate Errors:< / label >
< div class = "col-md-6" >
< div class = "checkbox checkbox-primary" >
< input id = "ignorecerterrors" type = "checkbox" >
< label for = "ignorecerterrors" > < / label >
< / div >
< / div >
< / div >
< br / >
2020-01-18 17:58:34 +00:00
< div class = "row" >
< label for = "deletecampaign" class = "col-sm-2 control-label form-label" data-toggle = "tooltip" title = "Delete campaign emails after they've been reported." > Delete campaigns emails:< / label >
< div class = "col-md-6" >
< div class = "checkbox checkbox-primary" >
< input id = "deletecampaign" type = "checkbox" >
< label for = "deletecampaign" > < / label >
< / div >
< / div >
< / div >
< br / >
< div class = "row" id = "lastlogindiv" >
< label for = "lastlogin" class = "col-sm-2 control-label form-label" > Last succesful login:< / label >
< div class = "col-md-6" >
< input type = "text" id = "lastlogin" name = "lastlogin" placeholder = "Checking..." disabled
class="form-control border-0" />
< / div >
< / div >
< br / >
< input type = "hidden" id = "lastloginraw" name = "lastloginraw" value = "" >
< / div >
< div class = "row" >
< label for = "advancedsettings" class = "col-sm-2 control-label form-label" > < / label >
< div class = "col-md-6 text-right" >
< button class = "btn-xs btn-link" id = "advanced" type = "button" > Advanced Settings< / button >
< / div >
< / div >
< button class = "btn btn-primary" id = "savesettings" type = "button" > < i class = "fa fa-save" > < / i > Save< / button >
< button class = "btn btn-primary" id = "validateimap" type = "button" > < i class = "fa fa-wrench" > < / i > Test Settings< / button >
< / form >
< / div >
<!-- Reporting Settings End -->
2017-09-17 04:30:04 +00:00
< / div >
2013-12-12 06:27:43 +00:00
< / div >
2017-09-17 04:30:04 +00:00
{{end}} {{define "scripts"}}
2020-06-20 03:03:51 +00:00
< script src = "/js/dist/app/passwords.min.js" > < / script >
2017-01-08 20:35:08 +00:00
< script src = "/js/dist/app/settings.min.js" > < / script >
2017-09-17 04:30:04 +00:00
{{end}}