Waraxe IT Security Portal
Login or Register
June 26, 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: 156
Members: 0
Total: 156
Full disclosure
OpenBSD mpls_do_error: Remote Kernel Stack Disclosure via MPLS Label Stack Over-read
OpenBSD sppp_pap_input: PAP authentication bypass
SEC Consult SA-20260618-0 :: Hardcoded Root Cloud Credentials in Application Binaries in Silver Leaf Technologies - Worksnaps.net Worksnaps
SEC Consult SA-20260617-1 :: Multiple Vulnerabilities in Quanos Content Solutions - SCHEMA ST4
SEC Consult SA-20260617-0 :: Multiple Critical Vulnerabilities in Sprecher Automation SPRECON-E-C/-E-P/-E-T3
SEC Consult SA-20260616-0 :: Broken Access Control in syracom AG Secure Login (2FA) for Atlassian Jira / Confluence / Bitbucket #CVE-2026-12225
APPLE-SA-06-16-2026-1 Beats Firmware Update 1B211
PHP 8.5.7 `levenshtein()` signed-integer overflow
PHP 8.5.7 `dom_xml_serialization_al gorithm()` stack-overflow
PHP 8.5.7 `mb_substr()` 'SJIS-mac' size_t underflow
PHP 8.5.7 `FILTER_SANITIZE_ENCODED` uninitialized read
CVE-2025-68624: Cross-Tenant Authentication Bypass by Spoofing in N-able Mail Assure
SEC Consult SA-20260615-1 :: Multiple Vulnerabilities in Wertheim SafeController Hardware for VAULT ROOMS (Safe Deposit Locker System – Microcontroller)
SEC Consult SA-20260615-0 :: Multiple Critical Vulnerabilities in Wertheim SafeController Software for VAULT ROOMS (Safe Deposit Locker System)
SEC Consult SA-20260610-0 :: Local Privilege Escalation in Slate Digital Connect (macOS)
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.036 Seconds