This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
start_ip=1 | |
end_ip=255 | |
network=192.168.1 | |
# Loop through IP range from $start_ip to $end_ip | |
for ip in $(seq $start_ip $end_ip); do | |
full_ip="${network}.${ip}"; ping -c 1 -W 2 $full_ip > /dev/null 2>&1 && echo "$full_ip is up" || echo "$full_ip is down" | |
done |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ifconfig | grep inet | grep -v 127.0.0.1 | awk '{print $2}' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
curl $1 -silent | cat - | grep -ioP ("bearer"|"postMessage"|"message"|"url"|"redirect"|"uri"|"link"|"file"|"path"|"id"|"admin"|"v1"|"v2"|"v3"|"v4"|"v5"|"v6"|"v7"|"v8"|"v9"|"access_key"|"access_token"|"admin_pass"|"admin_user"|"algolia_admin_key"|"algolia_api_key"|"alias_pass"|"alicloud_access_key"|"amazon_secret_access_key"|"amazonaws"|"ansible_vault_password"|"aos_key"|"api_key"|"api_key_secret"|"api_key_sid"|"api_secret"|"api.googlemapsAIza"|"AIza"|"apidocs"|"apikey"|"apiSecret"|"app_debug"|"app_id"|"app_key"|"app_log_level"|"app_secret"|"appkey"|"appkeysecret"|"application_key"|"appsecret"|"appspot"|"auth_token"|"authorizationToken"|"authsecret"|"aws_access"|"aws_access_key_id"|"aws_bucket"|"aws_key"|"aws_secret"|"aws_secret_key"|"aws_token"|"AWSSecretKey"|"b2_app_key"|"bashrc"|"password"|"bintray_apikey"|"bintray_gpg_password"|"bintray_key"|"bintraykey"|"bluemix_api_key"|"bluemix_pass"|"browserstack_access_key"|"bucket_password"|"bucketeer_aws_access_key_id"|"bucketeer_aws_secret_access_key"| |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
cat main.js | grep -oh "\"\/[a-zA-Z0-9_/?=&]*\"" | sed -e 's/^"//' -e 's/"$//' | sort -u |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
curl $1 -silent | grep -oh "\"\/[a-zA-Z0-9_/?=&]*\"" | sed -e 's/^"//' -e 's/"$//' | sort -u |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
grep -lhEroa "://[\da-z./?A-Z0-9\D=_-]*" |