+ 20
Quizz time XIX The Hacker
i am sure, You have seen the movies where BLACK HAT penetrate the security firewall on server.In order to slowdown their attemp to steal data, WHITE HAT encrypt their data. Lets make it simple Quizz. Lets say you are hacker, and i am White hat. I have make a server web, all you have to do is to get my password. Hint: The answer is on Javascript code. (It is 8 digit number only) Question : What is my password ? Please post your answer in this thread. https://code.sololearn.com/WdYRBOZ6G8Wn/?ref=app
66 ответов
+ 16
I got it first but @Cyrus posted first. So idk, mark both 😋
Password: 12345679
+ 21
For everyone who want to know how to solve my Quizz using the brute force code,
See @Hatsy Rei Code.
its cool how code solve code.
+ 18
@kshitiz
i will rename the variable so it is human friendly
var x,
xx,
y,
z,
xxx = parseInt(document.getElementById('ANID').value, 10);
/* user input because variable xxx take input from user
(datatype is string even if you type in a number)
then convert it to integer.
*/
x = (xxx == xxx);
// variable x is true (remember boolean)
x = (++x*x*x+x);
/* since x is true than its value is 1
so (++1*2*2+2) is 10
++1 is 2 (preincrement)
*/
xx= (xxx%x)*(xxx%x);
y = (x/x)+(x/x);
z = (x/y);
y = (y*y*y);
z = (z*z*z);
y = (y*y*y);
z = (z*z*z);
x = y*z - xx/xx;
if ((xx*xxx) == x){
alert("Yes, You are right !!!")
} else {
alert("Miouwww,Try again!")
}
}
+ 16
Oops!! Hiding it
+ 16
@jafca, do you know the answer?
+ 16
@jafca, is my equation correct??
+ 16
Great, let me learn some maths then 😅😅
+ 16
Cyrus, How did you do that? 😅😅
+ 16
Answer will be 8 digit number and the last digit is (Input % 10). And the equation was :
input * ((input % 10) ^ 2) = 999,999,999
so, input = 999,999,999 / (last digit of the input ^ 2)
On my calculator I entered 999,999,999 / (9 * 9) and it showed 12345679. Was right in first guess.
+ 16
I thought the same but stuck somewhere 😅
anyway great
@Cyrus
+ 15
*******
Can anybody findout the value of y (must be 8 digit number) 😅
Edited: ..
+ 14
@Adi
your knowledge is larger than me in IT.
i just start programming february this year.
thanks to Sololearn i can write code in different languages.
at first i only know basic html and php.
+ 14
@Calvin
or Ultron....
+ 13
@Cyrus You may want to hide your equation. It's correct now. @Sachin hid his 😀
p.s. the calculation is surprisingly easy. Don't overthink it 👍
+ 13
wow @Cyrus 😂😂😂
+ 13
@Cyrus
You are younger than me, so with this fast development, i am sure you will outsmart me in the future.
keep learning.😃
+ 12
@Cyrus Your equation is wrong...
+ 12
@Sachin Misread you equation. Keep going 👍
And yes, I do... It's almost a nice number
+ 12
@Sachin Yes, if I remember correctly 😄