/    Sign up×
Community /Pin to ProfileBookmark

i’m a member of a website and to go on to the next level you have to break encoding or scripting or anything like that. i’m stuck on this one. can anyone tell me how this script works. all i can figure is it add’s and subtracts junk to what your suppose to type.

<SCRIPT>

var string = “3be315jfnbcv7323fx”;
var enigma = “”;
var whatisthis = “var myxor = prompt(‘Password:’,”);for (y=1; y<5; y++) {enigma += (string.indexOf(y)+1);}enigma += 5;if (myxor==enigma){enigma = enigma + ‘.php’;location.href=enigma;}else{location.href=’hahaha.php’;}”;

eval(whatisthis);

</SCRIPT>

thank you, tyler

to post a comment
JavaScript

3 Comments(s)

Copy linkTweet thisAlerts:
@sciguyryanMay 11.2004 — It is basicallyu a window location altering script. It uses an encription based off the string variable and, the password to make a location.

Thats basically it.
Copy linkTweet thisAlerts:
@PittimannMay 11.2004 — Hi!

To me it seems like a miracle, that this junk still exists. I wrote this script some time ago to put the solution right into the prompt:[code=php]<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Untitled</title>
<script language="JavaScript" type="text/javascript">
<!--
var getPass=new Array("0","0","0","0");
var string = "3be315jfnbcv7323fx";
var solution="";
for (var i = 0; i < string.length; i++){
if (string.substring(i,i+1)=="1"&&getPass[0]=="0") getPass[0]=i+1;
if (string.substring(i,i+1)=="2"&&getPass[1]=="0") getPass[1]=i+1;
if (string.substring(i,i+1)=="3"&&getPass[2]=="0") getPass[2]=i+1;
if (string.substring(i,i+1)=="4"&&getPass[3]=="0") getPass[3]=i+1;
}
solution=getPass+"5";
solution=solution.replace(/[,]/g,'');
var enigma = "";
var whatisthis = "var myxor = prompt('Password:',solution);for (y=1; y<5; y++) {enigma += (string.indexOf(y)+1);}enigma += 5;if (myxor==enigma){enigma = enigma + '.php';alert('Yeah!!!');}else{alert('hahaha');}";
eval(whatisthis);
//-->
</script>
</head>
<body>
</body>
</html>[/code]
Cheers - Pit
Copy linkTweet thisAlerts:
@tymlls05authorMay 11.2004 — god put people like you in this world to take care of us little people.


thanks alot guys. i'm on to the next level :-D
×

Success!

Help @tymlls05 spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.2,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,
)...