Pentru inceput sa va spun de ce aveti nevoie:
- EterNexus (sau orice alt extractor)
- Resurse
Bun! Intram in root > intrologin.py si la inceput sub toate import-urile alea scriem
Cod: Selectaţi tot
import os
import sys
import string
from _winreg import *Cod: Selectaţi tot
= GetObject("ConnectName")Cod: Selectaţi tot
self.ButonSalvare = GetObject("ButonSalvareDate")Cod: Selectaţi tot
self.selectConnectButton.SetEventCod: Selectaţi tot
self.ButonSalvare.SetEvent(ui.__mem_func__(self.__ApasareButonSalvare))Cod: Selectaţi tot
self.connectBoard.Hide()Cod: Selectaţi tot
self.__ObtinereDateSalvate()Mergem jos de tot si adaugam:
Cod: Selectaţi tot
def __ApasareButonSalvare(self):
id = self.idEditLine.GetText()
parola = self.pwdEditLine.GetText()
self.__SalvareDateCont(id, parola)
def __SalvareDateCont(self, id, parola):
try:
id_criptat = self.__Criptare(id).replace(' ', '-')
parola_criptata = self.__Criptare(parola).replace(' ', '-')
Registru = ConnectRegistry(None, HKEY_CURRENT_USER)
Cheie = CreateKey(Registru, "Software\\NumeServer\\")
SetValueEx(Cheie, "utilizator", 0, REG_SZ, id_criptat)
SetValueEx(Cheie, "parola", 0, REG_SZ, parola_criptata)
CloseKey(Cheie)
CloseKey(Registru)
self.PopupNotifyMessage("Datele de logare au fost salvate.")
except:
self.PopupNotifyMessage("A aparut o eroare la salvarea datelor.")
return
def __ObtinereDateSalvate(self):
try:
id_criptat = os.popen('reg QUERY "HKEY_CURRENT_USER\software\NumeServer" /v utilizator').readlines()
id_criptat_s = id_criptat[2].split()
valoare_id_criptat = id_criptat_s[2].replace('-', ' ').strip()
parola_criptata = os.popen('reg QUERY "HKEY_CURRENT_USER\software\NumeServer" /v parola').readlines()
parola_criptata_s = parola_criptata[2].split()
valoare_parola_criptata = parola_criptata_s[2].replace('-', ' ').strip()
self.idEditLine.SetText(self.__Decriptare(valoare_id_criptat))
self.pwdEditLine.SetText(self.__Decriptare(valoare_parola_criptata))
except:
print "LoginWindow.__LoadAccountInfo - OpenError"
return -1, -1
def __Criptare(self, data_necriptata):
Registru = ConnectRegistry(None, HKEY_CURRENT_USER)
try:
Cheie = OpenKey(Registru, "software\\NumeServer\\")
except WindowsError:
try:
numar1 = app.GetRandom(1,127)
numar2 = app.GetRandom(1,32768)
Cheie = CreateKey(Registru, "software\\NumeServer\\")
SetValueEx(Cheie, "numar1", 0, REG_DWORD, numar1)
SetValueEx(Cheie, "numar2", 0, REG_DWORD, numar2)
CloseKey(Cheie)
CloseKey(Registru)
except:
CloseKey(Registru)
return
numar1 = os.popen('reg QUERY "HKEY_CURRENT_USER\software\NumeServer" /v numar1').readlines()
numar1_s = numar1[2].split()
valoare_numar1 = int(numar1_s[2], 16)
numar2 = os.popen('reg QUERY "HKEY_CURRENT_USER\software\NumeServer" /v numar2').readlines()
numar2_s = numar2[2].split()
valoare_numar2 = int(numar2_s[2], 16)
cuvant = data_necriptata
data_criptata = ''
for l in cuvant:
data_criptata = data_criptata+str(int(ord(l) + valoare_numar1) * valoare_numar2)+' '
return data_criptata
def __Decriptare(self, data_criptata):
Registru = ConnectRegistry(None, HKEY_CURRENT_USER)
try:
Cheie = OpenKey(Registru, "software\\NumeServer\\")
except WindowsError:
CloseKey(Registru)
return
CloseKey(Cheie)
CloseKey(Registru)
numar1 = os.popen('reg QUERY "HKEY_CURRENT_USER\software\NumeServer" /v numar1').readlines()
numar1_s = numar1[2].split()
valoare_numar1 = int(numar1_s[2], 16)
numar2 = os.popen('reg QUERY "HKEY_CURRENT_USER\software\NumeServer" /v numar2').readlines()
numar2_s = numar2[2].split()
valoare_numar2 = int(numar2_s[2], 16)
cuvant = data_criptata
data_necriptata = ''
cuvant1 = cuvant.split()
for l in cuvant1:
data_necriptata = data_necriptata+chr((int(l) / valoare_numar2) - valoare_numar1)
return data_necriptata
#####################################Link:

Sper sa va fie de folos , si daca v-a mers n-ar strica un thx
În curând şi video





