Skip to content

Instantly share code, notes, and snippets.

View bdno86's full-sized avatar

Bryan Onel bdno86

View GitHub Profile
@thomasantony
thomasantony / chatgpt_parser_md.py
Last active January 11, 2024 13:21
Convert saved HTML transcripts from ChatGPT to Markdown
# Save the transcripts using the "Save Page WE" Chrome Extension
# This script was generated by ChatGPT
import sys
from bs4 import BeautifulSoup
# Check if a file was provided as a command line argument
if len(sys.argv) < 2:
print("Please provide an HTML file as a command line argument.")
sys.exit(1)
@christopher-caldwell
christopher-caldwell / index.ts
Created March 19, 2022 23:33
Uploading file from WYSIWYG editor
import type { EditorConfig } from '@editorjs/editorjs'
// The image tool has no types, if using TS you'll need to define them. See below for example
import ImageTool from '@editorjs/image'
import axios from 'axios'
const editorOptions: EditorConfig = {
tools: {
image: {
class: ImageTool,
config: {
@mvanholsteijn
mvanholsteijn / gcp-least-privileged
Last active October 22, 2022 11:09
lists all Google IAM roles which contain the specified permission sorted by the number of permissions
#!/bin/bash
#
# NAME
# gcp-least-privileged - lists all Google IAM roles which contain the specified permission
#
# EXAMPLE
# gcp-least-privileged compute.disks.delete
#
main() {
local permission
@kentcdodds
kentcdodds / session.server.ts
Created November 18, 2021 21:04
Authentication in Remix applications
import * as bcrypt from "bcrypt";
import { createCookieSessionStorage, redirect } from "remix";
import { db } from "./db.server";
export type LoginForm = {
username: string;
password: string;
};
@yehgdotnet
yehgdotnet / get-shodan-favicon-hash.py
Last active October 25, 2024 04:40
Get Shodan FAVICON Hash
# https://twitter.com/brsn76945860/status/1171233054951501824
pip install mmh3
-----------------------------
# python 2
import mmh3
import requests
response = requests.get('https://cybersecurity.wtf/favicon.ico')
favicon = response.content.encode('base64')
@w00tc
w00tc / 1) Active Directory One Liners
Last active August 19, 2024 22:56
Some Pentesting Notes
Retrieves all of the trust relationships for this domain - Does not Grab Forest Trusts
([System.DirectoryServices.ActiveDirectory.Domain]::GetCurrentDomain()).GetAllTrustRelationships()
Grab Forest Trusts.
([System.DirectoryServices.ActiveDirectory.Forest]::GetCurrentForest()).GetAllTrustRelationships()
@TarlogicSecurity
TarlogicSecurity / kerberos_attacks_cheatsheet.md
Created May 14, 2019 13:33
A cheatsheet with commands that can be used to perform kerberos attacks

Kerberos cheatsheet

Bruteforcing

With kerbrute.py:

python kerbrute.py -domain <domain_name> -users <users_file> -passwords <passwords_file> -outputfile <output_file>

With Rubeus version with brute module:

@dirkjanm
dirkjanm / getloggedon.py
Created September 15, 2018 19:27
Simple script that uses impacket to enumerate logged on users as admin using NetrWkstaUserEnum and impacket
#!/usr/bin/env python
# Copyright (c) 2012-2018 CORE Security Technologies
#
# This software is provided under under a slightly modified version
# of the Apache Software License. See the accompanying LICENSE file
# for more information.
#
# Gets logged on users via NetrWkstaUserEnum (requires admin on targets).
# Mostly adapted from netview.py and lookupsid.py
#
@FrankSpierings
FrankSpierings / instructions.md
Last active June 15, 2024 09:27
Command line scripts for CTF's

Command line scripts for CTF's

Linux

Improve shell

  • Improve the prompt:
bash -i
@jhaddix
jhaddix / Testing_Checklist.md
Last active October 29, 2024 06:32 — forked from amotmot/WAHH_Task_Checklist.md
Fast Simple Appsec Testing Checklist