TC no üretme - doğrulama - son 2 hanyei bulma

Meksikan

Kayıtlı Üye
Öncelikle selamın aleyküm,
Aşağıda bıraktığım koddan yararlanabilirsiniz :)


Kodlar:



import os import time from random import randint while True: os.system("cls") def tcno_checksum(tcno): tc = '%d' % tcno tc10 = int(tc[0]) + int(tc[2]) + int(tc[4]) + int(tc[6]) + int(tc[8]) tc10 *= 7 tc10 -= int(tc[1]) + int(tc[3]) + int(tc[5]) + int(tc[7]) tc10 %= 10 tc11 = int(tc[0]) + int(tc[1]) + int(tc[2]) + int(tc[3]) + int(tc[4]) tc11 += int(tc[5]) + int(tc[6]) + int(tc[7]) + int(tc[8]) + int(tc10) tc11 %= 10 return '%s%d%d' % (tc, tc10, tc11) def tckimlikno_dogrulama(s): n = 11 d = {} for i in range(1, n + 1): d[i] = int(s[i - 1]) teklertoplam = 0 ciftlertoplam = 0 for i in range(1, n - 1): if i % 2 != 0: teklertoplam += d[i] else: ciftlertoplam += d[i] toplam1 = 3 * teklertoplam + ciftlertoplam q1 = (10 - toplam1 % 10) % 10 toplam2 = 3 * (ciftlertoplam + q1) + teklertoplam q2 = (10 - toplam2 % 10) % 10 if q1 == d[10] and q2 == d[11]: return True else: return False def tckimlikno_dsorgu(s): n = 11 d = {} for i in range(1, n + 1): d[i] = int(s[i - 1]) teklertoplam = 0 ciftlertoplam = 0 for i in range(1, n - 1): if i % 2 != 0: teklertoplam += d[i] else: ciftlertoplam += d[i] toplam1 = 3 * teklertoplam + ciftlertoplam q1 = (10 - toplam1 % 10) % 10 toplam2 = 3 * (ciftlertoplam + q1) + teklertoplam q2 = (10 - toplam2 % 10) % 10 if q1 == d[10] and q2 == d[11]: return True else: return False anamenu = input("Lütfen yapmak istediğiniz işlemi yazın (doğrulama-son 2 haneyi bulma-üret) : ") if anamenu=="doğrulama": s = input("Lütfen TC numaranızı girin : ") sonuc = tckimlikno_dogrulama(s) if sonuc == True: os.system("cls") print(s + ' : TC KİMLİK NO GEÇERLİDİR !!!! ACİL BANA AT Meksikan#8747') time.sleep(3) continue else: os.system("cls") print(s + ' : TC KİMLİK NO SAHTE BOŞVER BUNU') time.sleep(3) continue elif anamenu=="üret": tcuret = randint(100000000, 999999999) os.system("cls") print("TC numaran : "+tcno_checksum(tcuret)) gec = input("Devam Etmek İçin Bir Tuşa Bas") continue else: os.system("cls") tc9hanesi = int(input("Tcnizin ilk 9 hanesini girin : ")) os.system("cls") print(tcno_checksum(tc9hanesi)) time.sleep(5)
 
türk porno porno porno izle eryaman escort diyarbakır escort
Üst