diff options
author | Fbenas <philbeansburton@gmail.com> | 2020-06-21 17:58:23 +0100 |
---|---|---|
committer | Fbenas <philbeansburton@gmail.com> | 2020-06-21 17:58:23 +0100 |
commit | 9cd0234665ea66dff172d94b9c1b4cb61b1d25b1 (patch) | |
tree | 9cb5d13acbf3c5bb8c842620ceb8a104b41babb7 /app/Console/Commands/TestTor.php | |
parent | 8d6e8b306d7836e4075a13ad98617bfe5afaa1a0 (diff) |
Diffstat (limited to 'app/Console/Commands/TestTor.php')
-rw-r--r-- | app/Console/Commands/TestTor.php | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/app/Console/Commands/TestTor.php b/app/Console/Commands/TestTor.php index 87f0050..5c4c296 100644 --- a/app/Console/Commands/TestTor.php +++ b/app/Console/Commands/TestTor.php @@ -7,43 +7,20 @@ use Illuminate\Support\Facades\Http; class TestTor extends Command { - /** - * The name and signature of the console command. - * - * @var string - */ protected $signature = 'test:tor { onion }'; - - /** - * The console command description. - * - * @var string - */ protected $description = 'Testing tor'; - /** - * Create a new command instance. - * - * @return void - */ public function __construct() { parent::__construct(); } - /** - * Execute the console command. - * - * @return mixed - */ public function handle() { $url = $this->argument('onion'); $response = Http::get($url); - dd($response->body()); - // $url = 'http://jhiwjjlqpyawmpjx.onion/'; // Note the addition of a semicolon. $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); |