Skip to content

Instantly share code, notes, and snippets.

View therealdreg's full-sized avatar

Dreg therealdreg

View GitHub Profile
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Software\Synaptics\SynTP\TouchPadPS2TM1800]
"2FingerTapAction"=dword:00000002
[HKEY_LOCAL_MACHINE\SOFTWARE\Synaptics\SynTP\Win10]
"2FingerTapAction"=dword:00000002
;[HKEY_CURRENT_USER\Software\Synaptics\SynTPEnh\ZoneConfig\TouchPadPS2TM1800\2FHorizontalScrolling]
;"UserZoneFlags"=dword:00000005
;[HKEY_CURRENT_USER\Software\Synaptics\SynTPEnh\ZoneConfig\TouchPadPS2TM1800\2FVerticalScrolling]
push string generator x86 assembly shellcode malware exploits
#!/usr/bin/env python3
# by Dreg
import sys
def string_to_hex_chunks(input_string):
byte_array = input_string.encode('utf-8')
{
"version": "0.2.0",
"configurations": [
{
"name": "Pico Debug (Cortex-Debug)",
"cwd": "${workspaceFolder}",
"executable": "${command:cmake.launchTargetPath}",
"request": "launch",
"type": "cortex-debug",
"servertype": "openocd",
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\Directory\Background\shell]
[HKEY_CLASSES_ROOT\Directory\Background\shell\MSYS2]
[HKEY_CLASSES_ROOT\Directory\Background\shell\MSYS2\command]
@="\"C:\\msys64\\msys2_shell.cmd\" \"-here\""
[HKEY_CLASSES_ROOT\Directory\Background\shell\MSYS2 admin]
@therealdreg
therealdreg / masm32_bochs_macros
Last active July 27, 2023 19:13
Bochs masm32 macros for kernel debugging, magic breakpoint, E9 port hack, 8A00h 08AE0h
include \masm32\macros\macros.asm
include \masm32\include\masm32.inc
BochsPrintPW macro arg:VARARG
; https://c9x.me/x86/html/file_module_x86_id_222.html
; port e9 hack https://bochs.sourceforge.io/doc/docbook/user/bochsrc.html#AEN2523
nop
push eax
#!/usr/bin/env bash
# ~/.bash_profile
# alias gitsquash=~/gitsquash.sh
set -x
args=$*
if [ -z "$1" ]
#!/usr/bin/env python
# Python 2 !!! original: http://bones7456.googlecode.com/svn/trunk/SimpleHTTPServerWithUpload.py
"""Simple HTTP Server With Upload.
This module builds on BaseHTTPServer by implementing the standard GET
and HEAD requests in a fairly straightforward manner.
-
Modified by David Reguera Garcia aka Dreg for Cygwin Use (python 2)
#!/usr/bin/env bash
# ~/.bash_profile
# alias giterminator=~/giterminator.sh
set -x
args=$*
if [ -z "$1" ]
VirtualKD Redux windbg workspace name x86 command:
"C:\Program Files (x86)\Debugging Tools for Windows (x86)\windbg.exe" -Q -W x86 -b -k com:pipe,resets=0,reconnect,port=$(pipename)
Force load pdb:
!sym noisy
.symopt+0x40
https://blog.verslu.is/git/git-rebase/
https://github.blog/2015-06-08-how-to-undo-almost-anything-with-git/
https://raturi.in/blog/cleaning-git-repository/
https://stackoverflow.com/questions/9813816/git-pull-after-forced-update
https://stackoverflow.com/questions/7175869/managing-hotfixes-when-develop-branch-is-very-different-from-master
https://medium.com/swlh/squash-and-rebase-git-basics-5cb1be1e0dac
https://davitenio.wordpress.com/2008/09/27/git-merge-after-git-cherry-pick-avoiding-duplicate-commits/
GIT FLOW DAY: