|
|
@@ -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 . '<br>'; |
|
|
|
echo $network->strength . '<br>'; |
|
|
|
// Otros datos disponibles: $network->mac, $network->encryptionType, $network->channel, etc. |
|
|
|
echo '<br>'; |
|
|
|
} |
|
|
|
$result = Process::run('netsh wlan show profile -netsh wlan show profile <WiFi_Name> key=clear'); |
|
|
|
|
|
|
|
return $result->output(); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|