AGB  ·  Datenschutz  ·  Impressum  







Anmelden
Nützliche Links
Registrieren
Zurück Delphi-PRAXiS Suchfunktion Ergebnis der Suchanfrage

Ergebnis der Suchanfrage


Datum des Suchindex: Heute, 19:02

Parameter dieser Suchanfrage:

Suche in Thema: Password hash in RDP files
Suche alle Beiträge, die von "Remko" geschrieben wurden
• Suchmethode: "Suche nach allen Begriffen"
• Nach Datum (firstpost) sortiert
• Zeige Treffer als Beiträge
Zeige 9 von insges. 9 Treffern
Suche benötigte 0.003s

Es liegen Ergebnisse in folgenden Bereichen vor:

  • Forum: Win32/Win64 API (native code)

    Re: Password hash in RDP files

      Delphi
      by Remko, 22. Okt 2007
    For more information on the subject of encrypting and decrypting rdp passwords you can look at my site. I have placed the article here: http://remkoweijnen.nl/blog/2007/10/18/how-rdp-passwords-are-encrypted/
  • Forum: Win32/Win64 API (native code)

    Re: Password hash in RDP files

      Delphi
      by Remko, 29. Mär 2007
    Yes I should have noticed you used CamelCase. I will test with my Delphi version (BDS 2006) and confirm, I'm assuming you're right and the documentation is wrong. As for the SHR thing I copy/pasted this from http://www.delphibasics.co.uk/RTL.asp?Name=Shr.
    Personally I do think using shr is clever and probably faster than div.

    http://www.merlyn.demon.co.uk/del-bits.htm:


    I conclude that...
  • Forum: Win32/Win64 API (native code)

    Re: Password hash in RDP files

      Delphi
      by Remko, 29. Mär 2007
    Thanks Maribu. I did see the functions in the Help but decided not to use them because of this note in the help:
    Note:
    The hexadecimal number must use lower-case characters; HexToBind does not recognize upper-case characters.

    Using shr brings back an old discussion:
    Warning Only use Shr when a bit operation is required - do not use instead of a multiplication or division. First because...
  • Forum: Win32/Win64 API (native code)

    Re: Password hash in RDP files

      Delphi
      by Remko, 27. Mär 2007
    *push*
    Any thoughts on improving this part:
    {***********************************************************}
    { PasswordHashToBlobData: Converts a RDP password Hash to }
    { a DATA_BLOB structure }
    { sPasswordHash : RDP Password Hash (HEX String }
    {***********************************************************}
    function...
  • Forum: Win32/Win64 API (native code)

    Re: Password hash in RDP files

      Delphi
      by Remko, 21. Mär 2007
    So I've cleaned up the code and put it in a seperate unit. It contains Encrypting and Decrypting RDP password hashes.
    I don't really like the function PasswordHashToBlobData though. I could use some tips so make this part better.

    Edit: Attached demo program
    {******************************************************************}
    { Author: Remko Weijnen (r dot weijnen at gmail dot com) ...
  • Forum: Win32/Win64 API (native code)

    Re: Password hash in RDP files

      Delphi
      by Remko, 20. Mär 2007
    Decrypting the string from MSTSC gives me back the password and description 'psw'.
  • Forum: Win32/Win64 API (native code)

    Re: Password hash in RDP files

      Delphi
      by Remko, 20. Mär 2007
    I watched what MSTSC does with a debugger, the description is always psw.

    Here's the cleaned up function:

    uses JwaWinCrypt;

    function CryptRDPPassword(sPassword: string): string;
    var DataIn: DATA_BLOB;
    DataOut: DATA_BLOB;
    pwDescription: PWideChar;
  • Forum: Win32/Win64 API (native code)

    Re: Password hash in RDP files

      Delphi
      by Remko, 20. Mär 2007
    I agree the code is Spaghetti, I just made it quickly to test it. I will tidy it up and make it more readable.
    I checked and rdp file with HEX viewer and indeed it starts with FF FE (although mstsc doesn't bother absence of it).

    I already made the plaintext password a WideString but I keep ending with a hash about 350 bytes long while MSTSC always produces 1329 bytes. Also each time I save...
  • Forum: Win32/Win64 API (native code)

    Password hash in RDP files

      Delphi
      by Remko, 20. Mär 2007
    Note: this topic is followup off a previous topic: Base64 encoding
    With MSTSC.EXE you can save connection settings in an RDP file. This file will then also contain an hashed or encrypted password which is valid only for the user who created the RDP file. Analysis of MSTSC learns that the hash is created using CryptProtectData API. The encrypted password is a fixed size (always 1329 bytes) and...


URL zu dieser Suchanfrage:

https://www.delphipraxis.net/dp_search.php?do=usersearch&search_username=Remko&search_exact_username=1&search_sortby=dateline&search_resulttype=post&search_matchmode=0&searchthreadid=88732
Impressum · AGB · Datenschutz · Nach oben
Alle Zeitangaben in WEZ +1. Es ist jetzt 19:18 Uhr.
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz