WARNING: To all sa-mp WINDOWS server owners.
#38

Quote:
Originally Posted by !damo!spiderman
It basically depends on why and when you create a file using a players name. Basically all that script does is kick them OnConnect if they have one of the many names which will crash a windows server when trying to create a file by that name. Some systems may create files OnPlayerDisconnect which is still called when someone is kicked. Basically the best solution for everyone is to use a different file naming convention than player names or prefix a extra letter to their name
Ok based on that post^ and the fact that most people already have seen the source, im releasing the source. Now windows server owners can create there own security for this new way of crashing servers based on my script and be fully protected against possible attacks.

Tho there is an downside on this when releasing the source, meaning there will be also a lot of people who will go out and crash windows servers afther see-ing the source. I am not the one who will be responsible for that - the server owners are. They just have to stay more up to date;


pawn Code:
#include <a_samp>

main(){}


new IllegalNames[][7] = {
"com1","com2","com3",
"com4","com5","com6",
"com7","com8","com9",
"lpt1","lpt2","lpt3",
"lpt4","lpt5","lpt6",
"lpt7","lpt8","lpt9",
"nul","clock$","aux",
"prn","con"
};

public OnPlayerConnect(playerid)
{
  new pName[MAX_PLAYER_NAME];
  GetPlayerName(playerid, pName, sizeof(pName));

  for(new i = 0; i < sizeof(IllegalNames); i++)
  {
    if(!strcmp(pName, IllegalNames[i] , true))
    {
      Kick(playerid);
    }
  }
  return 0;
}
Reply


Messages In This Thread
WARNING: To all sa-mp WINDOWS server owners. - by -Sneaky- - 15.03.2008, 05:13
Re: WARNING: To all sa-mp WINDOWS server owners. - by StepanKing7 - 15.03.2008, 05:14
Re: WARNING: To all sa-mp WINDOWS server owners. - by -Sneaky- - 15.03.2008, 05:16
Re: WARNING: To all sa-mp WINDOWS server owners. - by StepanKing7 - 15.03.2008, 05:18
Re: WARNING: To all sa-mp WINDOWS server owners. - by -Sneaky- - 15.03.2008, 05:20
Re: WARNING: To all sa-mp WINDOWS server owners. - by [GTA] - 15.03.2008, 05:23
Re: WARNING: To all sa-mp WINDOWS server owners. - by -Sneaky- - 15.03.2008, 05:24
Re: WARNING: To all sa-mp WINDOWS server owners. - by -Sneaky- - 15.03.2008, 06:22
Re: WARNING: To all sa-mp WINDOWS server owners. - by mave_man - 15.03.2008, 06:24
Re: WARNING: To all sa-mp WINDOWS server owners. - by James - 15.03.2008, 07:04
Re: WARNING: To all sa-mp WINDOWS server owners. - by -Sneaky- - 15.03.2008, 07:06
Re: WARNING: To all sa-mp WINDOWS server owners. (BUG FIX2, MUST RE-RE-DOWNLOAD) - by James - 15.03.2008, 07:34
Re: WARNING: To all sa-mp WINDOWS server owners. (BUG FIX2, MUST RE-RE-DOWNLOAD) - by SaW - 15.03.2008, 07:37
Re: WARNING: To all sa-mp WINDOWS server owners. (BUG FIX2, MUST RE-RE-DOWNLOAD) - by -Sneaky- - 15.03.2008, 07:40
Re: WARNING: To all sa-mp WINDOWS server owners. (BUG FIX2, MUST RE-RE-DOWNLOAD) - by pokeybit - 15.03.2008, 08:35
Re: WARNING: To all sa-mp WINDOWS server owners. (BUG FIX2, MUST RE-RE-DOWNLOAD) - by mave_man - 15.03.2008, 09:21
Re: WARNING: To all sa-mp WINDOWS server owners. (BUG FIX2, MUST RE-RE-DOWNLOAD) - by Gandalf - 15.03.2008, 09:51
Re: WARNING: To all sa-mp WINDOWS server owners. (BUG FIX2, MUST RE-RE-DOWNLOAD) - by -Sneaky- - 15.03.2008, 10:09
Re: WARNING: To all sa-mp WINDOWS server owners. (BUG FIX2, MUST RE-RE-DOWNLOAD) - by Pro - 15.03.2008, 10:13
Re: WARNING: To all sa-mp WINDOWS server owners. (BUG FIX2, MUST RE-RE-DOWNLOAD) - by -Sneaky- - 15.03.2008, 10:15
Re: WARNING: To all sa-mp WINDOWS server owners. (BUG FIX2, MUST RE-RE-DOWNLOAD) - by Tez2k7 - 15.03.2008, 10:16
Re: WARNING: To all sa-mp WINDOWS server owners. (BUG FIX2, MUST RE-RE-DOWNLOAD) - by ConTron - 15.03.2008, 10:43
Re: WARNING: To all sa-mp WINDOWS server owners. (BUG FIX2, MUST RE-RE-DOWNLOAD) - by Pro - 15.03.2008, 10:50
Re: WARNING: To all sa-mp WINDOWS server owners. (BUG FIX2, MUST RE-RE-DOWNLOAD) - by ConTron - 15.03.2008, 10:54
Re: WARNING: To all sa-mp WINDOWS server owners. (BUG FIX2, MUST RE-RE-DOWNLOAD) - by Redirect Left - 15.03.2008, 11:02
Re: WARNING: To all sa-mp WINDOWS server owners. (BUG FIX2, MUST RE-RE-DOWNLOAD) - by nthell - 15.03.2008, 11:14
Re: WARNING: To all sa-mp WINDOWS server owners. (BUG FIX2, MUST RE-RE-DOWNLOAD) - by -Sneaky- - 15.03.2008, 11:30
Re: WARNING: To all sa-mp WINDOWS server owners. (BUG FIX2, MUST RE-RE-DOWNLOAD) - by xomka - 15.03.2008, 11:43
Re: WARNING: To all sa-mp WINDOWS server owners. (BUG FIX2, MUST RE-RE-DOWNLOAD) - by Dotmister - 15.03.2008, 11:44
Re: WARNING: To all sa-mp WINDOWS server owners. (BUG FIX2, MUST RE-RE-DOWNLOAD) - by -Sneaky- - 15.03.2008, 11:48
Re: WARNING: To all sa-mp WINDOWS server owners. (BUG FIX2, MUST RE-RE-DOWNLOAD) - by !damo!spiderman - 15.03.2008, 13:16
Re: WARNING: To all sa-mp WINDOWS server owners. (BUG FIX2, MUST RE-RE-DOWNLOAD) - by (SF)Grievous - 15.03.2008, 22:29
Re: WARNING: To all sa-mp WINDOWS server owners. (BUG FIX2, MUST RE-RE-DOWNLOAD) - by kazimieras - 15.03.2008, 22:32
Re: WARNING: To all sa-mp WINDOWS server owners. (BUG FIX2, MUST RE-RE-DOWNLOAD) - by cmg4life - 16.03.2008, 04:51
Re: WARNING: To all sa-mp WINDOWS server owners. (BUG FIX2, MUST RE-RE-DOWNLOAD) - by P1nd3r - 16.03.2008, 07:06
Re: WARNING: To all sa-mp WINDOWS server owners. (BUG FIX2, MUST RE-RE-DOWNLOAD) - by cmg4life - 16.03.2008, 08:36
Re: WARNING: To all sa-mp WINDOWS server owners. (BUG FIX2, MUST RE-RE-DOWNLOAD) - by !damo!spiderman - 16.03.2008, 09:56
Re: WARNING: To all sa-mp WINDOWS server owners. (BUG FIX2, MUST RE-RE-DOWNLOAD) - by -Sneaky- - 16.03.2008, 23:35
Re: WARNING: To all sa-mp WINDOWS server owners. - by stiffler2100 - 17.03.2008, 01:39
Re: WARNING: To all sa-mp WINDOWS server owners. - by tiagox2005z - 17.03.2008, 02:52
Re: WARNING: To all sa-mp WINDOWS server owners. - by -Sneaky- - 18.04.2008, 09:12
Re: WARNING: To all sa-mp WINDOWS server owners. - by shitbird - 20.04.2008, 06:43
Re: WARNING: To all sa-mp WINDOWS server owners. - by hab18 - 20.04.2008, 17:53
Re: WARNING: To all sa-mp WINDOWS server owners. - by brett7 - 25.04.2008, 15:04
Re: WARNING: To all sa-mp WINDOWS server owners. - by -Sneaky- - 25.04.2008, 15:07
Re: WARNING: To all sa-mp WINDOWS server owners. - by [MB]Guarda - 26.04.2008, 01:16
Re: WARNING: To all sa-mp WINDOWS server owners. - by [NL]Bank - 29.04.2008, 12:11
Re: WARNING: To all sa-mp WINDOWS server owners. - by bluewicc - 01.05.2008, 08:35
Re: WARNING: To all sa-mp WINDOWS server owners. - by Kotomi - 03.05.2008, 21:20
Re: WARNING: To all sa-mp WINDOWS server owners. - by !damo!spiderman - 04.05.2008, 02:14
Re: WARNING: To all sa-mp WINDOWS server owners. - by SampServerHelp - 18.07.2008, 22:37
Re: WARNING: To all sa-mp WINDOWS server owners. - by JaTochNietDan - 18.07.2008, 22:56
Re: WARNING: To all sa-mp WINDOWS server owners. - by lsrp - 15.08.2008, 02:00
Re: WARNING: To all sa-mp WINDOWS server owners. - by Terje - 30.08.2008, 16:19
Re: WARNING: To all sa-mp WINDOWS server owners. - by iCreaTivE - 04.09.2008, 13:07
Re: WARNING: To all sa-mp WINDOWS server owners. - by lsrp - 04.09.2008, 13:10
Re: WARNING: To all sa-mp WINDOWS server owners. - by iCreaTivE - 04.09.2008, 13:54
Re: WARNING: To all sa-mp WINDOWS server owners. - by stieben - 08.11.2008, 13:20
Re: WARNING: To all sa-mp WINDOWS server owners. - by Loyal - 24.11.2008, 21:44
Re: WARNING: To all sa-mp WINDOWS server owners. - by JaTochNietDan - 05.12.2008, 02:35
Re: WARNING: To all sa-mp WINDOWS server owners. - by Professional - 13.12.2008, 19:47
Re: WARNING: To all sa-mp WINDOWS server owners. - by robanswe - 01.02.2009, 11:11
Re: WARNING: To all sa-mp WINDOWS server owners. - by maij - 02.02.2009, 18:55
Re: WARNING: To all sa-mp WINDOWS server owners. - by Extremo - 02.02.2009, 20:22
Re: WARNING: To all sa-mp WINDOWS server owners. - by maij - 03.02.2009, 12:59
Re: WARNING: To all sa-mp WINDOWS server owners. - by tjying95 - 12.05.2009, 14:30
Re: WARNING: To all sa-mp WINDOWS server owners. - by herojith - 17.05.2009, 16:18
Re: WARNING: To all sa-mp WINDOWS server owners. - by [INT]Daniel - 03.06.2009, 13:52
Re: WARNING: To all sa-mp WINDOWS server owners. - by -Sneaky- - 07.06.2009, 05:28
Re: WARNING: To all sa-mp WINDOWS server owners. - by Gamer_Z - 04.09.2009, 16:59
Re: WARNING: To all sa-mp WINDOWS server owners. - by Manuel_Franco - 02.03.2011, 13:18
Re: WARNING: To all sa-mp WINDOWS server owners. - by davve95 - 02.03.2011, 14:00
Re: WARNING: To all sa-mp WINDOWS server owners. - by Dutchmen0031 - 02.03.2011, 14:38
Re: WARNING: To all sa-mp WINDOWS server owners. - by Juve913 - 07.04.2011, 22:02

Forum Jump:


Users browsing this thread: 8 Guest(s)