this legit.
This is a discussion on [How To]Protect ur Hotel && Little Patche`s and loggers[Read now] within the Habbo Tutorials forums, part of the Habbo Hotel category; Hello, Ragezone`rs! Here`s a little protection for ur Hotel(s) First the credits: - Habblet (Marco AKA Strato) SQLInjection logger #,1 ...

Hello, Ragezone`rs!
Here`s a little protection for ur Hotel(s)
First the credits:
- Habblet (Marco AKA Strato)
SQLInjection logger #,1
Notice! You need to be a good programmer for devlo this.
Anti Proxy or vps/dedi ect #,2Code:// SQL INJECTION LOG if(isset($_GET['accept'])){ $news_id = $_GET['accept']; $bestand = fopen('SQLINJECTION-SITE.log','a+'); $regels = file('SQLINJECTION-SITE.log'); $ip = "IP:".$_SERVER[REMOTE_ADDR]."\nURL:".$news_id."\n"; fwrite($bestand,"$ip"); fclose($bestand); }
EDIT: noobfriendly
It blocks machines that have a open port (80,8080)
put this in ur global or core whatever
and now put this in index.phpCode:function Protectshit($ip) { $fp = @fsockopen($ip, 80, $errstr, $errno, 1); if ($fp){ exit('<!-- Start JMSecurity - That`s what websites love -->Acces denied!<br>Security by JMSecurity<!-- End JMSecurity - That`s what websites love -->'); } $fp = @fsockopen($ip, 8080, $errstr, $errno, 1); if ($fp){ exit('<!-- Start JMSecurity - That`s what websites love -->Acces denied!<br>Security by JMSecurity<!-- End JMSecurity - That`s what websites love -->'); } }
News?id= patch (ANTISQL) #,3Code:$proxydedivpsw = $_SERVER[REMOTE_ADDR]; if($proxydedivpsw != "127.0.0.1"){ Protectshit($proxydedivpsw); }
Notice! Pase this underneed $_GET['id'] (This will only accept 123456789+ Not []/;'%&abcdefghij ect)
if you dont have a line with: $news_id = $_GET['id'];
than replace it or make that line.
PHP secure tips! (php.ini) #,4Code:if(preg_match('%[^0-9]%', $news_id)) exit('<!-- Start JMSecurity - That`s what websites love -->Hacking attempted!<br>Security by JMSecurity<!-- End JMSecurity - That`s what websites love -->');
Notice! Do not change shomething else, if you dont know what it means!
(go to URDIC:\xampp\php\php.ini)
First look for:
Change this toCode:magic_quotes_gpc = On
Now look forCode:magic_quotes_gpc = Off
change this toCode:file_uploads = On
If ur hotel is under attack or hacked by a exploit or whatever, please PM me, ill check if there is a patche for it.Code:file_uploads = Off
- Sorry for my bad english, im dutch, Cya! - Habblet AKA Marco (Strato)
U like it? Please hit thanks.
Last edited by Habblet; 15-03-11 at 09:01 PM.
this legit.
Great
GREAT fucking tutorial
five fucking stars
★★★★★
#1 isn't being called by any scripts.
#2 blocks access from anyone not connecting through the VPS or dedicated server (why the hell would you do that?).
#3 seems useful, though I wasn't aware of this exploit.
#4 disables some functionality, and if someone wants to upload a shell, they wouldn't use HTTP Upload.
Summary: What the fuck?
Hm, my mistake;
#1 is a simplified logger, that can't be used by anyone who isn't well versed in PHP, and anyone who is doesn't need it anyways.
#2 will block anyone running an Apache or Tomcat (or anything that uses the same ports) server. It'll be nothing but a deterrant to people visiting the site. And it won't work if they're behind any form of router. It also won't block a Slowloris attack under any circumstances.
#4 no, I don't.
where should i put this? :) i really need this ;)
A Problem With This Is...
Now People Will Find A Hacking Way Through This Keep Up The Good Work!
Nice marco, now will noobs with exploits never try it again :p
Nice marco :d