mirror of
https://github.com/kgretzky/evilginx2.git
synced 2026-04-25 00:36:10 +03:00
[PR #1164] added ability to force JSON parameters as boolean #183
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#183
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/1164
Author: @callightmn
Created: 2/7/2025
Status: 🔄 Open
Base:
master← Head:feature/force_json_tp📝 Commits (2)
f09c8f9added ability to force_post JSON parameters as boolean3f98214fix: check type when forcing JSON parameter📊 Changes
2 files changed (+49 additions, -29 deletions)
View changed files
📝
core/http_proxy.go(+35 -27)📝
core/phishlet.go(+14 -2)📄 Description
Hello,
Currently, Evilginx only force posts JSON parameter values as string but it may happen that the server expects values of a certain type only (boolean in my case). I added an optional
typeparameter in theforcesection offorce_postto be able to later cast the injected value inSetJSONVariable.For now, only booleans and strings (which is the default not to break backward compatibility) are supported but integers may be a good addition for instance. The code should be relatively simple to patch to add new types:
SetJSONVariableand call the adequate method from strconv*op_f.TypePhishlet snippet:
Current and default behavior (without
typeortype: "string") - modified request (from Evilginx to remote site):Expected behavior (with snippet above) - modified request (from Evilginx to remote site):
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.