Skip to content

Instantly share code, notes, and snippets.

View danieldonda's full-sized avatar
:octocat:
Getting out of my comfort zone

Daniel Donda danieldonda

:octocat:
Getting out of my comfort zone
View GitHub Profile
@danieldonda
danieldonda / vulnerability_check.sh
Created April 5, 2024 11:35 — forked from araujo88/vulnerability_check.sh
Check for liblzma vulnerability in sshd
#!/bin/bash
set -u
set -x # Print commands and their arguments as they are executed.
# find path to liblzma used by sshd
path="$(ldd $(which sshd) | grep liblzma | grep -o '/[^ ]*')" || echo "liblzma not found for sshd"
# If the path is empty, the script will now continue instead of exiting due to set -e being removed.
if [ "$path" == "" ]
@danieldonda
danieldonda / Add-TestUsers.ps1
Created April 5, 2024 11:11 — forked from tylerapplebaum/Add-TestUsers.ps1
Create test users in Active Directory with realistic data from https://randomuser.me
<#
.SYNOPSIS
Create realistic-looking Active Directory accounts.
Written by Tyler Applebaum.
Version 0.2
Last Updated Jun 17 2020
.LINK
https://gist.github.com/tylerapplebaum/d692d9d2e1335b8b111927c8292c5dac
https://randomuser.me/