Skip to content

Instantly share code, notes, and snippets.

View Uyavuz24's full-sized avatar
:octocat:
lovin cat videos

UYavuz Uyavuz24

:octocat:
lovin cat videos
View GitHub Profile
@Uyavuz24
Uyavuz24 / hostsbyasnname.py
Created August 6, 2020 08:34 — forked from ziot/hostsbyasnname.py
Get hosts by ASN->CIDR->Hosts via company name
import requests, json
from requests.packages.urllib3.exceptions import InsecureRequestWarning, InsecurePlatformWarning, SNIMissingWarning
from bs4 import BeautifulSoup
requests.packages.urllib3.disable_warnings(InsecureRequestWarning)
requests.packages.urllib3.disable_warnings(InsecurePlatformWarning)
requests.packages.urllib3.disable_warnings(SNIMissingWarning)
# another source of cidrs by asn
def getIPCidrs(asn):
@Uyavuz24
Uyavuz24 / cloud_metadata.txt
Last active September 21, 2020 06:08 — forked from jhaddix/cloud_metadata.txt
Cloud Metadata Dictionary useful for SSRF Testing
## AWS
# from http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-metadata.html#instancedata-data-categories
http://169.254.169.254/latest/user-data
http://169.254.169.254/latest/user-data/iam/security-credentials/[ROLE NAME]
http://169.254.169.254/latest/meta-data/iam/security-credentials/[ROLE NAME]
http://169.254.169.254/latest/meta-data/ami-id
http://169.254.169.254/latest/meta-data/reservation-id
http://169.254.169.254/latest/meta-data/hostname
http://169.254.169.254/latest/meta-data/public-keys/0/openssh-key
@Uyavuz24
Uyavuz24 / amass_asn_test.sh
Last active August 5, 2020 12:28
amass asn intel test script
#!/bin/bash
asnlist=(59055 59054 59053 5905 259051 59028 45104 45103 45102 45096 37963 34947 134963)
for i in ${asnlist[@]} ; do
amass intel -active -asn $i -p 80,4443,2075,2076,6443,3868,3366,8443,8080,9443,9091,3000,8000,5900,8081,6000,10000,8181,3306,5000,4000,8888,5432,15672,9999,161,4044,7077,4040,9000,8089,443,744
echo "searching $i"
done