Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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
1  
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 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 at 11:50

1 Answer 1

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

 
discard

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.