Skip to content

Instantly share code, notes, and snippets.

Sh1n0g1 Sh1n0g1

Block or report user

Report or block Sh1n0g1

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
Sh1n0g1 / Helloworld_C_Sharp.ps1
Created Aug 26, 2017
Run C# code in PowerShell
View Helloworld_C_Sharp.ps1
using System;
namespace Helloworld
public static class Hello{
public static void Main(){
Sh1n0g1 / Play-ShinoTone
Created Aug 25, 2017
Powershell-based piano using the Console Beep.
View Play-ShinoTone
Function Play-ShinoTone{
$keytone=@{ #
'a'=261.63*$octave; # C
'w'=277.18*$octave; # C#
's'=293.66*$octave; # D
'e'=311.13*$octave; # D#
'd'=329.63*$octave; # E
'f'=349.23*$octave; # F
Sh1n0g1 / Get-ActiveTime.ps1
Created Aug 25, 2017
Get the active time from Eventlog, login event.
View Get-ActiveTime.ps1
ForEach($w in $Weekday){
0..23 | % {$LoginData[$w][$_]=0}
#Get the data from Eventlog
Sh1n0g1 /
Created Jul 5, 2017
Encrypt/Decrypt RC4 by a String Key
import sys
def rc4init(key):
box = range(256)
for i in range(256):
x = (x + box[i] + ord(key[i % len(key)])) % 256
box[i], box[x] = box[x], box[i]
return box
Sh1n0g1 /
Created Jun 27, 2017
Detect the malware upload on VT without API key
while :
result=$(wget -qO- $url );
if [ "$reslen" -lt "1000" ] ; then
echo "VirusTotal blocks us!";
Sh1n0g1 / ja.json
Created May 2, 2017
Japanese Keyboard Map for Bash Bunny
View ja.json
"__comment":"Thanks to WireShark + USBPcap!",
Sh1n0g1 / Play-Doremi.ps1
Last active Apr 16, 2019
Note Scale for PowerShell [console]::beep
View Play-Doremi.ps1
Sh1n0g1 / Play-Mario.ps1
Created Apr 20, 2017 — forked from davewilson/Play-Mario.ps1
Super Mario Theme in PowerShell
View Play-Mario.ps1
Function Play-Mario {
[System.Console]::Beep(659, 125);
[System.Console]::Beep(659, 125);
[System.Console]::Beep(659, 125);
[System.Console]::Beep(523, 125);
[System.Console]::Beep(659, 125);
[System.Console]::Beep(784, 125);
Sh1n0g1 / Open-CDTray.ps1
Created Mar 28, 2017
Open CD Tray by PowerShell
View Open-CDTray.ps1
$MemDef =@"
[DllImport("winmm.dll", CharSet = CharSet.Ansi)]
public static extern int mciSendStringA(
string lpstrCommand,
string lpstrReturnString,
int uReturnLength,
IntPtr hwndCallback
Sh1n0g1 / Write-RegistryValue.ps1
Created Mar 23, 2017
Write Registry Value (and Create key if needed)
View Write-RegistryValue.ps1
Write-RegistryValue -Path "HKCU:\Software\Sysinternals\Strings" -Name "EulaAccepted
function Write-RegistryValue{
param (
You can’t perform that action at this time.