Skip to content

Instantly share code, notes, and snippets.

View Toowan0x1's full-sized avatar

Omar El Houmadi Toowan0x1

View GitHub Profile
ifconfig | grep inet | grep -v 127.0.0.1 | awk '{print $2}'
#!/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"|
#!/bin/bash
cat main.js | grep -oh "\"\/[a-zA-Z0-9_/?=&]*\"" | sed -e 's/^"//' -e 's/"$//' | sort -u
@Toowan0x1
Toowan0x1 / endpoints.sh
Last active January 26, 2024 12:48
Uses cURL to fetch the content of a specified URL, extracts and cleans URLs from the HTML response, and presents a sorted list of unique URLs, facilitating the analysis of potential security threats.
#!/bin/bash
curl $1 -silent | grep -oh "\"\/[a-zA-Z0-9_/?=&]*\"" | sed -e 's/^"//' -e 's/"$//' | sort -u
@Toowan0x1
Toowan0x1 / grep_urls_endpoints_in_local_machin.sh
Last active January 26, 2024 12:48
Searches recursively through files in a specified directory for potential URLs, aiding in the investigation of security threats.
#!/bin/bash
grep -lhEroa "://[\da-z./?A-Z0-9\D=_-]*"