This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Windows Registry Editor Version 5.00 | |
| ; Bogus MDM Enrollment - Key 1 of 2 | |
| [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Enrollments\FFFFFFFF-FFFF-FFFF-FFFF-FFFFFFFFFFFF] | |
| "EnrollmentState"=dword:00000001 | |
| "EnrollmentType"=dword:00000000 | |
| "IsFederated"=dword:00000000 | |
| ; Bogus MDM-Enrollment - Key 2 of 2 | |
| [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Provisioning\OMADM\Accounts\FFFFFFFF-FFFF-FFFF-FFFF-FFFFFFFFFFFF] | |
| "Flags"=dword:00d6fb7f | |
| "AcctUId"="0x000000000000000000000000000000000000000000000000000000000000000000000000" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $minimumCertAgeDays = 30 | |
| $timeoutMilliseconds = 6000 | |
| $urls = @( | |
| "https://allthingsagile.co/", | |
| "https://www.google.com/" | |
| ) | |
| # disabling the cert validation check. This is what makes this whole thing work with invalid certs... | |
| [Net.ServicePointManager]::ServerCertificateValidationCallback = { $true } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| sed -Ezi.bak "s/(Ext.Msg.show\(\{\s+title: gettext\('No valid sub)/void\(\{ \/\/\1/g" /usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js && systemctl restart pveproxy.service |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #Certificate has to be installed in Personal | |
| #Subject is who it has been issued to | |
| $certSubject = "" | |
| $tp = (ls Cert:\LocalMachine\my | WHERE {$_.Subject -match $certSubject } | Select -First 1).Thumbprint | |
| wmic /namespace:\\root\CIMV2\TerminalServices PATH Win32_TSGeneralSetting Set SSLCertificateSHA1Hash="$tp" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <# | |
| .SYNOPSIS | |
| GenCertSigningReq.ps1 | |
| .DESCRIPTION | |
| This powershell script can be used to generate a Certificate Signing Request (CSR) using the SHA256 signature algorithm and a 2048 bit key size (RSA). Subject Alternative Names are supported. | |
| .PARAMETER |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $wsh = New-Object -ComObject WScript.Shell | |
| while (1) { | |
| $rd = Get-Random -Minimum 57 -Maximum 172 | |
| $wsh.SendKeys('+{F15}') | |
| Start-Sleep -Seconds $rd | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| sudo docker stop portainer | |
| sudo docker rm portainer | |
| sudo docker run -d -p 8000:8000 -p 9000:9000 -p9443:9443 --name=portainer --restart=always --pull=always -v /var/run/docker.sock:/var/run/docker.sock -v /containers/portainer:/data portainer/portainer-ee |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var r="html,body{overflow:auto !important;}"; | |
| var s=document.createElement("style"); | |
| s.type="text/css"; | |
| s.appendChild(document.createTextNode(r)); | |
| document.body.appendChild(s); | |
| void 0; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Get-EventLog -LogName System |? {$_.EventID -in (6005,6006,6008,6009,1074,1076)} | ft TimeGenerated,EventId,Message -AutoSize –wrap |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Function Get-HuntTeamMmr { | |
| $HuntDir = "C:\Program Files (x86)\Steam\steamapps\common\Hunt Showdown" | |
| $File = Get-Item "$HuntDir\user\profiles\default\attributes.xml" | |
| $NameSuffix = "_blood_line_name" | |
| $MmrSuffix = "_mmr" | |
| $TeamSuffix = "_ownteam" | |
| [xml]$Data = Get-Content $File | |
| $FlatData = $Data.ChildNodes.selectNodes("*") |