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 | |
# Check if domain argument is provided | |
if [ -z "$1" ]; then | |
echo "Usage: $0 <domain>" | |
exit 1 | |
fi | |
DOMAIN="$1" | |
EMAIL="$2" |
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 json | |
from flask import Flask, render_template_string | |
# Initialize Flask app | |
app = Flask(__name__) | |
# Load JSON data from the xss_canary.json file | |
def load_json_data(): | |
data = [] | |
with open('xss_canary.json', 'r') as 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
from flask import Flask, request | |
from flask_cors import CORS | |
import json | |
app = Flask(__name__) | |
CORS(app) | |
@app.route('/xss', methods=['POST']) | |
def xss_canary(): |
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 http.server | |
import socketserver | |
import ssl | |
# Run: openssl req -new -x509 -days 365 -nodes -out server.crt -keyout server.key | |
PORT = 8000 | |
class MyRequestHandler(http.server.SimpleHTTPRequestHandler): | |
def do_GET(self): | |
# Set the response code and headers | |
self.send_response(200) |
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 http.server | |
import socketserver | |
PORT = 8000 | |
class MyRequestHandler(http.server.SimpleHTTPRequestHandler): | |
def do_GET(self): | |
# Set the Content Security Policy header | |
self.send_response(200) | |
self.send_header("Content-Type", "text/html") |
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 dns.resolver | |
import sys | |
from tld import get_fld | |
def get_root_domain(domain): | |
return get_fld(domain, fix_protocol=True) | |
def check_dmarc(domain): | |
try: | |
answers = dns.resolver.resolve(f'_dmarc.{domain}', 'TXT') |
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
#!/usr/bin/python3 | |
# The following code was written by Wulf on #crypto (Libera) | |
from math import gcd | |
from cryptography.hazmat.backends import default_backend | |
from cryptography.hazmat.primitives.asymmetric.rsa import ( | |
RSAPublicNumbers, | |
RSAPrivateNumbers, | |
rsa_crt_iqmp, |
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 dkim # pip3 install dkimpy | |
import smtplib | |
import time | |
from email.mime.multipart import MIMEMultipart | |
from email.mime.text import MIMEText | |
from email.utils import formatdate | |
# Set params | |
destination = "TODO" # Victim SMTP server | |
smtp = "TODO" # Victim email |
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
#!/usr/bin/expect -f | |
if {[llength $argv] != 5} { | |
puts stderr "Usage: Pass an amount and a priority as arguments!" | |
exit 1 | |
} | |
set walletName [lindex $argv 0]; | |
set network [lindex $argv 1]; | |
set REMOTE_NODE [lindex $argv 2]; | |
set PORT [lindex $argv 3]; | |
set address [lindex $argv 4]; |
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 | |
# System Updates | |
sudo apt-get update -y | |
sudo apt-get full-upgrade --fix-missing -y | |
sudo apt-get autoremove -y | |
#sudo parrot-upgrade | |
# Alias to Fix Virtual Box issues | |
# alias FixVM="killall /usr/bin/VBoxClient 2> /dev/null; /usr/bin/VBoxClient --clipboard && /usr/bin/VBoxClient --seamless && /usr/bin/VBoxClient --vmsvga && /usr/bin/VBoxClient --draganddrop && /usr/bin/VBoxClient --checkhostversion" |
NewerOlder