mirror of
https://github.com/rapid7/metasploitable3.git
synced 2024-06-30 00:35:46 +02:00
Update update_ip.ps1
This commit is contained in:
parent
1c5c3c865a
commit
a5e92a1ae7
|
@ -1,5 +1,5 @@
|
||||||
$ip=get-WmiObject Win32_NetworkAdapterConfiguration|Where {$_.Ipaddress.length -gt 1}
|
$ip=get-WmiObject Win32_NetworkAdapterConfiguration|Where {$_.Ipaddress.length -gt 1}
|
||||||
$ipaddr = $ip.IPAddress[0]
|
$ipaddr = $ip[0].ipaddress[0]
|
||||||
Write-Host "Updating Wordpress IP to $ipaddr"
|
Write-Host "Updating Wordpress IP to $ipaddr"
|
||||||
|
|
||||||
$cmd = 'C:\wamp\bin\mysql\mysql5.5.20\bin\mysql.exe -u root --password="" -e "use wordpress; update wp_options set option_value=''http://'+$ipaddr+':8585/wordpress'' where option_name=''siteurl'';"'
|
$cmd = 'C:\wamp\bin\mysql\mysql5.5.20\bin\mysql.exe -u root --password="" -e "use wordpress; update wp_options set option_value=''http://'+$ipaddr+':8585/wordpress'' where option_name=''siteurl'';"'
|
||||||
|
|
Loading…
Reference in New Issue
Block a user