This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Pre-flight check to verify and install necessary utilities | |
for utility in curl parallel bc; do | |
if ! command -v $utility &> /dev/null; then | |
read -p "$utility is not installed. Would you like to install it? (y/N) " yn | |
case $yn in | |
[Yy]* ) | |
if [[ $EUID -ne 0 ]]; then | |
echo "Please run this script as root or use sudo to install $utility." |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests | |
import csv | |
api_endpoint = 'https://api.dehashed.com/search?query={}' | |
credentials = ('[email protected]', 'APIKEY') | |
headers = {'Accept': 'application/json'} | |
# Step 1: Read the IP addresses from a text file | |
with open('ip_addresses.txt', 'r') as file: | |
ip_addresses = [line.strip() for line in file] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import urllib.request as urllib2 | |
import re | |
from collections import Counter | |
import csv | |
def ParseIEEEOui(url="http://standards.ieee.org/develop/regauth/oui/oui.txt"): | |
headers = {'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Firefox/91.0'} | |
req = urllib2.Request(url, headers=headers) | |
res = urllib2.urlopen(req) | |
data = res.read().decode() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import re | |
# Directory path where the txt files are stored | |
folder_path = '.' | |
# Adjusted regular expressions to match the given line format | |
email_pattern = re.compile(r'Email: ([\w\.-]+@[\w\.-]+)') | |
screen_name_pattern = re.compile(r'ScreenName: (\S+)') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"crypto/sha1" | |
"encoding/base64" | |
"encoding/hex" | |
"fmt" | |
"io/ioutil" | |
"log" | |
"net/http" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests | |
import time | |
import json | |
import sys | |
api_endpoint = 'https://api.dehashed.com/search?query={}' | |
credentials = ('YOUREMAIL', 'YOURAPI') | |
headers = {'Accept': 'application/json'} | |
checked_items = {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://github.com/yosignals/ditty/blob/main/fake.ditty.py | |
gchq.local\rffpfosm:881723:a34e5a428ee058321df4d8da9abc4760:5d6dc7a7f094201c15fe39e3885bb45e::: | |
gchq.local\keuqfzsq:849930:a34e5a428ee058321df4d8da9abc4760:a3d19bcf76a2fed12ba9b7d9a7f6c49d::: | |
gchq.local\lyddkuyw:655741:a34e5a428ee058321df4d8da9abc4760:20314ac20f2d59988aab796ee782e464::: | |
gchq.local\lyddkuyw:655741:a34e5a428ee058321df4d8da9abc4760:20314ac20f2d59988aab796ee782e464::: | |
gchq.local\lyddkuyw:655741:a34e5a428ee058321df4d8da9abc4760:20314ac20f2d59988aab796ee782e464::: | |
gchq.local\lyddkuyw:655741:a34e5a428ee058321df4d8da9abc4760:20314ac20f2d59988aab796ee782e464::: | |
gchq.local\lyddkuyw:655741:a34e5a428ee058321df4d8da9abc4760:20314ac20f2d59988aab796ee782e464::: | |
gchq.local\lyddkuyw:655741:a34e5a428ee058321df4d8da9abc4760:20314ac20f2d59988aab796ee782e464::: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import requests | |
import chardet | |
import sys | |
GITHUB_API = 'https://api.github.com' | |
OWNER = 'danielmiessler' | |
REPO = 'SecLists' | |
BRANCH = 'master' | |
DIR_PATH = 'Passwords' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import random | |
import string | |
import hashlib | |
def generate_fake_extract(): | |
domain = 'gchq.local' | |
user_count = 1000 # Number of fake user accounts to generate | |
fake_extract = [] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import socket | |
import sys | |
import subprocess | |
import requests | |
import json | |
import time | |
import sqlite3 | |
import select | |
# Check for required packages and install them if needed |