skip to content
Decrypt LOL

Get Cyber-Smart in Just 5 Minutes a Week

Decrypt delivers quick and insightful updates on cybersecurity. No spam, no data sharing—just the info you need to stay secure.

Read the latest edition

Programmatic Methods for Changing Windows Passwords

/ 1 min read

🔑 Exploring the Intricacies of Programmatically Changing Windows Passwords. A recent article delves into the complexities of changing Windows passwords through programming, driven by curiosity rather than the convenience of existing tools. The author details the use of the NetUserSetInfo API call and the underlying MS-SAMR protocol, explaining how to manipulate user account passwords on both local and domain accounts. Through a combination of Wireshark analysis and code examination, the author uncovers the cryptographic processes involved, including AES encryption and HMAC calculations. The exploration also reveals unintended behaviors, such as bypassing password restrictions when resetting the Directory Services Restore Mode (DSRM) password. This journey not only enhances the author’s understanding but also contributes to the broader discourse on system security.

Source
{entry.data.source.title}
Original