Anti Hacker script

Started on the old forum in August 2009 · view the original in the archive · old links redirect here

21 replies · 2,778 views · started 17 years ago · 1 min read

TL;DR · summary of 21 replies
  • riderz found a script but did not test it, and shared it for others to test.
  • The code provided by subzero was meant to be a fix for the anti-hack function in core.php.
  • To use this script, one would need to include or echo the code within their PHP file where needed.
  • There is no consensus on whether the original script works as intended or not.

Written automatically from the replies by a language model on our own server. It can be wrong; the posts below are the source.

13 participants
morse Senior · 364 posts #2

interesting, crazy and even lazy .. thats what this script is

function anti_hacker($txt){
$txt=str_replace("|","I",$txt); 
$txt=str_replace("../",",,/",$txt);
$txt=str_replace("||","I",$txt);
$txt=htmlspecialchars($txt);                  
$txt=str_replace("\"",""",$txt);
$txt=str_replace("/\\\$/","$",$txt);
$txt=str_replace("$","$",$txt);          
$txt=str_replace("\\","\",$txt);
$txt=str_replace("@","@",$txt);
$txt=str_replace("`","",$txt);  
$txt=str_replace("^","",$txt);
$txt=str_replace("%","%",$txt);
$txt=stripslashes(trim($txt));
return $txt;}

all it does is it replaces string, all lavalair edits do have this functionality already, infact this function is limited as it will only replace value of $txt variable, anything else $abcdefg will have no effect 🙁 Probably this script might have been had a look at before creating lava

tinyurl.com/earnbymobile Easy earning for Indians

Alternative mobile advertising network .. Minimum 100 USD pay / NET15 pay cycle, Good Brand, Best targeting for Android goo.gl/6vub3

huwad Developer · 215 posts #3

riderz wrote: Here are sumthing i found havnt tested

nice share.. but it gives me Undefined variables.. 😒

hacking is like sex. you get in, you get out and you pray you left nothing behind.

something else Fellow · 2,296 posts #5

yeah wtf? i like the: $txt=str_replace("%","%",$txt); lol

maybee they made a spelling mistake and was ment to write: $txt=str_replace("a load of crap","a load of crap",$txt); lol

subzero Super moderator Fellow · 3,954 posts #6

LOL

This cant be so true what somthing else said !! lmao

Visit: Chat4u.mobi - The New Lay Of being a site of your dreams! Visit: WapMasterz Coming Back Soon!


SCRIPTS FOR SALE BY SUBZERO Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders. FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others... _______…

riderz Lead · 975 posts #7

Hehe well i just found and share so i dnt test that i leave for coders


Jacques jacques@gw-designs.co.za http://coding.biz.tm Come join and lets make it a place to learn all the noobies how to code


NEVER FORGET TO CLICK THE TANX BUTTON IF U LIKE WHAT IM SHARING OR HELPING WITH

subzero Super moderator Fellow · 3,954 posts #8

This is better way

// filter Words That will couse you problems also helps stop sql injectshon
        $text = str_replace("&","&",$text);
          $text = str_replace(")",")",$text);
          $text = str_replace("(","(",$text);
          $text = str_replace ("\'", """, $text);
          $text = str_replace("`","`",$text);
          $text = str_replace("~","~",$text);
          $text = str_replace("£","£",$text);
          $text = str_replace("¢","¢",$text);
          $text = str_replace("€","€",$text);
          $text = str_replace("{","{",$text);
          $text = str_replace("}","}",$text);
          $text = str_replace("$","$",$text);
          $text = str_replace("%","%",$text);

Visit: Chat4u.mobi - The New Lay Of being a site of your dreams! Visit: WapMasterz Coming Back Soon!


SCRIPTS FOR SALE BY SUBZERO Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders. FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others... _______…

Leviathan73 Senior · 260 posts #9

in which file or page you put this code?

huwad Developer · 215 posts #11

it replaces the current strings

hacking is like sex. you get in, you get out and you pray you left nothing behind.

unknown32 Junior · 15 posts #12

Is it working ?

Love is like heart.. Life without love is like life without heart.. I think.. Hehe

djdevil89 Senior · 287 posts #13

for Lava put this in core.php

function anti_hack($text)
{
      $text = str_replace("&","&",$text);
          $text = str_replace(")",")",$text);
          $text = str_replace("(","(",$text);
          $text = str_replace ("\'", """, $text);
          $text = str_replace("`","`",$text);
          $text = str_replace("~","~",$text);
          $text = str_replace("£","£",$text);
          $text = str_replace("¢","¢",$text);
          $text = str_replace("€","€",$text);
          $text = str_replace("{","{",$text);
          $text = str_replace("}","}",$text);
          $text = str_replace("$","$",$text);
          $text = str_replace("%","%",$text);
}

then example for shoutbox use it like

$text = anti_hack($text);
foreach ($_SERVER as $server => $value)
{
echo "$server is $value<br />";
}
che_pida Junior · 33 posts #14

try it n0wn. .hahak

~ Keep It Up ~

che_pida Junior · 33 posts #15

thanks drwap. . .

~ Keep It Up ~

subzero Super moderator Fellow · 3,954 posts #17

here is the script i tryed to post here it changed what it meant not to do...

Download this also with drwap code...

$text = anti_hack($text); 

{ and } and $ and % showed how they are not the code so here is the scriptlet that will give you what it meant to be....

Visit: Chat4u.mobi - The New Lay Of being a site of your dreams! Visit: WapMasterz Coming Back Soon!


SCRIPTS FOR SALE BY SUBZERO Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders. FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others... _______…

Attachments: scriptlet.txt
bijaybd Developer · 178 posts #18

the problem is when i use this it dont show the smileys in private or room

bijaybd Developer · 178 posts #19

it replace the < of the smiley <img src so the smiley does not load

djdevil89 Senior · 287 posts #20

$replace = anti_hack($text); $text = getsmilies($replace);

Havent tested it but something like this should work

foreach ($_SERVER as $server => $value)
{
echo "$server is $value<br />";
}

Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close