Skip to content

Instantly share code, notes, and snippets.

@latsku
latsku / keygen.html
Created March 7, 2016 11:26
HTML key generator
<!DOCTYPE html>
<html>
<h1>Let's generate you a cert so you don't have to use a password!</h1>
Hit the Generate button and then install the certificate it gives you in your browser.
All modern browsers (except for Internet Explorer) should be compatible.
<form method="post">
<keygen name="pubkey" challenge="randomchars">
The username I want: <input type="text" name="username" value="Alice">
<input type="submit" name="createcert" value="Generate">
</form>
@latsku
latsku / Alinco_DJ-X11.txt
Last active June 10, 2017 09:06
A Serial control traffic capture from Alinco DJ-X11 wide band receiver
## A Serial control traffic capture from Alinco DJ-X11 wide band receiver.
[13/07/2016 00:09:11] Written data (COM4)
41 4c 7e 44 4a 2d 58 31 31 45 0d AL~DJ-X11E.
[13/07/2016 00:09:11] Read data (COM4)
41 4c 7e 44 4a 2d 58 31 31 45 0d 0d 0a 4f 4b 0d AL~DJ-X11E...OK.
0a .
@latsku
latsku / powershell-tcp-server.ps1
Last active January 25, 2024 09:10
Powershell TCP server
$endpoint = New-Object System.Net.IPEndPoint ([System.Net.IPAddress]::any, 1600)
$Listener = New-Object System.Net.Sockets.TcpListener $endpoint
$Listener.Start()
$client = $Listener.AcceptTcpClient()
$stream = $client.GetStream()
$stream.Write([text.Encoding]::Ascii.GetBytes("Hello Telnet World"), 0, 18)