evil portal can manage more than two form field #455
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hi, I'm a PHP Web Developer, and I've never written in C++. Recently, I've been experimenting with Marauder and FlipperZero, using Evil Portal for testing purposes. I noticed the limitation of two hardcoded form fields in the HTML files. Leveraging my web development knowledge and the documentation, I've tried to make this modification:
The HTML form has N fields, each with its own name and respective value. When the /GET call is made, instead of selectively retrieving two specific fields with precise names, it iterates through all the parameters received from the form (through all the fields) saving in a single String variable the pair "name: value". This variable is then logged.
This not only allows us to be independent from "email" and "password", which could be named anything preferred by the creator of the HTML form, but also to add any additional fields such as name, surname, phone number, an OTP code, etc.
I'm not sure if I did it right because, at the moment, I'm unable to compile and physically test the code block I wrote on the board. In case I wrote something silly, I apologize. I would still like to know what you think and how it seems to you and if it could possibly be an effective and definitive modification. Thank you very much for any feedback.