|
|
@@ -47,9 +47,9 @@ class Redes_wifi extends Command |
|
|
|
|
|
|
|
public function getProfilesRegex() |
|
|
|
{ |
|
|
|
/*$result = Process::run('netsh wlan show profile'); |
|
|
|
$salidaprofiles = $result->output();*/ |
|
|
|
$salidaprofiles = file_get_contents('profiles.txt'); |
|
|
|
$result = Process::run('netsh wlan show profile'); |
|
|
|
$salidaprofiles = $result->output(); |
|
|
|
//$salidaprofiles = file_get_contents('profiles.txt'); |
|
|
|
preg_match_all("/: \s*(.*)/", $salidaprofiles, $profiles); |
|
|
|
return $profiles[1]; |
|
|
|
} |
|
|
|