Luigi Auriemma

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

All times are UTC [ DST ]





Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 8 posts ] 
Author Message
 Post subject: SA:MP Bot Copier
PostPosted: 19 Jun 2011 15:38 

Joined: 27 Apr 2011 18:44
Posts: 47
Hello, I will post our first bot here in aluigi's forum (Our: WocaR's and n3ptun0) because aluigi was too kind to explain to the world how the SA:MP protocol worked.

I don't have the file ATM but I will upload it soon.

The idea of this bot is a sniffer and some sockets


PC -> Real Client[Source port] -----------(UDP Connection)-------------> Server[Destination port]
|
--> Send separately join packets for each socket1
----->Raw Packet Sniffer in VB62
--------> Send the sniffed packets from each individual socket


1.-Why? Because SA:MP doesn't allow multiple nicknames, to get the join packets you need to sniff them with wireshark. To transform C arrays to VB6 Chr(&H) and senddata I've made a PHP tool
2.-Sniff packets send from the sourceport to the destination port.


I don't want to give you incomplete stuff guys so I'm just posting the C wireshark arrays to VB6 Bot Copier send data, I added the t = vars because sometimes vb6 gives errors with very long lines.

chars.html -> Front end (use this)
vb.php -> Back-end
Gr33tz N3ptun0, Aluigi and aboveultimate.com


Attachments:
File comment: chars.html -> Front end (use this)
vb.php -> Back-end

chars.zip [1.03 KiB]
Downloaded 236 times


Last edited by wocarin on 21 Jun 2011 06:52, edited 2 times in total.
Top
 Profile  
 
 
 Post subject: Re: SA:MP Bot Copier
PostPosted: 19 Jun 2011 16:15 

Joined: 13 Aug 2007 21:44
Posts: 4068
Location: http://aluigi.org
uhmmm if I have understood what you mean, I guess you can do this directly with sudppipe:
Code:
sudppipe -X SERVER,SERVER,SERVER,SERVER,SERVER,SERVER,SERVER,SERVER,SERVER,SERVER PORT 7777
the above command means that if you connect your client to 127.0.0.1:7777 the connection will be multiplicated by 10 versus the target server, translated:
Code:
YOU /-> SERVER
    |-> SERVER
    |-> SERVER
    |-> SERVER
    |-> SERVER
    |-> SERVER
    |-> SERVER
    |-> SERVER
    |-> SERVER
    \-> SERVER
there is a thread about this experimental feature here:
sudppipe-fun-t828.html


Top
 Profile  
 
 Post subject: Re: SA:MP Bot Copier
PostPosted: 20 Jun 2011 04:47 

Joined: 27 Apr 2011 18:44
Posts: 47
The only detail here is that SA:MP server won't allow to join te server IF the nickname is already in use. So you gotta send the join packets separately, then copy the clients packets. To copy the JOIN packets, Start sa:mp client with the bots name then use Wireshark -> Follow UDP stream -> Copy the 1st 15 packets and put them in my php C arrays to VB6 Sendata to convert the packets and place them in the join function (case 1 is for bot 1 and so on)

In 5 days I'll upload the bot tool + the converter + screenshots and tutorials.

I know that perhaps I can make money from this but it will be selfish and moreover lame AND sampfp tool is open source (I learned from it).

WocaR


Top
 Profile  
 
 Post subject: Re: SA:MP Bot Copier
PostPosted: 20 Jun 2011 07:37 

Joined: 13 Aug 2007 21:44
Posts: 4068
Location: http://aluigi.org
ah ah ah "making money from this", ok for today I have reached the daily dose of laughs and idiocies.

just for your information, with a little plugin of some lines of C code sudppipe can automatically modify any content of any packet.


Top
 Profile  
 
 Post subject: Re: SA:MP Bot Copier
PostPosted: 20 Jun 2011 13:17 

Joined: 27 Apr 2011 18:44
Posts: 47
LoL aluigi I know that is stupid and I wont.

Regarding the plugin idea, I dont think it will work because I tried manually replacing the nickname packets (usually on packet 5) and It didn't work. In the other thread you explained that the checksum is 0x01 + 0x02 + 0x03 the thing is that I modified the data not added or substracted data so I didn't know what is happening.

Ha ha ha the limit of laughs and idioci.


PD: I don't release it now because I'm at vacation

WocaR


Top
 Profile  
 
 Post subject: Re: SA:MP Bot Copier
PostPosted: 26 Jun 2011 08:11 

Joined: 25 Jun 2011 03:46
Posts: 6
Luigi I really need your help!

Tried everything but cant figure out how to change the nickname without having to do it manually!


Top
 Profile  
 
 Post subject: Re: SA:MP Bot Copier
PostPosted: 26 Jun 2011 09:55 

Joined: 13 Aug 2007 21:44
Posts: 4068
Location: http://aluigi.org
decrypt, modify and recrypt.

then remember that I don't have the example packets of samp (yeah I did all my stuff blindly via black box reversing) so if you have a wireshack sniff, just the first packets, it's appreciated


Top
 Profile  
 
 Post subject: Re: SA:MP Bot Copier
PostPosted: 26 Jun 2011 10:02 

Joined: 25 Jun 2011 03:46
Posts: 6
4 AM here. Ty for replying and I won't give up. I will Decrytpt, Modify and Recrypt.
Happy 4040 post nice numer huh:). Now i ca sleep confortably (i mean it)


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