Exploit PHP’s mail() to get remote code execution

Redirect HTTP to HTTPS

…<httpRedirect enabled=”false” destination=”https://example.com” httpResponseStatus=”Permanent” /> Don’t forget to enable HTTP Strict-Transport-Security (HSTS) on IIS. HSTS improves security and prevents man-in-the-middle attacks, downgrade attacks, and cookie-hijacking. And there are a number…

Install SSL / TLS certificates in Windows Server using PowerShell

apt-cache search monit lists "monit – utility for monitoring and managing daemons or similar programs"

…-TargetObject $p -ErrorAction Stop } $n } $Port = $portNumbers # netsh http show sslcert requires administrator privileges $principal = [Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdentity]::GetCurrent() if (-not $principal.IsInRole([Security.Principal.WindowsBuiltInRole]::Administrator)) { Write-Error -Message ‘Get-HttpSysSslBindings requires administrator…

Disk Cleanup in Windows Server

apt-cache search monit lists "monit – utility for monitoring and managing daemons or similar programs"

…0x800f0906 with DISM /Online /Cleanup-Image, PowerShell Install-WindowsFeature and SFC /scannow Some reports are available explaining Microsoft Security Bulletin MS14-046 broke DISM /Online /Cleanup-Image /RestoreHealth, PowerShell Install-WindowsFeature with -Source parameter, and…