Team BlueWater Game Online Tutorial's
Bine ati venit la Team-BlueWater!!Tutorial's 4 all Games!

Anti sql inject script + ip + command lo

View previous topic View next topic Go down

Anti sql inject script + ip + command lo

Post  m4s4cru on Tue Aug 02, 2011 12:51 pm

So. Now I will present my ban log system that records the ip-it manual, time, command that has tried to "hack" the server. Check all $ _POST and $ _GET requests.

When you try to use SELECT, DROP, -,;, 'recorded in the DB. You have 1 admin stranichka which is available to IP-then the administrator. There is indicated hours page from that been tried to hack the server (unless $ _GET request, and someone decided to try index.php? Op = 'shutdown-command or as). From this page if you believe people should be by clicking on a ban ip-and it no longer access the site. Everything is saved in DB.

Here are some screenshots.


-------------------------------------------------- -----------

-------------------------------------------------- -----------

-------------------------------------------------- -----------

-------------------------------------------------- -----------

Works for all web packages!

Elementary installation.
You need only these tables to add the table in MuOnline query analizer-a.

Code:

CREATE TABLE [antisqlinjection] (
[Tarikata] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL,
[Ip] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL,
[Komanda] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL,
[Chas] [int] NULL
) ON [PRIMARY]
GO

Code:

CREATE TABLE [banip] (
[Ip] [varchar] (50) COLLATE SQL_Latin1_General_CP437_BIN NULL
) ON [PRIMARY]
GO

Remove any other files. In the folder in the root admin and set conreal.php. Open index.php and add before
PHP Code:

The idea I get it to such a code DarksTeam but this works.


I forgot to put delall.php the directory admin /
Here he is.
PHP Code:



include "conreal.php";
$ ADDR = $ _SERVER ['REMOTE_ADDR'];
if ($ ADDR = $ adminip)
{
$ Getip = $ _GET ['ip'];
$ Banhim = mssql_query ("DELETE FROM antisqlinjection");
echo "You have successfully deleted all logs;
}
else
{
echo "You're not welcome here!"
}
?>
[You must be registered and logged in to see this link.]
avatar
m4s4cru
Admin
Admin

Mesaje : 172
Data de inscriere : 2011-07-29
Varsta : 26

View user profile

Back to top Go down

View previous topic View next topic Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum