Byte-ul Posted July 11, 2015 Report Posted July 11, 2015 (edited) Gigel crede ca a gasit un cod mega secret ascuns intr-un mic fisier text.Continutul fisierului este urmatorul:1147 7780 629 1035 82 1003 791 277 548 562Solutia pe PM. Postez hinturi pe parcurs.Hint 1:Gigel si-a dat seama ca fisierul era corupt atunci cand l-a copiat si lipsesc cateva caractere. A folosit un soft slabut de recuperare si a ajuns la urmatorul text:N=1147 7780 629 1035 82 1003 791 277 548 562Hint 2:Gigel a apelat la o firma specializata in recuperare date. Recuperarea nu a avut prea mult succes, insa s-a reusit gasirea a inca 2 caractere.N=1147 e=7780 629 1035 82 1003 791 277 548 562Au rezolvat: @theeternalwanderer Edited July 22, 2015 by Byte-ul Quote
shadowSQLi Posted July 11, 2015 Report Posted July 11, 2015 Ce tip era fisierul? executabil, imagine? Quote
Byte-ul Posted July 11, 2015 Author Report Posted July 11, 2015 Ce tip era fisierul? executabil, imagine?Fisierul era .txt Quote
Usr6 Posted October 4, 2015 Report Posted October 4, 2015 #!/usr/bin/env pythonimport random N = 1147e = 7code = [780, 629, 1035, 82, 1003, 791, 277, 548, 562]prime = [2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59, 61, 67, 71, 73, 79, 83, 89, 97, 101, 103, 107, 109, 113, 127, 131, 137, 139, 149, 151, 157, 163, 167, 173, 179, 181, 191, 193, 197, 199, 211, 223, 227, 229, 233, 239, 241, 251, 257, 263, 269, 271, 277, 281, 283, 293, 307, 311, 313, 317, 331, 337, 347, 349, 353, 359, 367, 373, 379, 383, 389, 397, 401, 409, 419, 421, 431, 433, 439, 443, 449, 457, 461, 463, 467, 479, 487, 491, 499, 503, 509, 521, 523, 541, 547, 557, 563, 569, 571, 577, 587, 593, 599, 601 ]while True : p = random.choice(prime) q = random.choice(prime) if p * q == 1147: print p, q breakp = 31q = 37m = (p-1)*(q-1)print mm = 1080for d in range(1, 10000): if (d*e) % m == 1: print d breakd = 463 for i in code: dec = i**d %N print chr(dec) Quote