Skip to content

Instantly share code, notes, and snippets.

View mr-rizwan-syed's full-sized avatar

Rizwan Syed mr-rizwan-syed

View GitHub Profile
@mr-rizwan-syed
mr-rizwan-syed / tldextractor.py
Last active April 20, 2025 18:44
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('.'):
@mr-rizwan-syed
mr-rizwan-syed / domdom.sh
Last active February 18, 2024 06:30
To get expiry status from list of domains
#!/bin/bash
#Author: mr-rizwan-syed
#Name: domdom.sh
# wget https://github.com/likexian/whois/releases/download/v1.15.1/whois-linux-amd64.tar.gz
# tar -xvf whois-linux-amd64.tar.gz
# mv whois/whois .
usage() {
echo "Usage: $0 -f file [-c]"
echo "Options:"
@mr-rizwan-syed
mr-rizwan-syed / techdetect.sh
Created December 2, 2023 08:42
To extract URLs of technologies from httpx & webanalyze results combined
#!/bin/bash
if [ -z "$1" ]; then
echo "Usage: techdetect <technology>"
exit 1
fi
urls=()
# Check existence of httpxout*.json files and process each one
#!/bin/bash
# title: CHOMTE.SH - portmapper
#==============================================================================
if [ "$#" -ne 3 ]; then
echo "Usage: $0 <naabu_json_file> <dnsxresolved_file> <dnsreconout_file>"
exit 1
fi
naabuout_json=$1
@mr-rizwan-syed
mr-rizwan-syed / naabu_json2csv.py
Last active December 2, 2023 06:32
Python code for converting naabu json file to CSV
import argparse
import json
import csv
# Define command-line arguments
parser = argparse.ArgumentParser(description="Convert JSON to CSV")
parser.add_argument("input_file", help="Input Naabu JSON file path")
parser.add_argument("output_file", help="Output CSV file path")
args = parser.parse_args()
#Author: mr-rizwan-syed
#Nmap Custom Scanner
GREEN=`tput setaf 2`
YELLOW=`tput setaf 3`
BLUE=`tput setaf 4`
CYAN=`tput setaf 6`
NC=`tput sgr0`
# Usage
$art = @"
.:7Y55YJJJP#P~!?JYYYJ?7!~:..
.^J#@@@@@@@@@@@@@@@@@@@@@@@@@@@@&&#G^
.?G&@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@&&#J~^:
.!G@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@B!
7?G@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@&7
?#@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@&Y
.Y@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@5
^?@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@#^
@mr-rizwan-syed
mr-rizwan-syed / jodalpha.sh
Last active April 5, 2023 18:24
Recon Script - Gather all URLs by DNS resolving, port scanning on alive IP and mapping open ports to subdomain and do http probing
#!/bin/bash
domain="$1"
project="$2"
subdomains="$project/subdomains.txt"
dnsprobe="$project/dnsprobe.txt"
aliveip="$project/aliveip.txt"
ipport="$project/ipport.txt"
hostport="$project/hostport.txt"
httpxout="$project/httpxout.txt"