ID:164978
 
is there a code to keep hackers out we have been haveing one lately controling people and things.
DarkGamer wrote:
is there a code to keep hackers out we have been haveing one lately controling people and things.

You haven't had a hacker. You've had a disruptive user who's doing something you didn't expect to be possible with the game. Without knowing more about the game or what version of BYOND you're using, no one can help you with that.

Lummox JR
In response to Lummox JR (#1)
Yup...I totally agree with you on that...but...

It's more of a look at your coding. Something is wrong with it, and this controling thing is probably a bug within the game(coding), that's just been noticed. So again, recheck your coding.
In response to Krimson Fury (#2)
thanks but it is a hacker because when he logs in it says Computer Hacker has logged in and when we try to ban him it does not show his name and he starts using your key to say things.
In response to DarkGamer (#3)
Hmm, that's not a hacker.. His name is Computer Hacker and I know how to make other people say things too. (It was fun until i got banned for it ^^" ) Can't you just do something like this?
mob/Login()
if(name=="Computer Hacker")
del(src)
world<<"A hacker just tried to login!"
else
loc=locate(10,10,1)
world<<"[usr] has logged in."
In response to Adam753 (#4)
Ah... that makes more sense. In a game where it lets you pick a name and then says [name] logs in, and where they forgot to forbid newlines in chat text.

Eh, don't worry about him.
In response to Adam753 (#4)
thanks for helping ill reply back when it works or does not work.
In response to DarkGamer (#6)
If you've been in the Byond world long enough, you should know that most games login systems use the usr(src).key bit.

Seems you may be new, or just haven't been able to realize this bit til now.
In response to Krimson Fury (#7)
When a person just logs in, their name is their key. However, if you're using Android Data's Character Handling, this is not the case. It avoids the creation of a mob before a user decides to create or load a character.
In response to CaptFalcon33035 (#8)
....I haven't seen that bit yet. But I'll check it asap.

Anyway, it all depends on if a game uses a Login with a world<<"[src.key] has logged in" message. It's not even required, but that's how most games do things now days. You can even ignore that, and when someone creates, or loads, then you can just do the same bit. Stead it's not at the direct Login, but when the person actually gets their mob out and about.
In response to DarkGamer (#3)
If you have buttons on your login screen, the situation could be, he creates his character with the name 'Computer Hacker', then finds out who's playing, then just simply hits the 'create new character' button and renames himself to somebody who's online to confuse you.

If that's the case, include a /tmp/ var called 'creating' or something of the sort, and when they click the 'new character' button, set usr.creating to 1.

Then include
// assuming the clickable button is an object, not a turf
obj/button
new_game
Click()
if (usr.creating) return
else stuffforcharactercreation
In response to PirateHead (#5)
PirateHead wrote:
Ah... that makes more sense. In a game where it lets you pick a name and then says [name] logs in, and where they forgot to forbid newlines in chat text.

In that case they probably forget to monitor HTML, too. This guy definitely isn't a hacker, then--he's just taking advantage of a complete lack of planning on the part of the game's author.

Lummox JR
In response to Lummox JR (#1)
ive had a hacker or 2 today it w was terrible he shutdown all my firends games including mine and he ban us fro mal lfo our games how did he do it he had alot of keys and stuff Galick2 is one of the hackers and plz i was told u cant hack byond well how did they do it then
In response to Scardina (#12)
Scardina wrote:
ive had a hacker or 2 today it w was terrible he shutdown all my firends games including mine and he ban us fro mal lfo our games how did he do it he had alot of keys and stuff Galick2 is one of the hackers and plz i was told u cant hack byond well how did they do it then

Maybe they somehow have control over their games by way of hidden code? That'd only be the case if you guys used source code and the people releasing it were that smart..
In response to Mecha Destroyer JD (#13)
I can see someone releasing an anime game's source code with a little 3-line chunk in there that says "Give [specified key] unlimited power over everything!!!" in code. Or, to avoid detection, just use a weird hidden verb like .jabberwock101 instead. Then distribute your source code to everyone! Then, tell everybody you're a hacker and close down their games, and tell your friends your secret password too so they can be hackers as well. W00t! Sounds like fun, lets do it.