Skip to content

Instantly share code, notes, and snippets.

@netwons
netwons / cidr-whois.sh
Created January 16, 2022 20:48
Recon - CIDR with whois
# For every domain in file domains.txt, print CIDR and Organization (one-liner):
for DOMAIN in $(cat domains.txt);do echo $(for ip in $(dig a $DOMAIN +short); do whois $ip | grep -e "CIDR\|Organization" | tr -s " " | paste - -; d
one | uniq); done
@netwons
netwons / GoogleDriveServiceProvider.php
Created December 15, 2020 13:58 — forked from sergomet/GoogleDriveServiceProvider.php
Setup a Laravel Storage driver with Google Drive API
<?php
namespace App\Providers;
use Illuminate\Support\ServiceProvider;
class GoogleDriveServiceProvider extends ServiceProvider
{
/**
* Bootstrap the application services.