github.com/8samaka/gophish@v0.9.0/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 <div class="form-group"> 48 <label class="control-label" for="name">Name:</label> 49 <input type="text" class="form-control" placeholder="Profile name" id="name" autofocus /> 50 <label class="control-label" for="interface_type">Interface Type:</label> 51 <input type="text" class="form-control" value="SMTP" id="interface_type" disabled /> 52 <label class="control-label" for="from">From:</label> 53 <input type="text" class="form-control" placeholder="First Last <test@example.com>" id="from" 54 required /> 55 <label class="control-label" for="host">Host:</label> 56 <input type="text" class="form-control" placeholder="smtp.example.com:25" id="host" required /> 57 <label class="control-label" for="username">Username:</label> 58 <input type="text" class="form-control" placeholder="Username" id="username" /> 59 <label class="control-label" for="password">Password:</label> 60 <input type="password" class="form-control" placeholder="Password" id="password" /> 61 <div class="checkbox checkbox-primary"> 62 <input id="ignore_cert_errors" type="checkbox" checked> 63 <label for="ignore_cert_errors">Ignore Certificate Errors <i class="fa fa-question-circle" 64 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> 65 </div> 66 <label class="control-label" for="headersForm">Email Headers:</label> 67 <form id="headersForm"> 68 <div class="col-md-4"> 69 <input type="text" class="form-control" name="headerKey" id="headerKey" placeholder="X-Custom-Header"> 70 </div> 71 <div class="col-md-4"> 72 <input type="text" class="form-control" name="headerValue" id="headerValue" placeholder='{{"{{"}}.URL{{"}}"}}-gophish'> 73 </div> 74 <div class="col-md-2"> 75 <button class="btn btn-danger btn-headers" type="submit"><i class="fa fa-plus"></i> Add 76 Custom Header</button> 77 </div> 78 </form> 79 <br /> 80 <br /> 81 <table id="headersTable" class="table table-hover table-striped table-condensed"> 82 <thead> 83 <tr> 84 <th>Header</th> 85 <th>Value</th> 86 <th class="no-sort"></th> 87 </tr> 88 </thead> 89 <tbody> 90 </tbody> 91 </table> 92 <button type="button" data-toggle="modal" data-backdrop="static" data-target="#sendTestEmailModal" 93 class="btn btn-primary"><i class="fa fa-envelope"></i> Send Test Email</button> 94 </div> 95 </div> 96 <div class="modal-footer"> 97 <button type="button" data-dismiss="modal" class="btn btn-default" onclick="dismiss()">Cancel</button> 98 <button type="button" class="btn btn-primary" id="modalSubmit">Save Profile</button> 99 </div> 100 </div> 101 </div> 102 </div> 103 <!-- Send Test Email Modal --> 104 <div class="modal" id="sendTestEmailModal" tabindex="-1" role="dialog" aria-labelledby="modalLabel"> 105 <div class="modal-dialog" role="document"> 106 <div class="modal-content"> 107 <!-- New Email Modal --> 108 <div class="modal-header"> 109 <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button> 110 <h4 class="modal-title" id="sendTestEmailModalTitle">Send Test Email</h4> 111 </div> 112 <div class="modal-body"> 113 <div class="row" id="sendTestEmailModal.flashes"></div> 114 <div class="row"> 115 <div class="col-sm-12"> 116 <label class="control-label" for="to">Send Test Email to:</label> 117 </div> 118 <br> 119 <div class="col-sm-2"> 120 <input type="text" class="form-control" placeholder="First Name" name="to_first_name"> 121 </div> 122 <div class="col-sm-2"> 123 <input type="text" class="form-control" placeholder="Last Name" name="to_last_name"> 124 </div> 125 <div class="col-sm-4"> 126 <input type="email" class="form-control" placeholder="Email" name="to_email" required> 127 </div> 128 <div class="col-sm-4"> 129 <input type="text" class="form-control" placeholder="Position" name="to_position"> 130 </div> 131 </div> 132 </div> 133 <div class="modal-footer"> 134 <button type="button" data-dismiss="modal" class="btn btn-default">Cancel</button> 135 <button type="button" class="btn btn-primary" id="sendTestModalSubmit" onclick="sendTestEmail()"><i 136 class="fa fa-envelope"></i> Send</button> 137 </div> 138 </div> 139 </div> 140 </div> 141 {{end}} {{define "scripts"}} 142 <script src="/js/dist/app/sending_profiles.min.js"></script> 143 {{end}}