Skip to content

Instantly share code, notes, and snippets.

View Sriram-PR's full-sized avatar
:shipit:
:trollface:

Sriram PR Sriram-PR

:shipit:
:trollface:
View GitHub Profile
Topic Data Structure(s) Used Key Takeaway in Algorithm Time Complexity Space Complexity
Linked List
Loop Detection Linked List, HashSet (optional) Floyd's Cycle-Finding (Tortoise & Hare): two pointers at different speeds detect a cycle if they meet. Hashing: store visited nodes. O(N) O(1)
@Sriram-PR
Sriram-PR / GetWindowsProductKey.vbs
Last active March 6, 2025 15:43
Retrieve Windows Product Key
' VBScript utility to extract Windows product keys and activation status across Windows 7/8/10/11.
' Uses multiple fallback methods (WMI, PowerShell, Registry) for maximum compatibility with KMS, OEM, and retail licenses.
' Displays results in a dialog and optionally saves to disk.
' Requires admin rights.
Option Explicit
' Variables for WMI, registry access, and data storage
Dim objshell, path, DigitalID, Result
Dim ProductName, ProductID, ProductKey, ProductData