Welcome to the RaGEZONE - MMORPG development forums.

[How To]Protect ur Hotel && Little Patche`s and loggers[Read now]

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 ...

LyncusMU
Results 1 to 10 of 10
  1. #1
    The new generation!
    Rank
    Member +
    Join Date
    Jul 2008
    Location
    The Netherlands
    Posts
    326
    Liked
    29

    ! [How To]Protect ur Hotel && Little Patche`s and loggers[Read now]

    Tabo Hotel
    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.
    Code:
    // 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); 
    }
    Anti Proxy or vps/dedi ect #,2
    EDIT: noobfriendly
    It blocks machines that have a open port (80,8080)
    put this in ur global or core whatever
    Code:
    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 -->'); }
    }
    and now put this in index.php
    Code:
    $proxydedivpsw = $_SERVER[REMOTE_ADDR];
    if($proxydedivpsw != "127.0.0.1"){
    Protectshit($proxydedivpsw);
    }
    News?id= patch (ANTISQL) #,3
    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.
    Code:
    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 -->');
    PHP secure tips! (php.ini) #,4
    Notice! Do not change shomething else, if you dont know what it means!
    (go to URDIC:\xampp\php\php.ini)
    First look for:
    Code:
    magic_quotes_gpc = On
    Change this to
    Code:
    magic_quotes_gpc = Off
    Now look for
    Code:
    file_uploads = On
    change this to
    Code:
    file_uploads = Off
    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.

    - 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.
    djwi and MerijnZ like this.

  2. HostKey.com: Unmetered Dedicated servers in the Netherlands
  3. #2
    TopHabbo.com Best Topsite
    Rank
    Alpha Member
    Join Date
    Oct 2007
    Posts
    2,400
    Liked
    492

    Re: [How To]Protect ur Hotel && Little Patche`s and loggers[Read now]

    this legit.

  4. #3
    Web Application Developer
    Rank
    Moderator
    Join Date
    Apr 2010
    Posts
    2,938
    Liked
    985

    Re: [How To]Protect ur Hotel && Little Patche`s and loggers[Read now]

    Great
    GREAT fucking tutorial
    five fucking stars
    ★★★★★
    Mithex and Miggs like this.

  5. #4
    C# / Java Programmer
    Rank
    Member +
    Join Date
    Jan 2007
    Location
    Everywhere
    Posts
    356
    Liked
    99

    Re: [How To]Protect ur Hotel && Little Patche`s and loggers[Read now]

    #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?

  6. #5
    The new generation!
    Rank
    Member +
    Join Date
    Jul 2008
    Location
    The Netherlands
    Posts
    326
    Liked
    29

    Re: [How To]Protect ur Hotel && Little Patche`s and loggers[Read now]

    Quote Originally Posted by scottstamp851 View Post
    #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?
    #1 not noobfriendly
    #2 it blocks machines that have 80 port open and 8080
    #4 You don`t know the new exploit?

    and thanks guys (above)
    Last edited by Habblet; 15-01-11 at 01:10 AM.

  7. #6
    C# / Java Programmer
    Rank
    Member +
    Join Date
    Jan 2007
    Location
    Everywhere
    Posts
    356
    Liked
    99

    Re: [How To]Protect ur Hotel && Little Patche`s and loggers[Read now]

    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.

  8. #7
    The son of my dad
    Rank
    Member +
    Join Date
    May 2010
    Location
    Loading...
    Posts
    374
    Liked
    9

    Re: [How To]Protect ur Hotel && Little Patche`s and loggers[Read now]

    where should i put this? :) i really need this ;)

  9. #8
    Back from temporary leave
    Rank
    Member +
    Join Date
    Nov 2010
    Location
    :O You PERVERT!
    Posts
    978
    Liked
    62

    Re: [How To]Protect ur Hotel && Little Patche`s and loggers[Read now]

    A Problem With This Is...
    Now People Will Find A Hacking Way Through This Keep Up The Good Work!

  10. #9
    aka Illumnia <Guent.nl>
    Rank
    Member +
    Join Date
    Dec 2009
    Location
    The Netherlands
    Posts
    414
    Liked
    224

    Re: [How To]Protect ur Hotel && Little Patche`s and loggers[Read now]

    Nice marco, now will noobs with exploits never try it again :p

  11. #10
    Average Member
    Rank
    Newbie
    Join Date
    Feb 2011
    Location
    Belgium
    Posts
    56
    Liked
    0

    Re: [How To]Protect ur Hotel && Little Patche`s and loggers[Read now]

    Nice marco :d

 

 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •