Search code examples
htmlforms

How to input a null character into a web form?


I am testing an ASP.NET web form which needs to filter out null characters from input.

To test this functionality, how can I actually type a null character in the html form? I've tried Alt+0 but it does not work.

I know I can do it in a GET request by using "%00" in the URL. However, I want to do it in a form POST.


Solution

  • I was able to do this using TamperData Firefox plugin.

    https://addons.mozilla.org/en-US/firefox/addon/tamper-data/

    When given the Tamper Popup I typed "%00" in the Post Parameter Value field.

    Still, I cannot find a way to type a null character just using the keyboard.