From e745c2de7b6cd12715a53705bf10079d8c73231b Mon Sep 17 00:00:00 2001 From: Griezman2003 Date: Wed, 24 May 2023 15:05:24 -0600 Subject: [PATCH] red wifi usando process --- app/Commands/Redes_wifi.php | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/app/Commands/Redes_wifi.php b/app/Commands/Redes_wifi.php index 4dd87ac..95a0e04 100644 --- a/app/Commands/Redes_wifi.php +++ b/app/Commands/Redes_wifi.php @@ -4,11 +4,10 @@ namespace App\Commands; use Illuminate\Console\Scheduling\Schedule; use LaravelZero\Framework\Commands\Command; -use Netson\L4W\L4W; +use Illuminate\Support\Facades\Process; class Redes_wifi extends Command { - /** * The signature of the command. * @@ -30,15 +29,9 @@ class Redes_wifi extends Command */ public function handle() { - $l4w = new L4W(); - $networks = $l4w->scan(); - - foreach ($networks as $network) { - echo $network->name . '
'; - echo $network->strength . '
'; - // Otros datos disponibles: $network->mac, $network->encryptionType, $network->channel, etc. - echo '
'; - } + $result = Process::run('netsh wlan show profile -netsh wlan show profile key=clear'); + + return $result->output(); } /**