houndsniff

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 7cbd8ed4b1dcf6e90c17ef8f594c5f7b8fd30e0d
parent 5c1b1d550d0d81c162340817482040d8447c7a21
Author: MichaelDim02 <31562759+MichaelDim02@users.noreply.github.com>
Date:   Tue, 20 Apr 2021 09:51:10 +0300

Add files via upload
Diffstat:
Msrc/main.c | 46++++++++++++++++++----------------------------
1 file changed, 18 insertions(+), 28 deletions(-)

diff --git a/src/main.c b/src/main.c @@ -11,7 +11,7 @@ * by Michael Constantine Dimopoulos et al */ -char version[4] = "1.6"; +char version[4] = "1.7"; /* has uppercase letters */ bool @@ -48,34 +48,24 @@ banner() void definite(char string[], int length) { - if (string[0]=='$' && string[1]=='P' && string[2]=='$'){ + if (string[0]=='$' && string[1]=='P' && string[2]=='$') printf("[+] Definite identification: Wordpress hash\n"); - exit(0); - } else if (string[0]=='$' && string[1]=='1' && string[2]=='$'){ - printf("[+] Definite identification: MD5 crypt(3)\n"); - exit(0); - } else if (string[0]=='$' && string[1]=='5' && string[2]=='$'){ - printf("[+] Definite identification: SHA256 crypt(3)\n"); - exit(0); - } else if (string[0]=='$' && string[1]=='6' && string[2]=='$'){ - printf("[+] Definite identification: SHA512 crypt(3)\n"); - exit(0); - } else if (string[length-1]=='=') { - printf("[+] Definite identification: Base64\n"); - exit(0); - } else if (string[0]=='$' && string[1]=='a' && string[2]=='p' && string[3]=='r' && string[4]=='1' && string[5]=='$'){ - printf("[+] Definite identification: APR1\n"); - exit(0); - } else if (string[0]=='$' && string[1]=='H' && string[2]=='$') { - printf("[+] Definite identification: phpBB\n"); - exit(0); - } else if (string[0]=='s' && string[1]=='h' && string[2]=='a' && string[3]=='1' && string[4]=='$'){ - printf("[+] Definite identification: SHA1 Django\n"); - exit(0); - } else if (length==65 && string[32]==':') { - printf("[+] Definite identification: MD5 Joomla (pass:salt)\n"); - exit(0); - } + else if (string[0]=='$' && string[1]=='1' && string[2]=='$') + printf("[+] Definite identification: MD5 crypt(3)\n"); + else if (string[0]=='$' && string[1]=='5' && string[2]=='$') + printf("[+] Definite identification: SHA256 crypt(3)\n"); + else if (string[0]=='$' && string[1]=='6' && string[2]=='$') + printf("[+] Definite identification: SHA512 crypt(3)\n"); + else if (string[length-1]=='=') + printf("[+] Definite identification: Base64 or Base32\n"); + else if (string[0]=='$' && string[1]=='a' && string[2]=='p' && string[3]=='r' && string[4]=='1' && string[5]=='$') + printf("[+] Definite identification: APR1\n"); + else if (string[0]=='$' && string[1]=='H' && string[2]=='$') + printf("[+] Definite identification: phpBB\n"); + else if (string[0]=='s' && string[1]=='h' && string[2]=='a' && string[3]=='1' && string[4]=='$') + printf("[+] Definite identification: SHA1 Django\n"); + else if (length==65 && string[32]==':') + printf("[+] Definite identification: MD5 Joomla (pass:salt)\n"); } /* this function determines charset (used later for identification)*/