Skip to content

Instantly share code, notes, and snippets.

View queencitycyber's full-sized avatar
💭
knuckin n buckin

clandestination queencitycyber

💭
knuckin n buckin
View GitHub Profile
@queencitycyber
queencitycyber / crlf_scan.py
Created July 26, 2024 13:39
identify and exploit potential CRLF injection vulnerabilities in web applications
```python
import asyncio
import aiohttp
from typing import List, Dict
import click
from rich.console import Console
from rich.progress import Progress
from rich.table import Table
import json
import re
@queencitycyber
queencitycyber / cstiscan.py
Created July 25, 2024 15:56
identify and exploit potential Client-Side Template Injection (CSTI) vulnerabilities in web applications
import asyncio
import aiohttp
from typing import List
import click
from rich.console import Console
from rich.progress import Progress
from rich.table import Table
from bs4 import BeautifulSoup
import re
@queencitycyber
queencitycyber / domclob.py
Created July 25, 2024 12:58
identify and exploit potential DOM (Document Object Model) clobbering vulnerabilities in web applications
import asyncio
import aiohttp
from typing import List
import click
from rich.console import Console
from rich.progress import Progress
from rich.table import Table
from bs4 import BeautifulSoup
import re
import json
@queencitycyber
queencitycyber / postscan.py
Last active July 24, 2024 15:34
postmessage scanning
import asyncio
import json
import os
import re
from typing import List, Dict
import aiohttp
import click
from bs4 import BeautifulSoup
from rich.console import Console
@queencitycyber
queencitycyber / parse_ffufjson.sh
Created July 13, 2023 18:34
Parse FFUF json output
#!/bin/bash
# Directory path containing the JSON files
directory="."
# Print column titles
# not pretty and doesn't scale well but who cares
echo -e "URL\tStatus\tLength\tWords\tLines"
# Iterate over each JSON file in the directory
@queencitycyber
queencitycyber / url_to_md.py
Created July 11, 2023 14:06
URL -> Markdown
### Turn HTML page into Markdown (.md)
import requests
import html2text
def download_html(url):
response = requests.get(url)
return response.text
def convert_to_markdown(html):
@queencitycyber
queencitycyber / exparser.py
Created January 21, 2023 19:37
dumb python script to parse exchanger output
'''
parses impacket-exchanger output to put useful results in a table
https://github.com/fortra/impacket/blob/master/examples/exchanger.py
'''
import click
from rich.console import Console
from rich.table import Table
import re
@queencitycyber
queencitycyber / serve.py
Created August 17, 2022 14:20
Multi-threaded SimpleHTTPServer
#!/usr/bin/python3
import argparse
import http.server
import socketserver
import sys
class ThreadedHTTPServer(socketserver.ThreadingMixIn, http.server.HTTPServer):
pass
def main(argv):
@queencitycyber
queencitycyber / testpub.py
Created May 24, 2022 14:17
username oracle via ssh public key
# source: https://github.com/rushter/blog_code/blob/master/ssh/check.py
import logging
import socket
import sys
import paramiko.auth_handler
import requests
import argparse
@queencitycyber
queencitycyber / hbh-header-abuse-test.py
Created May 11, 2022 18:48 — forked from ndavison/hbh-header-abuse-test.py
Attempts to find hop-by-hop header abuse potential against the provided URL.
# github.com/ndavison
import requests
import random
import string
from argparse import ArgumentParser
parser = ArgumentParser(description="Attempts to find hop-by-hop header abuse potential against the provided URL.")
parser.add_argument("-u", "--url", help="URL to target (without query string)")