Skip to content

Instantly share code, notes, and snippets.

View socketz's full-sized avatar
📵
I may be slow to respond.

socketz socketz

📵
I may be slow to respond.
View GitHub Profile
@socketz
socketz / random_secret.py
Created September 2, 2021 05:54
Generates a random secret key for Django or other kind projects.
#!/usr/bin/env python3
import secrets
import sys
import os
import argparse
RANDOM_STRING_CHARS = '''abcdefghijklmnñopqrstuvwxyzçáéíóúäëïöüâêîôûàèìòùåõýÿABCDEFGHIJKLMNÑOPQRSTUVWXYZÇÁÉÍÓÚÄËÏÖÜÂÊÎÔÛÀÈÌÒÙ0123456789!@$€¢¥£%^&*(-_=+)?¿¡^`´¬|~;,.·<>'"[]{}¨ƒ…†‡ˆ‰šžŠŽ‹›Œœ#«»ºª°±µÐæÆþ'''
class bcolors:
@fvoges
fvoges / binaries_download.sh
Last active November 3, 2023 11:33
Useful HashiCorp binaries scripts
#!/usr/bin/env bash -e
# Original source: https://gist.github.com/greenbrian/2e9e90d65c3d272c48b14dd3b3f19153
DEPS="curl jq unzip wget"
for cmd in $DEPS
do
if ! which -s $cmd
then
echo "$cmd command not found!"
echo "Ensure that you have the following tools installed and in your \$PATH: ${DEPS}"
@zznop
zznop / mem-loader.asm
Last active March 6, 2023 00:17
Fun little loader shellcode that executes an ELF in-memory using an anonymous file descriptor (inspired by https://x-c3ll.github.io/posts/fileless-memfd_create/)
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;
;;; Copyright (C), zznop, [email protected]
;;;
;;; This software may be modified and distributed under the terms
;;; of the MIT license. See the LICENSE file for details.
;;;
;;; DESCRIPTION
;;;
;;; This PoC shellcode is meant to be compiled as a blob and prepended to a ELF
@socketz
socketz / ipv4info.user.js
Last active December 30, 2018 07:24
IPv4info Export Tables to CSV
// ==UserScript==
// @namespace https://openuserjs.org/user/socketz
// @name ipv4info.user.js
// @description This script export ipv4info tables to CSV
// @copyright 2017, socketz (socketz.net)
// @license MIT; https://opensource.org/licenses/MIT
// @version 1.0.1
// @match *://ipv4info.com/*
// @match *://*.ipv4info.com/*
// @exclude http://ipv4info.com/tools/*
@haasn
haasn / about:config.md
Last active August 9, 2024 10:23
Firefox bullshit removal via about:config

Firefox bullshit removal

Updated: Just use qutebrowser (and disable javascript). The web is done for.

@MichaelLawton
MichaelLawton / gist:ee27bf4a0f591bed19ac
Last active February 23, 2021 09:17
Installing Maya 2015 SP5 on Ubuntu 14.04 LTS with Student License. I recommend using my new gist instead: https://gist.github.com/MichaelLawton/32ca5cf6145f0ca4a7ebcdc510d7447d
#References:
#http://forums.autodesk.com/t5/installation-licensing/installing-maya-on-ubuntu/td-p/4905036
#http://askubuntu.com/questions/392806/installing-maya-on-ubuntu-linux
#https://gist.github.com/insomniacUNDERSCORElemon/5555214
#http://nealbuerger.com/2013/05/ubuntu-13-04-maya-2014-install-script/
#http://www.nkoubi.com/blog/tutorial/how-to-install-autodesk-maya-2011-on-debian-ubuntu/
#http://help.autodesk.com/view/MAYAUL/2015/ENU/?guid=GUID-E7E054E1-0E32-4B3C-88F9-BF820EB45BE5
#http://www.andrewhazelden.com/blog/2014/10/autodesk-nlm-licensing-issues-with-maya-2015-and-max-2015/