Threat Intelligence TTPs
Query IP geolocation information with IP2Location.io
curl -s "https://api.ip2location.io/?ip=8.8.8.8&format=json" | jq{
"ip": "8.8.8.8",
"country_code": "US",
"country_name": "United States of America",
"region_name": "California",
"city_name": "Mountain View",
"latitude": 37.38605,
"longitude": -122.08385,
"zip_code": "94035",
"time_zone": "-07:00",
"asn": "15169",
"as": "Google LLC",
"is_proxy": false,
"message": "Limit to 500 queries per day. Sign up for a Free plan at https://www.ip2location.io to get 30K queries per month."
}Enumerating IPs with IPInfo
curl ipinfo.io/54.90.107.240
You can also utilize https://cybergordon.com/ to check for IP reputation!
Enumerating Domains with RDAP
The Registration Data Access Protocol (RDAP) is the definitive source for delivering generic top-level domain name (gTLD) registration information in place of sunsetted WHOIS services. The rdap command is a full-featured, command-line interface (CLI) client for RDAP. It supports RDAP bootstrapping, caching, different output formats, and many more features.
Basic Queries
Email Recon
curl emailrep.io/john.smith@gmail.com
Hunter.io
Search for email addresses associated with a specific domain or company. You can also search for specific individuals by providing their name and the company domain:
nrich IP Enumeration
A command-line tool to quickly analyze all IPs in a file and see which ones have open ports/ vulnerabilities. Can also be fed data from stdin to be used in a data pipeline.
Install
Confirmation
Usage
Extracting PDF Text with Python Image OCR
Threat Intelligence Streams with Python and Reddit
Enumerate new Reddit comments for threat intelligence. This script can be modified with regular expressions to hone in on exploit development, modern threats, and any newsworthy cyber events.
Python HTTPS Server
Source: https://book.hacktricks.xyz/generic-methodologies-and-resources/exfiltration
Enumerating Anonymous FTP Logins Using Python
Usage :
python3 FTPLoginChecker.py ip_addresses.txtNote : Use shodan_eye.py to search for FTP servers that have the
anonlogin enabled.Search Keyword :
230 anonymous
Python Keylogger
Mailtrap.io implementation:
Python Reverse Shell
Python Basic File Upload
Generating HoneyDocs with Python
Python's Faker module can be utilized to create honeydocs of PII with malicious macros, wordlists, emails for login brute-forcing, and much more.
Shodan CLI
The shodan command-line interface (CLI) is packaged with the official Python library for Shodan, which means if you're running the latest version of the library you already have access to the CLI. To install the new tool simply execute:
Once the tool is installed you have to initialize the environment with your API key using shodan init:
count
countReturns the number of results for a search query:
host
hostSee information about the host such as where it's located, what ports are open and which organization owns the IP:
myip
myipReturns your Internet-facing IP address:
search
searchThis command lets you search Shodan and view the results in a terminal-friendly way. By default it will display the IP, port, hostnames and data. You can use the --fields parameter to print whichever banner fields you're interested in:
Azure Subdomain Enumeration
A simple Go program for enumerating Azure targets:
Output:
GitHub Email Addresses
A script for enumerating GitHub to find a user's email:
Script to enumerate all users in a GitHub organization and find their public emails
Code Enumeration with Grep App
Rapidly scan millions of code repositories with Grep App:
Certificate Transparency Logs Enumeration with Go
Certificate Transparency (CT) logs are publicly accessible repositories that record all SSL/TLS certificates issued by Certificate Authorities. These logs make it possible to monitor certificate issuance, detect misissued certificates, and discover subdomains and services associated with a target domain.
A popular way to search these logs is via crt.sh, which provides a web interface and API for querying certificate records. For programmatic access in Go applications, the go-crtsh library offers a convenient wrapper around the crt.sh API:
Last updated