I know this is a old bump but this is how you do it.
Old code;
Code:
} else if(type == 5) {
if(!i) printf("message\n");
if(!buff) goto doit;
if(proto == 3) {
p += putxx(p, 66, 32);
} else if(proto == 2) {
p += putxx(p, 67, 32);
} else {
p += putxx(p, 7, 32);
}
if(!i) { // we need first to join!
p += putxx(p, id, 16);
p += putxx(p, 0, 16);
} else {
p += putxx(p, 0, 16);
p += putxx(p, 2, 16);
}
p += putxx(p, 0, 32);
if(!i) {
if(proto <= 1) *p++ = 0;
} else {
if(proto >= 2) {
rndxx(p + 2, 256, &seed, 0); len = strlen(p + 2) + 1;
p += putbe(p, len, 16); p += len;
} else {
p += rndxx(p, 256, &seed, 0);
}
}
New code;
Code:
} else if(type == 5) {
if(!i) printf("message\n");
if(!buff) goto doit;
if(proto == 3) {
p += putxx(p, 66, 32);
} else if(proto == 2) {
p += putxx(p, 67, 32);
} else {
p += putxx(p, 7, 32);
}
if(!i) { // we need first to join!
p += putxx(p, id, 16);
p += putxx(p, 0, 16);
} else {
p += putxx(p, 0, 16);
p += putxx(p, 2, 16);
}
p += putxx(p, 0, 32);
if(!i) {
if(proto <= 1) *p++ = 0;
} else {
if(proto >= 2) {
sprintf(p + 2, "You put your own text right here"); len = strlen(p + 2) + 1;
p += putbe(p, len, 16); p += len;
} else {
p += rndxx(p, 256, &seed, 0);
}
}
All you do is replace;
rndxx(p + 2, 256, &seed, 0); len = strlen(p + 2) + 1;With...
sprintf(p + 2, "You put your own text right here"); len = strlen(p + 2) + 1;Well at least it works for me :d