Skip to content

Instantly share code, notes, and snippets.

View sudosuraj's full-sized avatar

Suraj Sharma sudosuraj

View GitHub Profile
@sudosuraj
sudosuraj / crt.sh
Created October 21, 2022 19:55 — forked from 1N3/crt.sh
A small bash script to gather all certificate sub-domains from crt.sh and save them to a file
#!/bin/bash
#
# crt.sh sub-domain check by 1N3@CrowdShield
# https://crowdshield.com
#
OKBLUE='\033[94m'
OKRED='\033[91m'
OKGREEN='\033[92m'
OKORANGE='\033[93m'
@sudosuraj
sudosuraj / gist:859b85505abbf4553a024340e9912b3e
Created October 9, 2022 20:08 — forked from tillson/gist:620e8ef87bc057f25b0a27c423433fda
Decode Base64 strings in a git repo's commit history
from pydriller import RepositoryMining
import re
import base64
foundSet = set()
for commit in RepositoryMining('./').traverse_commits():
for mod in commit.modifications:
if mod.source_code_before != None:
regex = re.findall(r"<text encoding=\"base64\">[^>]+</text>", mod.source_code_before)
for result in regex: