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) |
❤️🔥
This file contains hidden or 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
// This will safely check a value to make sure it has been declared and assigned a value other than null or undefined: | |
console.log(typeof undeclaredVariable !== "undefined" && | |
(typeof undeclaredVariable !== "object" || !undeclaredVariable)) // false | |
// Compare to checking for null using ==, which will only work for declared variables: | |
try { undeclaredVariable == null } catch(e) { console.log(e) } // ReferenceError: undeclaredVariable is not defined | |
try { undeclaredVariable === null } catch(e) { console.log(e) } // ReferenceError: undeclaredVariable is not defined | |
try { undeclaredVariable === undefined } catch(e) { console.log(e) } // ReferenceError: undeclaredVariable is not defined | |
let declaredButUndefinedVariable |
This file contains hidden or 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
function evalCode(code) { | |
const func = new Function ('window', `with (window) { ${code} }`); | |
const obj = {}; | |
const proxy = new Proxy(obj, { | |
get(target, propKey, receiver) { | |
console.log(`GET ${String(propKey)}`); | |
if (propKey === 'window') return proxy; | |
return Reflect.get(window, propKey, receiver); | |
}, | |
set(target, propKey, value, receiver) { |
This file contains hidden or 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
/* | |
WARNING: | |
the newest version of this rule is now hosted here: | |
https://github.com/Neo23x0/god-mode-rules/blob/master/godmode.yar | |
*/ | |
/* | |
_____ __ __ ___ __ |
Use Manage Search Engines in your browser to add these search engines. You can then use the 'keyword' in the URL bar to do a quick lookup. Find more details about managing your search engines in Chrome here.
e.g. Type
v dad8ebcbb5fa6721ccad45b81874e22c
This file contains hidden or 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 { DisjointSet } from "@thi.ng/adjacency"; | |
import { cosineColor, GRADIENTS } from "@thi.ng/color"; | |
import { identity, partial } from "@thi.ng/compose"; | |
import { serialize } from "@thi.ng/hiccup"; | |
import { rect, svg, text } from "@thi.ng/hiccup-svg"; | |
import { fitClamped, wrap } from "@thi.ng/math"; | |
import { IRandom, Smush32 } from "@thi.ng/random"; | |
import { | |
buildKernel2d, | |
comp, |
This file contains hidden or 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 python | |
"""Set retention on slack conversations to 400 days. | |
Usage: ./set_retention.py [--perform] --token SLACK_TOKEN | |
The `--perform` flag is necessary to actually perform the action. | |
Due to the fact that `conversations.setToken` is not part of the public API | |
the slack legacy token concept will not work. To obtain the API token, | |
open up slack in the browser and observe networking traffic while performing |
This file contains hidden or 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/sh | |
PATH=/usr/local/bin:/usr/local/sbin:~/bin:/usr/bin:/bin:/usr/sbin:/sbin | |
policies_store="/Library/Managed Preferences" | |
users_dir="/Users" | |
policies="com.google.Chrome.plist com.google.Keystone.Agent.plist com.apple.icloud.managed.plist com.apple.preferences.users.plist" | |
##################################################### | |
script_name=`basename $0` | |
current_date=`date` |
This file contains hidden or 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
# IMPORTANT! | |
# This gist has been transformed into a github repo | |
# You can find the most recent version there: | |
# https://github.com/Neo23x0/auditd | |
# ___ ___ __ __ | |
# / | __ ______/ (_) /_____/ / | |
# / /| |/ / / / __ / / __/ __ / | |
# / ___ / /_/ / /_/ / / /_/ /_/ / | |
# /_/ |_\__,_/\__,_/_/\__/\__,_/ |
This file contains hidden or 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 os | |
import time | |
import crayons | |
import wikipedia | |
import nltk | |
import pytesseract | |
from PIL import Image, ImageEnhance | |
""" |