Skip to content

Instantly share code, notes, and snippets.

View scusi's full-sized avatar
🏠
Working from home

Florian Walther scusi

🏠
Working from home
View GitHub Profile
@scusi
scusi / colors.muttrc
Created February 17, 2022 09:36 — forked from LukeSmithxyz/colors.muttrc
Mutt example colors
# vim: filetype=neomuttrc
# Default index colors:
color index yellow default '.*'
color index_author red default '.*'
color index_number blue default
color index_subject cyan default '.*'
# For new mail:
color index brightyellow black "~N"
color index_author brightred black "~N"
@scusi
scusi / ldif-to-csv.sh
Created January 26, 2022 10:52 — forked from dansimau/ldif-to-csv.sh
Shell script that reads LDIF data from STDIN and outputs as CSV.
#!/bin/bash
#
# Converts LDIF data to CSV.
# Doesn't handle comments very well. Use -LLL with ldapsearch to remove them.
#
# 2010-03-07
# dsimmons@squiz.co.uk
#
# Show usage if we don't have the right params
@scusi
scusi / .muttrc
Created January 14, 2022 11:29 — forked from ramn/.muttrc
Muttrc example with GMail support
##
## IMAP CREDENTIALS
##
set smtp_url = "smtp://some_user@smtp.gmail.com:587/"
#set smtp_pass = "password"
set from = "someuser@example.com"
set realname = "Some User"
##
## IMAP SETTINGS
@scusi
scusi / desinfect_install.sh
Last active December 30, 2021 10:29 — forked from allenyllee/install_tools.sh
mount vhdx in linux
#!/bin/bash
#
# this shell script will install nbd-client package on desinfect
#
cd ~/Downloads
echo "[*] download nbd-client package for AMD64 architecture"
wget -O -J http://de.archive.ubuntu.com/ubuntu/pool/universe/n/nbd/nbd-client_3.20-1_amd64.deb
echo "[*] install nbd-client package"
sudo dpkg -i nbd-client_3.20-1_amd64.deb
echo "[*] delete downloaded package file"
@scusi
scusi / log-forwarding-with-etw.ps1
Created November 20, 2021 08:50 — forked from ajpc500/log-forwarding-with-etw.ps1
Quick-and-dirty PowerShell script to install Sysmon (SwiftOnSecurity config), SilkService and Winlogbeat, and forward logs to HELK based on IP set in environment variable "HELK_IP" (see Line 224).
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
$wc = New-Object System.Net.WebClient
if (!(Test-Path "C:\Tools")) {
New-Item -Path "C:\" -Name "Tools" -ItemType "directory"
}
# SYSMON
# Download Sysmon
$SysmonDirectory = "C:\Tools\Sysmon\"