Skip to content

Instantly share code, notes, and snippets.

@ra2003
ra2003 / poc-python-parso.py
Created December 23, 2021 11:05 — forked from dhondta/README.md
Proof-of-Concept for Python parso Cache Load Vulnerability (CVE-2019-12760)
#!/usr/bin/python
import parso
import pickle
import random
import shutil
import threading
from hashlib import sha256
from os import makedirs, remove, system
from os.path import dirname, exists, join
from six import b, u
@ra2003
ra2003 / output-debug-string-handler.cpp
Created December 16, 2021 20:22 — forked from t-mat/output-debug-string-handler.cpp
Win32 : Console DbgView - OuputDebugString handler
// https://blogs.msdn.microsoft.com/reiley/2011/07/29/a-debugging-approach-to-outputdebugstring/
//
// http://www.codeproject.com/Articles/23776/Mechanism-of-OutputDebugString
// http://www.unixwiz.net/techtips/outputdebugstring.html
// https://sumeshvv.wordpress.com/2010/12/02/how-the-outputdebugstring-api-works/
#include <windows.h>
#include <tchar.h>
#include <stdio.h>
#include <string>
#include <functional>
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\Software\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_HTTP_USERNAME_PASSWORD_DISABLE]
"iexplore.exe"=dword:0
[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\Internet Explorer]
"Information Bar"=dword:0
[HKEY_LOCAL_MACHINE\Software\Microsoft\Internet Explorer]
"New Windows"=dword:0
/*
Change Log:
v1.12 (2017-01-18) - Fixed OnExit not exiting
v1.11 (2017-01-17) - Added an internal function Ensure_Admin_And_Compiled()
v1.10 (2015-10-22) - Added support for sending characters that needs to press {shift} key, such as "@" or "A".
v1.00 (2015-07-25)
Dependency files:
WinRing0_v1.3.1.19.zip -- https://drive.google.com/file/d/0B7yNOlCgfluzMTE2UFc2ZHp5Z1E/view?usp=sharing
#Author: Jonathan Johnson
# This script will install various different debugging tools.
#Pre-Reqs
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
New-Item -Path "c:\" -Name "Tools" -ItemType "directory"
New-Item -Path "c:\Tools" -Name "APIMonitor" -ItemType "directory"
New-Item -Path "c:\Tools" -Name "WindowsSDK" -ItemType "directory"
New-Item -Path "c:\Tools" -Name "IDAPro" -ItemType "directory"
@ra2003
ra2003 / contacts_query.sh
Created October 14, 2021 11:26 — forked from agoldst/contacts_query.sh
Query macOS contacts for mutt
#!/bin/bash
#
# contacts_query.sh
# Andrew Goldstone, July 2017. All yours to use or modify, but no promises.
#
# The mutt e-mail client has an option to query an external address book for
# e-mail addresses. On a Mac it is nice to be able to query the Address Book
# (now known as Contacts). For a while I used a utility called contacts
# (http://gnufoo.org/contacts) but this stopped working under Sierra. There is
# an official API for querying Contacts as a unified datastore, but it is only
@ra2003
ra2003 / Markdown-docs.md
Created September 4, 2021 18:50 — forked from Jekins/Markdown-docs.md
Руководство по оформлению Markdown файлов

Настоящий документ предназначен для ознакомления пользователя с функциональными возможностями языка разметки Markdown. Markdown – это облегченный язык разметки, который является инструментом преобразования кода в HTML. Главной особенностью данного языка является максимально простой синтаксис, который служит для упрощения написания и чтения кода разметки, что, в свою очередь, позволяет легко его корректировать. Теперь рассмотрим более подробно функции языка разметки Markdown.

Markdown не является заменой HTML. Синтаксис Markdown достаточно ограничен, и соответствует лишь небольшому подмножеству элементов HTML. Он включает в себя следующие элементы:

  1. Блочные элементы
@ra2003
ra2003 / symbol_xml2db.py
Created August 23, 2021 11:54 — forked from tecoholic/symbol_xml2db.py
[GSoC] Python Script which converts the symbols XML file to a SQLite DB
#!/usr/bin/python
"""
/***************************************************************************
symbol_xml2db.py
-------------------
begin : 26-5-2012
copyright : (C) 2012 by Arunmozhi
email : aruntheguy at gmail dot com
***************************************************************************/
@ra2003
ra2003 / captcha-solver.py
Created August 5, 2021 16:38 — forked from lobstrio/captcha-solver.py
Solving (simple) Captcha, using PyTesseract, PIL, and Python 3
#!/usr/bin/python3
# coding: utf-8
import pytesseract
import os
import argparse
try:
import Image, ImageOps, ImageEnhance, imread
except ImportError:
from PIL import Image, ImageOps, ImageEnhance
@ra2003
ra2003 / windbg_detect_doublepulsar_smb.py
Created July 20, 2021 14:41 — forked from ntddk/windbg_detect_doublepulsar_smb.py
windbg-doublepulsar-detection-script
#!/usr/bin/env python
# coding: utf-8
import pykd
for i in pykd.dbgCommand('dps srv!SrvTransaction2DispatchTable').split('\n'):
if len(i) > 0 and '00000000' not in i and 'srv!' not in i: # addr addr symbol
print 'Doublepulsar hook detected: ' + i