|
发表于 2016-6-4 21:59:40
|
显示全部楼层
1 x' U! f4 X$ M
这个是我下载醉眼的,decoder 的
9 _6 t+ U9 ]! R; K# ]<?php( ], r; F0 Z6 Z4 x4 d0 B' R Y6 \
while (true) {9 x9 y* B) @& Y
while (true) {
8 r1 \+ _6 f7 S) J. V% I1 K while (true) {8 }6 e: d. a# t) q
while (true) {
% [5 f4 c: P7 N- Q" _3 c include( '../app/config/base.php' );: S5 E2 b- N- K& E, n% l- X
include( 'mt/mt_pwd.php' );
# E! P& T# H8 A, `5 z- \ include( 'license/request.inc.php' );
. r0 R( Z1 q: i" w, g* c $mysql = array( );
7 K! ^3 E4 d4 Z/ z $mysql['domain'] = '';7 r% |* w; _+ I' u: J) p
$mysql['click_ip'] = '';1 a' D, |) _( Q2 d0 E! P' ~
$mysql['click_time'] = '';
! E7 f$ ^! N$ v+ F $error = '';
( F, S) N8 g: e $html['userName'] = '';
% w' V* s; p+ p$ z! c. W3 S- u $isValid = 5;
! s: S; K4 T. z: c# v $statusError = 5;" x H* ]8 j3 Q, l, M+ O
$coreError = '';
7 D" T7 b% }8 }! |# U& J+ F: L& n $verified = false;. S1 `( Y# `0 N
$msgHeader = '';
/ M% \& Z6 g( g. q! I $msg = '';
! T. W7 K/ H. Z* b5 L/ Z $tokenId = 5;& ^+ {" Y; Z; y x( W% e2 \$ F
$loginFailed = false;* w3 Q+ k# B; ~" T1 \! b
$responseDataEncryptCipher_W8u2p3urm5 = '+K9)wNU7@{KD8,,}';
. i" @5 I) @0 ]5 v1 U $responseApiKey_JqeXTfS3du = 'a)3n_U5NXL,,OfU]';) r- {7 Y& g# K) ?
& ~7 N3 h8 Z9 O6 U2 a
if ($['REQUEST_METHOD'] = 'POST') {0 c. X5 H; {0 H. a+ i& m2 q/ T
$verified = true;6 F) N# d# G4 ]
$['tokenId'];
# A. i, m: c/ S( J" d0 _: }# X $tokenId = ;
0 N1 g) H9 U* W8 v6 W9 y0 c$ r1 d0 V' \: z% E
if (!) {: {7 H7 D9 r6 j: D( L& J1 v
$[$tokenId . . '_tokenName'];3 B: Q* b- R* n0 E6 D# P
$tokenName_str = (true ? : );
* f2 D% @/ T3 J7 W' r, e# I) T' D5 W+ Z' Z; w
if (!) {
8 K# B" N& L: D% U $[$tokenName_str];
4 W0 ^3 r% G# t8 Y8 p $tokenValue_str = (true ? : ); I8 T! J3 I) ^* l1 T
new ( $tokenId );
3 g1 S5 {9 o0 q, \0 B/ M7 l' y $postAuthorization = ;2 k* M$ X I. \% t" C( o
$postAuthorization->validated( $tokenName_str, $tokenValue_str );
! L4 m* \7 d% W- t' D# h5 |! _ $validPost = ;
. p# O" K. w. ~1 ]
+ J4 D* h3 y) ] u% W+ E if ($validPost) {
' K6 \0 |% P; @+ P- ~& } array_map( array( 'HtmlHelper' => , 'decodeHtml' => ), $ );& g9 `. p5 h) Q* H
$ = ;
; q' E1 a# ^! C: C $['userName']; O! Q5 R3 l, n0 F
$userName = ;
* b# E& a4 @* Z $['userPassword'];1 r% @! R' K6 [; b6 Y& V& u6 N
$userPassword = ;
5 O8 Z: s- C5 Q* Q $db->prepare( 'SELECT *; f' r4 x* _0 E! G# {
FROM mt_account8 d/ L7 x& W4 M$ ~. p* M2 Y
WHERE user_name = :user_name' );$ V& Z' A. g% z2 h' C6 }
$loginSql = ;+ F! o* }( v3 t# }
$loginSql->bindParam( ':user_name', $userName, PARAM_STR );
, z+ b/ i/ a2 a3 Y7 ^ $loginSql->execute( );: d* T) y7 g% d) E- D: _; D
$result = ;$ e! A. a! C- J( j! q' d3 u5 G
2 \9 Z. d0 X( R8 Q
if ($result) {
) ~; u. A, \+ r2 ^1 x6 c $loginSql->fetch;
! g9 j- c$ \! L) j7 R }7 t4 z% m( G! x
}( K) C7 P3 k, }% Z
}6 ` p) L0 J" d& H7 ^+ G/ ]/ t+ w
}
/ T' R0 ]0 I4 |. V x }
5 {4 }9 Z' k' d5 X6 [* H5 ~+ `/ g" F% G: k, B# u6 b
( FETCH_ASSOC );6 ~$ d u5 Z8 @' E$ I. E
o! ~( I+ ?1 T j- ?
if ($data = ) {
, V* O$ u% T$ ~! r5 t new ( );
6 N# G. l* I# k5 d' M8 B $bcrypt = ;
* z8 l2 P, Z3 W7 W9 x. [/ g& ~ $bcrypt->verify( $userPassword, $data['user_password'] );! x1 C, r# ]: F
$isGood = ;1 f; P" E: N. n& L7 w
% o* D! C2 R$ h$ I& c: L9 m4 A: @, O if (!) {
; h* p: n+ q Q. i4 E/ N $error = 'Your password is incorrect.';4 s2 v2 c% r: k a: D0 x
new ( 0, $userName, 'Password' );2 B$ w1 u3 i- n0 u5 c2 y
$log = ;, n$ N& f+ n! e8 n7 w' R. i
$log->logger( );
! ~1 U: } @: f7 u6 V continue;
1 `) Y# o6 G* ?9 R }7 M2 d3 e) c' \ ^
) _$ l. r/ v' e2 j# _ jmp;+ Q1 R- y- v% k$ g A7 ~* }
$location = . $['SCRIPT_NAME'];
8 R6 U" D( s h6 g( ` $location = 'http://' . str_ireplace( 'account/' . LOGIN_PAGE, '', $location );
" a& s8 I7 g% d+ @ $db->prepare( 'UPDATE mt_account SET mt_location = :location; UPDATE mt_campaigns SET mt_location = :location;' );" r( n$ Q w8 i1 g* G
$stmt = ;
; B" p( V& ~6 Y+ n3 \6 A, j $stmt->bindParam( ':location', $location, PARAM_STR );/ m5 \6 x6 f8 \
$stmt->execute( );! O4 e T" h3 H" ?
$redirect = 'campaigns.php';1 W2 f1 O8 |. R
+ _5 q+ E, V/ m+ c% R0 M. }& L$ Z
if (!) {0 [2 W0 O) [) z# h
$['lastPage'];$ `( X( F4 Z) V# ~; d4 ^3 H6 @
$redirect = ;$ y: y/ p9 H" m* ] T# w. S
unset( $[lastPage] );+ \, U6 O4 h* g6 e
header( 'location: ' . . $redirect );1 M; A4 i5 L9 O+ F6 i6 U
exit( );6 C! g3 y" X/ ?1 P2 m1 Z: \
continue;
8 O1 ]' K- N: `, b }) i& Y: l1 o% k+ s, R
% I" G' n5 \ i( e) l* ]# Q: n break 3;7 [3 |( H" _# |4 R
}
( H# ]& w% W( P4 I" h% f
2 N' ~& e9 g: r/ w7 d- ^ $log = ;
( P! B( O4 D& ?3 ]0 I9 Z L( @ $log->logger( );, O4 e& b0 f6 v6 s) K1 u
}& P: b5 w; K% ]. e. Y; p; c. U
/ `) c7 p# y0 |/ J' a $mysqlError &= '<u>Login Page</u> - ' . $loginSql->errorCode( ) . ' - ' . $loginSql->errorInfo( ) . '<br><br>';5 @) J$ X& c: A0 \; j! w# I: _
} p1 R) G7 t- m7 C* _
0 l; r' z4 ^! T. \7 t2 ` $postAuthorization->failedPost( );2 C. u' G- Y' I0 {
$error = ;1 v( J, z- F5 R8 a% Z! _; |
$loginFailed = true;/ h1 s% m/ P5 f: r% C
$postAuthorization->createTokens( 5 );
# \+ T5 \. d( G- G% z1 o/ I$ b $postAuthorization->tokenName;+ P1 V4 m9 T% @6 J2 W4 i
$postTokenName = ;
8 B2 X5 a( P" D, `; w! Y9 U( v $postAuthorization->tokenValue;9 `- C5 F: S3 l8 t' u9 l8 l, |# B
$postTokenValue = ;
( @/ P8 R+ O. X- q/ R $html['userName'] = HtmlHelper::encodeHtml( $['userName'] );
3 i0 Q( H0 X8 D8 K, P5 @1 i }
1 p: u$ p$ }" s& A, F4 i
8 p8 k+ T" U: g7 s( [9 o5 k" q $c_data = array( );; w' ^) {% Z5 p
7 i b/ M( t5 o8 }9 c9 z1 j
if (LOGIN_LOG) {+ }7 R6 W9 \5 `5 {, t9 E4 V- j
new ( 2 );% D' p) M9 p- t. Z
$log = ;
# E0 {. C3 w' ~! M/ |, g $log->logger( );
3 P1 W' w, d; y" P5 g- [ new ( null, 'POST' );/ \2 \3 O& R, v9 H
$request = ;' V' T4 N) O# q+ I% N' g
$request->execute( );
$ J2 `9 I: Y/ x- | $request->errorNum;- w# M$ V2 p0 f- M6 j
$curlError = ;5 x7 k8 g3 _' ?$ @2 N3 J2 n' M8 j
json_decode( $request->responseBody );
8 n' O8 I: @. a& l: M $c_data = ;& W0 ~, g, u& \1 L. y x k. }
$c_info = array( );
) j) {% V3 o& C$ ~1 r8 Z/ x $http_code = 5;
9 D a5 L4 X' h+ Y0 }7 m4 x $success = false;: d2 Z L% T7 d: p1 w, X
1 H6 P7 s+ @6 r4 J5 ^ if (!) {& P6 _2 w+ Y; k1 I
trim( mcrypt_decrypt( MCRYPT_BLOWFISH, $responseDataEncryptCipher_W8u2p3urm5, rawurldecode( $c_data->info1 ), MCRYPT_MODE_ECB ) );, U8 i% Q* s' T/ O5 t Q) ?2 W
$isValid = ;
) n! M2 L' |8 ^! V- s( P* Q trim( mcrypt_decrypt( MCRYPT_BLOWFISH, $responseDataEncryptCipher_W8u2p3urm5, rawurldecode( $c_data->info2 ), MCRYPT_MODE_ECB ) );: J! c- p9 J$ } I0 e5 F( ]
$statusCode = ;
9 s" d/ m$ v. r* ?( I trim( mcrypt_decrypt( MCRYPT_BLOWFISH, $responseDataEncryptCipher_W8u2p3urm5, rawurldecode( $c_data->info ), MCRYPT_MODE_ECB ) );; e' W6 F2 T7 X
$responseApiKey_mnwTcIrW3c = ;7 U& x7 t3 i! b1 {
6 I' r% }- x8 b. F$ Y$ j; O if ($responseApiKey_mnwTcIrW3c = $responseApiKey_JqeXTfS3du) {
# w* H( @5 ]4 x8 a0 @ $['imobi_data'] = array( 'imVersion' => $c_data->iVersion, 'xmlVersion' => $c_data->dVersion );
+ M8 x3 K/ k: C/ D4 K8 h continue;% s$ W6 `/ }3 U) D
}
+ j* _, l. a% D: |* f' e @ }
# V( h* c& q! V: eelse {& p; M2 F1 O O9 i7 ] n
$c_info = ;
' G6 q0 F; E. ]- Y6 R4 m9 v $c_info['http_code'];
7 `% q7 _# z$ R( d, t# j+ k5 I $http_code = ;
: r) H7 ~- B. N' @ !;
+ J* _" X5 v ~6 K $http_code = 404;
( _; Y0 i0 a* J0 l$ o $http_code = 408;
0 M) F3 w0 o# M7 [4 \: e. ^6 G3 g( J $http_code = 500;
, b. o" L& a/ D8 c" Q3 y $http_code = 503; ~+ w! v* {- g: S% `7 O
4 N9 h! ?( U5 k3 I0 g$ |; T if (( ( ( ( ( $curlError || ) || ) || ) || ) || )) {8 h+ I% K/ f* Y3 ~% U. e; `
new ( 'http://www.revivedmedia.net/imobitrax/uhadroewiur5y67ru.php', 'POST' );) O5 \9 n- c/ f! c5 g
$request = ;
) y+ ^: r. g& H. |+ M $request->execute( );
# o* }+ S& J# u3 q3 y* ] json_decode( $request->responseBody ); [! h' X% [: w- ~
$c_data = ;
% {7 U* G% O; u8 k2 o trim( mcrypt_decrypt( MCRYPT_BLOWFISH, $responseDataEncryptCipher_W8u2p3urm5, rawurldecode( $c_data->info1 ), MCRYPT_MODE_ECB ) );
: x$ J; E0 r2 B! s4 B6 F $isValid = ;
# F E6 z& S( n6 v, z4 O: v4 {0 {' ` trim( mcrypt_decrypt( MCRYPT_BLOWFISH, $responseDataEncryptCipher_W8u2p3urm5, rawurldecode( $c_data->info2 ), MCRYPT_MODE_ECB ) );
% d% d! O' F, \: M4 B9 k $statusCode = ;
$ }! f% C# u/ w+ A4 [4 [4 U trim( mcrypt_decrypt( MCRYPT_BLOWFISH, $responseDataEncryptCipher_W8u2p3urm5, rawurldecode( $c_data->info ), MCRYPT_MODE_ECB ) );
2 n8 @/ a9 ~ ~. e h+ a! d $responseApiKey_mnwTcIrW3c = ;
: t5 N$ B8 C* {( b $responseApiKey_mnwTcIrW3c = $responseApiKey_JqeXTfS3du;6 O7 q5 T/ c& u- Z6 V7 I
}; f& m2 Q; ~' B
6 A M& E- C5 i2 O" C
0 b. ~! `5 ]1 b9 C- J" S. \ if () {: s1 d2 w9 n0 Q- W3 h7 V, ~
$['imobi_data'] = array( 'imVersion' => $c_data->iVersion, 'xmlVersion' => $c_data->dVersion );/ O+ ^" U: O8 l( ?
continue;: D+ S! a6 x3 T" E- ?2 z
}
; N% V, m% R& W/ x' q
t3 J6 X! U& t! ~! u q- ^5 `6 J jmp;5 [" _! ?' K: N, l; ^+ W8 u1 |
switch (true) {
8 a: y a. P5 r6 {7 A case (bool): {2 D W9 X1 R; ]6 h: ^% Z
new ( 'http://www.imobitrax.com/license/logger.php', 'POST', null, true, 1 );
v, G" j/ e' H% q; N7 M! ^$ j) M+ _ $request1 = ;
. |" \/ N' j' e# `+ A $request1->execute( );7 X- u# S/ [3 {7 ? e# [
$msgHeader = 'This domain (' . $['SERVER_NAME'] . ') is not licensed to run iMobiTrax.';
+ I$ d" `+ B' E+ e- ~ $msg = 'If you have a licensed copy of iMobitrax, there may be an error in the domain in our system. You can log into your user panel at <a href="http://www.imobitrax.com/users/profile" target="_blank">iMobiTrax.com</a> and update your domain. Please contact support if you have any questions.';, E' D2 Y' e& W) m( N$ B
break ;
6 R, M2 l# X7 K) I1 H !;) d/ T& G1 D4 f1 y: x" I: i* O' X2 t
switch (true) { y( z! N5 X3 ]/ K+ q. t8 V
case ( $isValid && ): {
) F' C4 ~9 c$ x. i/ h `# G 'This domain (' . $['SERVER_NAME'] . ') is licensed to run iMobiTrax, but you need to pay for your license.';2 }! |- Y h: |# I3 T
}0 H: P e! [+ F6 ^! d
}
+ O& R; }5 y* N* c" K, i }
( x0 g% a$ ^: s }
! o' e- Z; }( E3 l& M1 h* u
; ?0 x' I% Y) m $msgHeader = ;1 f1 b( p! m! N9 N; B; h: p
$msg = 'Please contact support to arrange payment for your license.';
# |5 \4 T/ N; g# K1 @ }
% }, I& e: y; D4 ~6 y, m4 Y, r4 ^# K" k) x6 U1 f7 x$ ~' v
break ;
+ k# U3 c- M$ ?" v" {- Z $statusCode = 1;0 ^+ w: m, d& B; L+ v' k' Z
switch (true) {0 I( G# e2 F7 N% Q& ?9 I
case ( $isValid && ): {- @5 u- }; D5 H! a
$verified = true;
: k7 L& X" V/ r6 q7 P+ e break ;) m+ {9 a9 I9 h4 Y/ P
$statusCode = 2;4 t; ?) ~* g/ b
switch (true) { W- R- @6 G5 T0 r9 e' E
case ( $isValid && ): {
8 X& c5 [. P' R8 f- a $msgHeader = 'Your monthly subscription to use iMobiTrax on this domain has expired.';* p$ Y; X. c6 P
$msg = 'In order to use iMobiTrax, you must have a current subscription. Please login into your <a href="http://www.imobitrax.com/users/member/index">user panel</a> to renew and/or update your monthly subscription.';
+ x3 Q! z0 x: s( \& ]2 Z( ~+ \" p break ;" t# N2 Y& d" q3 Y! f; W" d
!;4 K+ K* I$ e% Y( @ S; O6 {- b
}
/ i p7 L0 j9 `% F: K& h( q3 H1 i0 e0 ]" q( B9 I k
case ( && ): {* o q1 [' a% {+ L
new ( 'http://www.imobitrax.com/license/logger.php', 'POST', null, true, 3 );
: ?, N/ G2 b7 b1 U $request1 = ;
/ B a" V; g6 q V& E; s- M8 j4 Z $request1->execute( );
% D r+ u- i: y6 b' Z $msgHeader = 'There appears to be an error in iMobiTrax.';
$ M+ N! K7 f0 @$ \0 d7 e$ i5 \ $msg = 'Please contact support.';' r* ?9 V7 }* l) r
break ;
& h9 O+ l |9 O- }. n2 T) f $statusCode = 4;1 p* c& z0 Q/ Y# ]+ f
switch (true) {0 ~' t! Q2 f. r8 ]8 U: q
case ( ! && ): {
; m# Q4 D8 d: N/ a$ K$ `$ R $msgHeader = 'iMobiTrax Technicians are currently upgrading our API core.';" D. Y3 m2 r Y+ C: X+ z
$msg = 'Unfortunately during this time you are unable to login but your campaigns are still tracking as normal. We should be finished with this core upgrade within the next hour. Thank you for your patience as we continue to make iMobiTrax even better! If you have any questions please do not hesitate to reach out to us at [email protected].';7 b( Q& x' `$ ?/ c! @' a
break ;. D8 w8 j7 |" |' x
new ( 'http://www.imobitrax.com/license/logger.php', 'POST', null, true, 5 );! R: I1 k" I$ |& F6 D: B
$request1 = ;
; H% |. e+ X+ b/ G/ `8 Q" ] q$ m) | $request1->execute( );& z. A- l: k+ u
$msgHeader = 'There appears to be an error in iMobiTrax.';
" b2 y0 X6 @- }8 R $msg = 'Please contact support!';
0 k2 f* p6 K+ }# ~& [9 E9 r w7 q break ;! U2 \$ F0 ?& G/ H. _, j y6 ~: N# G) I
;) w( `1 P& B6 _4 r( \
}, {9 _: B1 ?2 a0 l& b
}2 R% C, ?9 P' u, ?
}5 O4 A* q; X- h; ^; \( X+ i L
}
) f7 l$ j- z" y q9 g1 {9 p
& @& j1 V4 `+ A $statusCode = 3;
, \/ U2 r+ r7 d }
: ~/ _1 c3 l/ ?! ~$ q }: W9 ~6 O. `$ p
}1 X+ r+ v! X* @! d5 O* D3 @# Y$ O
/ X4 t# w& v- y$ P1 e" t4 [ new ( );
5 Q9 ~9 X2 ?8 Z2 Y! ^2 Q, [ $postAuthorization = ;& S6 d) W/ v2 B H9 d
$postAuthorization->createTokens( 5 );
9 N3 z# |7 v, y0 z% B" X( `3 s3 ?; k1 S $postAuthorization->tokenName;$ Q& e+ ?/ ]0 d" Z
$postTokenName = ;
; {' D2 L, q9 S# `- o $postAuthorization->tokenValue;- f1 F. q9 e: ~8 T1 `# b3 i
$postTokenValue = ;
4 s k' O6 {3 } b $postAuthorization->tokenId;$ x/ \( D9 d( ?2 Z# E) Q" v
$tokenId = ;
5 F! T! o- k$ C. b PageElement::topTemplateLogin( 'iMobiTrax Login' );; }& y) ~! J! t; ^: Y" ^
a3 i) g" g5 h0 |* G' B. m. S if ($loginFailed) {/ O8 G ?) ?% B Y
if (!) {4 `' L+ e; X7 ^. Z2 Q/ ?' Y; L
echo ;
: ~# \* [$ ?. j: y0 w) ? continue;
' ?( J: q" Q2 x5 g/ T }
6 B0 v$ d4 d# G+ |! v" X1 x
. I$ V; M1 c5 W( P' ] jmp;- U4 |8 l& J9 f+ P# d+ _/ R; W
$ l+ Z' @/ a) \3 Z2 ~7 r; t; T: T
if () {
# R, t' y1 R5 T/ z7 M; \ echo ;" Y/ K# J% S- r9 j; `3 M: h
echo ;% j; Z/ B$ h, O4 h- v
echo ;; ~" [5 B) f; c$ r4 i- A
echo ;6 |4 m+ {5 P9 c1 h% n
echo ;
9 m/ U9 ~) h% q echo ;: X# ^2 _+ I% x
echo ;
4 N. `3 q b2 I echo ;/ `0 p( |5 X) n9 l- v+ I: ^
- o& G. l9 w' v3 p& m if ($html['userName'] != '') {/ K' Z1 P- y6 J
echo ;. {8 Z% C9 [) H+ l2 W
}
% x' I: H/ a- I9 Y }9 ? I% a) a( A# T
4 w2 \# S5 {# T) W echo ;% a2 e* _5 \/ J7 M
continue;
* O1 D: J- w% }7 B$ p2 ?0 `" o' D }" t* Q; @7 g, Y) @) V* C
4 s5 g6 W: M( w& R
jmp;
; l$ q) R3 n9 m }# @0 o ( $mysqlErrorMain );% E: r) m7 D9 h! B6 U4 q
}5 |- Y! m, ^, l
0 a! W+ ~ _, `, z
!;7 O8 k" ]4 I3 B' T3 L, N0 j
( e" a1 r1 ~4 v7 p: Z6 L, |
if (( ( $verified && ) && )) {9 A6 l: S' K+ N; h- M2 Q
$page = 'login.php';
; F% V- F8 y' Q' ~9 b4 W4 Y _mysqlError( $mysqlError, $page, false );
@5 U0 Z% w) x% N; u }
% m! n4 E7 |5 Q3 V" T
: _/ b* i# q8 Y! n" x& ?+ M7 ? jmp;
. G# G4 }1 S" {' _3 j, O3 v) o ( );
3 x- C* S& ~1 Q return ;
" s/ K: X- Q, r?> |
|