Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to input a null character into a web form?

Tags:

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.

like image 897
frankadelic Avatar asked Aug 05 '11 18:08

frankadelic


People also ask

How do you write a null character in HTML?

I mean the null character, "\0". In unicode, it is \x00.

How do you enter a null character?

On some keyboards, one can enter a null character by holding down Ctrl and pressing @ (on US layouts just Ctrl + 2 will often work, there is no need for ⇧ Shift to get the @ sign). In documentation, the null character is sometimes represented as a single-em-width symbol containing the letters "NUL".

What is the ASCII for null?

The ASCII null is represented as 0x00, and zero is represented as 0x30. The ASCII NUL character is used to denote the end of the string in C or C++. When programmer used '0' (character 0) it is treated as 0x30. This is a hexadecimal number.

WHAT IS null character in Javascript?

Therefore, a NUL byte should simply be "yet another character value" and have no special meaning, as opposed to other languages where it might end a SV (String value). For Reference of (valid) "String Single Character Escape Sequences" have a look at the ECMAScript Language spec section 7.8.


1 Answers

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.

like image 111
frankadelic Avatar answered Sep 24 '22 01:09

frankadelic