Skip to content

Instantly share code, notes, and snippets.

@philsmd
philsmd / rar3_hp_V2.pl
Created May 14, 2020 16:17
rar3_hp_V2.pl
#!/usr/bin/env perl
# Author: philsmd
# Date: May 2020
# License: public domain, credits go to philsmd and hashcat and JTR (Jim Fougeron & magnum)
# Version: V2, with little speed-up, updated 2020-05-14
use warnings;
use strict;
@philsmd
philsmd / m13400_cl.diff
Created November 10, 2017 09:04
for hashcat #1437, keepass WUA
diff --git a/OpenCL/m13400.cl b/OpenCL/m13400.cl
index 77320ab..b45a054 100644
--- a/OpenCL/m13400.cl
+++ b/OpenCL/m13400.cl
@@ -44,7 +44,12 @@ __kernel void m13400_init (__global pw_t *pws, __global const kernel_rule_t *rul
digest[6] = ctx.h[6];
digest[7] = ctx.h[7];
- if (esalt_bufs[digests_offset].version == 2 && esalt_bufs[digests_offset].keyfile_len == 0)
+ u32 keyfile_len = esalt_bufs[digests_offset].keyfile_len;
#!/usr/bin/env perl
# Author: philsmd (for hashcat)
# License: public domain
# Date: January 2017
use strict;
use warnings;
use Crypt::PBKDF2;
@philsmd
philsmd / lzma_sdk_use.c
Last active January 13, 2017 22:05
A proof of concept/test of what is needed for LZMA/LZMA2 decompression for -m 11600 = 7-Zip in hashcat
// author: philsmd
// date: January 13, 2017
// license: public domain
#include <stdio.h>
// extract the 7z-SDK - aka LZMA SDK - (http://www.7-zip.org/sdk.html) into lzma_sdk/
#include "lzma_sdk/C/Alloc.h"
#include "lzma_sdk/C/LzmaDec.h"