Post: [RELEASE] Actual Working Password Verification
08-08-2011, 10:08 PM #1
Karoolus
I'm the W@W Menu Guy !
(adsbygoogle = window.adsbygoogle || []).push({}); Actual Working Password Verification
(can't get access by pressing all buttons at the same time)


I don't have a video, cause it looks better on ps3/xbox then it does on pc
i DO have a PS3 patch that has the password thingy built in (& only that)
when you spawn, you have to set the password, just like host would have to do
then 5 seconds later, it'll ask you to enter the password, so you can see what other ppl see when they get to enter the password Smile

Host has the ability to change the password in-game, so it's not hardcoded in gsc.. which makes it a lot more reliable (look at GodlyModz double left on the dpad protection :p)

enough talking, more code Winky Winky

on spawn, set this:
    self.tries = 0;

The Actual Code ^^
    SetPW()
{
BG = createIcon( "black", 650, 30 );
BG.hidewheninmenu = true;
BG setPoint( "TOP", undefined, 0, 10 );
BG.alpha = .2;
BG.sort = 0;
input = self createFontString( "objective", 1.6, self);
input.hidewheninmenu = true;
input setPoint( "TOP", undefined, 0, 10 );
input.sort = 0.5;
length = 1;
input SetText("Choose Password Length: " + length + "");
level.password = [];
length_reached = false;
while(!length_reached)
{
if(self AttackButtonPressed())
{
length++;
wait .2;
}
if(self AdsButtonPressed())
{
length--;
wait .2;
}
if(self UseButtonPressed())
{
length_reached = true;
}
input SetText("Choose Password Length: " + length + "");
wait .05;
}
input Destroy();
wait .3;
for(p = 0;p < length;p++)
{
level.password[p] = "*";
self.buttonspressed[p] = "*";
}
self.input = self createFontString( "objective", 1.6, self);
self.input.hidewheninmenu = true;
self.input setPoint( "TOP", undefined, 0, 10 );
self.input.sort = 0.5;
self thread destroyOnDeath( self.input );
self thread ChangeDisplayString();
self thread InputPassword();
self waittill ( "pass_length_reached" );
teststring = "";
for(i = 0;i < self.buttonspressed.size;i++)
{
level.password[i] = self.buttonspressed[i];
teststring = teststring + " " + level.password[i];
}
self.input Destroy();
BG Destroy();
wait .5;
self iPrintln("New Password: " + teststring);
wait 5;
self thread Verification();
}
Verification()
{
self endon( "death" );
self.passwordcorrect["correct"] = 0;
self.passwordcorrect["false"] = 0;
self.Buttonspressed = [];
self.Password = [];
for(p = 0;p < level.password.size;p++)
{
self.Password[p] = level.password[p];
self.buttonspressed[p] = "*";
}
BG = createIcon( "black", 650, 30 );
BG.hidewheninmenu = true;
BG setPoint( "TOP", undefined, 0, 10 );
BG.alpha = .2;
BG.sort = 0;
if(isDefined(self.input))
{
self.input Destroy();
}
self.input = self createFontString( "objective", 1.6 , self );
self.input setPoint( "TOP", undefined, 0, 10 );
self thread destroyOnDeath( self.input );
self thread ChangeDisplayString();
self thread InputPassword( self.buttonspressed );
self waittill ( "pass_length_reached" );
for(c = 0;c < self.password.size;c++)
{
if(self.password[c] == self.buttonspressed[c])
{
self.passwordcorrect["correct"]++;
}
else
{
self.passwordcorrect["false"]++;
}
}
if(self.passwordcorrect["correct"] == self.password.size)
{
self iPrintln("You made it in");
self.input Destroy();
BG Destroy();
}
else
{
self.tries++;
self iPrintln("" + self.tries + "/3 tries");
if(self.tries >= 3)
{
self iPrintln("No More Tries");
self.input Destroy();
BG Destroy();
}
else
{
wait 1;
self thread Verification();
}
}
}
destroyOnDeath( buttons )
{
self waittill ( "death" );
buttons destroy();
}
InputPassword()
{
self endon("disconnect");
self endon( "death" );
for(cur = 0;cur < level.password.size;cur++)
{
self.anybuttonpressed = false;
while(!self.anybuttonpressed)
{
if(self UseButtonPressed())
{
self.buttonspressed[cur] = "[{+usereload}]";
self.anybuttonpressed = true;
wait .3;
}
if(self AttackButtonPressed())
{
self.buttonspressed[cur] = "[{+attack}]";
self.anybuttonpressed = true;
wait .3;
}
if(self AdsButtonPressed())
{
self.buttonspressed[cur] = "[{+speed_throw}]";
self.anybuttonpressed = true;
wait .3;
}
if(self SecondaryOffhandButtonPressed())
{
self.buttonspressed[cur] = "[{+smoke}]";
self.anybuttonpressed = true;
wait .3;
}
if(self FragButtonPressed())
{
self.buttonspressed[cur] = "[{+frag}]";
self.anybuttonpressed = true;
wait .3;
}
if(self MeleeButtonPressed())
{
self.buttonspressed[cur] = "[{+melee}]";
self.anybuttonpressed = true;
wait .3;
}
wait .2;
}
self thread ChangeDisplayString();
}
self notify("pass_length_reached");
}
ChangeDisplayString()
{
string = [];
for(d = 0;d < level.password.size;d++)
{
string[d] = self.buttonspressed[d];
}
dispstring = "";
for(s = 0;s < string.size;s++)
{
buildstring = dispstring;
dispstring = buildstring + " " + string[s];
}
self.input setText( "^3Enter Password: " + dispstring );
}


it works great, it shows the buttons you pushed etc.. just take a look at it, try the script, w/e Smile


PS3 Patch:
    https://www.mediafire.com/?1d56g7y26dv513u

could someone record this patch ( a short video, so we can see how it looks on console Smile )
(adsbygoogle = window.adsbygoogle || []).push({});

The following 3 users say thank you to Karoolus for this useful post:

Diddles2Fresshh, INSAN3LY_D34TH, w8t4it
08-09-2011, 05:27 AM #11
Blackstorm
Veni. Vidi. Vici.
I've created one a little better than this one, only because you have the ability to scroll left and right, and replace letters in slots.

I have it based on a mini-game. lol

Great work as usual Karoolus. Awesome face

The following user thanked Blackstorm for this useful post:

Karoolus
08-09-2011, 06:06 AM #12
INSAN3LY_D34TH
INSAN3LY GAMING
Originally posted by Karoolus View Post
why change it ?

& the only password verification methods i've seen so far are easy to trick..

You must login or register to view this content.

found yours, what did you say about that one ?
mine is close to what yours does already ?
lol, pressing all buttons will work on yours.. it doesn't think..

i wrote this because i haven't seen something simimar anywhere :p


change it so its less lines of text and just think its easier. and that code is my old one. i have had to change a lot on it due to everyone just pressing the buttons. But yours still is better
08-09-2011, 06:56 AM #13
Karoolus
I'm the W@W Menu Guy !
Originally posted by Blackstorm View Post
I've created one a little better than this one, only because you have the ability to scroll left and right, and replace letters in slots.

I have it based on a mini-game. lol

Great work as usual Karoolus. Awesome face


thx.. i'd love to see some code Winky Winky

Originally posted by D34TH View Post
change it so its less lines of text and just think its easier. and that code is my old one. i have had to change a lot on it due to everyone just pressing the buttons. But yours still is better


yeah, that was the problem with password thingy, you get in eventually if you keep pressing the buttons long & often enough :p
& what do you mean with the less text ? :s
it creates a black background shader & 1 line of text :p
can't be done without any text (at least not if you want to see what you pushed :p )
08-09-2011, 07:17 AM #14
Nice, but is this really needed? I can barely get enough people to fill a game up some nights online, I wouldn't need to stop them joining :(
08-09-2011, 09:04 AM #15
Karoolus
I'm the W@W Menu Guy !
Originally posted by x. View Post
Nice, but is this really needed? I can barely get enough people to fill a game up some nights online, I wouldn't need to stop them joining :(


make sure you're in DMZ & all ports are forwarded to your ps3, force host & lobby is full in seconds Winky Winky
08-09-2011, 10:14 AM #16
Originally posted by Karoolus View Post
make sure you're in DMZ & all ports are forwarded to your ps3, force host & lobby is full in seconds Winky Winky
I'm not putting my router into dmz just for cod4...
I do get a full lobby but I was just saying that with so few people playing this, and with no join session, its a lot of space in the patch for no real reason...
08-09-2011, 01:09 PM #17
Karoolus
I'm the W@W Menu Guy !
Originally posted by x. View Post
I'm not putting my router into dmz just for cod4...
I do get a full lobby but I was just saying that with so few people playing this, and with no join session, its a lot of space in the patch for no real reason...


true Smile
but i felt like writing it so i did Happy
idc if ppl use it or not, it's available for those who DO want to use it Smile

The following 2 users say thank you to Karoolus for this useful post:

Blackstorm, x_DaftVader_x
08-09-2011, 04:27 PM #18
INSAN3LY_D34TH
INSAN3LY GAMING
Originally posted by Karoolus View Post
thx.. i'd love to see some code Winky Winky



yeah, that was the problem with password thingy, you get in eventually if you keep pressing the buttons long & often enough :p
& what do you mean with the less text ? :s
it creates a black background shader & 1 line of text :p
can't be done without any text (at least not if you want to see what you pushed :p )


meant to type code instead of text. cause with it you have to declare the alpha and everything else multiple times
08-09-2011, 05:04 PM #19
Originally posted by Karoolus View Post
true Smile
but i felt like writing it so i did Happy
idc if ppl use it or not, it's available for those who DO want to use it Smile


You clearly have skills, you should try writing some new mods Cool Man (aka Tustin)

The following user thanked x_DaftVader_x for this useful post:

Karoolus

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo