Skip to content

Instantly share code, notes, and snippets.

thatreguy / sshd_config
Last active Feb 19, 2020
Windows OpenSSH server survival tips
View sshd_config
# This is the sshd server system-wide configuration file. See
# sshd_config(5) for more information.
# The strategy used for options in the default sshd_config shipped with
# OpenSSH is to specify options with their default value where
# possible, but leave them commented. Uncommented options override the
# default value.
#Port 22
#AddressFamily any
thatreguy /
Last active Nov 8, 2019 — forked from kizbitz/
Get the list of images and tags for a Docker Hub user account.
# Example for the Docker Hub V2 API
# Returns all imagas and tags associated with a Docker Hub user account.
# Requires 'jq':
# set username and password
thatreguy / ring0.asm
Created Dec 15, 2018 — forked from majioa/ring0.asm
Getting the Ring0 level for x86 processor series (guess i386, i486, and may be next generations)
View ring0.asm
;Как получить привелегию Ring 0
;Автор: The GSGR
;Иногда это нужно для доступа к портам выше $FF, таких как IDE контроллер и т.д.
.model flat
.radix 16
Ring_0_CS_32 = 28
thatreguy / ring_call_gate.asm
Last active Dec 15, 2018
Ring Switcher using call and trap gates nasm -f bin -o ring_x_gate.img ring_x_gate.asm
View ring_call_gate.asm
%define SEL_RING_0_CODE 0x0008
%define SEL_RING_0_DATA 0x0010
%define SEL_RING_1_CODE (0x0018 | 0x0001)
%define SEL_RING_1_DATA (0x0020 | 0x0001)
%define SEL_RING_2_CODE (0x0028 | 0x0002)
%define SEL_RING_2_DATA (0x0030 | 0x0002)
%define SEL_RING_3_CODE (0x0038 | 0x0003)