[st]Get a C compiler and run it![/st] Something our erstwhile hacker could have done in the blink of an eye. It doesn't even require compilation. It's human readable - to a C, C++ or C# programmer.Heiwa wrote:Sorry for asking but what does this C code actually mean or produce, i.e. what is the output?brianv wrote:Cobbling 'C code' isn't a Criminal Offence under any jurisdiction that I know of.I guess you could say I cobbled pieces of C code together...
What's the output of this short program, without the assistance of a compiler...not that it would compile, but then again a hacker would know that.
#include <stdio.h>
char string[9] = "jbnbqipoz";
char *ptr = string;
int main()
{
while(*ptr)
cout << --*ptr++;
return 0;
}
Here, I'll make it easy for you. I've made the C code executable. First delete what's in the code-area by default. ( Drag select and hit 'Del.') Then paste the code below into the code area, then hit the Compile & Run button! The Output will be displayed in the right pane.
#include <stdio.h>
char string[9] = "jbnbqipoz";
char *ptr = string;
int main()
{
while(*ptr)
printf( "%c", --*ptr++);
return 0;
}
http://www.compileonline.com/compile_c_online.php
Think HAL <- IBM