Luigi Auriemma

aluigi.org (ARCHIVE-ONLY FORUM!)
It is currently 19 Jul 2012 17:13

All times are UTC [ DST ]





Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 
Author Message
 Post subject: Ventrilofp -f -5 own text flood
PostPosted: 19 Dec 2008 19:52 

Joined: 18 Apr 2008 10:28
Posts: 36
There is a command to flood the chat with my own messge on ventrilofp?
If there is not have a command, you can add one?

for exmple: -f 5 IP:PORT (random flood) (like now)

-f 5 -m MESSGE IP:PORT


Top
 Profile  
 
 
 Post subject: Re: Ventrilofp -f -5 own text flood
PostPosted: 20 Dec 2008 00:24 

Joined: 13 Aug 2007 21:44
Posts: 4068
Location: http://aluigi.org
no


Top
 Profile  
 
 Post subject: Re: Ventrilofp -f -5 own text flood
PostPosted: 07 Mar 2009 18:07 

Joined: 08 Jun 2008 07:17
Posts: 92
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


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 

All times are UTC [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for: