Quizz time XIX The Hacker | Sololearn: Learn to code for FREE!
Новый курс! Каждый программист должен знать генеративный ИИ!
+ 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
65 ответов
+ 16
I got it first but @Cyrus posted first. So idk, mark both 😋 Password: 12345679
26th Apr 2017, 12:03 PM
Jafca
+ 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
+ 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
+ 16
Oops!! Hiding it
26th Apr 2017, 11:42 AM
Sachin Artani
+ 16
@jafca, do you know the answer?
26th Apr 2017, 11:43 AM
Sachin Artani
+ 16
@jafca, is my equation correct??
26th Apr 2017, 11:45 AM
Sachin Artani
+ 16
Great, let me learn some maths then 😅😅
26th Apr 2017, 11:46 AM
Sachin Artani
+ 16
Cyrus, How did you do that? 😅😅
26th Apr 2017, 11:56 AM
Sachin Artani
+ 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
+ 16
I thought the same but stuck somewhere 😅 anyway great @Cyrus
26th Apr 2017, 12:04 PM
Sachin Artani
+ 15
******* Can anybody findout the value of y (must be 8 digit number) 😅 Edited: ..
26th Apr 2017, 11:41 AM
Sachin Artani
+ 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
+ 14
@Calvin or Ultron....
27th Apr 2017, 4:53 AM
Agus Mei
+ 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
+ 13
wow @Cyrus 😂😂😂
26th Apr 2017, 11:55 AM
Jafca
27th Apr 2017, 2:30 AM
Hatsy Rei
+ 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
+ 12