mirror of
https://github.com/kgretzky/evilginx2.git
synced 2026-04-25 00:36:10 +03:00
[PR #1157] added abitlity to inject scripts in head or body #178
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/evilginx2-kgretzky#178
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/kgretzky/evilginx2/pull/1157
Author: @callightmn
Created: 1/19/2025
Status: 🔄 Open
Base:
master← Head:feature/js_head📝 Commits (2)
2700c50fix: inject script in head section to increase performances0ae165eaddedlocationparameter to inject in either 'head' or 'body' (default)📊 Changes
2 files changed (+20 additions, -10 deletions)
View changed files
📝
core/http_proxy.go(+5 -5)📝
core/phishlet.go(+15 -5)📄 Description
Hi,
This PR adds the ability to inject JS scripts at the end of the
<head>section instead of the<body>section, which may be useful to execute the script before the page finishes loading. For instance, recently, I tried to deactivate a button but since the page took quite some time to load completely, most users could still click on the button because my injected script had not yet been executed. The default behavior is still to inject at the bottom of the body section but I added an optionallocationparameter injs_injectto pick 'head' or 'body':Phishlet snippet:
Injecting in head (
location: 'head'):Injecting in body (
location: 'body'or no location):🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.