Writing A Keygen Using Python Itertools

Image for post
Image for post
Photo by Matt Artz on Unsplash
Image for post
Image for post
Image for post
Image for post
Image for post
Image for post
Image for post
Image for post
password_template = [
greater_than(0x47),
lower_than(0x66),
[0x56],
greater_than(0x66),
lower_than(0x33),
greater_than(0x79),
greater_than(0x38),
lower_than(0x4e),
diff_from(0x52),
[0x32],
]
for p in itertools.product(*password_template):
print(p)
Image for post
Image for post
bingo!


InfoSec Write-ups

A collection of write-ups from the best hackers in the…

Syscall59 — Alan Vivona

Written by

Golang, Python, Javascript, Linux & Infosec. https://twitter.com/syscall59

InfoSec Write-ups

A collection of write-ups from the best hackers in the world on topics ranging from bug bounties and CTFs to vulnhub machines, hardware challenges and real life encounters. In a nutshell, we are the largest InfoSec publication on Medium. Maintained by Hackrew

Syscall59 — Alan Vivona

Written by

Golang, Python, Javascript, Linux & Infosec. https://twitter.com/syscall59

InfoSec Write-ups

A collection of write-ups from the best hackers in the world on topics ranging from bug bounties and CTFs to vulnhub machines, hardware challenges and real life encounters. In a nutshell, we are the largest InfoSec publication on Medium. Maintained by Hackrew

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch

Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore

Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store