Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want to pass arguments manually on the Windows command line consisting of hex values of the byte e.g. "\x41\x42\x43\x44" - a sequence of 4 bytes on the cmd.exe command line to a program.

How do I do this? Cannot seem to find an escape sequence for using byte values in hex.

share|improve this question
The expected format of the arguments is up to the specific program they're being passed to, it's not just something you can do in general. If your program is expecting this format, what's happening when you try to use it? Which escape sequences have you tried already (^`, \`?)? – Ƭᴇcʜιᴇ007 May 30 '14 at 11:48
I am writing a command line based Buffer Overflow which requires me to send hex bytes which cannot be typed e.g. 0x00 etc. There should be a generic way of doing this – DamodarShinde May 30 '14 at 11:50

I'm not fully sure what it is you're trying to accomplish, and you have avoided requests for clarification, so I'll try and answer it as it stands, in a general way:

You can't do what you're trying to do.

Command-line parameters are (always) of a string/character type, and it's up to the program they're being fed into to define the expected format and type of the accepted argument.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.