Waraxe IT Security Portal
Login or Register
November 24, 2024
Menu
Home
Logout
Discussions
Forums
Members List
IRC chat
Tools
Base64 coder
MD5 hash
CRC32 checksum
ROT13 coder
SHA-1 hash
URL-decoder
Sql Char Encoder
Affiliates
y3dips ITsec
Md5 Cracker
User Manuals
AlbumNow
Content
Content
Sections
FAQ
Top
Info
Feedback
Recommend Us
Search
Journal
Your Account
User Info
Welcome, Anonymous
Nickname
Password
(Register)

Membership:
Latest: MichaelSnaRe
New Today: 0
New Yesterday: 0
Overall: 9144

People Online:
Visitors: 72
Members: 0
Total: 72
Full disclosure
APPLE-SA-11-19-2024-5 macOS Sequoia 15.1.1
Local Privilege Escalations in needrestart
APPLE-SA-11-19-2024-4 iOS 17.7.2 and iPadOS 17.7.2
APPLE-SA-11-19-2024-3 iOS 18.1.1 and iPadOS 18.1.1
APPLE-SA-11-19-2024-2 visionOS 2.1.1
APPLE-SA-11-19-2024-1 Safari 18.1.1
Reflected XSS - fronsetiav1.1
XXE OOB - fronsetiav1.1
St. Poelten UAS | Path Traversal in Korenix JetPort 5601
St. Poelten UAS | Multiple Stored Cross-Site Scripting in SEH utnserver Pro
Apple web content filter bypass allows unrestricted access to blocked content (macOS/iOS/iPadOS/visionO S/watchOS)
SEC Consult SA-20241112-0 :: Multiple vulnerabilities in Siemens Energy Omnivise T3000 (CVE-2024-38876, CVE-2024-38877, CVE-2024-38878, CVE-2024-38879)
Security issue in the TX Text Control .NET Server for ASP.NET.
SEC Consult SA-20241107-0 :: Multiple Vulnerabilities in HASOMED Elefant and Elefant Software Updater
Unsafe eval() in TestRail CLI
Log in Register Forum FAQ Memberlist Search
IT Security and Insecurity Portal

www.waraxe.us Forum Index -> PHP script decode requests -> please decpde ioncube guys
Post new topicReply to topic View previous topic :: View next topic
please decpde ioncube guys
PostPosted: Thu May 09, 2013 6:15 am Reply with quote
erick
Regular user
Regular user
Joined: Aug 03, 2012
Posts: 9




hey dear guys

i need to decode these files:
http://my.pcparsi.com/i/upload/1/1368115254.zip

please decode

thank you very much indeed :X
View user's profile Send private message
help
PostPosted: Thu May 09, 2013 12:20 pm Reply with quote
erick
Regular user
Regular user
Joined: Aug 03, 2012
Posts: 9




please help me guys Sad
View user's profile Send private message
help
PostPosted: Fri May 10, 2013 11:05 am Reply with quote
erick
Regular user
Regular user
Joined: Aug 03, 2012
Posts: 9




guys please help me Sad
View user's profile Send private message
PHP Decoder
PostPosted: Fri May 10, 2013 12:25 pm Reply with quote
codedecoder
Regular user
Regular user
Joined: Dec 15, 2012
Posts: 21




da.php
Code:

<?php
/*
* Desc: This file is decoded by PHP Decoder
* Website: http://phpdecoder.wordpress.com/
*/
function finduserdata() {
$_file_list = '';

if ($handle = opendir( '/usr/local/directadmin/data/users' )) {

if (false !== $file = readdir( $handle )) {
if (( ( $file != '.' && $file != '..' ) && $file != 'system' )) {
$_file_list .= $file . ':';
}
}

closedir( $handle );
}

$dausertmp = explode( ':', $_file_list );
$dauser = array_filter( $dausertmp );
sort( $dauser );
$hlines = file( '/etc/passwd' );
$userhome = array( );
foreach ($hlines as $key) {
$term = explode( ':', trim( $key ) );
$userhome[$term[0]] = $term[5];
}

$userdata = array( );
$usernumber = count( $dauser );
$i = 13;

while ($i < $usernumber) {
if (file_exists( $userhome[$dauser[$i]] )) {
$userdata[$dauser[$i]] = $userhome[$dauser[$i]];
}

++$i;
}

return $userdata;
}

function checklicense() {
$postfields['licensetype'] = 'Danginx';
$postfields['docroot'] = '/usr/local/directadmin/plugins/danginx';
$postfields['hostname'] = php_uname( 'n' );
$verifyurl = 'https://manage.syslint.com/api/verify.php';
$verifydomain = 'manage.syslint.com';
$localcache = TRUE;
$localcachefile = '/etc/danginx/localkey.txt';
$salt = 'oexibddm2Pdjwusngpholeo4srlnkflyyyucxwdncycwmqkiRdklhfnirkgayhvt';
$licstatus = array( 'Active' => '1000100', 'Reissued' => '1000101', 'Suspended' => '1000110', 'Terminated' => '1000111', 'NotFound' => '1001000' );

if ($localcache == TRUE) {
$comp = $salt . '+' . $verifyurl . '+' . $postfields['hostname'] . '+' . date( 'Ymd' ) . '+' . $postfields['docroot'] . '+' . $postfields['licensetype'];
$revcom = strrev( $comp );
$localkey = sha1( $revcom );

if (( file_exists( $localcachefile ) && 10 < filesize( $localcachefile ) )) {
$cachelic = trim( file_get_contents( $localcachefile ) );

if ($cachelic == $localkey) {
$result['status'] = '1000100';
$result['reason'] = 'Local Key Valid';
}
else {
if (function_exists( 'curl_exec' )) {
$ch = curl_init( );
curl_setopt( $ch, CURLOPT_URL, $verifyurl );
curl_setopt( $ch, CURLOPT_POST, 1 );
curl_setopt( $ch, CURLOPT_POSTFIELDS, $postfields );
curl_setopt( $ch, CURLOPT_TIMEOUT, 30 );
curl_setopt( $ch, CURLOPT_RETURNTRANSFER, 1 );
$data = curl_exec( $ch );
curl_close( $ch );
$resultpre = explode( '', $data );

foreach ($resultpre as $term) {

if (preg_match( '/=>/', $term )) {
$c = explode( '=>', str_replace( ']', '', str_replace( '[', '', $term ) ) );
$key = trim( $c[0] );
$val = trim( $c[1] );
$result[$key] = $val;
continue;
}
}


if (( $result['status'] == $licstatus['Active'] || $result['status'] == $licstatus['Reissued'] )) {
$fp = fopen( $localcachefile, 'w' );
fwrite( $fp, $localkey );
fclose( $fp );
}
else {
$fp = fopen( $localcachefile, 'w' );
fwrite( $fp, ' ' );
fclose( $fp );
}
}
else {
if (ini_get( 'allow_url_fopen' ) == 1) {
$fp = fsockopen( $verifydomain, 80, $errno, $errstr, 5 );

if ($fp) {
$querystring = '';
foreach ($postfields as $k => $v) {
$querystring .= '' . $k . '=' . urlencode( $v ) . '&';
}

$header = 'POST /api/verify.php HTTP/1.0
';
$header .= 'Host: ' . $verifydomain . '
';
$header .= 'Content-type: application/x-www-form-urlencoded
';
$header .= 'Content-length: ' . @strlen( $querystring ) . '
';
$header .= 'Connection: close

';
$header .= $querystring;
$data = '';
@stream_set_timeout( $fp, 20 );
@fputs( $fp, $header );
$status = @socket_get_status( $fp );

while (( !@feof( $fp ) && $status )) {
$data .= @fgets( $fp, 1024 );
$status = @socket_get_status( $fp );
}

@fclose( $fp );
}

$resultpre = explode( '
', $data );

foreach ($resultpre as $term) {

if (preg_match( '/=>/', $term )) {
$c = explode( '=>', str_replace( ']', '', str_replace( '[', '', $term ) ) );
$key = trim( $c[0] );
$val = trim( $c[1] );
$result[$key] = $val;
continue;
}
}


if (( $result['status'] == $licstatus['Active'] || $result['status'] == $licstatus['Reissued'] )) {
$fp = fopen( $localcachefile, 'w' );
fwrite( $fp, $localkey );
fclose( $fp );
}
else {
$fp = fopen( $localcachefile, 'w' );
fwrite( $fp, ' ' );
fclose( $fp );
}
}
else {
$result['status'] = 'php-curl / allow_url_fopen is missing in this server. Please install it';
}
}
}
}
else {
if (function_exists( 'curl_exec' )) {
$ch = curl_init( );
curl_setopt( $ch, CURLOPT_URL, $verifyurl );
curl_setopt( $ch, CURLOPT_POST, 1 );
curl_setopt( $ch, CURLOPT_POSTFIELDS, $postfields );
curl_setopt( $ch, CURLOPT_TIMEOUT, 30 );
curl_setopt( $ch, CURLOPT_RETURNTRANSFER, 1 );
$data = curl_exec( $ch );
curl_close( $ch );
$resultpre = explode( '
', $data );

foreach ($resultpre as $term) {

if (preg_match( '/=>/', $term )) {
$c = explode( '=>', str_replace( ']', '', str_replace( '[', '', $term ) ) );
$key = trim( $c[0] );
$val = trim( $c[1] );
$result[$key] = $val;
continue;
}
}


if (( $result['status'] == $licstatus['Active'] || $result['status'] == $licstatus['Reissued'] )) {
$fp = fopen( $localcachefile, 'w' );
fwrite( $fp, $localkey );
fclose( $fp );
}
else {
$fp = fopen( $localcachefile, 'w' );
fwrite( $fp, ' ' );
fclose( $fp );
}
}
else {
if (ini_get( 'allow_url_fopen' ) == 1) {
$fp = fsockopen( $verifydomain, 80, $errno, $errstr, 5 );

if ($fp) {
$querystring = '';
foreach ($postfields as $k => $v) {
$querystring .= '' . $k . '=' . urlencode( $v ) . '&';
}

$header = 'POST /api/verify.php HTTP/1.0
';
$header .= 'Host: ' . $verifydomain . '
';
$header .= 'Content-type: application/x-www-form-urlencoded
';
$header .= 'Content-length: ' . @strlen( $querystring ) . '
';
$header .= 'Connection: close

';
$header .= $querystring;
$data = '';
@stream_set_timeout( $fp, 20 );
@fputs( $fp, $header );
$status = @socket_get_status( $fp );

while (( !@feof( $fp ) && $status )) {
$data .= @fgets( $fp, 1024 );
$status = @socket_get_status( $fp );
}

@fclose( $fp );
}

$resultpre = explode( '
', $data );

foreach ($resultpre as $term) {

if (preg_match( '/=>/', $term )) {
$c = explode( '=>', str_replace( ']', '', str_replace( '[', '', $term ) ) );
$key = trim( $c[0] );
$val = trim( $c[1] );
$result[$key] = $val;
continue;
}
}


if (( $result['status'] == $licstatus['Active'] || $result['status'] == $licstatus['Reissued'] )) {
$fp = fopen( $localcachefile, 'w' );
fwrite( $fp, $localkey );
fclose( $fp );
}
else {
$fp = fopen( $localcachefile, 'w' );
fwrite( $fp, ' ' );
fclose( $fp );
}
}
else {
$result['status'] = 'php-curl / allow_url_fopen is missing in this server. Please install it';
}
}
}
}
else {
if (function_exists( 'curl_exec' )) {
$ch = curl_init( );
curl_setopt( $ch, CURLOPT_URL, $verifyurl );
curl_setopt( $ch, CURLOPT_POST, 1 );
curl_setopt( $ch, CURLOPT_POSTFIELDS, $postfields );
curl_setopt( $ch, CURLOPT_TIMEOUT, 30 );
curl_setopt( $ch, CURLOPT_RETURNTRANSFER, 1 );
$data = curl_exec( $ch );
curl_close( $ch );
$resultpre = explode( '
', $data );

foreach ($resultpre as $term) {

if (preg_match( '/=>/', $term )) {
$c = explode( '=>', str_replace( ']', '', str_replace( '[', '', $term ) ) );
$key = trim( $c[0] );
$val = trim( $c[1] );
$result[$key] = $val;
continue;
}
}
}
else {
if (ini_get( 'allow_url_fopen' ) == 1) {
$fp = fsockopen( $verifydomain, 80, $errno, $errstr, 5 );

if ($fp) {
$querystring = '';
foreach ($postfields as $k => $v) {
$querystring .= '' . $k . '=' . urlencode( $v ) . '&';
}

$header = 'POST /api/verify.php HTTP/1.0
';
$header .= 'Host: ' . $verifydomain . '
';
$header .= 'Content-type: application/x-www-form-urlencoded
';
$header .= 'Content-length: ' . @strlen( $querystring ) . '
';
$header .= 'Connection: close

';
$header .= $querystring;
$data = '';
@stream_set_timeout( $fp, 20 );
@fputs( $fp, $header );
$status = @socket_get_status( $fp );

while (( !@feof( $fp ) && $status )) {
$data .= @fgets( $fp, 1024 );
$status = @socket_get_status( $fp );
}

@fclose( $fp );
}

$resultpre = explode( '
', $data );

foreach ($resultpre as $term) {

if (preg_match( '/=>/', $term )) {
$c = explode( '=>', str_replace( ']', '', str_replace( '[', '', $term ) ) );
$key = trim( $c[0] );
$val = trim( $c[1] );
$result[$key] = $val;
continue;
}
}
}
else {
$result['status'] = 'Php-curl is missing in this server. Please install it';
}
}
}

return $result;
}

?>


dan.php
Code:

<?php
/*
* Desc: This file is decoded by PHP Decoder
* Website: http://phpdecoder.wordpress.com/
*/
include( 'danginxlib.php' );
$result = checklicense( );

if (( $result['status'] == 1000100 || $result['status'] == 1000101 )) {
$vhostDate = '#Auto generated vhost configuration by Da Nginix. Any customization will be lost';
$DBINO = array( );
$GLOBIP = '';
$userdata = finduserdata( );
$cPuser = array( );
foreach ($userdata as $user => $home) {
$cPuser[] = $user;
}

sort( $cPuser );
$ArrLen = count( $cPuser );
$cpUsernumber = $ArrLen - 1;
$i = 21;

while ($i <= $cpUsernumber) {
$USER = $cPuser[$i];
$domain = file( '' . '/usr/local/directadmin/data/users/' . $USER . '/domains.list' );
$dom_count = count( $domain );
$j = 21;

while ($j < $dom_count) {
$DOMAIN = trim( $domain[$j] );
$ux = file( '' . '/usr/local/directadmin/data/users/' . $USER . '/user.conf' );
foreach ($ux as $line_num => $line) {

if (preg_match( '/^ip=/', $line )) {
$ipdata = explode( '=', $line );
$GLOBIP = trim( $ipdata[1] );
break;
}
}


if (file_exists( '' . '/usr/local/directadmin/data/users/' . $USER . '/domains/' . $DOMAIN . '.conf' )) {
$uf = file( '' . '/usr/local/directadmin/data/users/' . $USER . '/domains/' . $DOMAIN . '.conf' );
foreach ($uf as $line_num => $line) {

if (preg_match( '/^ip=/', $line )) {
$ipdata = explode( '=', $line );
$DOMIP = trim( $ipdata[1] );
break;
}

$DOMIP = $GLOBIP;
}

$DOMDOCROOT = '' . '/home/' . $USER . '/domains/' . $DOMAIN . '/public_html';
$ACCESSLOG = '' . '/var/log/httpd/domains/' . $DOMAIN . '.log';
}


if (( file_exists( '' . '/etc/danginx/expires/' . $DOMAIN ) && filesize( '' . '/etc/danginx/expires/' . $DOMAIN ) != 0 )) {
$exp_line = file( '' . '/etc/danginx/expires/' . $DOMAIN );
$EXPIRE = trim( $exp_line[0] );
}
else {
$EXPIRE = '24h';
}


if (( file_exists( '' . '/etc/danginx/custom/' . $DOMAIN ) && filesize( '' . '/etc/danginx/custom/' . $DOMAIN ) != 0 )) {
$CUSTOM = 'include "/etc/danginx/custom/' . $DOMAIN . '"';
}
else {
$CUSTOM = '#include "/etc/danginx/custom/' . $DOMAIN . '"';
}

$fval = '' . $DOMAIN . '|' . ( '' . $DOMIP ) . '|' . ( '' . $DOMDOCROOT ) . '|' . ( '' . $ACCESSLOG ) . '|' . ( '' . $EXPIRE ) . '|' . ( '' . $CUSTOM );
$DBINO[] = $fval;
$POINTERFILE = '' . '/usr/local/directadmin/data/users/' . $USER . '/domains/' . $DOMAIN . '.pointers';

if (( file_exists( $POINTERFILE ) && filesize( '' . $POINTERFILE ) != 0 )) {
$PDOMAIN = array( );
$pfile = file( $POINTERFILE );
foreach ($pfile as $line_num => $line) {
$tmx = explode( '=alias', $line );
$PDOMAIN[$line_num] = trim( $tmx[0] );
}

foreach ($PDOMAIN as $XDOMAIN) {
$fval = '' . $XDOMAIN . '|' . ( '' . $DOMIP ) . '|' . ( '' . $DOMDOCROOT ) . '|' . ( '' . $ACCESSLOG ) . '|' . ( '' . $EXPIRE ) . '|' . ( '' . $CUSTOM );
$DBINO[] = $fval;
}
}


if (file_exists( '' . '/usr/local/directadmin/data/users/' . $USER . '/domains/' . $DOMAIN . '.subdomains' )) {
$subdomain = file( '' . '/usr/local/directadmin/data/users/' . $USER . '/domains/' . $DOMAIN . '.subdomains' );
$subdom_count = count( $subdomain );

if (0 < $subdom_count) {
$k = 21;

while ($k < $subdom_count) {
$sub = trim( $subdomain[$k] );
$SUBDOMAIN = '' . $sub . '.' . ( '' . $DOMAIN );
$SUBDOCROOT = '' . '/home/' . $USER . '/domains/' . $DOMAIN . '/public_html/' . $sub;
$SUBACCESSLOG = '' . '/var/log/httpd/domains/' . $DOMAIN . '.' . $sub . '.log';

if (( file_exists( '' . '/etc/danginx/expires/' . $SUBDOMAIN ) && filesize( '' . '/etc/danginx/expires/' . $SUBDOMAIN ) != 0 )) {
$exp_line = file( '' . '/etc/danginx/expires/' . $SUBDOMAIN );
$EXPIRE = trim( $exp_line[0] );
}
else {
$EXPIRE = '24h';
}


if (( file_exists( '' . '/etc/danginx/custom/' . $SUBDOMAIN ) && filesize( '' . '/etc/danginx/custom/' . $SUBDOMAIN ) != 0 )) {
$CUSTOM = 'include "/etc/danginx/custom/' . $SUBDOMAIN . '"';
}
else {
$CUSTOM = '#include "/etc/danginx/custom/' . $SUBDOMAIN . '"';
}

$fval = '' . $SUBDOMAIN . '|' . ( '' . $DOMIP ) . '|' . ( '' . $SUBDOCROOT ) . '|' . ( '' . $SUBACCESSLOG ) . '|' . ( '' . $EXPIRE ) . '|' . ( '' . $CUSTOM );
$DBINO[] = $fval;
++$k;
}
}
}

++$j;
}

++$i;
}


if (!file_exists( '/etc/danginx/enableipv6.conf' )) {
$LISTEN = 'listen 80';
}
else {
$LISTEN = 'listen [::]:80';
}

$vhlines = file( '/etc/danginx/vhost.conf' );
$PROXYCONF = '
';
foreach ($vhlines as $key) {
$PROXYCONF .= ' ' . $key;
}

$linesext = file( '/etc/danginx/fileextensions.txt' );
foreach ($linesext as $key) {

if (preg_match( '/\|/', $key )) {
$file_est = trim( $key );
continue;
}
}

foreach ($DBINO as $DB) {
$tmpar = explode( '|', $DB );
$DOMAIN = $tmpar[0];
$DOMIP = $tmpar[1];
$DOMDOCROOT = $tmpar[2];
$ACCESSLOG = $tmpar[3];
$EXPIRETIME = $tmpar[4];
$CUSTOMINCLUDE = $tmpar[5];

if (!file_exists( '' . '/etc/danginx/direct/' . $DOMAIN )) {
$vhostDate .= '' . '#################################################################
########### Vhost configuration of ' . $DOMAIN . '
#################################################################
server {
access_log off;
error_log logs/vhost-error_log warn;
' . $LISTEN . ';
server_name ' . $DOMAIN . ' www.' . $DOMAIN . ';
location ~* ^.+.(' . $file_est . ')$ {
expires ' . $EXPIRETIME . ';
root ' . $DOMDOCROOT . ';
error_page 404 = @apache;
access_log ' . $ACCESSLOG . ';
log_not_found off;
}
location ~ /\.ht {
deny all;
}

location / {
log_not_found off;
' . $PROXYCONF . '
proxy_redirect http://www.' . $DOMAIN . ':8888 http://www.' . $DOMAIN . ';
proxy_redirect http://' . $DOMAIN . ':8888 http://' . $DOMAIN . ';
proxy_pass http://' . $DOMIP . ':8888/;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
location @apache {
internal;
' . $PROXYCONF . '
proxy_redirect http://' . $DOMAIN . ':8888 http://' . $DOMAIN . ';
proxy_pass http://' . $DOMIP . ':8888;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
' . $CUSTOMINCLUDE . ';
}
';
continue;
}

$vhostDate .= '' . '#################################################################
########### Vhost configuration of ' . $DOMAIN . ' in Direct Proxy
#################################################################
server {
access_log off;
error_log logs/vhost-error_log warn;
' . $LISTEN . ';
server_name ' . $DOMAIN . ' www.' . $DOMAIN . ';
location ~ /\.ht {
deny all;
}
location / {
log_not_found off;
' . $PROXYCONF . '
proxy_redirect http://www.' . $DOMAIN . ':8888 http://www.' . $DOMAIN . ';
proxy_redirect http://' . $DOMAIN . ':8888 http://' . $DOMAIN . ';
proxy_pass http://' . $DOMIP . ':8888/;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
' . $CUSTOMINCLUDE . ';

}
';
}

$fh = fopen( '/usr/local/nginx/conf/vhost.conf', 'w' );
fwrite( $fh, $vhostDate );
fclose( $fh );
system( '/etc/init.d/nginx reload' );
return 1;
}


if ($result['status'] == 1000110) {
print 'Your Danginx License seems suspended. Please activate the license ';
$fh = fopen( '/usr/local/nginx/conf/vhost.conf', 'w' );
fwrite( $fh, '#Invalid license' );
fclose( $fh );
return 1;
}


if ($result['status'] == 1000111) {
print 'Your Danginx Licenses Seems to be termianted';
$fh = fopen( '/usr/local/nginx/conf/vhost.conf', 'w' );
fwrite( $fh, '#License Expired' );
fclose( $fh );
return 1;
}

echo 'Invalid License / License Not found, Please purchase a license';
$fh = fopen( '/usr/local/nginx/conf/vhost.conf', 'w' );
fwrite( $fh, '#Invalid License' );
fclose( $fh );
?>


ins.php
Code:

<?php
/*
* Desc: This file is decoded by PHP Decoder
* Website: http://phpdecoder.wordpress.com/
*/

include( 'danginxlib.php' );
$result = checklicense( );

if (( $result['status'] == 1000100 || $result['status'] == 1000101 )) {
if ($argc < 2) {
echo '' . 'Copyright(c) @ danginx.com . All rights reserverd.
Usage: --help - Show this menu --version=VERSION , The Nginx version that you like to install';
return 1;
}

foreach ($argv as $val) {

if (preg_match( '/^--version=/', $val )) {
$ud = explode( '--version=', $val );
$version = trim( $ud[1] );
continue;
}
}

echo '------------------------------------';
echo '' . ' Installing Nginx version ' . $version . ' ';
echo '------------------------------------';

if (file_exists( '/etc/debian_version' )) {
system( '/usr/bin/apt-get -y install libpcre3 libpcre3-dev' );
}
else {
if (file_exists( '/etc/redhat-release' )) {
system( '/usr/bin/yum -y install zlib-devel pcre-devel openssl-devel' );
}
}

system( 'cd /usr/local/src/' );
system( 'rm -rf /usr/local/nginx' );
system( 'rm -rf nginx-*' );
system( '' . '/usr/bin/wget -c http://files.syslint.com/src/nginx/nginx-' . $version . '.tar.gz' );
system( '' . 'tar -xvzf nginx-' . $version . '.tar.gz' );
system( '' . 'cd nginx-' . $version . '/ ;sh /etc/danginx/configure.sh && make && make install' );

if (file_exists( '/usr/local/nginx/sbin/nginx' )) {
echo 'Nginx installation success';
}
else {
echo 'Nginx installation failed , Please contact support';
exit( );
}


if (file_exists( '/etc/init.d/nginx' )) {
echo 'Nginx initscript checking ... ok';
}
else {
if (file_exists( '/etc/debian_version' )) {
system( 'wget -c http://files.syslint.com/src/nginx/nginx.rc.deb.txt' );
system( 'chmod 750 nginx.rc.deb.txt ' );
system( 'mv -f nginx.rc.deb.txt /etc/init.d/nginx ' );
system( '/usr/sbin/update-rc.d -f nginx defaults' );
}
else {
if (file_exists( '/etc/redhat-release' )) {
system( 'wget -c http://files.syslint.com/src/nginx/nginx.rc' );
system( 'chmod 750 nginx.rc ' );
system( 'mv -f nginx.rc /etc/init.d/nginx ' );
system( 'chkconfig --add nginx' );
system( 'chkconfig nginx on' );
}
}
}

system( 'rm -f /usr/local/nginx/conf/nginx.conf' );
system( 'cp -f /etc/danginx/nginx.cont.template /usr/local/nginx/conf/nginx.conf ' );
system( 'touch /usr/local/nginx/conf/vhost.conf' );
system( 'echo "nginx=ON" >> /usr/local/directadmin/data/admin/services.status' );
system( 'sed -i \'s/80/8888/g\' /etc/httpd/conf/httpd.conf' );
system( 'cp -f /etc/httpd/conf/ips.conf /etc/httpd/conf/nginx.conf' );
system( 'sed -i \'s/:80/:8888/g\' /etc/httpd/conf/nginx.conf' );
system( 'sed -i \'s/:80/:8888/g\' /etc/httpd/conf/extra/httpd-vhosts.conf' );
system( 'sed -i \'s/ips.conf/nginx.conf/g\' /etc/httpd/conf/extra/httpd-vhosts.conf' );
system( 'echo "action=rewrite&value=ips" >> /usr/local/directadmin/data/task.queue' );
system( 'echo "action=rewrite&value=httpd" >> /usr/local/directadmin/data/task.queue' );
system( '/usr/local/directadmin/dataskq d200' );
echo 'Wait for rebuild httpd.conf .....';
system( '/etc/init.d/httpd stop' );
system( '/etc/init.d/httpd start' );
system( '/etc/init.d/nginx stop ' );
system( '/etc/init.d/nginx start ' );
return 1;
}


if ($result['status'] == 1000110) {
echo 'Your Danginx license seems suspended. Please activate the license';
return 1;
}


if ($result['status'] == 1000111) {
echo 'Your Danginx licenses seems to be termianted';
return 1;
}

print_r( $result );
echo 'Invalid License / License not found, Please purchase a license.';
?>

_________________
I can decode most of PHP Encryption.You can contact me at phpdecoderon@gmail.com
or Visit http://phpdecoder.wordpress.com/
View user's profile Send private message Send e-mail Visit poster's website
please decpde ioncube guys
www.waraxe.us Forum Index -> PHP script decode requests
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT
Page 1 of 1

Post new topicReply to topic


Powered by phpBB © 2001-2008 phpBB Group



Space Raider game for Android, free download - Space Raider gameplay video - Zone Raider mobile games
All logos and trademarks in this site are property of their respective owner. The comments and posts are property of their posters, all the rest (c) 2004-2024 Janek Vind "waraxe"
Page Generation: 0.046 Seconds