Skip to content

Instantly share code, notes, and snippets.

@Sarkie
Sarkie / Scan-LOLDrivers.ps1
Last active May 24, 2023 11:18 — forked from MHaggis/Scan-LOLDrivers.ps1
added a few more error catches and logging etc + added drivers.json on disk support
function Scan-LOLDrivers {
param(
[Parameter(Mandatory = $true)]
[string]$path
)
Add-Type -TypeDefinition @"
using System;
using System.Security.Cryptography;
using System.Security.Cryptography.X509Certificates;
@Sarkie
Sarkie / Client.java
Created February 21, 2014 17:03
Sending Java Sealed Objects via Sockets
import java.net.InetSocketAddress;
import java.nio.channels.ServerSocketChannel;
import java.nio.channels.SocketChannel;
import javax.crypto.*;
import javax.crypto.spec.*;
import java.io.*;
import java.security.spec.*;
import java.security.*;
public class Client {