473,394 Members | 2,002 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Encrypted javascript, or what?

2
Hello,

I downloaded a Wordpress theme. In the header.php document I ran across the following code:

Expand|Select|Wrap|Line Numbers
  1. <script language="JavaScript" type="text/javascript">var i,y,x="3c6469762069643d22777261707065722220636c6173733d2266697822203e0d0a093c64697620636c6173733d22706167656c696e6573706f73206e61762d69636f6e223e3c6120636c6173733d22706167656c696e65732220687265663d22687474703a2f2f7777772e7769636b65642d776f726470726573732d7468656d65732e636f6d223e3c3f706870206563686f20706167656c696e65732827637265647465787427293b3f3e3c2f613e3c2f6469763e0d0a202020203c6469762069643d226865616465722220636c6173733d22666978223e0d0a0909";y='';for(i=0;i<x.length;i+=2){y+=unescape('%'+x.substr(i,2));}document.write(y);
  2. </script>
Is this some sort of encryption? If so, is there any way to encrypt the script and find out exactly what it says/means?


// gaff
Feb 7 '10 #1
5 2278
Dormilich
8,658 Expert Mod 8TB
sure, that "encoding" (well, rather an obfuscation) is percent escape stripped off the % signs, easily recognisable by the clear text code at the end.
Feb 7 '10 #2
acoder
16,027 Expert Mod 8TB
Yep, change
Expand|Select|Wrap|Line Numbers
  1. document.write(y);
to
Expand|Select|Wrap|Line Numbers
  1. alert(y);
Feb 7 '10 #3
gaff
2
Thank you guys for your help. It worked fine.
Feb 7 '10 #4
Hello, I have a similar problem - how do I go about fixing this? (sorry I'm new so any step by step directions would be greatly appreciated!)

Is this very malicious or just posts a link?
Mar 24 '10 #5
Dormilich
8,658 Expert Mod 8TB
obfuscated code tends to be either annoying or malicious.
Mar 25 '10 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

33
by: Rod Speed | last post by:
Have a look at http://www.foxtel.com.au/TVGuide.aspx Select a channel in the left hand box, say discovery, hit GO. I want to import the data from the web page. I used to be able to until they...
8
by: robert | last post by:
Hello, I want to put (incrementally) changed/new files from a big file tree "directly,compressed and password-only-encrypted" to a remote backup server incrementally via FTP,SFTP or DAV.... At...
7
by: smerf | last post by:
I am trying to write a personal spider to crawl through websites and create a highly specialized personal list of sites and pages that I may like to see based on preferences that I have supplied. ...
2
by: Bernard Dhooghe | last post by:
The information center writes: "Encryption Algorithm: The internal encryption algorithm used is RC2 block cipher with padding, the 128-bit secret key is derived from the password using a MD2...
1
by: MimiMi | last post by:
I'm trying to decrypt a byte array in java that was encrypted in C#. I don't get any error messages, just a result that's completely not what I was hoping for. I think I am using the same type of...
2
by: MimiMi | last post by:
I'm trying to decrypt a byte array in java that was encrypted in C#. I don't get any error messages, just a result that's completely not what I was hoping for. I think I am using the same type of...
4
by: Five By Five | last post by:
I want user authentication to a MySQL system 1. The server will set up with the client to encrypt username/password during transport, but the server does not authorize user at any level. 2....
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.