commit 04aa75eaa2667a55777b76d0522160fdcbb9f36e
parent a01ff13d6bb654ebff50a966407de4c8c16d3f97
Author: Michael Constantine Dimopoulos <31562759+MichaelDim02@users.noreply.github.com>
Date: Sat, 5 Feb 2022 06:21:35 +0000
Merge pull request #4 from NicolasCARPi/php
Add PHP password_hash definite identification
Diffstat:
2 files changed, 4 insertions(+), 1 deletion(-)
diff --git a/src/main.c b/src/main.c
@@ -53,7 +53,7 @@ starts_with(const char *a, const char *b)
static void
dprint(char *name)
{
- printf("[" RED "+" RESET "] Definite identification %s\n", name);
+ printf("[" RED "+" RESET "] Definite identification: %s\n", name);
}
@@ -83,6 +83,8 @@ definite(char string[], int length)
dprint("SHA1 Django");
else if (length==65 && string[32]==':')
dprint("MD5 Joomla (pass:salt)");
+ else if (starts_with(string, "$2y$"))
+ dprint("PHP password_hash");
}
/* this function determines charset*/
diff --git a/src/select.c b/src/select.c
@@ -157,5 +157,6 @@ list(void)
"ARP1 \n"
"phpBB \n"
"SHA1 Django \n"
+ "PHP password_hash\n"
"MD5 Joomla (pass:salt)\n");
}