From 915292ce8f9a141f338c0fac052724564c675f52 Mon Sep 17 00:00:00 2001 From: Robert Jordan Date: Sun, 28 Mar 2021 19:25:33 -0400 Subject: [PATCH] Fix missing continue; Add Resource.rc * Add file version info (v1.0.0.0) * Fix missing continue; in do_unhash() len == 0 condition * Minor updates to README.md --- README.md | 4 ++-- unhash_name/Resource.rc | Bin 0 -> 4664 bytes unhash_name/resource.h | 14 ++++++++++++++ unhash_name/unhash_name.cpp | 1 + unhash_name/unhash_name.vcxproj | 6 ++++++ 5 files changed, 23 insertions(+), 2 deletions(-) create mode 100644 unhash_name/Resource.rc create mode 100644 unhash_name/resource.h diff --git a/README.md b/README.md index e5dc7b4..ecce088 100644 --- a/README.md +++ b/README.md @@ -14,12 +14,12 @@ arguments: POST constant ASCII name postfix MAX maximum character length to test MIN minimum character length to test - CHARSET list of characters for pattern (accepts ranges and '\\' escapes) + CHARSET list of characters for pattern (accepts ranges and '\' escapes) ``` Charset is defined similarly to a Regex range: *(`[a-z_]`)*. For example: `A-z` will be substituted with a range of all ASCII characters from `A` - `z`, *including* the symbols that appear between the upper and lowercase letters. -Characters *not* next to a dash will include only themselves. Use `\\` to define a backslash, and `\-` to define a dash. There is no error handling or checking for duplicate letters. +Characters *not* next to a dash will include only themselves. Use `\\` to define a backslash, and `\-` to define a dash. ### Examples diff --git a/unhash_name/Resource.rc b/unhash_name/Resource.rc new file mode 100644 index 0000000000000000000000000000000000000000..d53ca8fc850b8929c999c6ca32e02e4b990bbcb0 GIT binary patch literal 4664 zcmdUy+iu%N5QgWvK;MCpfiyuATdH%D%h;AxrLtvM2Q+{IA&HNGDjA}Lq(ELMFPY@~ zcQqy{QBJMoLIts0ayT>l&vBPuzwFqKC3a*t_TDBowv=&cQ)qo?sm<)I4SCzQ-?)@;_a;{FW2gL4hyDj+F(TiO!H3}AC|C6V=6TE!#q5~jD`nCp zcCVKk?s?a{S+k={i0+8`8xpCM97ya5F(2{fb=cu4R%L2WOR^x%)znS!*P}vhoul!U z9g%h;Q>;|$UhCMwxAwE?J+k(o;oG+HPGFp zR{ykT=nl)`_)`T|?ciPRHp{B}JT>rl_HICx1aFPVv+I{M8)4_9?AelxTx5>V5%6T`%S` znYX%}XHGy^#E^ZD{j$jAE0@>4x@#N1$}<%ZOo_KnW>-Y$2Fosp(+I5Ng=#F<=2cPD zDod*NGFbGEd$F!FnX=yGUw!TqN1buxg9^BH7P@7(8`;0)-CN!+plk1_kSns~Dx6g( z_8U=B=NfYi#qvHmRV%Flxb{Zzak_R{BMp?c{x z2(*t&Qv$Yle(7LalPkfpXw`ZMixuq1YMjQaccVNW<(4ZObk3LrT*D=w>lEe|ZNvAG z@eutj_^+^d7-D-%RAUUUS=G@i>cuaKea2I#(BB1Y`fqv7+k{F}Zs;^zWz-&or9EF; z^&mtZb&rVS`B9rsSZ55<8UI7mdp$Y`NMer1?%`1?&c!Mz>R&%2vU7m1woEBjejmS0 z?)iSQSXvh_y1A5FY_oi>sbg_=lh60q~5vw|GXS`Y5E3k CODwDa literal 0 HcmV?d00001 diff --git a/unhash_name/resource.h b/unhash_name/resource.h new file mode 100644 index 0000000..7ca31da --- /dev/null +++ b/unhash_name/resource.h @@ -0,0 +1,14 @@ +//{{NO_DEPENDENCIES}} +// Microsoft Visual C++ generated include file. +// Used by Resource.rc + +// Next default values for new objects +// +#ifdef APSTUDIO_INVOKED +#ifndef APSTUDIO_READONLY_SYMBOLS +#define _APS_NEXT_RESOURCE_VALUE 101 +#define _APS_NEXT_COMMAND_VALUE 40001 +#define _APS_NEXT_CONTROL_VALUE 1001 +#define _APS_NEXT_SYMED_VALUE 101 +#endif +#endif diff --git a/unhash_name/unhash_name.cpp b/unhash_name/unhash_name.cpp index fba5d54..83ace3d 100644 --- a/unhash_name/unhash_name.cpp +++ b/unhash_name/unhash_name.cpp @@ -376,6 +376,7 @@ void do_unhash(unsigned long accum, if (crc == accum) { printf("\"%s%s\"\n", prefix, postfix); } + continue; } #ifndef BENCHMARK // large and unruly nested switch statements with diff --git a/unhash_name/unhash_name.vcxproj b/unhash_name/unhash_name.vcxproj index 1d7a2d4..655f2d5 100644 --- a/unhash_name/unhash_name.vcxproj +++ b/unhash_name/unhash_name.vcxproj @@ -171,6 +171,12 @@ + + + + + +