Java code for password hacking | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Java code for password hacking

Hey. I just started checking out programming languages and I have a question. Is it possible to create a code that loops through infinite amounts of possible (+ given some possible words like in dictionary attacks) passwords to find the true one?

15th Mar 2018, 2:02 AM
Narek Astvacatryan
Narek Astvacatryan - avatar
4 Answers
+ 10
probably hacking wouldn't exist if answer is no 😁
15th Mar 2018, 2:48 AM
Vukan
Vukan - avatar
+ 10
This platform does not support non ethical hacking. With that said. I believe Java is not typicaly used for hacking tools.
15th Mar 2018, 2:49 AM
Manual
Manual - avatar
+ 3
The only time this is of use is an offline attack, eg cracking an encrypted file. For online, it's futile. Even my file server waits a few seconds between login attempts. I don't use existing words, I use nonsense, eg "Aloma Sectret" so the entire internet as a dictionary is still useless and a bruteforce would take...you do the math. Languages: Java is not well suited for offline attacks. You want C/C++ so you can maximise hardware available. For online attacks any easy language will do, but as Martin and I have pointed out, there's usually security in place. Actually, the adoption of 2FA may make it pointless to gain access to an account at all. This discussion is purely academic of course.
16th Mar 2018, 12:28 AM
non
+ 1
how to copy code?
21st Jun 2020, 10:44 AM
Flowers Blossom
Flowers Blossom - avatar