|
发表于 2016-6-4 21:59:40
|
显示全部楼层
) P: [# N' E& q
这个是我下载醉眼的,decoder 的
" L1 S0 t- X# M2 E, t- K<?php/ F, ^$ U: o5 p$ ~, Q" r. w
while (true) {8 f6 z5 ]2 a% \, ]
while (true) {
; ?; {# L0 P$ P Z while (true) {
4 v A$ P( d% G1 e9 B/ h& l$ X while (true) {
( W0 T& n2 }! c }- B2 k include( '../app/config/base.php' );
2 z) W, k1 T9 c include( 'mt/mt_pwd.php' );& i4 I0 x6 C1 w5 J2 _ u7 b
include( 'license/request.inc.php' );
7 b+ @+ E2 p6 X- g $mysql = array( );7 \+ h+ [0 K2 @% q* |( Z4 l& T# N4 `
$mysql['domain'] = '';
: ^% r; ~0 _! N3 B0 A/ b $mysql['click_ip'] = '';" Z: x/ l" U: Q7 r; J! l; R5 V+ \
$mysql['click_time'] = '';. v) i( E. y$ U: Y5 o, b( @
$error = '';$ I, G5 R" G* }' L" v% d$ ?
$html['userName'] = '';3 N9 K* P y( w- d7 R/ z1 b
$isValid = 5;3 Q2 I. X t5 w7 z* \8 X
$statusError = 5;$ U+ _4 ]. H* Y: i
$coreError = '';
# ^ Z7 R- L& v9 e. |) r $verified = false;
4 U4 R4 _7 Y) G1 ]$ B/ s$ s $msgHeader = '';
# u6 d y. }4 N: u* o9 s $msg = '';
! j* i+ e% L# @; s( ?, w% [ $tokenId = 5;( ]: D& q. Z3 c
$loginFailed = false;
3 f+ o9 t4 V6 D $responseDataEncryptCipher_W8u2p3urm5 = '+K9)wNU7@{KD8,,}';8 |4 P& |5 b3 \
$responseApiKey_JqeXTfS3du = 'a)3n_U5NXL,,OfU]';, g, ]0 ~ q! G
; d" q6 Y* Y) q" o- @& C K' n( A1 \% @# Z
if ($['REQUEST_METHOD'] = 'POST') {9 ?. [. D! _5 P* y% H3 j" T) Q
$verified = true;
1 @; n6 `/ ]; O8 w+ o5 E $['tokenId'];
9 e; M& }8 ^4 }9 ~ $tokenId = ;
- P, _7 V" y* \% q8 y/ e- Z
j6 c# n$ t# g7 q if (!) {* s3 y* \8 z$ w9 i
$[$tokenId . . '_tokenName'];
; i! R* G( s( K; c3 u; h $tokenName_str = (true ? : );
* |* s6 t2 {6 u( w3 O* q
* l5 d7 T5 p# t& ? if (!) {
: w; [' Z" N- V: o; q1 M8 P8 C $[$tokenName_str];
. }) f8 N8 ]8 F $tokenValue_str = (true ? : );
7 R; W3 d6 }* [9 Y new ( $tokenId );
\$ a0 i- v. M $postAuthorization = ;- F' c. O6 }' y
$postAuthorization->validated( $tokenName_str, $tokenValue_str );1 h T3 `1 F# Z. W3 F* W8 o9 V4 ^1 j
$validPost = ;
1 ]& `2 q* |! q4 ^2 }# r! e( d# {4 T6 ^7 p& _& @ Q5 m
if ($validPost) {* b/ h8 j, K) _ O9 H8 T* _
array_map( array( 'HtmlHelper' => , 'decodeHtml' => ), $ );: g% m* V/ H2 m. @% `% v: l
$ = ;
/ I ?! W5 D; j, J" l4 n $['userName'];
' g. V% f5 `" w5 [4 G' d2 o( b+ R $userName = ;' b6 B9 P1 h& Z4 T
$['userPassword'];; w* d- k: Z9 _
$userPassword = ;
7 J, b' B) o. j7 ^$ D- b3 a+ B& } $db->prepare( 'SELECT *" n, \ `$ j: Q j6 r* V( z2 V
FROM mt_account
" H n' e9 M& a WHERE user_name = :user_name' );/ F8 M- t% ]9 j7 Z6 k
$loginSql = ;
7 K; r5 E% W. ~, \ R $loginSql->bindParam( ':user_name', $userName, PARAM_STR );' j1 S e5 Y9 o& Z- Q$ R
$loginSql->execute( );
4 T3 u3 R. a+ S1 G9 t9 v2 x $result = ;6 X, Q6 K7 x9 m# I% [& |
3 a8 R+ W$ m" p+ @0 C if ($result) {; ?3 }) C% U4 j, L* x6 T
$loginSql->fetch;+ Z) ~1 y: p6 n
}
" t1 W. B/ ?$ z7 d+ [" |: R }
% j0 E2 @2 L+ P7 D: Y& K }
3 c. N' A+ M/ x5 X _, ` }
4 r9 u8 W0 a$ i+ T1 |; P }
: E4 ?3 b3 ?7 y4 ]1 Y# N# `5 V" X. C4 m \8 Z' k9 _! C% Q1 b0 \
( FETCH_ASSOC );
V( E3 Z/ L1 d' D$ D8 x) l
% S5 R6 {/ W$ j/ h% w/ W if ($data = ) {
: | M" g u& T! N) T! A8 R0 o& U new ( );6 v0 w( l% T# r* p7 x5 d
$bcrypt = ;, s. a* i4 Z7 u1 y; [) }
$bcrypt->verify( $userPassword, $data['user_password'] );! T* t5 I+ I' |8 C
$isGood = ;" R x9 k0 U+ G# w4 w4 V* F! {
* r- C. Z7 L8 d# A* o! v if (!) {! x: m) s0 P: Q4 [5 C9 [4 \
$error = 'Your password is incorrect.';
& U3 |1 P; _+ g! i" ? new ( 0, $userName, 'Password' );: @( `* ?* M- A" _
$log = ;* ?$ M/ N+ m6 |& [
$log->logger( );+ C: b) f# e( X5 ] l4 `
continue;
) R5 m: o' y4 \' h! a& s }
; t6 b/ n8 Q$ b+ @. h, @# N, N) F0 L+ c
$ n# ~7 }3 J3 E: j) d: g jmp;
6 D' H/ y1 a0 `/ T $location = . $['SCRIPT_NAME'];2 G" F0 z# |9 n: y
$location = 'http://' . str_ireplace( 'account/' . LOGIN_PAGE, '', $location );
7 Y. T y3 H0 O) x, N$ p$ V( Q# C $db->prepare( 'UPDATE mt_account SET mt_location = :location; UPDATE mt_campaigns SET mt_location = :location;' );0 K# L/ e' S. X8 V/ @; j% @& ~
$stmt = ;4 D) @1 _3 K# m/ v0 M: g/ K
$stmt->bindParam( ':location', $location, PARAM_STR );& P% R+ J* E8 N* g) q
$stmt->execute( );
' Z, j- d, A* B9 j0 k$ m1 A' c, t $redirect = 'campaigns.php';9 k+ [/ h$ H; b6 u
% w; ~6 ]" s: M+ ]$ y: S6 A5 B9 `
if (!) {5 ] l. X9 k M4 `
$['lastPage'];* u( Y( t1 H! q
$redirect = ;
0 O# Y F- j. G4 n8 s; e unset( $[lastPage] );+ u Y1 H, \! W- i8 O5 Q& ?
header( 'location: ' . . $redirect );+ r& n) _. d0 M
exit( );3 D. M" Y0 p, ~7 u: w
continue;
" N& D( q* a/ n: O0 W4 U! S }$ [1 ^$ C# y. D* s
! I* N/ c5 ?5 z
break 3;7 N9 W4 D( F9 `! D; i$ F6 E% s+ B" }
}8 S& g$ S: ^; s9 k& `
" w4 c. b& K$ k% n1 q& u $log = ; W0 `6 n% k. `/ @, `
$log->logger( );
& X" g& B1 I/ ?& X" D' T" i0 j }
. }" ?+ ?& r# }2 S! ^( P
+ c9 E: L A" `: T* m $mysqlError &= '<u>Login Page</u> - ' . $loginSql->errorCode( ) . ' - ' . $loginSql->errorInfo( ) . '<br><br>';; V4 U/ z1 f& ~, C
}
' ~6 n( @9 y3 w# u
& ^6 k) ^+ @/ k" v# H) d- z $postAuthorization->failedPost( );( c( B1 q# \4 C5 u
$error = ;
1 n( W5 ^3 z/ ?+ m. k3 c! h! o $loginFailed = true;7 h( w& O3 U& {& Y) D! h4 Z0 w# _
$postAuthorization->createTokens( 5 );/ S5 q7 A3 C# S
$postAuthorization->tokenName;
! p e5 t7 a7 F( i& N. t $postTokenName = ;
+ f) J3 M5 w4 G8 Q $postAuthorization->tokenValue;
. E/ s& U9 x, Z0 P2 w $postTokenValue = ;4 w- j7 ^; d# b" x% s9 {/ U
$html['userName'] = HtmlHelper::encodeHtml( $['userName'] );: g, y# g3 c$ |6 K( g. O
}
) R1 Q3 D1 l, f) j( ]2 S' L9 P+ C+ U" |# E
$c_data = array( );
3 C+ T7 R/ b& A/ o# G
; }+ j3 [' o$ A, Y( j" M8 P if (LOGIN_LOG) {, s: F4 t$ [) K% [
new ( 2 );
4 Y# p- {4 V0 N5 I/ p4 u( w $log = ;& f2 _5 j9 `" ?" s7 `
$log->logger( );
6 K+ u# B9 S4 z, t/ L& l new ( null, 'POST' );
: k) W1 K3 ~' y $request = ;3 ]* C" E; p" ?2 x8 ^
$request->execute( );
: \1 Y' h- }7 B) M6 L $request->errorNum;
$ p% h" u+ v& Y# `5 }7 F $curlError = ;2 h/ L8 T. G8 J" @" N6 L* d
json_decode( $request->responseBody );
. E3 q2 a! X+ Q: \4 _ $c_data = ;0 c8 s0 T3 b& Q
$c_info = array( );- U7 U- }/ L2 H5 Q, |
$http_code = 5;
& @" J; E2 m- T/ m+ R( F $success = false;. Q$ p7 d4 f1 Y ~0 c# d
& K1 J+ x0 \3 e; ]- ^# E0 s0 v" \
if (!) {
9 z `- e! l2 R$ I4 m4 Z1 g& u" P trim( mcrypt_decrypt( MCRYPT_BLOWFISH, $responseDataEncryptCipher_W8u2p3urm5, rawurldecode( $c_data->info1 ), MCRYPT_MODE_ECB ) );5 R/ U3 p1 R, p
$isValid = ;
: w/ |# K& R. A trim( mcrypt_decrypt( MCRYPT_BLOWFISH, $responseDataEncryptCipher_W8u2p3urm5, rawurldecode( $c_data->info2 ), MCRYPT_MODE_ECB ) );% ]3 U. ], D4 a+ m
$statusCode = ;
5 B0 E% }+ U3 d' e3 W* `# C( @6 D( b: Q trim( mcrypt_decrypt( MCRYPT_BLOWFISH, $responseDataEncryptCipher_W8u2p3urm5, rawurldecode( $c_data->info ), MCRYPT_MODE_ECB ) );9 n( i. x& X% _1 [" a: U9 A! u7 x6 J
$responseApiKey_mnwTcIrW3c = ;' j: d8 G* F- x5 z! Z- Y
; j9 |6 D: T* Z1 ^8 G9 _$ x
if ($responseApiKey_mnwTcIrW3c = $responseApiKey_JqeXTfS3du) {
+ Z) Y. @: Q# X* @. b $['imobi_data'] = array( 'imVersion' => $c_data->iVersion, 'xmlVersion' => $c_data->dVersion );8 X5 l- l" v) w9 m; p' W+ f# _
continue;
. f) t* S4 a" o( v) Y }
" [& p" b+ @5 |0 e0 l4 I } 1 O% e0 p$ ?( }0 L
else {7 K4 p( G# C1 @5 w# ~7 X c9 s1 j
$c_info = ;0 J" _0 t4 @& I w
$c_info['http_code'];8 L4 Z! c) k( O n8 J- J+ d& u
$http_code = ;: L5 Z- F/ G5 v1 P; ^& K8 _, {+ `
!;2 t) }! ^# I* ~8 A" y( A
$http_code = 404;
- d6 l6 l% W, M6 M/ `; j $http_code = 408;& j+ i h- A6 a9 E
$http_code = 500;: O! |, ?3 ~5 f" o4 S, F
$http_code = 503;. n* z j4 o1 D2 y( |7 i# T3 t
- u* h1 R2 A4 Y if (( ( ( ( ( $curlError || ) || ) || ) || ) || )) {
7 j8 o7 R* F4 d2 y/ U+ a; I0 K new ( 'http://www.revivedmedia.net/imobitrax/uhadroewiur5y67ru.php', 'POST' );5 I- ]3 e, J( X7 d# z7 s8 o2 W
$request = ;
9 L5 ]8 l/ B* e: P( I/ ^' A $request->execute( );
" T& v4 f! D/ J" O" v ~0 O8 ?; s json_decode( $request->responseBody );
1 h0 D8 m2 J& S w $c_data = ;
+ y* \4 E& D: y6 U trim( mcrypt_decrypt( MCRYPT_BLOWFISH, $responseDataEncryptCipher_W8u2p3urm5, rawurldecode( $c_data->info1 ), MCRYPT_MODE_ECB ) );
0 R7 U1 F {$ ~/ p $isValid = ;
) B- R0 d6 a7 }: F! c trim( mcrypt_decrypt( MCRYPT_BLOWFISH, $responseDataEncryptCipher_W8u2p3urm5, rawurldecode( $c_data->info2 ), MCRYPT_MODE_ECB ) );4 z9 `" }9 V' o. u
$statusCode = ;& L; } t L; X- M. M+ |
trim( mcrypt_decrypt( MCRYPT_BLOWFISH, $responseDataEncryptCipher_W8u2p3urm5, rawurldecode( $c_data->info ), MCRYPT_MODE_ECB ) );. z! i6 b) ]* a; ?2 H
$responseApiKey_mnwTcIrW3c = ;
! V( x( e! p# ~$ r2 e $responseApiKey_mnwTcIrW3c = $responseApiKey_JqeXTfS3du;+ h$ ^! z) I p
}! R% |, f4 u3 }4 w: ? B" I7 D
4 C* h9 `4 ~+ d) h" c5 l9 o1 ]* C
% O k4 N0 D* ]' w* w if () {* Y7 I( F4 S% f
$['imobi_data'] = array( 'imVersion' => $c_data->iVersion, 'xmlVersion' => $c_data->dVersion );. _! C- [% o0 H- c
continue;
/ O- V8 M1 M: O }
) ~( h" ~8 S8 K6 B; `1 e, k2 w/ \
jmp;
9 c3 {3 `6 M* k switch (true) {
) M" k8 c: _' P: N+ B9 G case (bool): {
- [* A0 C& d2 Q) J new ( 'http://www.imobitrax.com/license/logger.php', 'POST', null, true, 1 );, L4 I/ B* v( P5 e' j" }$ }
$request1 = ;# S2 }, B, j3 P- O& h
$request1->execute( );
' |7 W' e- q; J% {; ] $msgHeader = 'This domain (' . $['SERVER_NAME'] . ') is not licensed to run iMobiTrax.';
0 v: J6 q ?! R! S2 V5 w2 I$ l $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.';2 @: z. k0 n0 G. C/ F! T
break ;
7 N9 H( c9 b( {4 x1 p !;
& S* K! m+ Z# c switch (true) {
" ]4 A% O, \+ x& s0 @ case ( $isValid && ): {
" {+ l/ h& |, M, ]# @# A 'This domain (' . $['SERVER_NAME'] . ') is licensed to run iMobiTrax, but you need to pay for your license.';
- [4 L" P) P" q6 S+ Y7 a% J* J- G }
9 y: m4 t% k/ {9 i9 s2 b& m* w }
; W" h, ]. y- ]3 ^ }
9 a3 A+ N/ X/ _( p( X2 s' o }
7 y/ \. @2 {2 i' d
: h7 |3 F9 W5 g+ X$ ?4 S $msgHeader = ;
0 s' L. q: P/ a# [' ]+ \8 q $msg = 'Please contact support to arrange payment for your license.';
! E1 s) Y0 V: n }
$ j p9 f: v2 M/ i
( z5 S2 L% h% x) Y8 d; z3 g* X break ;$ C% }! Z8 }, ~. v$ g
$statusCode = 1;
4 Q5 l- N$ J; V7 F$ p1 } switch (true) {
) j5 G. ]4 L+ I2 n case ( $isValid && ): {6 S5 a& |+ j* k6 ]% \! Q$ v9 {
$verified = true;
" a; l7 O$ t; k& g break ;
0 u! Z/ y! N1 {' ]4 R+ J $statusCode = 2;! ]2 m9 G. G- }( U- b" I2 s' S2 D
switch (true) {5 a* z, T" Q$ v0 X) i/ o) d
case ( $isValid && ): {* p+ F* G9 _; D) w( X5 _
$msgHeader = 'Your monthly subscription to use iMobiTrax on this domain has expired.';
5 N) s+ J+ O# F% Q5 w $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.';
/ b* ~' h) p0 d! o' [% N) ]1 _ break ;
- h" _# m: s5 C !;
' D w4 \# P( C0 T/ @+ `# B! F5 w }: \% }7 \. x% p) u6 ]% ~. Y
' Z$ h0 Z. D7 B. W case ( && ): {
1 Z3 t1 \; h+ H, N- l# \3 H" e new ( 'http://www.imobitrax.com/license/logger.php', 'POST', null, true, 3 );
# {& D; {' `; a' ^6 r $request1 = ;
9 P& Y1 m# C* v- u" C6 y- \! q( A $request1->execute( );+ N! e. V1 ^6 {, z1 K5 O) T0 C
$msgHeader = 'There appears to be an error in iMobiTrax.';
7 I; P9 c1 T* I2 z+ r N $msg = 'Please contact support.';5 ?5 H& ~5 B: p3 }
break ;9 e6 ]% {% I ^6 N
$statusCode = 4;% C9 C) V% C8 J/ Q3 D# ?
switch (true) {$ e! N# N0 ~- K; q
case ( ! && ): {6 x6 J$ ]1 x# C" F, X1 Z
$msgHeader = 'iMobiTrax Technicians are currently upgrading our API core.';0 w, m: P4 g9 B) ]8 R4 k
$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].';* ~& i* p$ J1 u
break ;/ |0 l4 u% y: f1 Z5 _. l+ H* j7 d5 t: x
new ( 'http://www.imobitrax.com/license/logger.php', 'POST', null, true, 5 );, f/ i2 P) L% W4 ~
$request1 = ;
l4 H' Q f3 T6 } $request1->execute( );
: L2 S. x" n7 ^& Q $msgHeader = 'There appears to be an error in iMobiTrax.';& D: O# A- m1 I( _1 b' B6 |
$msg = 'Please contact support!';* _, Y a4 v9 Y# [; M. ?
break ;
' I6 B6 V9 F2 [4 o$ o2 Q+ \ ;' |/ G" j8 X4 K5 U
}
: M/ T- k( Q7 }0 i; ~& m+ H0 r5 Z }6 G1 i6 s: s6 q' t
}, w: \ T7 x F U
}/ l$ N6 s+ v! A$ c
" X2 C( X# _1 g
$statusCode = 3;
; P% _+ H' Z& f }; S/ Y1 ~4 C8 s# X$ _( v
}6 u6 {+ j9 C/ n! y) Y
}
# z$ h% ?5 w8 z0 Q8 L0 B$ ^! J4 q' b: @# r6 i4 U7 S. U
new ( );/ C% \2 |$ v7 L' d
$postAuthorization = ;
* a9 g( M) {# {# ]7 |4 |7 |. [ $postAuthorization->createTokens( 5 );2 L( V% K$ q& ~4 v M7 T* \' D1 s5 {
$postAuthorization->tokenName;
- h; T5 N9 i7 g6 T* Q $postTokenName = ;/ v2 c, p4 d/ Z. a7 @
$postAuthorization->tokenValue;; |( @& Q& ^3 {3 J
$postTokenValue = ;
# U: ^" H) Y* k, S- J4 e/ ] $postAuthorization->tokenId;! l: }4 i: I8 u( d; ` ~! N
$tokenId = ;" G- G7 |0 P5 d) N
PageElement::topTemplateLogin( 'iMobiTrax Login' );- e- e% n9 H: I5 j: F
5 Q, q9 R; _, c9 x2 `) u$ f if ($loginFailed) {+ [( a' [/ B6 K" m' P5 l K. o
if (!) {
/ k; V3 O4 d$ o9 Q f& @- G echo ;
" k* I* B; I1 N( A3 s9 A* d& N. x continue;
, k I4 F2 L6 W2 p9 Q7 V! v' o }8 f) j, C2 z. h/ m# Y
9 r8 v4 y3 i$ S' y
jmp;' k3 t0 p6 T, X6 e- L3 K
- E1 A- W, _/ S2 W) ^% z7 p if () {
& E" z5 v+ _: X6 y" [ echo ;# s; G! q' a R7 R
echo ;
9 |0 d, B1 ?9 p) ] echo ;
9 e" T! L7 X' J0 z echo ;5 C- H5 C* D$ Q) V6 ?
echo ;$ S( l: j1 ?4 u Z
echo ;; t4 a; z* N G4 P: E8 c$ `" S# X
echo ;
' }9 Q; c% s) {: T! q echo ;$ Q2 e: Z( P, k4 z/ v( l8 J) I
; {0 l4 }9 M9 C% K0 p: H/ x% D
if ($html['userName'] != '') {" t% B% I/ l2 A) f& `: C, q
echo ;+ U9 T2 X" M* I; ^0 V5 ~
}
9 G" I E' N1 ^2 C" Y: y' B }" c) ?# A a7 e( s. @, \# X
# a( g9 C1 X0 R3 Z echo ;
2 `% J* t1 ]. m& C. J continue;1 L: ?, h8 j- Y0 U9 r
}
) v+ e' A% @+ @6 a" z, i" n, Q# b" a# w% q/ C; X- v
jmp;# n, k6 q$ o2 {( Z( K- K0 a* \
( $mysqlErrorMain );
: R7 J' @$ h) j5 [9 D5 v }
; x; q/ K5 ?$ F) {* N+ z
8 `5 d& j- E* q! F) E7 v# W- T! H !;! f4 {9 {( F) b
% e$ z1 T( [ b2 Z, c3 M" j- V if (( ( $verified && ) && )) {
) ]0 @4 C. C" q$ z $page = 'login.php';
1 q. {- w6 r8 p" V- O _mysqlError( $mysqlError, $page, false );& I; V2 E3 J- ?- T, ? R1 Z* u
}- D1 a \& {# N- a
8 d' a' Y N4 _# o% f+ m
jmp;8 ]! b% j' J5 X; p; P5 t0 I# Z! W
( );
! ~) U# ?% X7 T; i7 d( f; d return ;3 V- `( I" U- {8 `6 ^
?> |
|