Script Verification Code

Started on the old forum in October 2008 · view the original in the archive · old links redirect here

15 replies · 1,734 views · started 18 years ago · 1 min read

8 participants
Guest #1

Who Have Script Verification Code for wapsite...? Please Share with me...

Example:

Attachments: image.jpeg
sweetangel Lead · 885 posts #2

add at core.php

function registerform($ef)
{
  $ue = $errl = $pe = $ce = "";
  switch($ef)
  {
    case 1:
        $errl = "<img src=\"images/point.gif\" alt=\"!\"/> Please type your UserID";
        $ue = "<img src=\"images/point.gif\" alt=\"!\"/>";
        break;
    case 2:
        $errl = "<img src=\"images/point.gif\" alt=\"!\"/> Please type your password";
        $pe = "<img src=\"images/point.gif\" alt=\"!\"/>";
        break;
    case 3:
        $errl = "<img src=\"images/point.gif\" alt=\"!\"/> Please type your password again";
        $ce = "<img src=\"images/point.gif\" alt=\"!\"/>";
        break;
    case 4:
        $errl = "<img src=\"images/point.gif\" alt=\"!\"/> UserID is invalid";
        $ue = "<img src=\"images/point.gif\" alt=\"!\"/>";
        break;
    case 5:
        $errl = "<img src=\"images/point.gif\" alt=\"!\"/> Password is invalid";
        $pe = "<img src=\"images/point.gif\" alt=\"!\"/>";
        break;
    case 6:
        $errl = "<img src=\"images/point.gif\" alt=\"!\"/> Passwords doesn't match";
        $ce = "<img src=\"images/point.gif\" alt=\"!\"/>";
        break;
    case 7:
        $errl = "<img src=\"images/point.gif\" alt=\"!\"/> UserID must be 4 characters or more";
        $ue = "<img src=\"images/point.gif\" alt=\"!\"/>";
        break;
    case 8:
        $errl = "<img src=\"images/point.gif\" alt=\"!\"/> Password must be 4 characters or more";
        $pe = "<img src=\"images/point.gif\" alt=\"!\"/>";
        break;
    case 9:
        $errl = "<img src=\"images/point.gif\" alt=\"!\"/> UserID already in use, choose a different one";
        $ue = "<img src=\"images/point.gif\" alt=\"!\"/>";
        break;
    case 10:
        $errl = "<img src=\"images/point.gif\" alt=\"!\"/> Unknown mysql error try registering later";

        break;
    case 11:
        $errl = "<img src=\"images/point.gif\" alt=\"!\"/> UserID must start with a letter from a-z";
        $ue = "<img src=\"images/point.gif\" alt=\"!\"/>";
        break;
    case 12:
        $errl = "<img src=\"images/point.gif\" alt=\"!\"/> UserID is reserved for admins of the site";
        $ue = "<img src=\"images/point.gif\" alt=\"!\"/>";
        break;
    case 13:
        $errl = "<img src=\"images/point.gif\" alt=\"!\"/> Please choose an appropriate nickname";
        $ue = "<img src=\"images/point.gif\" alt=\"!\"/>";
        break;
    case 14:
        $errl = "<img src=\"../images/point.gif\" alt=\"!\"/> Security code is incorrect";
        $ue = "<img src=\"../images/point.gif\" alt=\"!\"/>";
        break;

  }
  $rform = "[size="1"]$errl[/size]

";
  $rform .= "$ue UserID: <input name=\"tfuid\" maxlength=\"15\"/>
";
  $rform .= "$pe Password: <input type=\"password\" name=\"tfpwd\" format=\"*x\" maxlength=\"30\"/>
";
  $rform .= "$ce Password: <input type=\"password\" name=\"tfcpw\" format=\"*x\" maxlength=\"30\"/>
";
  $rform .= "Birthday: <input name=\"tfbdy\" format=\"*x\" maxlength=\"30\"/>
";
  $rform .= "Sex:";
  $rform .= "<select name=\"opsex\" value=\"M\">";
  $rform .= "<option value=\"M\">Male</option>";
  $rform .= "<option value=\"F\">Female</option>";
  $rform .= "</select>
";
  $rform .= "Location: <input name=\"tfloc\"  maxlength=\"100\"/>
";
  $rform .= "<img src=\"images/captcha.php\"/>
";
  $rform .= "enter security code: <input type=\"text\" name=\"captcha_code\" maxlength=\"5\"/>
";
  $rform .= "<anchor>Register";
  $rform .= "<go href=\"register.php\" method=\"post\">";
  $rform .= "<postfield name=\"uid\" value=\"$(tfuid)\"/>";
  $rform .= "<postfield name=\"pwd\" value=\"$(tfpwd)\"/>";
  $rform .= "<postfield name=\"cpw\" value=\"$(tfcpw)\"/>";
  $rform .= "<postfield name=\"bdy\" value=\"$(tfbdy)\"/>";
  $rform .= "<postfield name=\"usx\" value=\"$(opsex)\"/>";
  $rform .= "<postfield name=\"ulc\" value=\"$(tfloc)\"/>";
  $rform .= "<postfield name=\"captcha_code\" value=\"$(captcha_code)\"/>";
  $rform .= "</go></anchor>";
  return $rform;
}

add this function at the very beginning of register.php I mean after <?php

session_start();

use this new modified usage of function registerform in register.php

if(trim($uid)=="")
{
    echo registerform(1);
}else if(trim($pwd)=="")
{
    echo registerform(2);
}else if(trim($cpw)=="")
{
    echo registerform(3);
}else if(spacesin($uid)||scharin($uid))
{
    echo registerform(4);
}else if(spacesin($pwd)||scharin($pwd))
{
    echo registerform(5);
}else if($pwd!=$cpw)
{
    echo registerform(6);
}else if(strlen($uid)<4)
{
    echo registerform(7);
}else if(strlen($pwd)<4)
{
    echo registerform(8);
}else if(isdigitf($uid))
{
    echo registerform(11);
}else if(checknick($uid)==1)
{
    echo registerform(12);

}else if(checknick($uid)==2)
{
    echo registerform(13);

}
else if(md5($_POST["captcha_code"])!= $_SESSION["captcha_code"])
{
    echo registerform(14);

}
else if(register($uid,$pwd,$usx,$bdy,$ulc, $ubr)==1)
{
    echo registerform(9);
}else if(register($uid,$pwd,$usx,$bdy,$ulc, $ubr)==2)
{
    echo registerform(10);
}else{
mkdir($uid."/", 0700);
$brws = explode(" ",$SERVER['HTTP_USER_AGENT']);
    $ubr = $brws[0];
$f = "$uid/index.php";
    $fp = fopen($f, "w");
    fwrite ($fp, "<php? echo $uid 
$bdy 
$usx 
$ulc 
$ubr; ?>");
    fclose($fp); 
  echo "Registration completed successfully!
";
  $tolog = true;

and upload this at images root

if like my post click:

External image (may be gone)

subzero Super moderator Fellow · 3,954 posts #3

where the image ?

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

subzero Super moderator Fellow · 3,954 posts #4

chears i edited it about to run with my forum.

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: captcha.zip
WhiteWarrior Principal · 1,419 posts #5

Whats the point of it? capcha or whatever its called, its pointless, means people have to enter more stuff to just sign up and it don't stop spam bots as most of them can now read it.

chris Junior · 39 posts #6

QUOTE (WhiteWarrior @ Oct 10 2008, 06:30 PM) <{POST_SNAPBACK}>

Whats the point of it? capcha or whatever its called, its pointless, means people have to enter more stuff to just sign up and it don't stop spam bots as most of them can now read it.

Because without it in place it is very very simple to make a spam-bot script that will register on a list of given url's using the same script and make a spam post in a set forum id ie 1.....

Similar to the spam posts made here recently, that was due to the forum spammer script being updared to read the ip.board captcha, hence the release of 2.3.6 with the re-captcha.

It would still be possible to make a lava-spam script with the captcha in place but a lot lot lot harder.

rukiya Lead · 569 posts #7

QUOTE (chris @ Oct 10 2008, 10:55 PM) <{POST_SNAPBACK}>

It would still be possible to make a lava-spam script with the captcha in place but a lot lot lot harder.

i did it here http://wapfuns.com/waps

and thats a part of my code

QUOTE (sweetangel @ Oct 10 2008, 10:58 AM) <{POST_SNAPBACK}>

add at core.php

function registerform($ef)
{
  $ue = $errl = $pe = $ce = "";
  switch($ef)
  {
    case 1:
        $errl = "<img src=\"images/point.gif\" alt=\"!\"/> Please type your UserID";
        $ue = "<img src=\"images/point.gif\" alt=\"!\"/>";
        break;
    case 2:
        $errl = "<img src=\"images/point.gif\" alt=\"!\"/> Please type your password";
        $pe = "<img src=\"images/point.gif\" alt=\"!\"/>";
        break;
    case 3:
        $errl = "<img src=\"images/point.gif\" alt=\"!\"/> Please type your password again";
        $ce = "<img src=\"images/point.gif\" alt=\"!\"/>";
        break;
    case 4:
        $errl = "<img src=\"images/point.gif\" alt=\"!\"/> UserID is invalid";
        $ue = "<img src=\"images/point.gif\" alt=\"!\"/>";
        break;
    case 5:
        $errl = "<img src=\"images/point.gif\" alt=\"!\"/> Password is invalid";
        $pe = "<img src=\"images/point.gif\" alt=\"!\"/>";
        break;
    case 6:
        $errl = "<img src=\"images/point.gif\" alt=\"!\"/> Passwords doesn't match";
        $ce = "<img src=\"images/point.gif\" alt=\"!\"/>";
        break;
    case 7:
        $errl = "<img src=\"images/point.gif\" alt=\"!\"/> UserID must be 4 characters or more";
        $ue = "<img src=\"images/point.gif\" alt=\"!\"/>";
        break;
    case 8:
        $errl = "<img src=\"images/point.gif\" alt=\"!\"/> Password must be 4 characters or more";
        $pe = "<img src=\"images/point.gif\" alt=\"!\"/>";
        break;
    case 9:
        $errl = "<img src=\"images/point.gif\" alt=\"!\"/> UserID already in use, choose a different one";
        $ue = "<img src=\"images/point.gif\" alt=\"!\"/>";
        break;
    case 10:
        $errl = "<img src=\"images/point.gif\" alt=\"!\"/> Unknown mysql error try registering later";

        break;
    case 11:
        $errl = "<img src=\"images/point.gif\" alt=\"!\"/> UserID must start with a letter from a-z";
        $ue = "<img src=\"images/point.gif\" alt=\"!\"/>";
        break;
    case 12:
        $errl = "<img src=\"images/point.gif\" alt=\"!\"/> UserID is reserved for admins of the site";
        $ue = "<img src=\"images/point.gif\" alt=\"!\"/>";
        break;
    case 13:
        $errl = "<img src=\"images/point.gif\" alt=\"!\"/> Please choose an appropriate nickname";
        $ue = "<img src=\"images/point.gif\" alt=\"!\"/>";
        break;
    case 14:
        $errl = "<img src=\"../images/point.gif\" alt=\"!\"/> Security code is incorrect";
        $ue = "<img src=\"../images/point.gif\" alt=\"!\"/>";
        break;

  }
  $rform = "$errl

";
  $rform .= "$ue UserID: <input name=\"tfuid\" maxlength=\"15\"/>
";
  $rform .= "$pe Password: <input type=\"password\" name=\"tfpwd\" format=\"*x\" maxlength=\"30\"/>
";
  $rform .= "$ce Password: <input type=\"password\" name=\"tfcpw\" format=\"*x\" maxlength=\"30\"/>
";
  $rform .= "Birthday: <input name=\"tfbdy\" format=\"*x\" maxlength=\"30\"/>
";
  $rform .= "Sex:";
  $rform .= "<select name=\"opsex\" value=\"M\">";
  $rform .= "<option value=\"M\">Male</option>";
  $rform .= "<option value=\"F\">Female</option>";
  $rform .= "</select>
";
  $rform .= "Location: <input name=\"tfloc\"  maxlength=\"100\"/>
";
  $rform .= "<img src=\"images/captcha.php\"/>
";
  $rform .= "enter security code: <input type=\"text\" name=\"captcha_code\" maxlength=\"5\"/>
";
  $rform .= "<anchor>Register";
  $rform .= "<go href=\"register.php\" method=\"post\">";
  $rform .= "<postfield name=\"uid\" value=\"$(tfuid)\"/>";
  $rform .= "<postfield name=\"pwd\" value=\"$(tfpwd)\"/>";
  $rform .= "<postfield name=\"cpw\" value=\"$(tfcpw)\"/>";
  $rform .= "<postfield name=\"bdy\" value=\"$(tfbdy)\"/>";
  $rform .= "<postfield name=\"usx\" value=\"$(opsex)\"/>";
  $rform .= "<postfield name=\"ulc\" value=\"$(tfloc)\"/>";
  $rform .= "<postfield name=\"captcha_code\" value=\"$(captcha_code)\"/>";
  $rform .= "</go></anchor>";
  return $rform;
}

add this function at the very beginning of register.php I mean after <?php

session_start();

use this new modified usage of function registerform in register.php

if(trim($uid)=="")
{
    echo registerform(1);
}else if(trim($pwd)=="")
{
    echo registerform(2);
}else if(trim($cpw)=="")
{
    echo registerform(3);
}else if(spacesin($uid)||scharin($uid))
{
    echo registerform(4);
}else if(spacesin($pwd)||scharin($pwd))
{
    echo registerform(5);
}else if($pwd!=$cpw)
{
    echo registerform(6);
}else if(strlen($uid)<4)
{
    echo registerform(7);
}else if(strlen($pwd)<4)
{
    echo registerform(8);
}else if(isdigitf($uid))
{
    echo registerform(11);
}else if(checknick($uid)==1)
{
    echo registerform(12);

}else if(checknick($uid)==2)
{
    echo registerform(13);

}
else if(md5($_POST["captcha_code"])!= $_SESSION["captcha_code"])
{
    echo registerform(14);

}
else if(register($uid,$pwd,$usx,$bdy,$ulc, $ubr)==1)
{
    echo registerform(9);
}else if(register($uid,$pwd,$usx,$bdy,$ulc, $ubr)==2)
{
    echo registerform(10);
}else{
mkdir($uid."/", 0700);
$brws = explode(" ",$SERVER['HTTP_USER_AGENT']);
    $ubr = $brws[0];
$f = "$uid/index.php";
    $fp = fopen($f, "w");
    fwrite ($fp, "<php? echo $uid 
$bdy 
$usx 
$ulc 
$ubr; ?>");
    fclose($fp); 
  echo "Registration completed successfully!
";
  $tolog = true;

and upload this at images root

WhiteWarrior Principal · 1,419 posts #8

But my point is, that 7 things you have to enter just to register... why make it so long?.. yeah some people like it but it really annoys me, i goto a site click register and there are pages and pages of details i have to enter just to have a username... its like filling out a job application form lol and yeah spamming is a serious problem now days but what the hell with it? so what, let people spam and spam they soon get bored of it and the people they spam always come back lol

amylee Principal · 1,092 posts #9

who actually bothers to look at profiles? except cyber-twats only thing im usually intrested in is the ip/hostname/country location of a user the rest is just useless crap to me
thats it and thats why i keep my registration to a simple username/password/email(if sendmail is working)/then captcha and finally referrer

wolf77ar Developer · 51 posts #11

Not work 😠 I dont know, maybe this captcha.zip posted here not work whith code made Always show: Security code is incorrect sweetangel, can share captcha.php used you? 😉

echo "<a href="http://wapcomunity.ro">[-Enter Here-]</a>";

chris Junior · 39 posts #12

QUOTE (WhiteWarrior @ Oct 11 2008, 02:14 AM) <{POST_SNAPBACK}>

But my point is, that 7 things you have to enter just to register... why make it so long?.. yeah some people like it but it really annoys me, i goto a site click register and there are pages and pages of details i have to enter just to have a username... its like filling out a job application form lol and yeah spamming is a serious problem now days but what the hell with it? so what, let people spam and spam they soon get bored of it and the people they spam always come back lol

As i said its for protection not cos people like it.. Remove some of the other fields or whatever you want. The reason behind it is to stop people running auto registration spam scripts (they would not need to even visit your site to do this)...

WhiteWarrior Principal · 1,419 posts #13

QUOTE (chris @ Oct 11 2008, 02:22 PM) <{POST_SNAPBACK}>

As i said its for protection not cos people like it.. Remove some of the other fields or whatever you want. The reason behind it is to stop people running auto registration spam scripts (they would not need to even visit your site to do this)...

i understand and i know they don't need to visit the site there going to attack but my point is why bother with it?.. everyone hates spammers but they will go away in the end and if you worry too much about spammers etc.. then you wont beable to have a good site as all your intrests would go into spamming blockers etc.. i ain't digging you i'm just trying to get my point across.. take big sites like mocospace they don't careless about spammers, the members always go back to them... anyway, its 100% your choice what you do and when you do it but always remember nothing ever will stop spammers, nothing ever will to auto register scripts... they will just continue to get better and better... thats idiots for you... they will never die, they will just come back with something stronger... they are like police... a bunch of twats with nothing to do. 😮

rukiya Lead · 569 posts #14

QUOTE (WhiteWarrior @ Oct 11 2008, 09:44 PM) <{POST_SNAPBACK}>

i understand and i know they don't need to visit the site there going to attack but my point is why bother with it?.. everyone hates spammers but they will go away in the end and if you worry too much about spammers etc.. then you wont beable to have a good site as all your intrests would go into spamming blockers etc.. i ain't digging you i'm just trying to get my point across.. take big sites like mocospace they don't careless about spammers, the members always go back to them... anyway, its 100% your choice what you do and when you do it but always remember nothing ever will stop spammers, nothing ever will to auto register scripts... they will just continue to get better and better... thats idiots for you... they will never die, they will just come back with something stronger... they are like police... a bunch of twats with nothing to do. 😮

try to spam here http://www.hornymatches.com . You shall fail.

chris Junior · 39 posts #16

Again the point is simply a protection method, its a very common feature found on almost every web script.

If you don't want to use it fine but its clear what the reasons for using it are.

I doubt anyone here has a script that can read the captcha on lavalair...

And quite simply with the captcha installed, if your site was on a list of sites to be spammed the script would fail and not work on your site.

If your not liking having so much to enter on registration why noy remove some of the useless fields that can be added after they login, like date of birth, location etc...

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