Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improvements for POST + Binary files support #34

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Improvements for POST + Binary files support #34

wants to merge 2 commits into from

Conversation

rochajoel
Copy link

Added improvements for:

  • minimal POST support
  • Binary files transmission (such as images) support

Added improvements for:
  - minimal POST support
  - Binary files transmission (such as images) support
e-mail change

REQUEST_HEADERS+=("$line")
done

[ "$REQUEST_METHOD" = "POST" ] && read -N $POST_CONTENT_LENGTH POST_PARAMETERS
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You might want to read here with and -r to not allow backslashes in the request body content to escape any characters

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for your contribute.

Bear in mind this project is not recommended for 'production environments' at all. This is just a proof of concept, good for prototyping, and at best, something you could use on a safe environment such as a small lab network, intranet, or some IPv4 island of your own.

That being said, i consider the 'code injection' as a pretty neat feature, not a bug. Thanks for helping pointing that out to others.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants