Skip to content

Instantly share code, notes, and snippets.

View virtualdxs's full-sized avatar

Dessa Simpson virtualdxs

View GitHub Profile
@r15ch13
r15ch13 / iommu.sh
Last active May 5, 2024 18:26
List IOMMU Groups and the connected USB Devices
#!/usr/bin/env bash
shopt -s nullglob
lastgroup=""
for g in `find /sys/kernel/iommu_groups/* -maxdepth 0 -type d | sort -V`; do
for d in $g/devices/*; do
if [ "${g##*/}" != "$lastgroup" ]; then
echo -en "Group ${g##*/}:\t"
else
echo -en "\t\t"
@matterpreter
matterpreter / CyrillicSwap.cs
Created April 21, 2020 13:35
Swap Latin characters to Cyrillic lookalikes
public static void CyrillicSwap(string latinString)
{
Console.OutputEncoding = Encoding.UTF8;
Dictionary<string, string> CyrDict = new Dictionary<string, string>()
{
{"a", "а"}, // \u0430
{"c", "с"}, // \u0441
{"e", "е"}, // \u0435
{"o", "о"}, // \u043e
{"p", "р"}, // \u0440
@thomasfr
thomasfr / autossh.service
Last active May 9, 2024 16:59
Systemd service for autossh
[Unit]
Description=Keeps a tunnel to 'remote.example.com' open
After=network.target
[Service]
User=autossh
# -p [PORT]
# -l [user]
# -M 0 --> no monitoring
# -N Just open the connection and do nothing (not interactive)