Skip to content

Instantly share code, notes, and snippets.

@echo off
REM Save this file i.e. to your Desktop. Whenever you want to disable Vanguard,
REM simply run it as Administrator.
REM If you run VALORANT while VGK is deactivated it will re-install it and ask you to reboot.
REM You can adjust the path to Vanguard here:
set VGK_PATH="C:\Program Files\Riot Vanguard\vgk.sys"
@nezza
nezza / peak.py
Created December 10, 2019 13:01
#!/usr/bin/env python3
import numpy as np
import cv2 as cv
from matplotlib import pyplot as plt
import sys
imagename = sys.argv[1]
imgcol = cv.imread(imagename)
#!/usr/bin/env python3
# Simple python code to show how easy it is to generate
# a Bitcoin address using Python.
# Does not store or export the private key!
# Implemented according to https://en.bitcoin.it/wiki/Technical_background_of_version_1_Bitcoin_addresses
import ecdsa
(lldb) bt
* thread #1, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0x112006dc8)
* frame #0: 0x00000001023a3e0e QtGui`QTextLayout::~QTextLayout() + 14
frame #1: 0x00000001023ca442 QtGui`QTextDocumentPrivate::clear() + 1282
frame #2: 0x00000001023bd9ea QtGui`QTextDocument::setPlainText(QString const&) + 74
frame #3: 0x0000000101ed9af0 QtWidgets`QWidgetTextControlPrivate::setContent(Qt::TextFormat, QString const&, QTextDocument*) + 992
frame #4: 0x0000000101e8f110 QtWidgets`QTextEdit::setText(QString const&) + 80
frame #5: 0x00000001000a68e9 cutter`HexdumpWidget::refresh(unsigned long long) + 457
frame #6: 0x00000001029c8a81 QtCore`QMetaObject::activate(QObject*, int, int, void**) + 913
frame #7: 0x00000001000ccbaf cutter`CutterCore::seekChanged(unsigned long long) + 63
(lldb) bt
* thread #1, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=EXC_I386_GPFLT)
* frame #0: 0x000000010282482b QtCore`QHashData::rehash(int) + 395
frame #1: 0x00000001023440dc QtGui`QHash<QPixmapCache::Key, QCache<QPixmapCache::Key, QPixmapCacheEntry>::Node>::insert(QPixmapCache::Key const&, QCache<QPixmapCache::Key, QPixmapCacheEntry>::Node const&) + 300
frame #2: 0x00000001023439df QtGui`QCache<QPixmapCache::Key, QPixmapCacheEntry>::insert(QPixmapCache::Key const&, QPixmapCacheEntry*, int) + 367
frame #3: 0x000000010234132c QtGui`QPMCache::insert(QString const&, QPixmap const&, int) + 812
frame #4: 0x00000001091edc7e libqsvgicon.dylib`QSvgIconEngine::pixmap(QSize const&, QIcon::Mode, QIcon::State) + 1102
frame #5: 0x00000001091ed2ca libqsvgicon.dylib`QSvgIconEngine::actualSize(QSize const&, QIcon::Mode, QIcon::State) + 506
frame #6: 0x000000010234a3af QtGui`QIcon::actualSize(QWindow*, QSize const&, QIcon::Mode, QIcon::State) const + 207
frame #7: 0x00
2.2.0-602-g70bd99da2 r2
2.2.0-602-g70bd99da2 r_anal
2.2.0-602-g70bd99da2 r_lib
2.2.0-602-g70bd99da2 r_egg
2.2.0-602-g70bd99da2 r_asm
2.2.0-602-g70bd99da2 r_bin
2.2.0-602-g70bd99da2 r_cons
2.2.0-602-g70bd99da2 r_flag
2.2.0-602-g70bd99da2 r_core
2.2.0-602-g70bd99da2 r_crypto
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
char * psdk_authorize(const char *clientid,const char *requestid, char * clientsicret, int wait) {
int bufsize = 87 + strlen (clientid) + strlen (requestid);
printf("Going to allocate: %d\n", bufsize);
char * buff = (char *)malloc(bufsize);
Caller code:
char *password = NULL;
if (arg_console)
if ((tty_fd = acquire_terminal("/dev/console", false, false, false, (usec_t) -1)) < 0) {
r = tty_fd;
goto finish;
}
r = ask_password_tty(message, not_after, filename, &password);
@nezza
nezza / gist:2394361
Created April 15, 2012 19:07
Extractor for GoPro camera firmwares.
/* This tool extracts the sections of a supplied GoPro
* firmware image.
*
* It creates the following files in the current directory:
* bst.bin, bld.bin, pri.bin, rom.bin, dsp.bin
*
* It also shows the expected CRC32 checksum of the section and shows
* where it will be written on the device, you can use this address as
* ROM address and load address in IDA Pro.
*
object(CI_DB_mysql_driver)#12 (66) {
["dbdriver"]=>
string(5) "mysql"
["_escape_char"]=>
string(1) "`"
["delete_hack"]=>
bool(true)
["_count_string"]=>
string(19) "SELECT COUNT(*) AS "
["_random_keyword"]=>