Skip to content

Instantly share code, notes, and snippets.

View FrankSansC's full-sized avatar
🤔
Seeking the next exciting challenge

Frank FrankSansC

🤔
Seeking the next exciting challenge
View GitHub Profile
@ANeilan
ANeilan / exploded_phish_kits_wordlist.dict
Last active July 15, 2024 15:54
a wordlist/dictionary file from exploded phish kits. strings to feed to ffuf, dirbuster, gobuster, etc. in order to find phish kit infrastructure/resources
.cgi/
.cgi/.htaccess
.cgi/idm/
.cgi/idm/.htaccess
.cgi/idm/index.php
.cgi/idm/oauth2
.cgi/idm/oauth2/authword.php
.cgi/idm/oauth2/context.php
.cgi/idm/oauth2/Email.php
.cgi/idm/oauth2/index.php
@wheresjames
wheresjames / gdrive.py
Created January 3, 2021 13:32
Python script to sync local folder to google drive
#!/usr/bin/env python3
from __future__ import print_function
import os
import sys
import time
import json
import random
import inspect
import argparse
@RobertKrajewski
RobertKrajewski / mattermost-dl.py
Last active January 27, 2025 12:57
This script allows to export the content (text+files) of an interactively selected Mattermost channel (public, private, group, direct message) to files. Tested on Mattermost 5.27 using Python 3.7
import os
import sqlite3
from datetime import datetime, date
from typing import Tuple, Dict, List
import getpass
from mattermostdriver import Driver
import pathlib
import json
@geek-at
geek-at / trash.sh
Created August 13, 2020 07:27
The script used to trash a banking phishing site
#!/bin/bash
while :; do
verf=$(cat /dev/urandom | tr -dc '0-9' | fold -w 8 | head -n 1)
pin=$(cat /dev/urandom | tr -dc '0-9' | fold -w 5 | head -n 1)
ip=$(printf "%d.%d.%d.%d\n" "$((RANDOM % 256))" "$((RANDOM % 256))" "$((RANDOM % 256))" "$((RANDOM % 256))")
@gbarre
gbarre / gandi.sh
Created May 12, 2020 14:09
Update DNS A record with Gandi's API
#!/bin/sh
# Customize with your datas
APIKEY="secret_token"
DOMAIN="my_domain"
RECORD="my_record"
# DO NOT EDIT AFTER THIS LINE
CURRENTIP=$(curl -s ifconfig.co/ip)
IPLENGTH=$(echo -n ${CURRENTIP} | wc -m)
@johnnypea
johnnypea / useful-one-liners.sh
Last active May 11, 2025 10:21
Useful one liners
# Run the last command as root
sudo !!
# Serve current directory tree at http://$HOSTNAME:8000/
python -m SimpleHTTPServer
# Save a file you edited in vim without the needed permissions
:w !sudo tee %
# change to the previous working directory
cd -
# Runs previous command but replacing
^foo^bar
@phil-blain
phil-blain / .gitattributes
Last active April 28, 2025 04:10
Git pickaxe : show only relevant hunks (filter displayed hunks using the given search string)
*.md diff=markdown
@raveenb
raveenb / ssh_into_android.md
Last active May 5, 2025 11:07
SSH into Android

Connecting to an Android device over SSH

Initial Setup

Install Android App Termux from APKPure or AppStore. If the app exists, just delete and re-install it to get the latest version, The APK can be downloaded from https://apkpure.com/termux/com.termux/ Install the APK using by running

adb install ~/Downloads/Termux_v0.73_apkpure.com.apk
@rjhansen
rjhansen / keyservers.md
Last active April 22, 2025 21:49
SKS Keyserver Network Under Attack

SKS Keyserver Network Under Attack

This work is released under a Creative Commons Attribution-NoDerivatives 4.0 International License.

Terminological Note

"OpenPGP" refers to the OpenPGP protocol, in much the same way that HTML refers to the protocol that specifies how to write a web page. "GnuPG", "SequoiaPGP", "OpenPGP.js", and others are implementations of the OpenPGP protocol in the same way that Mozilla Firefox, Google Chromium, and Microsoft Edge refer to software packages that process HTML data.

Who am I?

@mohanpedala
mohanpedala / bash_strict_mode.md
Last active May 11, 2025 16:55
set -e, -u, -o, -x pipefail explanation