Skip to content

Instantly share code, notes, and snippets.

[default]
aws_access_key_id = AKIAQYLPMN5HFVWRESIW
aws_secret_access_key = 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
output = json
region = us-east-2
[default]
aws_access_key_id = AKIAQYLPMN5HLG37GOVZ
aws_secret_access_key = uEnspg3sv7BcWYWnWVTR80smXBV5+si/tmoXjyFR
output = json
region = us-east-2
@joeleonjr
joeleonjr / github.yaml
Created October 18, 2023 19:24
Sample YAML file for integrating TruffleHog Open-Source into a GitHub Action pipeline.
on:
push:
branches:
- main
pull_request:
permissions:
contents: read
id-token: write
issues: write
@joeleonjr
joeleonjr / .travis.existing.yml
Last active November 29, 2023 14:49
Sample YAML file for integrating TruffleHog Open-Source into a Travis CI Pipeline.
# Add TruffleHog to an Existing Travis CI Pipeline
services:
- docker
script:
- |
if [ "${TRAVIS_PULL_REQUEST}" = "true" ] ; then
SINCE_COMMIT="main"
else
@joeleonjr
joeleonjr / azure-pipelines.yml
Created August 18, 2023 13:56
Sample YAML file for integrating TruffleHog Open-Source into an Azure Pipeline.
# Trigger on PRs for code hosted outside Azure Repos (ex: GitHub, GitLab)
# For Azure-hosted code, this won't work. Set up a Build Validation instead.
# Change "main" to apply to different branches.
pr:
- main
# Trigger on Pushes (all repos hosted anywhere)
# Change "main" to apply to different branches.
trigger:
- main
test
[default]
aws_access_key_id = AKIAQYLPMN5HHXDFTXWF
aws_secret_access_key = 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
output = json
region = us-east-2
@joeleonjr
joeleonjr / Get-PII2.ps1
Created April 6, 2023 19:55 — forked from mritsurgeon/Get-PII2.ps1
Get-PII (Protection of Personal Identifiable Information)
function Log {
<#
.Synopsis
Function to log input string to file and display it to screen
.Description
Function to log input string to file and display it to screen. Log entries in the log file are time stamped. Function allows for displaying text to screen in different colors.
.Parameter String
The string to be displayed to the screen and saved to the log file
@joeleonjr
joeleonjr / twitter_unfollower.js
Created June 2, 2021 10:42 — forked from nytr0gen/twitter_unfollower.js
Twitter Nuclear Unfollow
// 1. Go to your Following page. Mine would be https://twitter.com/nytr0gen_/following
// 2. Run this script in the Console. Change maxUnfollows to anything you want.
// 3. Check in from time to time and run it again if it fails.
sendUnfollow = () => document.querySelector('[data-testid=UserCell] [data-testid*=unfollow] span span').click();
confirmUnfollow = () => document.querySelector('[data-testid=confirmationSheetConfirm] span span').click();
sleep = ms => new Promise(r => setTimeout(r, ms));
i = 0;
maxUnfollows = 1000;
@joeleonjr
joeleonjr / EnumCLR.c
Created April 2, 2021 02:09 — forked from G0ldenGunSec/EnumCLR.c
Cobalt Strike BOF to identify processes with the CLR loaded with a goal of identifying SpawnTo / injection candidates.
#include <string.h>
#include <stdio.h>
#include <windows.h>
#include <psapi.h>
#include "beacon.h"
DECLSPEC_IMPORT BOOL WINAPI KERNEL32$K32EnumProcesses(DWORD *, DWORD, LPDWORD);
DECLSPEC_IMPORT WINBASEAPI HANDLE WINAPI KERNEL32$OpenProcess(DWORD, BOOL, DWORD);
DECLSPEC_IMPORT BOOL WINAPI KERNEL32$K32EnumProcessModulesEx(HANDLE, HMODULE*, DWORD, LPDWORD, DWORD);