Skip to content

Latest commit

 

History

History
42 lines (29 loc) · 1.01 KB

README.md

File metadata and controls

42 lines (29 loc) · 1.01 KB

Guess Solver

A "Guess the Number" solver implemented in Python3 with the pwntools framework.

Installation

I've only tested this script on an Ubuntu 20.04 but theoretically, it should work on any platform that has a Python3 interpreter and supports pwntools.

Learn how to setup pwntools here:

Install with git

git clone https://github.com/JasonTurley/guess_solver
cd guess_solver/
python3 solver.py

Install with PowerShell

Invoke-WebRequest -Uri `
	https://raw.githubusercontent.com/JasonTurley/guess_solver/master/guessing_game.py `
	-OutFile .\guessing_game.py

Invoke-WebRequest -Uri ` 
	https://raw.githubusercontent.com/JasonTurley/guess_solver/master/solver.py `
	-OutFile .\solver.py

python3 solver.py

Demo

The solver uses a binary search algorithm to guess the correct number.

demo gif

demo pic