Skip to content

Instantly share code, notes, and snippets.

@nosmall
nosmall / Win_Server_2022_Evaluation_to_full_version.md
Created April 16, 2023 11:11
Upgrade Windows Server 2022 Evaluation (Eval) to Full Version Standard or Datacenter
@Fluepke
Fluepke / telekom_msisdn.py
Created December 9, 2019 17:40
Very simple PoC to retrieve a telekom germany subscribers' phone number
import json
import requests
from urllib.parse import urlparse, parse_qs
headers = {
'User-Agent': 'MeinMagenta/7.24 CFNetwork/1107.1 Darwin/19.0.0',
'Host': 'example.de', #sic! server does not look at Host header as it seems
}
params = (
@pm-hwks
pm-hwks / netcat.sh
Created August 21, 2019 07:03
[Netcat network test] Netcat commands to test bandwidth between 2 linux servers #netcat #perf-test #linux #network
## Netcat server command
nc -l <unused port # > /dev/null
eg:
nc -l 1122 > /dev/null
## Netcat Client command
dd if=/dev/zero bs=9100004096 count=1 | nc <netcat server> <netcat port>
eg:
dd if=/dev/zero bs=9100004096 count=1 | nc 10.0.1.251 1122

Install MSYS2: http://www.msys2.org/

upgrade

pacman -Syu

You might need to run it again (it tells you to)

pacman -Su
@mgerdts
mgerdts / README.md
Last active July 26, 2024 17:12
Install windows with bhyve

These are bare-bones instructions for creating a Windows image for bhyve on SmartOS. You will need a platform image that has the fix for OS-7117. Platform images that I've used in testing are here: iso tgz usb

Create a volume that will be the disk.

zfs create -o volblocksize=4k -V 16g -s zones/hdd-windows

This script will be used for booting from the CD.

@mgerdts
mgerdts / README.md
Last active January 13, 2022 16:14
bhyve on SmartOS

Introduction

The following options that aren't in the kvm brand should work:

  • com1, com2
    • Can be set to tty-like devices or socket,/some/path.
    • If both are unset, com1 defaults to /dev/zconsole and com2 defaults to /tmp/vm.ttyb.
  • bootrom
    • Should be set to /usr/share/bhyve/BHYVE_UEFI.fd or /usr/share/bhyve/BHYVE_UEFI_CSM.fd
  • Defaults to /usr/share/bhyve/BHYVE_UEFI_CSM.fd

## Connect to server

$ USERNAME='yourmail@address.tld'
$ SERVER='yoursieveserver'
$ sieve-connect --server ${SERVER} --user ${USERNAME}

Help

@sq3
sq3 / autocommit.sh
Created April 27, 2017 12:41
Auto-commit on inotify change triggerd by systemd.path
#!/bin/bash
REPO_PATH=$1
cd $REPO_PATH
git=$(which git)
git add -A && git commit -m "Scripted auto-commit on change triggerd by systemd.path"
@alirobe
alirobe / reclaimWindows10.ps1
Last active July 3, 2024 09:36
This Windows 10 Setup Script turns off a bunch of unnecessary Windows 10 telemetery, bloatware, & privacy things. Not guaranteed to catch everything. Review and tweak before running. Reboot after running. Scripts for reversing are included and commented. Fork of https://github.com/Disassembler0/Win10-Initial-Setup-Script (different defaults). N.…
###
###
### UPDATE: For Win 11, I recommend using this tool in place of this script:
### https://christitus.com/windows-tool/
### https://github.com/ChrisTitusTech/winutil
### https://www.youtube.com/watch?v=6UQZ5oQg8XA
### iwr -useb https://christitus.com/win | iex
###
###