GLITCH! Important! Concerning certain characters in gamertags:

TheDude

Dudesicle
|K3| Member
Hey everyone,

I recently made an ass of myself thinking tito was hacking. It is a long story.

But it ended with me finding this interesting piece of information:

If you use a carrot "^" at the end of your gamertag, it will cause random numbers to appear. In conjuction with a backslash, it will cause your name to change (much like a namechanger) during gameplay. So, I experience this....

In server 1, my name was input as "\\woensL^"

Notice there is nothing after the carrot (^). You will also find that the backslashes do not appear in your gamertag when input via console (i.e. using the "/name \\woensl^" command).

So initially, my name appeared as "woensL" (even though it was registered on my side as "\\woensL^")

During my server 1 play, after a time, my name started to change.

It went from woensLder, woensLy, woensL8, woensL30...etc.

I really can't find an explanation for this other than that my name had the backslashes and the carrot. I was convinced at first that someone was doing this TO me (i feel as though pretty much everyone here would have felt the same way given the circumstances). After all, it was a fresh install of cod4 from steam. I didn't install anything else. I didn't load an older config or modify mine other than to change the graphics settings to somewhat lower than normal (via the ingame graphics menu). I set my sensitivity to 5.8 and BOOM got right on server 1.

I got banned eventually by B3 (thanks B3). After which, of course (you know me) I got on the shoutbox yelling "what the fuck is going on?!" and such, thinking this was someone hacking me or something like that. I considered that it was some virus from some sketchy web page (i haven't downloaded anything but iTunes music and CoD4 from steam for over 5 months), which had somehow either MORPHED into cod4 namechange hacks or carried them with it...... which seemed completely absurd. Of course, it was still on the table.

The only other explanation I could think of was that someone was running a hack that allowed them to change other people's names. I checked in console while in server one the first time to see what my name was still registered as in my own config. The data value still said "\\woensL^", yet my name appeared as one of the above randomly altered names in game.

Anyway, I proceeded to blame MikeK (who was afk) , utilizing a full scale display of jackassery . After this, I eventually blamed Tito, for a variety of reasons. Explaining these will undoubtedly make this thread farrrrr too long to read, and boring.

So anyway, this thread is both meant to be an apology and a warning.

I apologize to tito for blaming him (though, given the circumstances, it really looked like he was doing something.... and it wouldn't have mattered whether it was Tito or WaLLy, I still would have thought SOMETHING was up.... whether it be hacks or something else). But nonetheless, I have acted as a douchenozzle in full. And I apologize in full.

So thanks for reading,

Your friendly neighbor,

TheDude
 

Titoezz

Second Lieutenant
|K3| Member
bad-carrot-paper-toy.jpg
 

Sargass

|KKK| Sargasaurus
|K3|Super-Moderator
Thread of the month....:lmao:

u made my day chris...

Seriously why even use rcon command to change your name when you can do it in option menu...and mainly why using silly character...ur not russian for what i know? so stick to arabic alphabet goddam :p
 

WaLLy

Lieutenant General
|K3| Executive
TD, I found it hard to believe where someone somehow over a gameserver can send you/anyone a hack file to make you look like you're hacking.

After you mentioned that in the PM, I thought you were smocking crack, no lie.

But I am glad you found out the cause. :)
 

Rival

Double Nature
Former Krew Member
Seriously why even use rcon command to change your name when you can do it in option menu

1. You don't need rcon.
2. Changing your name via the console is about 10 seconds faster than going into options.
 

TheDude

Dudesicle
|K3| Member
Thankyou rival.

Console namechanging is the shit.

I'm still perm banned from server 1 and 2.
 

Kreubs

|K3|Minecraft Admin
|K3| Executive
How about a response from a programmer? XD

I came across this problem while making the server launcher and it has to do with the way cod4 interprets the strings for names. The \ is the escape character. When it is paired with another character, it is assigned a special function such as:
\n = new line
\" = allows the " inside a string
\t = new tab
\\ = a printed slash
\0 = end of string
and others

In any case, Cod does it's best to root out all possibilities in order to prevent code injection. If you get too carried away, it will changeyour name to UnnamedPlayer.

The space for the name (any variable) has a predefined size in memory. A string of characters (in C/C++ which i believe Cod4 is written in based the way it handles strings) is terminated by \0, well it is supposed to. If the program sees no \0, it will read until the end of the predefined size to which the variable (the name in this case) has been assigned. It will just contain undefined garbage (whatever is not specifically set in memory is just garbage left behind by whatever program used that memory space before). This garbage will be interpreted as seemingly random text characters. Since some things in memory can change around here and there as the OS deals out unused memory to other places, it may be possible that the garbage can change too, hence the changing characters in your name (a new interpretation of the undefined memory).

What I think was happening was: you somehow managed to get passed the error check and terminate the string prematurely (a serious bug really); therefore, the game didn't know where to stop reading the name, so it kept reading garbage in memory which ended up changing your name for what ever garbage was in the game's memory.

So, congrats, TD, you found one wicked bug in Cod4 XD
 
Last edited:

TheDude

Dudesicle
|K3| Member
How about a response from a programmer? XD

I came across this problem while making the server launcher and it has to do with the way cod4 interprets the strings for names. The \ is the escape character. When it is paired with another character, it is assigned a special function such as:
\n = new line
\" = allows the " inside a string
\t = new tab
\\ = a printed slash
\0 = end of string
and others

In any case, Cod does it's best to root out all possibilities in order to prevent code injection. If you get too carried away, it will changeyour name to UnnamedPlayer.

The space for the name (any variable) has a predefined size in memory. A string of characters (in C/C++ which i believe Cod4 is written in based the way it handles strings) is terminated by \0, well it is supposed to. If the program sees no \0, it will read until the end of the predefined size to which the variable (the name in this case) is assigned. It will just contain undefined garbage (whatever is not specifically set in memory is just garbage left behind by whatever program used that memory space before). This garbage will be interpreted as seemingly random text characters. Since some things in memory can around change here and there as the OS deals out unused memory to other places, it may be possible that the garbage can change too, hence the changing characters in your name (a new interpretation of the undefined memory).

What I think was happening was: you somehow managed to get passed the error check and terminate the string prematurely (a serious bug really); therefore, the game didn't know where to stop reading the name, so it kept reading garbage in memory which ended up changing your name for what ever garbage was in the game's memory.

So, congrats, TD, you found one wicked bug in Cod4 XD

Woensel!
 

MikeK

Vodka supplier
|K3| Member
S1 will boot anyone for using those Russian characters. :D

I think this shit doesnt work 24/7, it probably depends on b3..

some examples:

I've got the mod staus and decided to check if b3 is still going to kick/ban me if I do something wrong (like namechanging or using russian letters).

I left the server and rejoined under name МарияШарапова (Maria Sharapova) XD. It didnt kick me for a cpl of minutes and I changed the name back to |KKK|mikeK.

The next day I saw a report in shout and decided to join UC (for some reason I wasn't afk on the server as I usually am). I typed some random russian letters and joined the server. Guess what? I got kicked after a few seconds :|

I really think that's b3's fault cuz sometimes it some kind of 'falls asleep' so nobody can use any commands (!xlrstats, !b3, !list, !ban or any other) and Echelon doesn't even record the players or chat logs so I missed a hacker once :|

What do u think the reason is and do u know a way to fix it?
 
Top Bottom