Lavalair (hack Protection)
Started on the old forum in September 2008 · view the original in the archive · old links redirect here
you spammer now ur site for sure hacked
Failure is not when a girls leaves you, its only when you let her go virgin. heheh!!
Most hackers hack for a reason like learner says if you decide to spam or mess about with the wrong sites you will get hacked
Seeming Your site gets Spammed a lot it then i say a big Congratulations to whoever did it! if i could hack i would have done the same lol
Suggestions on how to stop hackers:
1 Stop Spamming
2 Stop Your staff from spamming
3 Getting The Hint Yet?
I am not give the site link for spamming it was given for proper discussion ! Can any one give me coding help. I got Some Code Lke This :
CODE<?php
// Create the function function make_safe($var, $characters) {
// Create an array for errors $error = array();
// Create array of curse words to check for $curse_words = array("F WORD", "A WORD", "S WORD" "H WORD");
// Check the variable for any curse words $count = 0; $var = str_replace($curse_words, "** BEEP **", $var, $count);
// If more than 2 curse words exist, add an error if($count > 2) { $error[] = '[*]Field "' .$var. '" cannot contain fowl language!'; }
// Check for illegal characters if (preg_match("/[^a-zA-Z0-9.-\Ä\ä\Ö\ö\Ü\ü\ ]+$/", $var)) { $error[] = '[*]Field "' .$var. '" may not contain illegal characters!'; }
// Check character count if(isset($var{$characters})) { $error[] = '[*]Field "' .$var. '" exceed max amount of allowed characters!'; }
// Check for illegal database actions in fields if(preg_match("((select|grant|delete|insert|drop|alter|replace|truncate|update|create|rena e|describe)[[:space:]]+[A-Z|a-z|0-9|*| |,]+[[:space:]]+(from|into|table|database|index|view)[[:space:]]+[A-Z|a-z|0-9|*| |,]|UNION SELECT.'.'.*,[0-9].*INTO.FROM)", $var)) { $error[] = '[]Field "' .$var. '" contains errors.'; }
// Check for illegal tags if(preg_match("(<script|<about|<applet|<activex|<chrome|<object)", $var)) { $error[] = '[*]Field "' .$var. '" contains illegal tags. HTML is disallowed.'; }
// If any errors occured, output them! if(count($error)>0) { echo '
(' .count($error). ') errors occured while processing your search:
'; exit(); } else {
// Parse it through HTML entitites just to play it safe $var = htmlentities($var);
// Make safe for database for later user $var = mysql_real_escape_string($var);
}
// Closing to function make safe }
?>
And
CODE<?php
// Make a username safe for database and limit to 30 characters $username = $_POST['username'];
// User our function! $username = make_safe($username, 31);
?>
Like This AN d How To Use Them In Lavalair Forum !
very claver first u say ur site hack and spam and then u change discussion to something else. u created this topic only to spam smartie
Failure is not when a girls leaves you, its only when you let her go virgin. heheh!!
To make a long boring subject short
Where ever you use $_POST[""]; or $_REQUEST[""]; use mysql_real_escape_string
Example.
$name=mysql_real_escape_string($_POST["name"]);
What the mysql_real_escape_string does, it protects the script from injections, you do sql injections with forms, and if you use post for example, you post info that got submitted by a form.
Hope this is usefull to someone.
how do i hide the adminx folder?
External image (may be gone) WapCHAT Forum Currenltly changing over to xhtml External image (may be gone) My Dowloads Site External image (may be gone)
how do i hide the adminx folder?
pmpl simply...dont tell to anyone the folder name 😉
www.inbuzunar.mobi -Your mobile portal pocket
check this out(over 800 users online): http://bestwap.ro It a kid disperate for members pmpl and he tell's that nobody cant hack or floding him.
www.inbuzunar.mobi -Your mobile portal pocket
i dnt think u can eva safe guard a site 100% there will always be some1 out there that can get in jus do regular backups (cpanel does them automatically) also check ur admins pws that there not guessable n regulary change ur mysql details for the database as thats how i get in most sites lol
Wapdesire already contains this protection like that:
CODEif(!get_magic_quotes_gpc()) { $_GET = array_map('trim', $_GET); $_POST = array_map('trim', $_POST); $_COOKIE = array_map('trim', $_COOKIE);
$_GET = array_map('addslashes', $_GET); $_POST = array_map('addslashes', $_POST); $_COOKIE = array_map('addslashes', $_COOKIE); }
But it not works.........