Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > General Coding > Coding Tutorials
You last visited: Today at 02:46

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



[Realese]Anti DDOS Script

Discussion on [Realese]Anti DDOS Script within the Coding Tutorials forum part of the General Coding category.

Reply
 
Old   #1
 
ExiiaL's Avatar
 
elite*gold: 54
Join Date: Mar 2009
Posts: 1,326
Received Thanks: 339
[Realese]Anti DDOS Script

Die SQL
Code:
CREATE TABLE `antiddos` (
  `ips` char(255) NOT NULL DEFAULT '',
  `load` int(2) DEFAULT '0',
  KEY `ips` (`ips`)
) TYPE=MyISAM;
PHP Code
Code:
<?php
include("include/connect.php");
$load = file_get_contents("".$url."");
preg_match("/averages?: ([0-9\.]+),[\s]+([0-9\.]+),[\s]+([0-9\.]+)/",$load,$avgs);
$current=$avgs[1];
//echo $current;
if($current >20)
{
$ip = $_ENV['REMOTE_ADDR'];
mysql_query("INSERT INTO `antiddos` (`ips`,`load`) VALUES ('$ip','$current')") or sqlerr(__FILE__, __LINE__);
echo "Der Server Load ist zu hoch, wir stehen unter einer DoS attacke. ALLE IP AKTIVITÄTEN WERDEN IN DIESER ZEIT GELOGGT";
exit;
}
else{
echo "";
}
?>
nun eine connect.php erstellen und anpassen
Code:
<?php
mysql_connect("localhost","DATABASE_USER","DB_PASS");  
mysql_select_db("DB_DATABASE");
$url = "http://www.Your-URL.com/metaltorrents/server_info.php"; // Pfad zur server_info.php
?>
nun eine ddosadmin.php
Code:
<p align="center"><a href="truncate.php">Clear Database</a><br />
<em>Its HIGHLY recomended that you clear the database on a daily basis. </em></p>
<div align="center">
  <table width="622" border="1">
    <tr>
      <td width="571"><div align="center" class="style1">Anti-DDoS Elite</div></td>
    </tr>
  </table>
  <table width="622" border="1">
    <tr>
      <td width="571"><div align="center">IP Address</div></td>
      <td width="571"><div align="center">Number Times accessed</div></td>
    </tr>
<?php
include("include/connect.php");
$result = mysql_query("SELECT ips, COUNT(ips) AS NumOccurrences FROM antiddos GROUP BY ips HAVING ( COUNT(ips) > 1 ) order by NumOccurrences desc");
while($r=mysql_fetch_array($result))
{  
   $ips=$r["ips"];
   $NumOccurrences=$r["NumOccurrences"];
   echo "<tr><td>$ips</td><td>[$NumOccurrences]</td></tr>";
}
?>
  </table>
</div>
<?
stdfoot();
?>
und eine truncate.php
Code:
<?
include("include/connect.php");
mysql_query("TRUNCATE TABLE `antiddos`");
?>
<?
    die("Clean Database<br>Database Cleared!");
?>
So das wars , Orginalthread bzw Post:

Author unbekannt war ein gast wo das gepostet hat o.Ô
ExiiaL is offline  
Thanks
3 Users
Old 11/27/2010, 15:55   #2

 
Adroxxx's Avatar
 
elite*gold: 15
Join Date: Nov 2005
Posts: 13,021
Received Thanks: 5,323
Kann man auch über IPTables machen.

btw. hats nichts mit Gamehacking zu tun.

#move
Adroxxx is offline  
Reply


Similar Threads Similar Threads
[Ddos] Script by Just4You >.<
07/13/2010 - Metin2 PServer Guides & Strategies - 21 Replies
Firewall gegen Ddos Ich werde euch hier erklären wie ihr eure Server gegen Denial of Service Attacken mithilfe einer Firewall namens DDoS Deflate schützen könnt. Also, erst mal auf in Putty einloggen und mit wget das Install-Script laden: Nun nur noch ausführen
Anti DDos Script
06/10/2010 - Flyff Hacks, Bots, Cheats, Exploits & Macros - 1 Replies
#removed
[Realese] Grand Chase Philippines Script
10/19/2009 - Grand Chase Hacks, Bots, Cheats & Exploits - 4 Replies
Hi, Elitepvpers Here is the Hack for Grand Chase PH.. Working 99% Link:-- Click this for Script.kom Click this for char_script.kom Click this for AI



All times are GMT +1. The time now is 02:46.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2024 elitepvpers All Rights Reserved.