K2LL33D SHELL

 Apache/2.4.7 (Ubuntu)
 Linux sman1baleendah 3.13.0-24-generic #46-Ubuntu SMP Thu Apr 10 19:11:08 UTC 2014 x86_64
 uid=33(www-data) gid=33(www-data) groups=33(www-data)
 safemode : OFF
 MySQL: ON | Perl: ON | cURL: OFF | WGet: ON
  >  / usr / lib / php5 /
server ip : 104.21.89.46

your ip : 172.70.126.95

H O M E


Filename/usr/lib/php5/sessionclean
Size347
Permissionrwxr-xr-x
Ownerroot : root
Create time27-Apr-2025 10:11
Last modified23-Apr-2019 02:48
Last accessed05-Jul-2025 15:39
Actionsedit | rename | delete | download (gzip)
Viewtext | code | image
#!/bin/sh

# first find all used files and touch them (hope it's not massive amount of files)
[ -x /usr/bin/lsof ] && /usr/bin/lsof -w -l +d "${1}" | awk -- '{ if (NR > 1) { print $9; } }' | xargs -i touch -c {}

# find all files older then maxlifetime
find "${1}" -depth -mindepth 1 -maxdepth 1 -ignore_readdir_race -type f -cmin "+${2}" -delete