$ go version
go version go1.13 linux/amd64
$ mkdir /tmp/helloworld; cd /tmp/helloworld;
$ cat > main.go <<EOF
package main
Create a file anywhere in your WordPress installation and access the file directly through your browser. You will be redirected to the WP admin area without even having a password or username.
Please, delete the following lines from your production site after usage. Your website can be easily hacked or exploited with the following script.
/** Set up WordPress environment */
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
# Ensure script runs under PowerShell 7.5 or higher | |
if ($PSVersionTable.PSVersion -lt [Version]"7.5") { | |
$pwshExe = Get-Command pwsh.exe -ErrorAction SilentlyContinue | |
if ($pwshExe -and $pwshExe.Version -ge [Version]"7.5") { | |
Write-Host "Restarting script with PowerShell 7.5 or higher..." | |
& $pwshExe.Source -File $MyInvocation.MyCommand.Path @args | |
exit | |
} else { | |
Write-Host "This script requires PowerShell 7.5 or higher." | |
exit 1 |