Skip to content

Instantly share code, notes, and snippets.

@gnremy
gnremy / CVE-2021-44228_IPs.csv
Last active April 26, 2023 07:01
CVE-2021-44228 Apache Log4j RCE Attempts Dec 20th 9:27PM ET
ip tag_name
162.155.56.106 Apache Log4j RCE Attempt
223.111.180.119 Apache Log4j RCE Attempt
213.142.150.93 Apache Log4j RCE Attempt
211.154.194.21 Apache Log4j RCE Attempt
210.6.176.90 Apache Log4j RCE Attempt
199.244.51.112 Apache Log4j RCE Attempt
199.101.171.39 Apache Log4j RCE Attempt
197.246.175.186 Apache Log4j RCE Attempt
196.196.150.38 Apache Log4j RCE Attempt
@jakeajames
jakeajames / patch.sh
Last active June 29, 2024 16:22
Make h3lix work when installed not-via-Impactor. To be used with the latest h3lix.
if [ $# != 2 ]; then
echo "Usage: $0 /path/to/input_ipa /path/to/output_ipa"
exit 1
fi
if ! [ -f $1 ]; then
echo "'$1' does not exist"
exit 1
fi
@Neo23x0
Neo23x0 / Base64_CheatSheet.md
Last active May 23, 2024 08:25
Learning Aid - Top Base64 Encodings Table

Base64 Patterns - Learning Aid

Base64 Code Mnemonic Aid Decoded* Description
JAB 🗣 Jabber $. Variable declaration (UTF-16), e.g. JABlAG4AdgA for $env:
TVq 📺 Television MZ MZ header
SUVY 🚙 SUV IEX PowerShell Invoke Expression
SQBFAF 🐣 Squab favorite I.E. PowerShell Invoke Expression (UTF-16)
SQBuAH 🐣 Squab uahhh I.n. PowerShell Invoke string (UTF-16) e.g. Invoke-Mimikatz
PAA 💪 "Pah!" <. Often used by Emotet (UTF-16)
@jlblancoc
jlblancoc / Install_gcc7_ubuntu_16.04.md
Last active May 7, 2024 14:57
Installing gcc-7 & g++-7 in Ubuntu 16.04LTS Xenial

Run the following in the terminal:

Install the gcc-7 packages:

sudo apt-get install -y software-properties-common
sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt update
sudo apt install g++-7 -y

Set it up so the symbolic links gcc, g++ point to the newer version:

wildcard ?
# -----------------------------------------------------------
# some signatures that may be helpful
# -----------------------------------------------------------
gpg y 2500000 \x8c\x0d\x04\x03\x03\x02
png y 2500000 \x89\x50\x4e\x47\x0d\x0a\x1a\x0a \x49\x45\x4e\x44
kdb y 2500000 \x03\xd9\xa2\x9a\x65\xfb\x4b\xb5
kdbx y 2500000 \x03\xd9\xa2\x9a\x66\xfb\x4b\xb5
@MikeNGarrett
MikeNGarrett / siege
Last active April 3, 2024 03:49
Siege with JSON POST data
# Changed to use content-type flag instead of header: -H 'Content-Type: application/json'
siege -c50 -t60S --content-type "application/json" 'http://domain.com/path/to/json.php POST {"ids": ["1","2","3"]}'
@gmacdougall
gmacdougall / gist:dbbe2cd68ff9d587c131
Created March 5, 2015 14:46
Giant Spree Dataset
shipping_category = Spree::ShippingCategory.create! name: 'default'
20.times { |i| Spree::StockLocation.create! name: i.to_s }
ActiveRecord::Base.no_touching do
10_000.times do
product = Spree::Product.create! name: SecureRandom.hex, price: 20, shipping_category: shipping_category
rand(1..10).times do
variant = Spree::Variant.create! product: product
variant.stock_items.shuffle.first(rand(1..20)).each { |stock_item| stock_item.update_columns(count_on_hand: rand(1..1000)) }
end
end
@iangreenleaf
iangreenleaf / gist:b206d09c587e8fc6399e
Last active June 20, 2024 02:39
Rails naming conventions

Rails naming conventions

General Ruby conventions

Class names are CamelCase.

Methods and variables are snake_case.

Methods with a ? suffix will return a boolean.

@krisleech
krisleech / activejob.rb
Created October 7, 2014 14:00
activejob outside of Rails
require 'sidekiq'
require 'active_job'
ActiveJob::Base.queue_adapter = :sidekiq
class Foo < ActiveJob::Base
queue_as :default
def perform
sleep 10
@doobeh
doobeh / app.py
Created September 19, 2014 18:59
Application showing how to use Flask-HTTPAuth easily from multiple files.
from flask import Flask
from authy import auth
def create_app():
app = Flask(__name__)
app.config['SECRET_KEY'] = 'hmm.'
from views import mod as exampleMod
app.register_blueprint(exampleMod)