mirror of
https://github.com/rapid7/metasploitable3.git
synced 2024-06-20 11:55:49 +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}
|
||||
$ipaddr = $ip.IPAddress[0]
|
||||
$ipaddr = $ip[0].ipaddress[0]
|
||||
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'';"'
|
||||
|
@ -13,4 +13,4 @@ $fsdata = 'a:4:{s:11:""""plugin_data"""";a:1:{s:11:""""ninja-forms"""";a:12:{s:1
|
|||
|
||||
|
||||
$cmd = 'C:\wamp\bin\mysql\mysql5.5.20\bin\mysql.exe -u root --password="" -e "use wordpress; update wp_options set option_value='''+$fsdata+''' where option_name=''fs_accounts'';"'
|
||||
iex $cmd
|
||||
iex $cmd
|
||||
|
|
Loading…
Reference in New Issue
Block a user