473,403 Members | 2,071 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,403 software developers and data experts.

JS escaped string decryption

long story short, staff member went nuts on my site and now i need to remove some of his stuff but he decoded everything.

[HTML]<script>
<!--
document.write(unescape("%3Cbr%3E%0A%3Ccenter%3E%0 A%3Ctable%20width%3D%22415%22%20border%3D%220%22%3 E%0A%20%20%3Ctr%3E%0A%20%20%20%20%3Ctd%20width%3D% 22100%22%3E%3Ca%20href%3D%22index.php%22%3E%3Cimg% 20src%3D%22images/news_allgrey.png%22%20border%3D%220%22%3E%3C/a%3E%3C/td%3E%0A%20%20%20%20%3Ctd%20width%3D%225%22%3E%26n bsp%3B%3C/td%3E%0A%20%20%20%20%3Ctd%20width%3D%22100%22%3E%3 Ca%20href%3D%22news_site.php%22%3E%3Cimg%20src%3D% 22images/news_sitegrey.png%22%20border%3D%220%22%3E%3C/a%3E%3C/td%3E%0A%0A%20%20%20%20%3Ctd%20width%3D%22100%22%3 E%3Cimg%20src%3D%22images/news_neocolor.png%22%3E%3C/td%3E%0A%20%20%20%20%3Ctd%20width%3D%225%22%3E%26n bsp%3B%3C/td%3E%0A%20%20%20%20%3Ctd%20width%3D%22100%22%3E%3 Ca%20href%3D%22news_fca.php%22%3E%3Cimg%20src%3D%2 2images/news_fcagrey.png%22%20border%3D%220%22%3E%3C/a%3E%3C/td%3E%0A%20%20%3C/tr%3E%0A%3C/table%3E%3Cbr%3E%0A%0A%3Ccenter%3E%3C%3FPHP%0A%24n umber%3D15%3B%0A%24template%3D%22Default%22%3B%0A% 24category%3D%223%22%3B%0Ainclude%28%22/misc/14/244/411/338/8/user/web/neo-excitement.com/newsadmin/show_news.php%22%29%3B%0A%3F%3E%3C/center%3E"));
//-->
</script>
[/HTML]

All of this is mine and not sure if this is in the right section or not but if you can do that will bee great.

Wont respond much to this thread as my host just broke alot of servers and one of those servers have my site on it
Sep 18 '07 #1
7 3595
ronverdonk
4,258 Expert 4TB
I'll move this to the JavaScript forum, since the problem is in a JS statement.

moderator
Sep 18 '07 #2
I'll move this to the JavaScript forum, since the problem is in a JS statement.

moderator

Gah... Thanks for moving it
Sep 18 '07 #3
acoder
16,027 Expert Mod 8TB
Welcome to TSDN!

I've changed the thread title to include more information about the problem.

You want to know what that string translates into? Replace document.write with alert.
Sep 18 '07 #4
Welcome to TSDN!

I've changed the thread title to include more information about the problem.

You want to know what that string translates into? Replace document.write with alert.

Ok. I thought the sidebar code was in it but I guess not. I will look around again. Thanks


EDIT: I am a idiot. header.php

note to self: dont work on .php files at 8 am


Need this decoded so i can get rid of the iframe that is messing up the site

[PHP]document.write(unescape("%3Chtml%3E%0A%0A%3Chead%3 E%0A%3Ctitle%3ENeo-Excitement%3C/title%3E%0A%0A%3Clink%20rel%3D%22stylesheet%22%20t ype%3D%22text/css%22%20href%3D%22style.css%22%3E%0A%0A%3Cscript% 20language%3D%22JavaScript%22%3E%0A%3C%21--%0Afunction%20calcHeight%28%29%0A%7B%0A%20%20//find%20the%20height%20of%20the%20internal%20page%0 A%20%20var%20the_height%3D%0A%20%20%20%20document. getElementById%28%27interact%27%29.contentWindow.% 0A%20%20%20%20%20%20document.body.scrollHeight%3B% 0A%0A%20%20//change%20the%20height%20of%20the%20iframe%0A%20%20 document.getElementById%28%27interact%27%29.height %3D%0A%20%20%20%20%20%20the_height%3B%0A%7D%0A//--%3E%0A%3C/script%3E%0A%0A%3C/head%3E%0A%0A%3Cbody%20background%3D%22http%3A//neo-excitement.com/images/page_bg.png%22%3E%0A%0A%3Ctable%20style%3D%22posit ion%3Aabsolute%3B%20top%3A10px%3B%20left%3A0px%3B% 22%3E%0A%3Ctr%3E%3Ctd%20width%3D%2210%22%3E%26nbsp %3B%3C/td%3E%0A%0A%3Ctd%3E%0A%0A%0A%3Ctable%20cellpadding %3D%220%22%20cellspacing%3D%220%22%20border%3D%220 %22%20width%3D%22800%22%20height%3D%22169%22%3E%0A %3Ctr%3E%3Ctd%3E%0A%0A%3Cimg%20src%3D%22http%3A//neo-excitement.com/images/layout_header.png%22%20width%3D%22800%22%20height% 3D%22169%22%3E%0A%0A%3C/td%3E%3C/tr%3E%0A%3C/table%3E%0A%0A%0A%3Ctable%20cellpadding%3D%220%22% 20cellspacing%3D%220%22%20border%3D%220%22%20wclas sth%3D%22800%22%20background%3D%22http%3A//neo-excitement.com/images/layout_bg.png%22%3E%0A%0A%3C%21--BORDER--%3E%3Ctr%3E%3Ctd%20width%3D%2222%22%3E%3C/td%3E%3C%21--END%20BORDER--%3E%0A%0A%3Ctd%20width%3D%22156%22%20valign%3D%22t op%22%3E%0A%0A%3Ca%20href%3D%22http%3A//neo-excitement.com/site_home.php%22%3E%3Cimg%20src%3D%22http%3A//neo-excitement.com/images/links_thesite.png%22%20border%3D%220%22%3E%3C/a%3E%3Cbr%3E%3Cbr%3E%0A%0A%3Cimg%20src%3D%22http%3 A//neo-excitement.com/images/links_spacer.png%22%3E%3Ca%20href%3D%22http%3A//neo-excitement.com/index.php%22%3ENews%20Articles%3C/a%3E%3Cbr%3E%0A%3Cimg%20src%3D%22http%3A//neo-excitement.com/images/links_spacer.png%22%3E%3Ca%20href%3D%22http%3A//neo-excitement.com/site_about.php%22%3EAbout%20Neo-Excitement%3C/a%3E%3Cbr%3E%0A%3Cimg%20src%3D%22http%3A//neo-excitement.com/images/links_spacer.png%22%3E%3Ca%20href%3D%22http%3A//neo-excitement.com/site_support.php%22%3ESupport%20Neo-Excitement%3C/a%3E%3Cbr%3E%0A%3Cimg%20src%3D%22http%3A//neo-excitement.com/images/links_spacer.png%22%3E%3Ca%20href%3D%22http%3A//neo-excitement.com/site_contact.php%22%3EContact%20Neo-Excitement%3C/a%3E%3Cbr%3E%3Cbr%3E%0A%3Cimg%20src%3D%22http%3A//neo-excitement.com/images/links_spacer.png%22%3E%3Ca%20href%3D%22http%3A//neo-excitement.com/site_hosting.php%22%3EHosting%20Services%3C/a%3E%3Cbr%3E%0A%3Cimg%20src%3D%22http%3A//neo-excitement.com/images/links_spacer.png%22%3E%3Ca%20href%3D%22http%3A//neo-excitement.com/site_employees.php%22%3ECurrent%20Employees%3C/a%3E%3Cbr%3E%0A%3Cimg%20src%3D%22http%3A//neo-excitement.com/images/links_spacer.png%22%3E%3Ca%20href%3D%22http%3A//neo-excitement.com/site_openings.php%22%3EEmployment%20Openings%3C/a%3E%3Cbr%3E%0A%3Cimg%20src%3D%22http%3A//neo-excitement.com/images/links_spacer.png%22%3E%3Ca%20href%3D%22http%3A//neo-excitement.com/site_credits.php%22%3ESite%20Credits%20%26%20Statu s%3C/a%3E%3Cbr%3E%0A%0A%0A%3Cbr%3E%3Ca%20href%3D%22http %3A//neo-excitement.com/interact/%22%3E%3Cimg%20src%3D%22http%3A//neo-excitement.com/images/links_interactive.png%22%20border%3D%220%22%3E%3C/a%3E%3Cbr%3E%3Cbr%3E%3Ccenter%3E%3Ca%20href%3D%22h ttp%3A//neo-excitement.com/interactive.php%22%3EAbout%20NE%20Interactive%3C/a%3E%3Cbr%3E%0A%3Ciframe%20width%3D%22156%22%20id% 3D%22interact%22%20%0A%09onLoad%3D%22calcHeight%28 %29%3B%22%20%0A%09src%3D%22http%3A//neo-excitement.com/interact/iframe.php%22%20%0A%09scrolling%3D%22NO%22%20%0A%0 9frameborder%3D%220%22%20%0A%09height%3D%221%22%3E %0A%3C/iframe%3E%0A%3C/center%3E%3Ctext%20align%3D%22justify%22%3E%0A%3Ci mg%20src%3D%22http%3A//neo-excitement.com/images/links_spacer.png%22%3E%3Ca%20href%3D%22http%3A//neo-excitement.com/interact/%22%3EMain%20Forums%3C/a%3E%3Cbr%3E%0A%3Cimg%20src%3D%22http%3A//neo-excitement.com/images/links_spacer.png%22%3E%3Ca%20href%3D%22http%3A//neo-excitement.com/interact/misc.php%3Faction%3Dsearch%22%3ESearch%20Forums%3C/a%3E%3Cbr%3E%0A%3Cimg%20src%3D%22http%3A//neo-excitement.com/images/links_spacer.png%22%3E%3Ca%20href%3D%22http%3A//neo-excitement.com/interact/faq.php%3Fpage%3Dforumrules%22%3ETerms%20%26%20Con ditions%3C/a%3E%3Cbr%3E%0A%0A%0A%3Cbr%3E%3Ca%20href%3D%22http %3A//neo-excitement.com/designs_home.php%22%3E%3Cimg%20src%3D%22http%3A//neo-excitement.com/images/links_designs.png%22%20border%3D%220%22%3E%3C/a%3E%3Cbr%3E%3Cbr%3E%0A%3Cimg%20src%3D%22http%3A//neo-excitement.com/images/links_spacer.png%22%3E%3Ca%20href%3D%22http%3A//neo-excitement.com/designs_icons.php%22%3EAvatars%20%26%20Icons%3C/a%3E%3Cbr%3E%0A%3Cimg%20src%3D%22http%3A//neo-excitement.com/images/links_spacer.png%22%3E%3Ca%20href%3D%22http%3A//neo-excitement.com/designs_banners.php%22%3EBanners%20%26%20Signs%3C/a%3E%3Cbr%3E%0A%3Cimg%20src%3D%22http%3A//neo-excitement.com/images/links_spacer.png%22%3E%3Ca%20href%3D%22http%3A//neo-excitement.com/designs_guilds.php%22%3EGuild%20Layouts%3C/a%3E%3Cbr%3E%0A%3Cimg%20src%3D%22http%3A//neo-excitement.com/images/links_spacer.png%22%3E%3Ca%20href%3D%22http%3A//neo-excitement.com/designs_web.php%22%3EWebsite%20Templates%3C/a%3E%3Cbr%3E%0A%3Cimg%20src%3D%22http%3A//neo-excitement.com/images/links_spacer.png%22%3E%3Ca%20href%3D%22http%3A//neo-excitement.com/designs_lookup.php%22%3EUser-Lookup%20Layouts%3C/a%3E%3Cbr%3E%0A%0A%0A%3Cbr%3E%3Ca%20href%3D%22http %3A//neo-excitement.com/guides_home.php%22%3E%3Cimg%20src%3D%22http%3A//neo-excitement.com/images/links_neoguides.png%22%20border%3D%220%22%3E%3C/a%3E%3Cbr%3E%3Cbr%3E%0A%3Cimg%20src%3D%22http%3A//neo-excitement.com/images/links_spacer.png%22%3E%3Ca%20href%3D%22http%3A//neo-excitement.com/guides_site.php%22%3ESite%20Guides%3C/a%3E%3Cbr%3E%0A%3Cimg%20src%3D%22http%3A//neo-excitement.com/images/links_spacer.png%22%3E%3Ca%20href%3D%22http%3A//neo-excitement.com/guides_games.php%22%3EGame%20Guides%3C/a%3E%3Cbr%3E%0A%3Cimg%20src%3D%22http%3A//neo-excitement.com/images/links_spacer.png%22%3E%3Ca%20href%3D%22http%3A//neo-excitement.com/guides_finders.php%22%3EFinders%20%26%20Lists%3C/a%3E%3Cbr%3E%0A%3Cimg%20src%3D%22http%3A//neo-excitement.com/images/links_spacer.png%22%3E%3Ca%20href%3D%22http%3A//neo-excitement.com/guides_articles.php%22%3EFeatured%20Articles%3C/a%3E%3Cbr%3E%0A%0A%0A%3Cbr%3E%3Ca%20href%3D%22http %3A//neo-excitement.com/tutorials_home.php%22%3E%3Cimg%20src%3D%22http%3A//neo-excitement.com/images/links_tutorials.png%22%20border%3D%220%22%3E%3C/a%3E%3Cbr%3E%3Cbr%3E%0A%3Cimg%20src%3D%22http%3A//neo-excitement.com/images/links_spacer.png%22%3E%3Ca%20href%3D%22http%3A//neo-excitement.com/tutorials_web.php%22%3EWebsite%20Design%3C/a%3E%3Cbr%3E%0A%3Cimg%20src%3D%22http%3A//neo-excitement.com/images/links_spacer.png%22%3E%3Ca%20href%3D%22http%3A//neo-excitement.com/tutorials_design.php%22%3EDesign%20Programs%3C/a%3E%3Cbr%3E%0A%3Cimg%20src%3D%22http%3A//neo-excitement.com/images/links_spacer.png%22%3E%3Ca%20href%3D%22http%3A//neo-excitement.com/tutorials_programming.php%22%3EProgramming%20Langu ages%3C/a%3E%3Cbr%3E%0A%0A%0A%3Cbr%3E%3Ca%20href%3D%22http %3A//neo-excitement.com/affiliates_home.php%22%3E%3Cimg%20src%3D%22http%3A//neo-excitement.com/images/links_affiliates.png%22%20border%3D%220%22%3E%3C/a%3E%3Cbr%3E%3Cbr%3E%0A%0A%3Ccenter%3E%5BAFFILIATE S%20HERE%5D%3Cbr%3E%3Cbr%3E%0A%0A%5BTOPSITES%20HER E%5D%3C/center%3E%3Cbr%3E%0A%0A%0A%0A%3C/td%3E%0A%0A%0A%3C%21--BORDER--%3E%3Ctd%20width%3D%2212%22%3E%3C/td%3E%3C%21--END%20BORDER--%3E%0A%0A%3Ctd%20width%3D%22584%22%20valign%3D%22t op%22%20align%3D%22justify%22%3E%0A%0A%0A%0A%0A%0A %3Cdiv%3E%0A%0A%3Ccenter%3E%3Ctable%20width%3D%225 75%22%20class%3D%22navtd%22%3E%3Ctr%3E[/PHP]
Sep 18 '07 #5
acoder
16,027 Expert Mod 8TB
Use this as a test:
[HTML]<html>
<body>
<form>
<textarea id="test" rows="20" cols="50"></textarea>
</form>
<script>
document.getElementById("test").value = unescape('the escaped code goes here');
</script>
</body>
</html>[/HTML]
Sep 18 '07 #6
Use this as a test:
[HTML]<html>
<body>
<form>
<textarea id="test" rows="20" cols="50"></textarea>
</form>
<script>
document.getElementById("test").value = unescape('the escaped code goes here');
</script>
</body>
</html>[/HTML]

I now love this site. That worked perfectly. Thanks

*lock thread*
Sep 18 '07 #7
acoder
16,027 Expert Mod 8TB
You're welcome. Glad to hear you got your problem solved.
Sep 19 '07 #8

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

Similar topics

2
by: Nathan | last post by:
Is there a way to convert a string to a CipherMessage? I am calling a function that decrypts a CipherMessage and returns the value. The only problem is when I want to use an encrypted value stored...
4
by: John Smith | last post by:
My program includes a use of strstr(). It looks like this: if(strstr(*str1, *str2) ........... After compiling the code, I opened the program with a hex editor (this is on Windows). Sure...
2
by: Greg R | last post by:
Where can I find a code example that will demonstrate the encryption and decryption of a string in C# I am familiar with "System.Security.Cryptography" encryption, but need a system that will both...
3
by: Anders Both | last post by:
If I receive a query string on the server that contains escaped char´s like this: text=%20asadfdsf%20%C6%D8%C5%20%E6%F8%E5%20AAA How can I then get the NameValueCollection where the escaped...
12
by: Charlie | last post by:
Hi: My host will not allow me use a trusted connection or make registry setting, so I'm stuck trying find a way to hide connection string which will be stored in web.config file. If I encrypt...
13
by: Oxns | last post by:
Hi, Can anyone point me at the class to convert a string so that it displays escaped chars as \r, \n etc. please Its done in the 2005 debugger so I hope its available as a class ??. Thanks...
14
by: WebMatrix | last post by:
Hello, I have developed a web application that connects to 2 different database servers. The connection strings with db username + password are stored in web.config file. After a code review,...
4
by: Trev | last post by:
Hi everyone, Thanks to all who have helped with various issues in the past. I've come up with a new one though: I've run some html through a javascript converter; basically it takes the html and...
12
by: Torsten Bronger | last post by:
Hallöchen! I need some help with finding matches in a string that has some characters which are marked as escaped (in a separate list of indices). Escaped means that they must not be part of...
9
by: Michael Goerz | last post by:
Hi, I am writing unicode stings into a special text file that requires to have non-ascii characters as as octal-escaped UTF-8 codes. For example, the letter "Ã" (latin capital I with acute,...
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: 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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.