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/env python3 | |
""" | |
First intall the pip modules: | |
pip3 install peewee | |
pip3 install pymysql | |
Then run TruffleHog: | |
docker run --rm -it -v "$PWD:/pwd" trufflesecurity/trufflehog:latest github file:///repo-dir --json > output.json | |
docker run --rm -it -v "$PWD:/pwd" trufflesecurity/trufflehog:latest github --org=org-name --token=token --json > output.json |
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
PAYLOAD="?class.module.classLoader.URLs%5B0%5D=0" | |
while read site; do | |
normalResponse=$(curl --write-out '%{http_code}' -L --silent --insecure --output /dev/null "$site") | |
pocResponse=$(curl --write-out '%{http_code}' -L --silent --insecure --output /dev/null "$site$PAYLOAD") | |
if [ $pocResponse == "400" ] && [ $normalResponse != $pocResponse ]; then | |
echo "$pocResponse - $site$PAYLOAD" | |
fi | |
done <$1 |
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/env python3 | |
''' | |
Needs Requests (pip3 install requests) | |
Author: Marcello Salvati, Twitter: @byt3bl33d3r | |
License: DWTFUWANTWTL (Do What Ever the Fuck You Want With This License) | |
This should allow you to detect if something is potentially exploitable to the log4j 0day dropped on December 9th 2021. |
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/env python2.7 | |
# Based on :https://gist.github.com/LoranKloeze/6b713022619c2b32b32c6400a55a8433 | |
import subprocess | |
import re | |
import time | |
monitor_dev = "wlan1mon" | |
while True: |
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 subprocess | |
import re | |
devices = [] | |
subprocess.Popen('btmgmt le on', stdout=subprocess.PIPE, shell=True) | |
proc = subprocess.Popen('sudo btmgmt find', stdout=subprocess.PIPE, shell=True) | |
output = proc.communicate() | |
for line in str(output).split('\\n')[:-1]: | |
if 'hci0 dev_found' in line: |
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
# Install gr-gsm | |
sudo apt-get update && \ | |
sudo apt-get install -y \ | |
cmake \ | |
autoconf \ | |
libtool \ | |
pkg-config \ | |
build-essential \ | |
python-docutils \ | |
libcppunit-dev \ |
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
const HCCrawler = require('headless-chrome-crawler'); | |
const url = require('url'); | |
const args = process.argv.slice(2); | |
var requests = []; | |
if(args[0] === undefined || args[1] === undefined){ | |
console.log('node crawler.js <url> <depth>'); | |
process.exit(); | |
} |
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 | |
headers=$(curl -s -I -L "https://"$1) | |
echo "$headers" | |
declare -a checks=( | |
'Strict-Transport-Security' | |
'X-Frame-Options' | |
'X-XSS-Protection' | |
'X-Content-Type-Options' |
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 json | |
import random | |
import string | |
import sys | |
import re | |
session = requests.Session() | |
session.headers.update({'User-Agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:59.0)'}) |
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
:root { | |
/* Modify these to change your theme colors: */ | |
--primary: #61AFEF; | |
--text: #ABB2BF; | |
--background: #282C34; | |
--background-elevated: #3B4048; | |
/* These should be less important: */ | |
--background-hover: lighten(#3B4048, 10%); | |
--background-light: #AAA; |
NewerOlder