Auth mit Autoit

  • Mahlzeit .)

    Aaaaalso: bin auf der suche nach nem Auth system, das mit autoit realisierbar ist.
    Einfaches beispiel:

    Spoiler anzeigen
    [autoit]

    #include <INet.au3>

    [/autoit] [autoit][/autoit] [autoit]

    $authServer = "http://asdfasdfsdaf.org" ; Put the server name only i.e: http://www.myauth.com
    $pathToFile = "/auth.txt" ; The directory after the auth servers i.e: /auth/database/authfile.txt
    $username = IniRead(@scriptdir & "/auth.ini","Auth","User","") ;Looks for username in the .ini
    If $username = "" Then ; if theres no value entered, show up a message box
    MsgBox(16,"Error","Error: No username Entered")
    Exit
    EndIf
    $source = _INetGetSource($authServer & $pathToFile) ; Gets the text (source) of a .txt file
    $result = StringInStr($source,$username,1) ; Looking to look if $username and $source and macthing(Weak, will be fixed in next release)
    if $result = "0" Then ; If they are not mathcing...
    MsgBox(16,"Error","Access denied!") ; Message the user of a error (can also caused by a long lag)(Will be Fixed in next release)
    Else
    MsgBox(64,"Auth","User authed succesfully!") ; Auth succesfull!
    EndIf

    [/autoit] [autoit][/autoit] [autoit][/autoit]


    Jedoch viel zu buggy / unsicher.
    Gibt es da bereits Systeme oder habt ihr tipps?

    Danke & Gruss

  • Nimm statt Username, Mac- oder Ip-Adresse.. ;)
    Ansonsten ist es von der Idee her kein bisschen buggy, obwohl es eigendlich reicht nur eine datenbank online zu stellen statt der zusätzlichen ini-File

  • Du könntest zum Beispiel auch einen Code generieren lassen.EInfach wirre Zahlen und Buchstaben.
    Dann kommt einfach sowas:
    User=xxxxxx
    Und 500 Zeilen weiter.
    Passwort=Userx=xxxxx (Userx = User1 und User2 etc.)


    Und dann am besten noch in ne HTML Datei.
    Dann lädst du die Source und mit StringRegExp suchst du dann die Namen.
    Das ist schon sehr sicher. :D