+ 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

26th Apr 2017, 10:54 AM
Agus Mei
Agus Mei - avatar
66 Antworten
+ 16
I got it first but @Cyrus posted first. So idk, mark both 😋 Password: 12345679
26th Apr 2017, 12:03 PM
Jafca
Jafca - avatar
+ 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.
27th Apr 2017, 4:10 AM
Agus Mei
Agus Mei - avatar
+ 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!") } }
27th Apr 2017, 2:56 PM
Agus Mei
Agus Mei - avatar
+ 16
Oops!! Hiding it
26th Apr 2017, 11:42 AM
Sachin Artani
Sachin Artani - avatar
+ 16
@jafca, do you know the answer?
26th Apr 2017, 11:43 AM
Sachin Artani
Sachin Artani - avatar
+ 16
@jafca, is my equation correct??
26th Apr 2017, 11:45 AM
Sachin Artani
Sachin Artani - avatar
+ 16
Great, let me learn some maths then 😅😅
26th Apr 2017, 11:46 AM
Sachin Artani
Sachin Artani - avatar
+ 16
Cyrus, How did you do that? 😅😅
26th Apr 2017, 11:56 AM
Sachin Artani
Sachin Artani - avatar
+ 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.
26th Apr 2017, 12:01 PM
Cyrus Ornob Corraya
Cyrus Ornob Corraya - avatar
+ 16
I thought the same but stuck somewhere 😅 anyway great @Cyrus
26th Apr 2017, 12:04 PM
Sachin Artani
Sachin Artani - avatar
+ 15
******* Can anybody findout the value of y (must be 8 digit number) 😅 Edited: ..
26th Apr 2017, 11:41 AM
Sachin Artani
Sachin Artani - avatar
+ 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.
26th Apr 2017, 1:23 PM
Agus Mei
Agus Mei - avatar
+ 14
@Calvin or Ultron....
27th Apr 2017, 4:53 AM
Agus Mei
Agus Mei - avatar
+ 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 👍
26th Apr 2017, 11:49 AM
Jafca
Jafca - avatar
+ 13
wow @Cyrus 😂😂😂
26th Apr 2017, 11:55 AM
Jafca
Jafca - avatar
27th Apr 2017, 2:30 AM
Hatsy Rei
Hatsy Rei - avatar
+ 13
@Cyrus You are younger than me, so with this fast development, i am sure you will outsmart me in the future. keep learning.😃
27th Apr 2017, 10:37 AM
Agus Mei
Agus Mei - avatar
+ 12
@Cyrus Your equation is wrong...
26th Apr 2017, 11:43 AM
Jafca
Jafca - avatar
+ 12
@Sachin Misread you equation. Keep going 👍 And yes, I do... It's almost a nice number
26th Apr 2017, 11:45 AM
Jafca
Jafca - avatar
+ 12
@Sachin Yes, if I remember correctly 😄
26th Apr 2017, 11:46 AM
Jafca
Jafca - avatar