stop session stealing on lava scripts

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

30 replies · 2,690 views · started 17 years ago · 1 min read

17 participants
ozziemale31 Lead · 861 posts #1

i dont know why u fools havent thought of this befor lol add this to core

function isblocked2($str,$sender)
{
  if(ismod($sender))
  {
    return false;
  }
  $str = str_replace(" ","",$str);
  $code[0] = ".php";
  $code[1] = ".php4";
  $code[2] = ".php5";

  for($i=0;$i<count($codes);$i++)
  {
        $nosf = substr_count($str,$codes[$i]);
    if($nosf>0)
    {
      return true;
    }
  }
  return false;
}

and some of you will be shaking your heads on how easy this simple code is lol as all it will do is report the message being sent then ban the person for it

External image (may be gone) External image (may be gone)

External image (may be gone)

*****

**Dont Ask Me Dumb Questions.Or you'l get a Dumb Answer.. Want A Profesional Logo or Theme For Your wap site Pm Me.If I Have The Time Ill Make It For Free ***

ozziemale31 Lead · 861 posts #3

kiLLeR-eyEd_14 wrote: We have different ways to prevent it..anyway, that's good and helpful for the others.,tnx

also help against sql injection ban the users who try inserting these symbols ${} etc

$code[3] = "$";
$code[4] = "{";
$code[4] = "}";

External image (may be gone) External image (may be gone)

External image (may be gone)

*****

**Dont Ask Me Dumb Questions.Or you'l get a Dumb Answer.. Want A Profesional Logo or Theme For Your wap site Pm Me.If I Have The Time Ill Make It For Free ***

rap-4ever Developer · 180 posts #5

ozziemale31 wrote: i dont know why u fools havent thought of this befor lol add this to core

function isblocked2($str,$sender)
{
  if(ismod($sender))
  {
    return false;
  }
  $str = str_replace(" ","",$str);
  $code[0] = ".php";
  $code[1] = ".php4";
  $code[2] = ".php5";

  for($i=0;$i<count($codes);$i++)
  {
        $nosf = substr_count($str,$codes[$i]);
    if($nosf>0)
    {
      return true;
    }
  }
  return false;
}

and some of you will be shaking your heads on how easy this simple code is lol as all it will do is report the message being sent then ban the person for it

hmmm...just add this in core.php???

riderz Lead · 975 posts #6

yea rap just add this in core then it should work


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

something else Fellow · 2,296 posts #7

ozziemale31 wrote: i dont know why u fools havent thought of this befor lol add this to core

function isblocked2($str,$sender)
{
  if(ismod($sender))
  {
    return false;
  }
  $str = str_replace(" ","",$str);
  $code[0] = ".php";
  $code[1] = ".php4";
  $code[2] = ".php5";

  for($i=0;$i<count($codes);$i++)
  {
        $nosf = substr_count($str,$codes[$i]);
    if($nosf>0)
    {
      return true;
    }
  }
  return false;
}

and some of you will be shaking your heads on how easy this simple code is lol as all it will do is report the message being sent then ban the person for it

yeah cool idea 🙂 that would help at least lol .... still leaves u a little vulnerable cos of mod rewrite but every little helps 🙂

something else Fellow · 2,296 posts #8

something else wrote: yeah cool idea 🙂 that would help at least lol .... still leaves u a little vulnerable cos of mod rewrite but every little helps :)

wouldnt just: $str = str_replace(".php","",$str); do the same job?

WhiteWarrior Principal · 1,419 posts #9

ozziemale31 wrote: i dont know why u fools havent thought of this befor lol add this to core

function isblocked2($str,$sender)
{
  if(ismod($sender))
  {
    return false;
  }
  $str = str_replace(" ","",$str);
  $code[0] = ".php";
  $code[1] = ".php4";
  $code[2] = ".php5";


  for($i=0;$i<count($codes);$i++)
  {
        $nosf = substr_count($str,$codes[$i]);
    if($nosf>0)
    {
      return true;
    }
  }
  return false;
}

and some of you will be shaking your heads on how easy this simple code is lol as all it will do is report the message being sent then ban the person for it

Your missing something... php3 8)

ozziemale31 Lead · 861 posts #10

lol i know plus u need to block extensions like html htm wml xml etc and so forth $str = str_replace(".php","",$str); do the same job? no it just replaces the extension u want the person who posts that extension to be auto banned saves u time going thru your database searchn for how yr hacker got in

External image (may be gone) External image (may be gone)

External image (may be gone)

*****

**Dont Ask Me Dumb Questions.Or you'l get a Dumb Answer.. Want A Profesional Logo or Theme For Your wap site Pm Me.If I Have The Time Ill Make It For Free ***

kei_ki7 Senior · 431 posts #11

sorry for noob question 🙂 for what is this? i mean what will the script do if condition is = yes?

Did I help you? You can help me too Your donations will help me finance my studies.

riderz Lead · 975 posts #12

it just secure ur script from session hack


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

something else Fellow · 2,296 posts #13

was just thinking .php3 .php4 etc is a waste when .php would pick them up

function isblocked2($str,$sender)
{
if((substr_count($str,".php")>0)&&(!ismod($sender))){
//ban
}
}
xola Newbie · 6 posts #16

Good work ozziemale, have fun

this is XOLA

manavworld Developer · 118 posts #17

ozziemale31 wrote: also help against sql injection ban the users who try inserting these symbols ${} etc

$code[3] = "$";
$code[4] = "{";
$code[4] = "}";

,where i can put thz code, after function isblocked2($str,$sender) { if(ismod($sender)) { return false; } $str = str_replace(" ","",$str); $code[0] = ".php"; $code[1] = ".php4"; $code[2] = ".php5";

...can i put thz code here for mysql injection block?? $code[3] = "$"; $code[4] = "{"; $code[4] = "}"; ,,reply plz

bijaybd Developer · 178 posts #18

i dont use lavaair script then what should i do

manavworld Developer · 118 posts #19

bijaybd wrote: i dont use lavaair script then what should i do

wht script u using? And ya wht problem u getting

manavworld Developer · 118 posts #20

Thanx ozziemale31 brother, i get it, thanxxxxxxxxxxx brother

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