Server Help Forum Index Server Help
Community forums for Subgame, ASSS, and bots
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   StatisticsStatistics   RegisterRegister 
 ProfileProfile   Login to check your private messagesLogin to check your private messages   LoginLogin (SSL) 

Server Help | ASSS Wiki (0) | Shanky.com
Catid's Biller - Rejecting Apple MAC devices

 
Post new topic   Reply to topic Printable version
 View previous topic  CPU Usage 100 Post :: Post reliable.txt  View next topic  
Author Message
CypherJF
I gargle nitroglycerin


Gender:Gender:Male
Joined: Aug 14 2003
Posts: 2579
Location: USA
Offline

PostPosted: Sat Apr 05, 2014 6:24 pm    Post subject: Catid's Biller - Rejecting Apple MAC devices Reply to topic Reply with quote

Been seeing several of these appear in Omega Fire, the players are saying they're using a mac (apple) laptop. Anyone who is active here have any suggestions?

0:Omega Fire: <USER> connecting with a hacked client. (Invalid MachineID)(1)
_________________
Performance is often the art of cheating carefully. - James Gosling
Back to top
View users profile Send private message Add User to Ignore List
Cheese
Wow Cheese is so helpful!


Joined: Mar 18 2007
Posts: 1009
Offline

PostPosted: Sat Apr 05, 2014 9:35 pm    Post subject: Reply to topic Reply with quote

macid comes from network card

mac users run ss using wine

wine tells ss macid is 0
_________________
SSC Distension Owner
SSCU Trench Wars Developer
Back to top
View users profile Send private message Add User to Ignore List Visit posters website AIM Address
CypherJF
I gargle nitroglycerin


Gender:Gender:Male
Joined: Aug 14 2003
Posts: 2579
Location: USA
Offline

PostPosted: Sun Apr 06, 2014 12:52 am    Post subject: Reply to topic Reply with quote

Cheese wrote:
macid comes from network card

mac users run ss using wine

wine tells ss macid is 0


Unfortunate given the fact that most network cards or adapters have a macid associated to it.
Back to top
View users profile Send private message Add User to Ignore List
fatrolls
Novice


Age:29
Gender:Gender:Male
Joined: Jul 25 2013
Posts: 35
Offline

PostPosted: Sun Apr 06, 2014 4:52 am    Post subject: Reply to topic Reply with quote

MacId is not MachineID lol, I added a fix patch for Linux version of SSBilling2 in the attachment all the way below

Mac ID is the network address that you can find on wireless signals.

But MachineID is actually the harddrive's serial number also called VolumeID

Ya Wine users don't accses the harddrive's serial number I think that's coded for windows only but it still allows you to change the MachineID to whatever value you want and anything less then 0X7FFFFFFF should work if it's not 0.
I think it sets it to 0 by default in Wine not sure though.

It can be from 0 to 0xFFFFFFFF in value I think it's also used signed and negative numbers and 0 as well are rejected.

I think 0X80000000 to 0xFFFFFFFF are rejected not sure.

They also got programs for changing it on windows such as http://technet.microsoft.com/en-us/sysinternals/bb897436.aspx

To see your MachineID in command prompt just type vol and it will show you it.

In your zone type to yourself in pm /*info and you'll see your macid is different then the one you see in vol command prompt command.

But simply just take the value such as

Volume Serial Number is 1234-ABCD

I made a fake one one up (don't want to reveal my macid).

Now merge it together like so.
1234ABCD
then add a 0x in front like so
0x1234ABCD
now google
0x1234ABCD to decimal

You'll see it matches exactly to *info command

FIX BELOW

open declares.h file in SS-Biller2

you'll find this

Code: Show/Hide

bool InvalidMachineID(long MachineID)
{
   if (MachineID == 101) return false;

   if (MachineID < 0) return true;

   if (MachineID < 2000) return true;

   return false;
}


101 is hardcoded to be a valid macid.
anything less then 0 (negative numbers) are invalid.
anything less then 2000 (lol) are invalid.
pretty much it's all luck/hardcoded based system.

0 seems invalid machineId too (less then 2000).

replace it all with return false;

no more invalid machine id's

you'll find in rpc.h file

Code: Show/Hide

            s += " connecting with a hacked client. (Invalid MachineID)(";
            s += GetLong(Packet->Message, 74);
            s += ")";


which uses
Code: Show/Hide

if (InvalidMachineID(GetLong(Packet->Message, 74)))


aka that luck based stupid function, if it return true.

Then it does this Pretty much logs in user as ^Banned followed by kicking that user after 10 seconds. Also seems to add him to a ban list so he is pretty much fucked.
Code: Show/Hide

user->Kick(10000, 0, 0);


Code: Show/Hide

MakePlayerResponse(buffer,                  // Destination buffer
                           PRMEANING_ENTER,               // Meaning
                           GetLong(Packet->Message, 70),   // PlayerID
                           "^Banned",                  // Player name
                           NULL,                     // Squad name
                           NULL,                     // Banner
                           0,                        // Total Seconds
                           0,                        // Creation Year
                           0,                        // Creation Month
                           0,                        // Creation Day
                           0,                        // Creation Hour
                           0,                        // Creation Minute
                           0,                        // Creation Second
                           0,                        // Score ID
                           0,                        // Wins
                           0,                        // Losses
                           0,                        // Goal count
                           0,                        // Points
                           0,                        // Event points
                           0,                        // Extra 1
                           0);                        // Extra 2

            // Send response
            Packet->Source->Send(buffer, 192, true);




Here is a ssbilling2 Biller system patch for Linux versions removes the InvalidMachineId check.

ssbilling2-linux.zip - 145.41 KB
File downloaded or viewed 16 time(s)


Last edited by fatrolls on Mon Apr 07, 2014 6:31 pm, edited 1 time in total
Back to top
View users profile Send private message Add User to Ignore List
CypherJF
I gargle nitroglycerin


Gender:Gender:Male
Joined: Aug 14 2003
Posts: 2579
Location: USA
Offline

PostPosted: Sun Apr 06, 2014 10:52 am    Post subject: Reply to topic Reply with quote

Thanks for the analysis, I know I got the terms mixed up but I pretty much saw the same. I wasn't sure if there was a "better" answer than allowing all machine id's thru. Guess that's the only option at this point.
Back to top
View users profile Send private message Add User to Ignore List
fatrolls
Novice


Age:29
Gender:Gender:Male
Joined: Jul 25 2013
Posts: 35
Offline

PostPosted: Sun Apr 06, 2014 9:10 pm    Post subject: Reply to topic Reply with quote

anyways this ssbilling2-linux needs to be re-ported again its horrible it doesn't save or anything. just allows you to login.
Back to top
View users profile Send private message Add User to Ignore List
Doc Flabby
Server Help Squatter


Joined: Feb 26 2006
Posts: 636
Offline

PostPosted: Mon Apr 07, 2014 2:11 pm    Post subject: Reply to topic Reply with quote

Yeah the original biller wasn't very good...the port I wrote didn't make it any better biggrin.gif
_________________
Rediscover online gaming. Get Subspace | STF The future...prehaps
Back to top
View users profile Send private message Add User to Ignore List
Doc Flabby
Server Help Squatter


Joined: Feb 26 2006
Posts: 636
Offline

PostPosted: Mon Apr 07, 2014 2:12 pm    Post subject: Reply to topic Reply with quote

Yeah the original biller wasn't very good...the port I wrote didn't make it any better biggrin.gif
Back to top
View users profile Send private message Add User to Ignore List
fatrolls
Novice


Age:29
Gender:Gender:Male
Joined: Jul 25 2013
Posts: 35
Offline

PostPosted: Mon Apr 07, 2014 6:32 pm    Post subject: Reply to topic Reply with quote

Updated attachment 2 posts above with precompiled binary for CentOS Linux maybe other Linux's too, this one Saves players and has EncryptMode enabling possible.
Back to top
View users profile Send private message Add User to Ignore List
Display posts from previous:   
Post new topic   Reply to topic    Server Help Forum Index -> General Questions All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum
View online users | View Statistics | View Ignored List


Software by php BB © php BB Group
Server Load: 54 page(s) served in previous 5 minutes.

phpBB Created this page in 0.093083 seconds : 36 queries executed (47.3%): GZIP compression disabled