hlmod.hu
https://hlmod.hu/

Szerver támadás
https://hlmod.hu/viewtopic.php?f=9&t=14076
Oldal: 1 / 1

Szerző:  Telapo11 [2014.01.29. 16:06 ]
Hozzászólás témája:  Szerver támadás

Valaki támadja a szerveremet! vagy nem tudom mit csinál! Eccer a szerver fps 950 825 850 és amikor jön a támadás akkor meg lemegy 6 ra a pingek meg mennek felvele... mit tegyek? Nem mindig csak néha jön de idegesitő minden 2 percben jon ez a szar.....

Szerző:  lis789 [2014.01.29. 16:15 ]
Hozzászólás témája:  Re: Szerver támadás

Íre a consolba ilyeneket hogy "xasda dropped" és igy sok dropped ?
Mintha egy játékos felakarna csatlakozni!

Szerző:  lis789 [2014.01.29. 16:31 ]
Hozzászólás témája:  Re: Szerver támadás

Itt egy anti-flood!

SMA Forráskód: [ Mindet kijelol ]
  1. #include <amxmodx>
  2. #include <orpheu>
  3. #define PLUGIN "Anti flood"
  4. #define VERSION "1.0"
  5. #define AUTHOR "kanagava"
  6.  
  7. new time_last_conn
  8. new ip_old[256]
  9. new ip_warn[256]
  10. new Msg[256]
  11. new OrpheuHook:handlePrintf
  12. new warn
  13. new old_time
  14. new registered
  15. public plugin_init()
  16. {
  17. register_plugin(PLUGIN, VERSION, AUTHOR)
  18. set_task(5.0, "regfunctions")
  19. }
  20.  
  21. public regfunctions()
  22. {
  23. server_cmd("mp_logecho 1")
  24. server_cmd("log on")
  25. OrpheuRegisterHook(OrpheuGetFunction("SV_ConnectClient"),"OnSV_ConnectClientPre", OrpheuHookPre)
  26. OrpheuRegisterHook(OrpheuGetFunction("SV_ConnectClient"),"OnSV_ConnectClientPost", OrpheuHookPost)
  27. }
  28.  
  29. public OrpheuHookReturn:OnSV_ConnectClientPre()
  30. {
  31. registered=0
  32. if(get_systime()-old_time <= 2)
  33. {
  34. handlePrintf = OrpheuRegisterHook( OrpheuGetFunction( "Con_Printf" ), "Con_Printf" , OrpheuHookPre);
  35. registered=1
  36. }
  37. old_time=get_systime()
  38. return OrpheuIgnored;
  39. }
  40.  
  41.  
  42. public OrpheuHookReturn:OnSV_ConnectClientPost()
  43. {
  44. if(registered)
  45. {
  46. OrpheuUnregisterHook(handlePrintf)
  47. }
  48. return OrpheuIgnored;
  49. }
  50.  
  51.  
  52.  
  53. public OrpheuHookReturn:Con_Printf(const a[], const message[] )
  54. {
  55. registered=1
  56. if (containi(message,"^" connected, address ^"")!=-1)
  57. {
  58. new len=255
  59. new temp_right[256],temp_left[256],conn_ip[256]
  60. formatex( Msg,charsmax( Msg ),"%s", message );
  61. split(Msg, temp_left, len, temp_right, len, "^" connected, address ^"")
  62. strtok(temp_right, conn_ip, len, temp_right, len, ':')
  63. if (equal(conn_ip,ip_old) && !equal(conn_ip,"") && ((get_systime()-time_last_conn)<2))
  64. {
  65. warn=warn+1
  66. if(warn>1 && equal(conn_ip,ip_warn))
  67. {
  68. log_amx("[NOFLOOD] Connection flood detected from ip %s",ip_old)
  69. server_cmd("addip 0.0 %s",ip_old)
  70. }
  71. ip_warn=conn_ip
  72. }
  73. else
  74. {
  75. warn=0
  76. }
  77. ip_old=conn_ip
  78. time_last_conn=get_systime()
  79. }
  80. return OrpheuIgnored;
  81. }


Kell hozzá az orpheu is!
http://forums.alliedmods.net/showthread.php?t=116393

Szerző:  Telapo11 [2014.01.29. 16:34 ]
Hozzászólás témája:  Re: Szerver támadás

nem ir olyant hogy Droped csak siman laggol.........

Szerző:  lis789 [2014.01.29. 16:36 ]
Hozzászólás témája:  Re: Szerver támadás

Akkor nem is biztos hogy támadják a szerót! Lehet hogy valamelyik plugin csinálja!

Szerző:  Telapo11 [2014.01.29. 16:37 ]
Hozzászólás témája:  Re: Szerver támadás

Ezt csinálja nézem a Net_graphot hogy mikor jönnek a támadások

2. hsz: Amikor kiveszem az összes plugint is laggol ugyanezt csinálja

Csatolmányok:
2014-01-29_00007.jpg
2014-01-29_00007.jpg [17.72KiB |Megtekintve 608 alkalommal ]

Szerző:  White#Angel [2014.01.29. 16:41 ]
Hozzászólás témája:  Re: Szerver támadás

Ilyenkor nem írják, hogy nem látják a komolyságot a témában?:D
Egyébként lehet, hoga magát a host-ot támadják, de ez nem valószínű. Az is lehet, hogy csak te laggolsz. Biztos mindenki más is laggol? Ezelőtt voltak ilyen gondok?

Szerző:  Telapo11 [2014.01.29. 16:47 ]
Hozzászólás témája:  Re: Szerver támadás

Mindenkinek fel megy a pingje 200 ra

Szerző:  alfanero [2014.01.29. 17:57 ]
Hozzászólás témája:  Re: Szerver támadás

Ez enm jó rá?
SMA Forráskód: [ Mindet kijelol ]
  1. #include <amxmodx>
  2. #include <orpheu>
  3. #define PLUGIN "Anti flood"
  4. #define VERSION "1.1"
  5. #define AUTHOR "kanagava"
  6. //native halflife_time ( )
  7. // Ajustes menores al plug-in
  8. new MAX_WARN=1 // El número de advertencias después de que la IP se prohibió recomendado [1-2]
  9. new CONN_TIME=2 // Tiempo mínimo entre conexiones al servidor para permitir
  10. // (Si las conexiones entre segundo conn_time más pequeńos de la prueba) se recomienda [1-3]
  11. new CONN_TIME_IP=3 // El tiempo mínimo entre las conexiones de una IP a emitir advertencias recomendadas [1-5]
  12. new RST_WARN_TIME_IP=10 // Tiempo máximo entre las conexiones de una IP a restablecer advertencias
  13. // Necesidad [RST_WARN_TIME_IP>CONN_TIME_IP]
  14.  
  15. new Msg[256]
  16. new OrpheuHook:handlePrintf
  17. new ip_list[5][16]
  18. new time_list[5]
  19. new warn_list[5]
  20. new old_time
  21. new registered
  22. public plugin_init()
  23. {
  24. register_plugin(PLUGIN, VERSION, AUTHOR)
  25. set_task(5.0, "regfunctions")
  26. register_srvcmd("floodlist","floodlist")
  27. }
  28.  
  29. public regfunctions()
  30. {
  31. //log_amx("try to reg_func")
  32. OrpheuRegisterHook(OrpheuGetFunction("SV_ConnectClient"),"OnSV_ConnectClientPre", OrpheuHookPre)
  33. OrpheuRegisterHook(OrpheuGetFunction("SV_ConnectClient"),"OnSV_ConnectClientPost", OrpheuHookPost)
  34. server_cmd("mp_logecho 1")
  35. server_cmd("log on")
  36. }
  37.  
  38. public OrpheuHookReturn:OnSV_ConnectClientPre()
  39. {
  40. registered=0
  41. if(get_systime()-old_time <= CONN_TIME)
  42. {
  43. //log_amx("Reg %d %d ",halflife_time ( ), get_systime())
  44. handlePrintf = OrpheuRegisterHook( OrpheuGetFunction( "Con_Printf" ), "Con_Printf" , OrpheuHookPre);
  45. registered=1
  46. //log_amx("Reg %d %d ",halflife_time ( ), get_systime())
  47. }
  48. old_time=get_systime()
  49. return OrpheuIgnored;
  50. }
  51.  
  52.  
  53. public OrpheuHookReturn:OnSV_ConnectClientPost()
  54. {
  55. if(registered)
  56. {
  57. OrpheuUnregisterHook(handlePrintf)
  58. //log_amx("Unreg %d %d ",halflife_time ( ), get_systime())
  59. }
  60. return OrpheuIgnored;
  61. }
  62.  
  63. public OrpheuHookReturn:Con_Printf(const a[], const message[] )
  64. {
  65. registered=1
  66. if (containi(message,"^" connected, address ^"")!=-1)
  67. {
  68. new msg[256]
  69. copy(msg,255,message)
  70. checkip(msg)
  71. }
  72. return OrpheuIgnored;
  73. }
  74.  
  75. public floodlist()
  76. {
  77. new h_time[32]
  78. console_print(0,"Floodding IP list by Dan'ka <!-- s:D --><img src=\"{SMILIES_PATH}/icon_e_biggrin.gif\" alt=\":D\" title=\"nagyon boldog\" /><!-- s:D -->")
  79. for (new i=0;i<5;i++)
  80. { if(time_list[i]!=0)
  81. {
  82. format_time ( h_time,31, "%d.%m %H:%M:%S",time_list[i])
  83. console_print(0,"[%d] [IP %s] [TIME %s] [WARN's %d]",i,ip_list[i],h_time,warn_list[i])
  84. }
  85. }
  86. }
  87.  
  88. public checkip(message[])
  89. {
  90. new len=255
  91. new temp_right[256],temp_left[256],conn_ip[256]
  92. formatex( Msg,charsmax( Msg ),"%s", message );
  93. split(Msg, temp_left, len, temp_right, len, "^" connected, address ^"")
  94. strtok(temp_right, conn_ip, len, temp_right, len, ':')
  95. new mintime
  96. new replace_index
  97. mintime=get_systime()
  98. for (new i=0;i<5;i++)
  99. {
  100. if (time_list[i]<mintime )
  101. {
  102. mintime=time_list[i]
  103. replace_index=i
  104. }
  105.  
  106. }
  107. new ipwarn
  108. ipwarn=false
  109. for (new i=0;i<5;i++)
  110. {
  111. if (equal(conn_ip,ip_list[i]) && !equal(conn_ip,""))
  112. {
  113. if ((get_systime()-time_list[i])<CONN_TIME_IP)
  114. {
  115. warn_list[i]=warn_list[i]+1
  116. if(warn_list[i]>MAX_WARN)
  117. {
  118. //log_amx("Ban %d %d ",halflife_time ( ), get_systime())
  119. log_amx("[NOFLOOD] Connection flood detected from ip %s",conn_ip)
  120. server_cmd("addip 120.0 %s",conn_ip)
  121. }
  122. }
  123. else
  124. {
  125. if ((get_systime()-time_list[i])>RST_WARN_TIME_IP)
  126. warn_list[i]=0
  127. }
  128.  
  129. time_list[i]=get_systime()
  130. ipwarn=true
  131. break
  132. }
  133. }
  134.  
  135. if (!ipwarn)
  136. {
  137. warn_list[replace_index]=0
  138. time_list[replace_index]=get_systime()
  139. copy(ip_list[replace_index],15,conn_ip)
  140. }
  141. }
  142.  

Szerző:  BeepBeep [2014.01.29. 18:42 ]
Hozzászólás témája:  Re: Szerver támadás

Ismerős, de amíg nem tudjuk pontosan a támadás típusát, csak találgathatunk.
Elsőnek nézd meg a szerver konzolt a támadáskor, s írd ha lehet, másold ki nekünk az egészet, amíg le nem állnak

Oldal: 1 / 1 Minden időpont UTC+02:00 időzóna szerinti
Powered by phpBB® Forum Software © phpBB Limited
https://www.phpbb.com/