mirror of
https://github.com/rapid7/metasploitable3.git
synced 2024-07-07 20:22:21 +02:00
2 lines
244 B
PowerShell
2 lines
244 B
PowerShell
$ip=get-WmiObject Win32_NetworkAdapterConfiguration|Where {$_.Ipaddress.length -gt 1}
|
|
(Get-Content C:\vagrant\resources\wordpress\wordpress.sql) -replace 'CHANGETHISIP', $ip.ipaddress[0] | Set-Content "C:\Program Files\wordpress\wordpress.sql" |