Luigi Auriemma

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

All times are UTC [ DST ]





Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 21 posts ] 
Author Message
 Post subject: ventrcon - some questions
PostPosted: 18 Oct 2010 21:34 

Joined: 18 Oct 2010 21:31
Posts: 13
Deleted by user.


Last edited by ZxoR on 23 Oct 2010 07:35, edited 1 time in total.

Top
 Profile  
 
 
 Post subject: Re: ventrcon - some questions
PostPosted: 18 Oct 2010 22:47 

Joined: 13 Aug 2007 21:44
Posts: 4068
Location: http://aluigi.org
1)
yeah the creation of admin accounts is disabled because I think it's risky.
if you want to enable it uncomment the first line you have pasted add the following line "after" the second one you pasted:
Code:
p[16-64] = 1;
I have not tested it but should work

2)
you need only to add -lws2_32 to the list of libraries to use


Top
 Profile  
 
 Post subject: Re: ventrcon - some questions
PostPosted: 19 Oct 2010 05:08 

Joined: 18 Oct 2010 21:31
Posts: 13
Deleted by user.


Last edited by ZxoR on 23 Oct 2010 07:35, edited 1 time in total.

Top
 Profile  
 
 Post subject: Re: ventrcon - some questions
PostPosted: 19 Oct 2010 17:07 

Joined: 13 Aug 2007 21:44
Posts: 4068
Location: http://aluigi.org
don't know, you should sniff with ventrilo_proxy and figure them


Top
 Profile  
 
 Post subject: Re: ventrcon - some questions
PostPosted: 19 Oct 2010 17:59 

Joined: 18 Oct 2010 21:31
Posts: 13
Deleted by user.


Last edited by ZxoR on 23 Oct 2010 07:35, edited 1 time in total.

Top
 Profile  
 
 Post subject: Re: ventrcon - some questions
PostPosted: 20 Oct 2010 18:35 

Joined: 13 Aug 2007 21:44
Posts: 4068
Location: http://aluigi.org
the "for(i = 0; i < 64; i++) *p++ = 0;" part should be never touched because it sets the size of the rights field and reset them.
so if you want to add rights you must do it as I did in my example:
p[byte_you_want_to_change-64] = 1;

(or alternatively set all to 1 and then set to 0 the others or do it one byte one, you are free to choose the best way for you)
so for the admin byte it was at position 16 of the field and I used 16-64.

to locate the "rights field" find the username go one byte before it and then substract 64 bytes, so in your example it is:
Code:
                                       01 00 01   ^...9}..........
00 00 00 00 01 01 01 01 01 00 00 00 00 01 01 01   ................
01 01 01 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
01 01 01 01 01 01 01 01 01 01 01 00 00 01 00 00   ................
00 00 00 00 01 01 01 01 01 01 01 00 00            ..............zx


Top
 Profile  
 
 Post subject: Re: ventrcon - some questions
PostPosted: 20 Oct 2010 19:22 

Joined: 18 Oct 2010 21:31
Posts: 13
Deleted by user.


Last edited by ZxoR on 23 Oct 2010 07:35, edited 1 time in total.

Top
 Profile  
 
 Post subject: Re: ventrcon - some questions
PostPosted: 21 Oct 2010 10:04 

Joined: 13 Aug 2007 21:44
Posts: 4068
Location: http://aluigi.org
ah cool seems you solved the problem of the "find the byte" (sorry if I couldn't reply yesterday)

for deleting the user you must sniff the packet again because at the moment I don't remember what's the packet to send, or if I'm not in error it's the same packet but with one of the bytes at the beginning of it set to another value (lack of my memory)


Top
 Profile  
 
 Post subject: Re: ventrcon - some questions
PostPosted: 21 Oct 2010 15:10 

Joined: 18 Oct 2010 21:31
Posts: 13
Deleted by user.


Last edited by ZxoR on 23 Oct 2010 07:35, edited 1 time in total.

Top
 Profile  
 
 Post subject: Re: ventrcon - some questions
PostPosted: 21 Oct 2010 15:20 

Joined: 13 Aug 2007 21:44
Posts: 4068
Location: http://aluigi.org
in mirc is probably better if you use another way to fill the 64 bytes "rights" field.
because there I used pointers and so was a bit different.

so go with the classical way:
rights[0] = 0;
rights[1] = 0;
rights[2] = 0;
...
rights[16] = 1;
...
rights[63] = 0;


Top
 Profile  
 
 Post subject: Re: ventrcon - some questions
PostPosted: 21 Oct 2010 16:40 

Joined: 18 Oct 2010 21:31
Posts: 13
I fix the rights, I want to delete user now ><


Top
 Profile  
 
 Post subject: Re: ventrcon - some questions
PostPosted: 23 Oct 2010 07:24 

Joined: 18 Oct 2010 21:31
Posts: 13
Umm, I know its alittle hard, But if you dont want to help me, Just write it.. Its your forum.... You can do it and I will understand...
But just lemme know...


Top
 Profile  
 
 Post subject: Re: ventrcon - some questions
PostPosted: 23 Oct 2010 13:04 

Joined: 24 Jun 2010 10:04
Posts: 70
Location: aluigi not @ home
I thought you were doing it by yourself, after all is just sniffing a packet.

then what happened to all your posts???
this is a forum for anyone not only for you and deleting your posts after having received the answers is stupid, disrespectful and impolite!


Top
 Profile  
 
 Post subject: Re: ventrcon - some questions
PostPosted: 23 Oct 2010 15:35 

Joined: 18 Oct 2010 21:31
Posts: 13
Umm I dont do it by myself, I dont know how to do it :S...
And You right... :S
Can you restore the messages? (Or I can...)

I think this is sniffed from the deleting...
Code:
e4 7c 9e c8 64 15 ee d4 f8 d6 60 69 eb 2c e2 57   .|..d.....`i.,.W
29 00 00 00 00 00 01 00 01 00 00 00 00 01 01 01   )...............
01 01 00 00 00 00 00 00 00 01 01 01 00 00 00 00   ................
00 00 00 00 00 00 00 00 00 01 01 01 01 01 01 00   ................
01 01 00 01 00 00 01 00 00 00 00 00 00 01 01 01   ................
01 01 01 01 00 00 0d 5a 7a 7a 7a 7a 7a 7a 7a 7a   .......Zzzzzzzzz

What I do with that, I have no idea.

I seen 2 lines that you wrote:
Code:
p += putxx(p, 1,            16);    // 1 = create, 2 = delete

So.. What does it means?
I have to duplicate the line if I want to remove? or what :S


Top
 Profile  
 
 Post subject: Re: ventrcon - some questions
PostPosted: 23 Oct 2010 23:29 

Joined: 13 Aug 2007 21:44
Posts: 4068
Location: http://aluigi.org
interesting, in my code everything was already documented.
so follow the 3 comments and it will work.

I guess the only trouble could be the field containing the id of the user that at the moment I don't remember how to find


Top
 Profile  
 
 Post subject: Re: ventrcon - some questions
PostPosted: 24 Oct 2010 05:14 

Joined: 18 Oct 2010 21:31
Posts: 13
So when I see:
"p += putxx(p, 1, 16); // 1 = create, 2 = delete"
Just do:
p += putxx(p, 2, 16);
?


Top
 Profile  
 
 Post subject: Re: ventrcon - some questions
PostPosted: 24 Oct 2010 08:39 

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


Top
 Profile  
 
 Post subject: Re: ventrcon - some questions
PostPosted: 24 Oct 2010 12:52 

Joined: 18 Oct 2010 21:31
Posts: 13
Code:
- alert: connection interrupted by the server
  probably it uses a different protocol or you are banned or something else.
  if your server uses my ventrilobotomyfix use -V VERSION

I think its response some error from the server :S


Top
 Profile  
 
 Post subject: Re: ventrcon - some questions
PostPosted: 27 Oct 2010 11:42 

Joined: 18 Oct 2010 21:31
Posts: 13
Man? You here?
BTW: I think its the packet (I delete user name: 1111111111)
Code:
73 65 72 45 64 69 74 6f 72 2d 31 00 00 00 00 00   serEditor-1.....
00 00 00 04 00 00 00 6b 08 24 33 b6 b0 e8 a9 55   .......k.$3....U
2b f7 3b a9 0e 43 f4 1f 65 12 fe 36 86 1f e4 2c   +.;..C..e..6...,
39 0a d9 ae 49 da e1 00 00 00 00 00 00 00 00 00   9...I...........
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
00 00 00 00 00 00 00 00 00 00 00 00 12 31 31 31   .............111
31 31 31 31 31 31 31 31 31 31 31 31 31 31 31 00   111111111111111.
06 5a 78 6f 52 2d 32 00 00 00 00 00 00 00 00      .ZxoR-2........


Top
 Profile  
 
 Post subject: Re: ventrcon - some questions
PostPosted: 28 Oct 2010 23:36 

Joined: 13 Aug 2007 21:44
Posts: 4068
Location: http://aluigi.org
I didn't ignore you, I simply already gave you the answer which is:
- if in the code I wrote that it's needed to make those 3 modifications and having the id of the user, I trust in what I said
- I don't know or don't remember how to get the id of the user
- I can't help you more on this


Top
 Profile  
 
 Post subject: Re: ventrcon - some questions
PostPosted: 29 Oct 2010 11:15 

Joined: 18 Oct 2010 21:31
Posts: 13
Oh, so... I just have to forget about this ;s?
So.. thanks for the other help ;]!


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 21 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:
cron