Skip to content

Instantly share code, notes, and snippets.

View zhonghua7896321's full-sized avatar

zhonghua7896321 zhonghua7896321

View GitHub Profile
@zhonghua7896321
zhonghua7896321 / windows_hardening.cmd
Created November 16, 2022 12:51 — forked from ricardojba/windows_hardening.cmd
A Windows hardening script
::##########################################################################################################################
::
:: This script can ruin your day, if you run it without fully understanding what it does, you don't know what you are doing,
::
:: OR BOTH!!!
::
:: YOU HAVE BEEN WARNED!!!!!!!!!!
::
:: This script is provided "AS IS" with no warranties, and confers no rights.
:: Feel free to challenge me, disagree with me, or tell me I'm completely nuts in the comments section,
@zhonghua7896321
zhonghua7896321 / loadbalancer.py
Created September 9, 2022 01:26 — forked from zhouchangxun/loadbalancer.py
a simple loadbalancer implemention with python.
import sys
import socket
import select
import random
from itertools import cycle
# dumb netcat server, short tcp connection
# $ ~ while true ; do nc -l 8888 < server1.html; done
# $ ~ while true ; do nc -l 9999 < server2.html; done
SERVER_POOL = [('10.157.0.238', 8888)]