Closed JellyWelly closed 6 years ago
If you take out the data-gramm attributes out so you just have a straight
tag, does it make any difference? I think a malformed html page could cause this.Hey @JellyWelly, thanks for reaching out with this one. Just curious:
Created a new landing page it previews perfectly but when you click on it and it displays a 404 error and then the HTML code beneath it.
What does this mean? Is there a screenshot you could post for us?
Please watch out folks bejebus.
API key in thread, enough OSINT starting points to pinpoint the org, seconds to scan their blockspace... every phishing email receiptent will also get the phishing server IP as it’s then only a “company name Phishing” google search away from them to a log on. Let’s hope a Vishing call doesn’t hit this week along the lines of “hey you’ve successfully passed Phishing training, send me the email”
GoPhish is amazing and I’m paranoid but don’t forget why we go through this hassle in the first place.
rfdevere - What is in the thread above that's a problem?
@jordan-wright
It looks OK on the editor / preview but not when you click on it via the email
@S0larflare - Took them out, doesn't make a difference same again.
Wait, how are you getting them to your landing page? Both blocks of code you have posted appear to be a landing page, does your email have a link to {{.URL}}?
Yep email has a URL and when I click on it, I get a 404 error and the html code beneath it. A different landing page works just this particular one doesn't
Ah ha! I think I see what's happening.
This appears to be due to a couple of missing return
statements. Something is going wrong when Gophish is attempting to parse the template, so I default to a 404 but (and this is important) I don't return
immediately after that like I do literally everywhere else 😛 . You can see this here https://github.com/gophish/gophish/blob/master/controllers/phish.go#L142
I need to get that fixed but, in the meantime, @JellyWelly you should be seeing some error messages in the terminal logs when you click the link around executing or parsing the template.
Sorry about the hassle here! I'll get this fixed asap and will keep y'all updated.
Hey @JellyWelly, I've at least fixed the weird rendering side of things, which is a good start for now until I can add better validation when saving a landing page.
Just a heads up, the problem was related to the {{.Tracker}}
template tag, which isn't supported in landing pages. This is because we track clicks for you - no need to have a separate image tag in the page
😄 The tracker really only comes in handy in email templates.
Hope this helps!
Legend you've got it! Thanks again
Thanks for reaching out! We're happy to help resolve issues as quickly as possible.
Please use this template when creating a new issue. If you do not follow this template format, your issue may be closed without comment.
Before filing a new issue, please use the search bar at the top of the browser to search for similar issues. Also, please make sure you have read our documentation, which covers how to use Gophish.
What version of Gophish are you using?: 0.50
Brief description of the issue: Created a new landing page it previews perfectly but when you click on it and it displays a 404 error and then the HTML code beneath it.
What are you expecting to see happen? : To see my landing page
What are you seeing happen? This error. 404 page not found
If this question is related to email templates or landing pages not working as expected, please provide your template or landing page below:
Please provide any terminal output that may be relevant below:
Please provide as many steps as you can to reproduce the problem: