Skip to content

Instantly share code, notes, and snippets.

@Hadiasemi
Hadiasemi / tldextractor.py
Created April 20, 2025 18:44 — forked from mr-rizwan-syed/tldextractor.py
The script takes list of subdomains and extracts their apex (root) domains using the tldextract library, and prints the unique set of apex domains.
import sys
import tldextract
def is_valid_domain(domain):
# Check if the domain contains only alphanumeric characters and hyphens
if not domain.replace('-', '').replace('.', '').isalnum():
return False
# Check if the domain doesn't end with a period
if domain.endswith('.'):
@Hadiasemi
Hadiasemi / GoogleDorking.md
Created June 5, 2022 19:17 — forked from sundowndev/GoogleDorking.md
Google dork cheatsheet

Google dork cheatsheet

Search filters

Filter Description Example
allintext Searches for occurrences of all the keywords given. allintext:"keyword"
intext Searches for the occurrences of keywords all at once or one at a time. intext:"keyword"
inurl Searches for a URL matching one of the keywords. inurl:"keyword"
allinurl Searches for a URL matching all the keywords in the query. allinurl:"keyword"
intitle Searches for occurrences of keywords in title all or one. intitle:"keyword"
<!DOCTYPE html><html><head><base href="http://www.cs.toronto.edu/~arnold/427/18s/427_18S/indepth/scapy_wifi/scapy_tut.html"><meta charset="utf-8"><meta name="download_date" content="2022-05-03T01:05:08.368Z"/>
<title>Scapy Tutorial: WiFi Security</title>
<style type="text/css">
code{white-space: pre-wrap;}
span.smallcaps{font-variant: small-caps;}
span.underline{text-decoration: underline;}
div.column{display: inline-block; vertical-align: top; width: 50%;}