(I am double posting, because i can't edit my post above correctly)
I tried fixing the bad command byte error by doing this:
But that doesn't work i keep getting the warning message. Maybe i need to keep the original length. For now it is better to use other cracked methods. This one is still unstable.PHP Code:
msg->data = d;
msg->cursize = strlen(msg->data)+1; // fix length to read
printf("%s\n", msg->data);