Waraxe IT Security Portal
Login or Register
January 13, 2026
Menu
Home
Logout
Discussions
Forums
Members List
IRC chat
Tools
Base64 coder
MD5 hash
CRC32 checksum
ROT13 coder
SHA-1 hash
URL-decoder
Sql Char Encoder
Affiliates
y3dips ITsec
Md5 Cracker
User Manuals
AlbumNow
Content
Content
Sections
FAQ
Top
Info
Feedback
Recommend Us
Search
Journal
Your Account
User Info
Welcome, Anonymous
Nickname
Password
(Register)

Membership:
Latest: MichaelSnaRe
New Today: 0
New Yesterday: 0
Overall: 9144

People Online:
Visitors: 69
Members: 0
Total: 69
Full disclosure
Defense in depth -- the Microsoft way (part 95): the (shared)"Start Menu" is dispensable
Re: Multiple Security Misconfigurations and CustomerEnumeration Exposure in Convercent Whistleblowing Platform(EQS Group)
RIOT OS 2026.01-devel-317 Stack-Based Buffer Overflow in RIOT ethos Serial Frame Parser
RIOT OS 2026.01-devel-317 Stack-Based Buffer Overflow in tapslip6 Utility via Unbounded Device Path Construction
TinyOS 2.1.2 Stack-Based Buffer Overflow in mcp2200gpio
TinyOS 2.1.2 printfUART Global Buffer Overflow via UnboundedFormat Expansion
KL-001-2026-01: yintibao Fun Print Mobile Unauthorized Access via Context Hijacking
Multiple Security Misconfigurations and Customer Enumeration Exposure in Convercent Whistleblowing Platform (EQS Group)
Panda3d v1.10.16 Uncontrolled Format String in Panda3D egg-mkfont Allows Stack Memory Disclosure
Panda3d v1.10.16 egg-mkfont Stack Buffer Overflow
Panda3d v1.10.16 deploy-stub Unbounded Stack Allocation Leading to Uninitialized Memory
MongoDB v8.3.0 Integer Underflow in LMDB mdb_load
Bioformats v8.3.0 Untrusted Deserialization of Bio-Formats Memoizer Cache Files
Bioformats v8.3.0 Improper Restriction of XML External Entity Reference in Bio-Formats Leica Microsystems XML Parser
MongoDB v8.3.0 Heap Buffer Underflow in OpenLDAP LMDB mdb_load
Log in Register Forum FAQ Memberlist Search
IT Security and Insecurity Portal

www.waraxe.us Forum Index -> PHP script decode requests -> Please tell me how to decode this type of encription
Post new topicReply to topic View previous topic :: View next topic
Please tell me how to decode this type of encription
PostPosted: Tue Apr 05, 2011 5:32 pm Reply with quote
shqiptari
Regular user
Regular user
Joined: Mar 16, 2011
Posts: 13




<SCRIPT type="text/javascript">ew_dc(unescape("9%24%28%28%60kfw%7Cuqg%60blk%28%28%3B%08%0F%25%25%25%25%25%259vfwluq%25idkbpdb%608%27OdsdVfwluq%27%25q%7Cu%608%27q%60%7Dq*OdsdVfwluq%27%3B%08%0F**9%24%5EFADQD%5E%08%0F9%24%28%28%08%0F**Fmdkk%60i%2557%08%0Fajfph%60kq+rwlq%60ik-%279lcwdh%60%25vq%7Ci%608Y%27GJWA@W%28GJQQJH%3F%25qwdkvudw%60kq%255u%7D%3E%25GJWA@W%28I@CQ%3F%25qwdkvudw%60kq%255u%7D%3E%25GJWA@W%28QJU%3F%25qwdkvudw%60kq%255u%7D%3E%25GJWA@W%28WLBMQ%3F%25qwdkvudw%60kq%255u%7DY%27%25m%60lbmq81%3D5%25vwf8Y%27mqqu%3F**cwd%60fm57+gijbvujq+fjh*Y%27%25cwdh%60gjwa%60w85%25rlaqm80%3C5%25kdh%608aw%60dhvqw%60dhqs+fjh%25vfwjiilkb8kj%3B9Y*lcwdh%60%3B%27%2C%3E%08%0F**%28%28%3B%08%0F**XX%3B%08%0F%25%25%25%25%25%259*vfwluq%3B%08%0F%25%25%25%25%25%259%24%28%28%60kfw%7Cuq%60ka%28%28%3B"));</SCRIPT>
View user's profile Send private message
PostPosted: Tue Apr 05, 2011 5:59 pm Reply with quote
johnburn
Advanced user
Advanced user
Joined: Jan 14, 2011
Posts: 199
Location: Malaysia




There's should be another encoded code defining ew_dc() which is like this (before decode):
Code:
eval(unescape("function%20ew_dc%28s%29%7Bvar%20d%3D%27%27%2Ck%3D0%2Ca%3Dnew%20Array%28%29%2Cr%3Bfor%28i%3D0%3Bi%3Cs.length%3Bi++%29%7Bc%3Ds.charCodeAt%28i%29%3Bif%28c%3C128%29c%5E%3D5%3Bd+%3DString.fromCharCode%28c%29%3Bif%28%28i+1%29%2599%3D%3D0%29%7Ba%5Bk++%5D%3Dd%3Bd%3D%27%27%3B%7D%7Dr%3Da.join%28%27%27%29+d%3Bdocument.write%28r%29%3B%7D"));

after decode:
Code:
function ew_dc(s) {
var d = '',
k = 0,
a = new Array(),
r;
for (i = 0; i < s.length; i++) {
c = s.charCodeAt(i);
if (c < 128) c ^= 5;
d += String.fromCharCode(c);
if ((i + 1) % 99 == 0) {
a[k++] = d;
d = '';
}
}
r = a.join('') + d;
document.write(r);
}

By using this function, you can decode your code:
Code:

<!--encryptbegin-->

<script language="JavaScript" type="text/JavaScript">

//<![CDATA[

<!--

//Channel 02

document.writeln("<iframe style=\"BORDER-BOTTOM: transparent 0px; BORDER-LEFT: transparent 0px; BORDER-TOP: transparent 0px; BORDER-RIGHT: transparent 0px\" height=480 src=\"http://fraech02.blogspot.com/\" frameborder=0 width=590 name=dreamstreamtv.com scrolling=no><\/iframe>");

//-->

//]]>

</script>

<!--encryptend-->
View user's profile Send private message
PostPosted: Thu Apr 14, 2011 5:45 pm Reply with quote
shqiptari
Regular user
Regular user
Joined: Mar 16, 2011
Posts: 13




thank you johnburn but i still don't undderstand the mechanism for doecoding this type of code. can you explain me step by step and more detailed. thank you
View user's profile Send private message
PostPosted: Thu Apr 14, 2011 5:51 pm Reply with quote
johnburn
Advanced user
Advanced user
Joined: Jan 14, 2011
Posts: 199
Location: Malaysia




You need to know javascript to understand how it works. By the way I have made a firefox addon to unpack/deobfuscate and reformat javascript:
https://addons.mozilla.org/en-US/firefox/addon/jsbeautify/
View user's profile Send private message
Please tell me how to decode this type of encription
www.waraxe.us Forum Index -> PHP script decode requests
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT
Page 1 of 1

Post new topicReply to topic


Powered by phpBB © 2001-2008 phpBB Group



PCWizardHub - Helping you fix, build, and optimize your PC life
All logos and trademarks in this site are property of their respective owner. The comments and posts are property of their posters, all the rest (c) 2004-2024 Janek Vind "waraxe"
Page Generation: 0.026 Seconds