Autor Beitrag
Bergmann89
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 1742
Erhaltene Danke: 72

Win7 x64, Ubuntu 11.10
Delphi 7 Personal, Lazarus/FPC 2.2.4, C, C++, C# (Visual Studio 2010), PHP, Java (Netbeans, Eclipse)
BeitragVerfasst: Do 28.01.10 19:53 
Hey,

also ich bin der Meinung dass das am bessten durch ne Rekursion zu lösen geht:
ausblenden Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
PROZEDURE GetPasswords(Start: String; Depth, MaxDepth: Integer)
  zähle alle buchstaben durch (0-25)
    füge den start-String + den aktuellen Buchstaben zur Liste hinzu
    wenn die Tiefe (Depth) nicht die maximale Tiefe (MaxDepth) ist, dann... 
      Rufe dich selbst mit folgenden Parametern auf: 
        Aktuelles Passwort(Start+Buchstabe), 
        Tiefe+1,
        Maximale Tiefe
END-PROZEDURE GetPasswords
So kommt man mit GetPasswords('', 0, 2) auf alle Buchstaben von 'A' bis 'ZZZ'

€: Für mich sieht das auch ncih wirklich nach nem PW-Generator aus. Das sieht er wie n BruteForce aus :roll:

MfG Bergmann

_________________
Ich weiß nicht viel, lern aber dafür umso schneller^^
Xentar
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 2077
Erhaltene Danke: 2

Win XP
Delphi 5 Ent., Delphi 2007 Prof
BeitragVerfasst: Do 28.01.10 19:59 
Nur mal zum Verständnis:
Was genau möchtest du nun eigentlich?
a) Ein Passwort richtig zufällig generieren lassen
b) Von A bis ZZZZ alle Kombinationen Brute forcen

?

Wenn es a werden soll, ist der Ansatz vollkommen murks.

_________________
PROGRAMMER: A device for converting coffee into software.
Bergmann89
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 1742
Erhaltene Danke: 72

Win7 x64, Ubuntu 11.10
Delphi 7 Personal, Lazarus/FPC 2.2.4, C, C++, C# (Visual Studio 2010), PHP, Java (Netbeans, Eclipse)
BeitragVerfasst: Do 28.01.10 20:02 
user profile iconXeron hat folgendes geschrieben Zum zitierten Posting springen:
Wie kann ich nun erreichen, wenn das Programm A..Z erstellt hat, das es mit AA weiter macht?
Also A..Z, weiter mit AA..ZZ, AAA..ZZZ usw.?
Klingt für mich nach BruteForce...

_________________
Ich weiß nicht viel, lern aber dafür umso schneller^^
Xentar
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 2077
Erhaltene Danke: 2

Win XP
Delphi 5 Ent., Delphi 2007 Prof
BeitragVerfasst: Do 28.01.10 20:03 
user profile iconBergmann89 hat folgendes geschrieben Zum zitierten Posting springen:
user profile iconXeron hat folgendes geschrieben Zum zitierten Posting springen:
Wie kann ich nun erreichen, wenn das Programm A..Z erstellt hat, das es mit AA weiter macht?
Also A..Z, weiter mit AA..ZZ, AAA..ZZZ usw.?

Klingt für mich nach BruteForce...
Ja, für mich auch.
Aber im ersten Post ist auch die Rede von einem Passwortgenerator - aber das ist für mich etwas anderes.

_________________
PROGRAMMER: A device for converting coffee into software.
ALF
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 1085
Erhaltene Danke: 53

WinXP, Win7, Win10
Delphi 7 Enterprise, XE
BeitragVerfasst: Do 28.01.10 20:05 
Ich wollts nicht sagen B...F..... :wink:

Gruss Alf

_________________
Wenn jeder alles kann oder wüsste und keiner hätt' ne Frage mehr, omg, währe dieses Forum leer!
Bergmann89
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 1742
Erhaltene Danke: 72

Win7 x64, Ubuntu 11.10
Delphi 7 Personal, Lazarus/FPC 2.2.4, C, C++, C# (Visual Studio 2010), PHP, Java (Netbeans, Eclipse)
BeitragVerfasst: Do 28.01.10 20:06 
Ja eigentlich schon. Vlt hat er sich verschrieben un es soll ein PasswortKNACKER werden :lol:

_________________
Ich weiß nicht viel, lern aber dafür umso schneller^^
Xeron Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 41

WinXP Home, Vista Home Premium 64Bit, Win7 Home Premium
Delphi 3 Prof, Delphi 7 Personal, Delphi 2010 Prof., AutoIt
BeitragVerfasst: Do 28.01.10 20:32 
ne ne, soll bloß halt die Funktion von nem Brute Force sein, aber dafür benutze ich es nicht.
ALF
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 1085
Erhaltene Danke: 53

WinXP, Win7, Win10
Delphi 7 Enterprise, XE
BeitragVerfasst: Do 28.01.10 20:36 
lol für was dann,
jedenfalss nicht für ein PWGenerator oder??

_________________
Wenn jeder alles kann oder wüsste und keiner hätt' ne Frage mehr, omg, währe dieses Forum leer!
Xeron Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 41

WinXP Home, Vista Home Premium 64Bit, Win7 Home Premium
Delphi 3 Prof, Delphi 7 Personal, Delphi 2010 Prof., AutoIt
BeitragVerfasst: Do 28.01.10 20:39 
doch, eigentlich schon :O
ALF
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 1085
Erhaltene Danke: 53

WinXP, Win7, Win10
Delphi 7 Enterprise, XE
BeitragVerfasst: Do 28.01.10 20:45 
Dann ist Dein Ansatz dafür falsch!
Du erzeugst damit kein PW, jedenfals nicht so.

Gruss Alf

_________________
Wenn jeder alles kann oder wüsste und keiner hätt' ne Frage mehr, omg, währe dieses Forum leer!
Bergmann89
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 1742
Erhaltene Danke: 72

Win7 x64, Ubuntu 11.10
Delphi 7 Personal, Lazarus/FPC 2.2.4, C, C++, C# (Visual Studio 2010), PHP, Java (Netbeans, Eclipse)
BeitragVerfasst: Do 28.01.10 20:45 
na dann viel spaß... mal angenommen ich will 10 Stellen in meinem PW haben, das sind 27^10 verschiedene Möglichkeiten. Der rechnet bei mir schon an 4 Stellen ca 10 sec. Un das ganze geht exponentiell in die Höhe. Für 10 Stellen dauert das ganze dann viel zu lange!

_________________
Ich weiß nicht viel, lern aber dafür umso schneller^^
ALF
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 1085
Erhaltene Danke: 53

WinXP, Win7, Win10
Delphi 7 Enterprise, XE
BeitragVerfasst: Do 28.01.10 20:55 
user profile iconBergmann89
Zitat:

na dann viel spaß...

nicht nur das es lange dauert,
er will ja auch nur Grossbuchstaben verwenden. Wo ist da das sichere Passwort?

Irgendwie verstehe ich ihn nicht! :?

Gruss ALf

_________________
Wenn jeder alles kann oder wüsste und keiner hätt' ne Frage mehr, omg, währe dieses Forum leer!
Bergmann89
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 1742
Erhaltene Danke: 72

Win7 x64, Ubuntu 11.10
Delphi 7 Personal, Lazarus/FPC 2.2.4, C, C++, C# (Visual Studio 2010), PHP, Java (Netbeans, Eclipse)
BeitragVerfasst: Do 28.01.10 21:06 
vlt ist macht das Programm kein unterschied zwischen groß un klein. der WPA-Key vom WLAN macht das ja auch nich, oder irre ich mich da jetz?

_________________
Ich weiß nicht viel, lern aber dafür umso schneller^^
ALF
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 1085
Erhaltene Danke: 53

WinXP, Win7, Win10
Delphi 7 Enterprise, XE
BeitragVerfasst: Do 28.01.10 21:33 
gelöscht !!

_________________
Wenn jeder alles kann oder wüsste und keiner hätt' ne Frage mehr, omg, währe dieses Forum leer!


Zuletzt bearbeitet von ALF am Do 28.01.10 21:41, insgesamt 1-mal bearbeitet
jaenicke
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 19346
Erhaltene Danke: 1754

W11 x64 (Chrome, Edge)
Delphi 12 Pro, C# (VS 2022), JS/HTML, Java (NB), PHP, Lazarus
BeitragVerfasst: Do 28.01.10 21:35 
user profile iconALF hat folgendes geschrieben Zum zitierten Posting springen:
Was Du vermutest ist eigentlich egal, wissen tust Du es nicht!
Jedenfalls ist es nicht das, was Dein Topic sagt und nicht das, was in Deiner Anfrage steht!
Ich glaube du verwechselst gerade user profile iconBergmann89 mit user profile iconXeron, nur bei letzterem steht deshalb ja auch (Threadstarter). ;-)
ALF
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 1085
Erhaltene Danke: 53

WinXP, Win7, Win10
Delphi 7 Enterprise, XE
BeitragVerfasst: Do 28.01.10 21:39 
rofl, user profile iconBergmann89Entschuldigung
hab das verwechselt :oops:

_________________
Wenn jeder alles kann oder wüsste und keiner hätt' ne Frage mehr, omg, währe dieses Forum leer!