ucdavis-ecs189m

[RADIOACTIVE] python exploits for uc davis class ecs189m
git clone git://git.figbert.com/ucdavis-ecs189m.git
Log | Files | Refs

commit d635d4634b69757872cf3aada20e658b38c5c20d
parent d566d297dfebd290f96b1a3ede24d8b9c629fea7
Author: therealFIGBERT <figbertwelner@gmail.com>
Date:   Wed,  9 Oct 2019 16:13:31 -0700

Mobile fix - UNTESTED
Diffstat:
Mdad_flag.py | 5++---
1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/dad_flag.py b/dad_flag.py @@ -10,7 +10,7 @@ def str_to_dec(s): def dec_to_str(num): st = "" for i in range(19,0,-1): - digit = int(num/(26**i)) + digit = int(num/(26**i)) if int(num/(26**i)) <= 25 else 25 char = chr(digit+97) st += char num -= digit*(26**i) @@ -25,4 +25,4 @@ HI10 = str_to_dec(HI26) MID10 = (LO10 + HI10)/2 print(dec_to_str(LO10)) print(dec_to_str(HI10)) -print(dec_to_str(MID10)) -\ No newline at end of file +print(dec_to_str(MID10))