github.com/gophish/gophish@v0.12.2-0.20230915144530-8e7929441393/templates/sending_profiles.html (about) 1 {{define "body"}} 2 <div class="col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2 main"> 3 <h1 class="page-header"> 4 Sending Profiles 5 </h1> 6 <div id="flashes" class="row"></div> 7 <div class="row"> 8 <button type="button" class="btn btn-primary" onclick="edit(-1)" data-toggle="modal" data-backdrop="static" 9 data-target="#modal"><i class="fa fa-plus"></i> New Profile</button> 10 </div> 11 12 <div id="loading"> 13 <i class="fa fa-spinner fa-spin fa-4x"></i> 14 </div> 15 <div id="emptyMessage" class="row" style="display:none;"> 16 <div class="alert alert-info"> 17 No profiles created yet. Let's create one! 18 </div> 19 </div> 20 <div class="row"> 21 <table id="profileTable" class="table" style="display:none;"> 22 <thead> 23 <tr> 24 <th class="col-md-4">Name</th> 25 <th>Interface Type</th> 26 <th>Last Modified Date</th> 27 <th class="col-md-2 no-sort"></th> 28 </tr> 29 </thead> 30 <tbody> 31 </tbody> 32 </table> 33 </div> 34 </div> 35 <!-- Modal --> 36 <div class="modal fade" id="modal" tabindex="-1" role="dialog" aria-labelledby="modalLabel"> 37 <div class="modal-dialog" role="document"> 38 <div class="modal-content"> 39 <!-- New Template Modal --> 40 <div class="modal-header"> 41 <button type="button" class="close" data-dismiss="modal" aria-label="Close" onclick="dismiss()"><span 42 aria-hidden="true">×</span></button> 43 <h4 class="modal-title" id="profileModalLabel">New Sending Profile</h4> 44 </div> 45 <div class="modal-body"> 46 <div class="row" id="modal.flashes"></div> 47 <form> 48 <div class="form-group"> 49 <label class="control-label" for="name">Name:</label> 50 <input type="text" class="form-control" placeholder="Profile name" id="name" autofocus /> 51 <label class="control-label" for="interface_type">Interface Type:</label> 52 <input type="text" class="form-control" value="SMTP" id="interface_type" disabled /> 53 <label class="control-label" for="from">SMTP From: <i class="fa fa-question-circle" 54 data-toggle="tooltip" data-placement="right" title="Set this to an email address from your sending domain to bypass SPF-checks. You can set the Envelope Sender in Email Templates. The Envelope Sender is shown to the user."></i></label> 55 <input type="text" class="form-control" placeholder="test@example.com" id="from" 56 required /> 57 <label class="control-label" for="host">Host:</label> 58 <input type="text" class="form-control" placeholder="smtp.example.com:25" id="host" required /> 59 <label class="control-label" for="username">Username:</label> 60 <input type="text" class="form-control" placeholder="Username" id="username" /> 61 <label class="control-label" for="password">Password:</label> 62 <input type="password" class="form-control" placeholder="Password" id="password" /> 63 <div class="checkbox checkbox-primary"> 64 <input id="ignore_cert_errors" type="checkbox" checked> 65 <label for="ignore_cert_errors">Ignore Certificate Errors <i class="fa fa-question-circle" 66 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> 67 </div> 68 </div> 69 <fieldset class="form-group"> 70 <label class="control-label input-group">Email Headers:</label> 71 <div class="col-md-4"> 72 <input type="text" class="form-control" name="headerKey" id="headerKey" placeholder="X-Custom-Header"> 73 </div> 74 <div class="col-md-4"> 75 <input type="text" class="form-control" name="headerValue" id="headerValue" placeholder='{{"{{"}}.URL{{"}}"}}-gophish'> 76 </div> 77 <div class="col-md-2"> 78 <button id="addCustomHeader" class="btn btn-danger btn-headers" type="button"><i class="fa fa-plus"></i> Add 79 Custom Header</button> 80 </div> 81 </fieldset> 82 <table id="headersTable" class="table table-hover table-striped table-condensed"> 83 <thead> 84 <tr> 85 <th>Header</th> 86 <th>Value</th> 87 <th class="no-sort"></th> 88 </tr> 89 </thead> 90 <tbody> 91 </tbody> 92 </table> 93 <button type="button" data-toggle="modal" data-backdrop="static" data-target="#sendTestEmailModal" 94 class="btn btn-primary"><i class="fa fa-envelope"></i> Send Test Email</button> 95 </form> 96 </div> 97 <div class="modal-footer"> 98 <button type="button" data-dismiss="modal" class="btn btn-default" onclick="dismiss()">Cancel</button> 99 <button type="button" class="btn btn-primary" id="modalSubmit">Save Profile</button> 100 </div> 101 </div> 102 </div> 103 </div> 104 <!-- Send Test Email Modal --> 105 <div class="modal" id="sendTestEmailModal" tabindex="-1" role="dialog" aria-labelledby="modalLabel"> 106 <div class="modal-dialog" role="document"> 107 <div class="modal-content"> 108 <!-- New Email Modal --> 109 <div class="modal-header"> 110 <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button> 111 <h4 class="modal-title" id="sendTestEmailModalTitle">Send Test Email</h4> 112 </div> 113 <div class="modal-body"> 114 <div class="row" id="sendTestEmailModal.flashes"></div> 115 <div class="row"> 116 <div class="col-sm-12"> 117 <label class="control-label" for="to">Send Test Email to:</label> 118 </div> 119 <br> 120 <div class="col-sm-2"> 121 <input type="text" class="form-control" placeholder="First Name" name="to_first_name"> 122 </div> 123 <div class="col-sm-2"> 124 <input type="text" class="form-control" placeholder="Last Name" name="to_last_name"> 125 </div> 126 <div class="col-sm-4"> 127 <input type="email" class="form-control" placeholder="Email" name="to_email" required> 128 </div> 129 <div class="col-sm-4"> 130 <input type="text" class="form-control" placeholder="Position" name="to_position"> 131 </div> 132 </div> 133 </div> 134 <div class="modal-footer"> 135 <button type="button" data-dismiss="modal" class="btn btn-default">Cancel</button> 136 <button type="button" class="btn btn-primary" id="sendTestModalSubmit" onclick="sendTestEmail()"><i 137 class="fa fa-envelope"></i> Send</button> 138 </div> 139 </div> 140 </div> 141 </div> 142 {{end}} {{define "scripts"}} 143 <script src="/js/dist/app/sending_profiles.min.js"></script> 144 {{end}}