Secure77

Techblog and Security

gMSA Passwords

Doing one of the recent HTB Boxes i came across the tool https://nettools.net and learned how you can retrieve gMSA passwords with it: https://nettools.net/howto-retrieving-gmsa-password-details/ Additional to the howto from NetTools you can change the encoding for the desired attribute to only retrieve the current password this will print you only the current password as hex

Python TCP Server

Github Project: https://github.com/secure-77/PythonTCPServer Features easy to extend YAML configuration Implement commands or scripts via configuration simple authentication simple brute force protection server logging client timeout dynamic help (list commands from config) passthrough command output to client Requirements (tested with python 3.9 and pyyaml 5.1) Configuration Just adjust the config.yaml, make sure the port is open

Python Cheat Sheet

SMTP Mailer Web Server

Energiesschema remote ändern

Windows hat eine eigenartige Angewohnheit, selbst bei aktiven Zugriff auf Festplatten (z.B. per Netzwerkfreigabe) oder VMs (Hyper-V) welche aktiv etwas machen, wechselt Windows in den Sleep Modus, wenn der Energiesparmodus aktiviert ist. Das ist natürlich eher unpraktisch wenn man gerade dabei ist via Remote Desktop auf einer VM zu arbeiten und dann das Hostsystem in

WOL über PowerShell

Hier ein kleines Script über welches man ein Gerät im Netzwerk „aufwecken“ kann. Der original Quellcode kommt von dieser Seite: itnator Da ich nur ein Gerät aufwecken möchte und kein Inputfile haben wollte, hab ich den Code leicht angepasst. Da ein WOL Packet immer an eine Broadcast Adresse geschickt wird, muss diese in dem Script