diff --git a/config.json b/config.json index 8d6ff39d..1c0a6abc 100644 --- a/config.json +++ b/config.json @@ -1,13 +1,13 @@ { "admin_server": { "listen_url": "127.0.0.1:3333", - "use_tls": true, + "use_tls": false, "cert_path": "gophish_admin.crt", "key_path": "gophish_admin.key", "trusted_origins": [] }, "phish_server": { - "listen_url": "0.0.0.0:80", + "listen_url": "0.0.0.0:4444", "use_tls": false, "cert_path": "example.crt", "key_path": "example.key" diff --git a/middleware/middleware.go b/middleware/middleware.go index 817ca16d..37484a29 100644 --- a/middleware/middleware.go +++ b/middleware/middleware.go @@ -91,7 +91,7 @@ func RequireAPIKey(handler http.Handler) http.Handler { } } if ak == "" { - JSONError(w, http.StatusUnauthorized, "API Key not set") + JSONError(w, http.StatusUnauthorized, "Logged out") //API Key not set return } u, err := models.GetUserByAPIKey(ak) diff --git a/package.json b/package.json index 4f5ac766..ef574c9f 100644 --- a/package.json +++ b/package.json @@ -16,7 +16,7 @@ "@babel/preset-env": "^7.4.5", "babel-loader": "^8.0.6", "clean-css": "^4.2.1", - "gulp": "^4.0.0", + "gulp": "^4.0.2", "gulp-babel": "^8.0.0", "gulp-clean-css": "^4.0.0", "gulp-cli": "^2.2.0", diff --git a/static/js/dist/app/autocomplete.min.js b/static/js/dist/app/autocomplete.min.js index 0f6c41b4..1aada123 100644 --- a/static/js/dist/app/autocomplete.min.js +++ b/static/js/dist/app/autocomplete.min.js @@ -1 +1 @@ -var TEMPLATE_TAGS=[{id:1,name:"RId",description:"The unique ID for the recipient."},{id:2,name:"FirstName",description:"The recipient's first name."},{id:3,name:"LastName",description:"The recipient's last name."},{id:4,name:"Position",description:"The recipient's position."},{id:5,name:"From",description:"The address emails are sent from."},{id:6,name:"TrackingURL",description:"The URL to track emails being opened."},{id:7,name:"Tracker",description:"An HTML tag that adds a hidden tracking image (recommended instead of TrackingURL)."},{id:8,name:"URL",description:"The URL to your Gophish listener."},{id:9,name:"BaseURL",description:"The base URL with the path and rid parameter stripped. Useful for making links to static files."}],textTestCallback=function(e){return e.collapsed?CKEDITOR.plugins.textMatch.match(e,matchCallback):null},matchCallback=function(e,t){var i=e.slice(0,t).match(/\{{2}\.?([A-z]|\})*$/);return i?{start:i.index,end:t}:null},dataCallback=function(t,e){e(TEMPLATE_TAGS.filter(function(e){return 0==("{{."+e.name.toLowerCase()+"}}").indexOf(t.query.toLowerCase())}))},setupAutocomplete=function(e){e.on("instanceReady",function(e){new CKEDITOR.plugins.autocomplete(e.editor,{textTestCallback:textTestCallback,dataCallback:dataCallback,itemTemplate:'