diff --git a/app/Commands/Redes_wifi.php b/app/Commands/Redes_wifi.php index 35a90f7..b1f1685 100644 --- a/app/Commands/Redes_wifi.php +++ b/app/Commands/Redes_wifi.php @@ -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]; }