Skip to content

Instantly share code, notes, and snippets.

sskras / pkgsrc-2f16fa8-zig-build-fails-in-libunwind.txt
Last active July 13, 2023 12:01
pkgsrc (2f16fa8) fails in `libunwind`
# 1, clone Git repo:
$ git clone
$ cd pkgsrc
# 2, Bootstrap in unprivileged way:
$ bootstrap/bootstrap --unprivileged
# 3, Update PATH in the environment:
sskras / cleanup-win10.ps1
Created July 12, 2023 07:32 — forked from halkyon/cleanup-win10.ps1
Cleanup Windows 10 Powershell script
## Windows 10 cleanup script.
## Remove dodgy tracking settings, unneeded services, all apps, and optional features that come with Windows 10. Make it more like Windows 7.
## NOTE: this was tested on Creators Update (1703) and Fall Creators Update (1709). Some of this may not work as expected on newer versions.
## Instructions
## 1. Run this script (under Powershell as Administrator):
## powershell -ExectionPolicy Bypass .\cleanup-win10.ps1
## 2. Let it run through, you may see a few errors, this is normal
## 3. Reboot
sskras / windows_hardening.cmd
Created June 17, 2023 08:18 — forked from mackwage/windows_hardening.cmd
Script to perform some hardening of Windows OS
:: Windows 10 Hardening Script
:: This is based mostly on my own personal research and testing. My objective is to secure/harden Windows 10 as much as possible while not impacting usability at all. (Think being able to run on this computer's of family members so secure them but not increase the chances of them having to call you to troubleshoot something related to it later on). References for virtually all settings can be found at the bottom. Just before the references section, you will always find several security settings commented out as they could lead to compatibility issues in common consumer setups but they're worth considering.
:: Obligatory 'views are my own'. :)
:: Thank you @jaredhaight for the Win Firewall config recommendations!
:: Thank you @ricardojba for the DLL Safe Order Search reg key!
:: Thank you @jessicaknotts for the help on testing Exploit Guard configs and checking privacy settings!
:: Best script I've found for Debloating Windows 10:
sskras / Backdoor-Minimalist.sct
Created May 31, 2023 05:45 — forked from enigma0x3/Backdoor-Minimalist.sct
Execute Remote Scripts Via regsvr32.exe - Referred to As "squiblydoo" Please use this reference...
<?XML version="1.0"?>
classid="{F0001111-0000-0000-0000-0000FEEDACDC}" >
<!-- Proof Of Concept - Casey Smith @subTee -->
<!-- License: BSD3-Clause -->
<script language="JScript">
sskras / stuns
Created December 24, 2022 18:12 — forked from zziuni/stuns
STUN server list
# source :
# A list of available STUN server.
sskras /
Created December 18, 2022 23:44 — forked from catchdave/
CLI script to programmatically replace SSL certs on Synology NAS
# *** For DSM v7.x ***
# How to use this script:
# 1. Get your 3 PEM files ready to copy over from your local machine/update server (privkey.pem, fullchain.pem, cert.pem)
# and put into a directory (this will be $CERT_DIRECTORY).
# 2. Ensure you have a user setup on synology that has ssh access (and ssh access is setup).
# This user will need to be able to sudo as root (i.e. add this line to sudoers, <USER> is the user you create):
# <USER> ALL=(ALL) NOPASSWD: /var/services/homes/<USER>/
sskras /
Created November 13, 2022 18:50 — forked from willurd/
Big list of http static server one-liners

Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.

Discussion on reddit.

Python 2.x

$ python -m SimpleHTTPServer 8000
sskras / bash & nc chat
Created October 23, 2022 20:56 — forked from wrfly/bash & nc chat
A simple chat script
# A little chat progream via ncat
# Author:wrfly Date:2015.7
# Usage:
# Server: ncat -e -lk &
# Client: ncat server_ip

I've been following this nstx tutorial. I set up a server on It's set up to use the tun1 interface there. See also this tutorial for iodine.

Since the server is also a shadow DNS master for several domains I compiled a custom nstxd that listens on port 5252/udf instead of 53/udp. So these are the listening processes:

$ sudo netstat -ldnp | grep :5[23]