403Webshell
Server IP : 82.208.35.60  /  Your IP : 216.73.216.89
Web Server : Apache/2.4.55 (FreeBSD) OpenSSL/1.1.1q-freebsd PHP/7.3.31
System : FreeBSD server7.d2m.cz 12.4-RELEASE-p9 FreeBSD 12.4-RELEASE-p9 GENERIC amd64
User : studiokobylisy_cz ( 1008)
PHP Version : 7.3.31
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /usr/ports/net/ntopng/files/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/ports/net/ntopng/files/patch-httpdocs_misc_ntopng-add-user.sh
--- httpdocs/misc/ntopng-add-user.sh.orig	2020-06-15 13:08:57 UTC
+++ httpdocs/misc/ntopng-add-user.sh
@@ -111,13 +111,13 @@ function validate_username {
 
 function password_md5 {
     #make sure the md5 utility works as expected
-    local admin_md5=`echo -n admin | md5sum | cut -c 1-32`
+    local admin_md5=`echo -n admin | md5 | cut -c 1-32`
     if [[ $admin_md5 != "21232f297a57a5a743894a0e4a801fc3" ]]
     then
 	echo "md5sum not working as expected"
 	return 1
     fi
-    NTOPNG_PASSWORD_MD5=`echo -n $NTOPNG_PASSWORD | md5sum | cut -c 1-32`
+    NTOPNG_PASSWORD_MD5=`echo -n $NTOPNG_PASSWORD | md5 | cut -c 1-32`
     return 0
 }
 

Youez - 2016 - github.com/yon3zu
LinuXploit