Skip to content

Latest commit

 

History

History
23 lines (15 loc) · 969 Bytes

File metadata and controls

23 lines (15 loc) · 969 Bytes

Brute force attack script to find secret code using NodeJS Paralelism

script-find-secret-code.mp4

INTRODUCTION

  • It is quite common for systems to use 6-digit secret codes to authenticate users.
  • Delivery usually via email or SMS
  • For example: 435 657

Algorithm

  • In this algorithm, using parallelism, the algorithm uses the 8 available CPUs in parallel here on my machine.
  • I made a logic so that each worker processes an amount of equal numbers.
  • Example: if I have 32 possible numbers to check, each worker will check 4 different numbers, in parallel, at the same time.
  • When one of the workers finds the secret code, it sends a message to the master cluster of the 8 workers to finish the work of all of them.

CONCLUSION

  • I made this algorithm for didactic purposes, and for pure curiosity/technical interest.