Author Topic: CentOS Web Panel detection  (Read 9207 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
CentOS Web Panel detection
« on: June 30, 2016, 05:57:54 AM »
Hello.

How I can detect CentOS Web Panel presence on machine and its version?

Thanks.

Offline
*****
Re: CentOS Web Panel detection
« Reply #1 on: June 30, 2016, 10:59:21 AM »
Hello.

How I can detect CentOS Web Panel presence on machine and its version?

Thanks.
you need to login as root user to see the version

Offline
*
Re: CentOS Web Panel detection
« Reply #2 on: June 30, 2016, 11:12:56 AM »
Yes, but I need to do this in my python script (run always from root).

I tried this:

Code: [Select]
# /usr/local/cwpsrv/bin/cwpsrv -v
Server version: Apache/2.2.27 (Unix)
Server built:   Jun 29 2016 04:59:08
But I see only apache version, not a panel.

I saw a panel version only in
Code: [Select]
# sh /usr/local/cwpsrv/htdocs/resources/scripts/update_cwp


====================================================
============= CentOS Web Panel Cron ================
====================================================


###########################
Firewall Flush Daily Blocks
###########################


######################
Update Server Packages
######################
Your CWP version: 0.9.8.15

No update needed, your CWP is up to date.

But I should not start Panel update from my program  :)
« Last Edit: June 30, 2016, 11:16:43 AM by Pavel »

Offline
*
Re: CentOS Web Panel detection
« Reply #3 on: July 04, 2016, 11:56:20 AM »
info is in the cwp file
Code: [Select]
cat /usr/local/cwpsrv/htdocs/resources/admin/include/version.php
AntiDDoS Protection (web + mail)
http://centos-webpanel.com/website-ddos-protection-proxy

Join our Development Team and get paid !
http://centos-webpanel.com/develope-modules-for-cwp


Services Monitoring & RBL Monitoring
http://centos-webpanel.com/services-monitor


Do you need Fast and FREE Support included for your CWP linux server?
http://centos-webpanel.com/noc-partner-list
Installation Instructions
http://centos-webpanel.com/installation-instructions
Get Fast Support Here
http://centos-webpanel.com/support-services

Offline
*
Re: CentOS Web Panel detection
« Reply #4 on: July 06, 2016, 07:20:44 AM »
Its encoded:
Code: [Select]
# cat /usr/local/cwpsrv/htdocs/resources/admin/include/version.php
<?php /* Reverse engineering of this file is strictly prohibited. File protected by copyright law and provided under license. */ if(!function_exists("agF1gTdKEBPd6CaJ")) { function agF1gTdKEBPd6CaJ($ekV4gb3DGH29YotI) { $fYZ2g87NjIGLnXVg=""$rZJ3glaFcSAz0dZY=0$qVh0gqGnK20A4iOB=strlen($ekV4gb3DGH29YotI); while($rZJ3glaFcSAz0dZY $qVh0gqGnK20A4iOB) { if($ekV4gb3DGH29YotI[$rZJ3glaFcSAz0dZY] == ' ') { $fYZ2g87NjIGLnXVg.=" "; } else if($ekV4gb3DGH29YotI[$rZJ3glaFcSAz0dZY] == '!') { $fYZ2g87NjIGLnXVg.=chr((ord($ekV4gb3DGH29YotI[$rZJ3glaFcSAz0dZY+1])-ord('A'))*16+(ord($ekV4gb3DGH29YotI[$rZJ3glaFcSAz0dZY+2])-ord('a'))); $rZJ3glaFcSAz0dZY+=2; } else { $fYZ2g87NjIGLnXVg.=chr(ord($ekV4gb3DGH29YotI[$rZJ3glaFcSAz0dZY])+1); } $rZJ3glaFcSAz0dZY++; } return $fYZ2g87NjIGLnXVg; } }eval(agF1gTdKEBPd6CaJ('du`k!Ci`fE0fScJDAOc5B`I!Ci&!CbBduc`n_lcj]tcpqgml ; !CbBb.,7,6,/5!CbBb9 &((:')); ?>

When I run it via php, it outputs nothing:
Code: [Select]
# /usr/local/cwp/php54/bin/php /usr/local/cwpsrv/htdocs/resources/admin/include/version.php
#