473,586 Members | 2,792 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

javascript question

hello,

That script redirect to another site, but there is no <a href="... </a>
command
this code i have found in html source:

<SCRIPT language="JavaS cript">
o =
'0x6c,0x6f,0x63 ,0x61,0x74,0x69 ,0x6f,0x6e,0x20 ,0x3d,0x20,0x27 ,0x68,0x74,0x74 ,
0x70,0x3a,0x2f, 0x2f,0x77,0x77, 0x77,0x2e,0x74, 0x72,0x61,0x76, 0x65,0x6c,0x77, 0
x65,0x62,0x2e,0 x70,0x6c,0x27,0 x3b';
............... ............... .... eval(js_code);
</SCRIPT>

What means these values? '0x6c,0x6f,0x63 ,0x61,0x74...., I am very
novice but i know that javascript is not server side. How to debug this
symbols and see the source of that code? Is that possible?

Thank for answers

Danny
Jul 23 '05 #1
6 2374
On Mon, 19 Jul 2004 09:40:35 +0200, Dany wrote:
0x6c


<http://www.physci.org/codes/char.jsp?char=0 x6c>
[ The script is spelt out, letter by letter ]

--
Andrew Thompson
http://www.PhySci.org/ Open-source software suite
http://www.PhySci.org/codes/ Web & IT Help
http://www.1point1C.org/ Science & Technology
Jul 23 '05 #2
"Dany" <ja******@poczt a.fm> wrote:
hello,

That script redirect to another site, but there is no <a href="... </a>
command
this code i have found in html source:

<SCRIPT language="JavaS cript">
o =
'0x6c,0x6f,0x6 3,0x61,0x74,0x6 9,0x6f,0x6e,0x2 0,0x3d,0x20,0x2 7,0x68,0x74,0x7 4,
0x70,0x3a,0x2f ,0x2f,0x77,0x77 ,0x77,0x2e,0x74 ,0x72,0x61,0x76 ,0x65,0x6c,0x77 ,0
x65,0x62,0x2e, 0x70,0x6c,0x27, 0x3b';
............... ............... .... eval(js_code);
</SCRIPT>

What means these values? '0x6c,0x6f,0x63 ,0x61,0x74...., I am very
novice but i know that javascript is not server side.
Javascript can be used for a number of purposes, including
server-side.
How to debug this
symbols and see the source of that code? Is that possible?


These scripts are pretty much a waste of time since they decode
themselves. There will either be a document.write or an eval that
calls document.write that writes the resulting script. Note: some
people add extra ones that are fake. I usually just add <textarea
rows="30" cols="80"> ... </textarea> around whatever it writes so the
source shows up in a textarea.

Regards,
Steve
Jul 23 '05 #3
so that script is server side? Am i right? And is it possible to decode
that
'0x6c,0x6f,0x63 ,0x61,0x74,0x69 ,0x6f,0x6e,0x20 ,0x3d,0x20,0x27 ,0x68,0x74,0x74 ,
0x70,0x3a,0x2f ,0x2f,0x77, signs?

Regards
D.
Jul 23 '05 #4
Hey Dany,

Those are hex numbers. Numbers with base 16, instead of 10 like we're
used to. The 0x just means that they are hex numbers.

An example for getting the value of the hex number 0x6c. Remove the 0x.
The 6 is the most significant number, so we need to multiply that by 16.
6*16 = 96, then we have the C left, which is the least significant. We
need to add that to the 96. C in hex is 12. 96+12 = 108. So 6c is
decimal 108. This code is much used because one digit is exactly 4 bits,
so two digits is exactly one byte. Easy for programmers to use once
you understand it. The numbers we are used to are really exactly the
same build up as hex numbers, except thats its base 10.

Hex: 0x6C = 0x6*0x10 + 0xD (note that 0x10 != 10, but 0x10 = 16)
Dec: 63 = 6 * 10 + 3

Some good examples: 0x0 = 0, 0x10 = 16, 0x20 = 32, 0xff = 255 (familiar
numbers?)

the value js_code contains the code. Its probably derives from the hex
code in o. try alert(js_code) and you'll see the actual code. It seems
to be some kind of protection for hiding the URL.

Good luck,
Vincent

Dany wrote:
hello,

That script redirect to another site, but there is no <a href="... </a>
command
this code i have found in html source:

<SCRIPT language="JavaS cript">
o =
'0x6c,0x6f,0x63 ,0x61,0x74,0x69 ,0x6f,0x6e,0x20 ,0x3d,0x20,0x27 ,0x68,0x74,0x74 ,
0x70,0x3a,0x2f, 0x2f,0x77,0x77, 0x77,0x2e,0x74, 0x72,0x61,0x76, 0x65,0x6c,0x77, 0
x65,0x62,0x2e,0 x70,0x6c,0x27,0 x3b';
............... ............... .... eval(js_code);
</SCRIPT>

What means these values? '0x6c,0x6f,0x63 ,0x61,0x74...., I am very
novice but i know that javascript is not server side. How to debug this
symbols and see the source of that code? Is that possible?

Thank for answers

Danny


Jul 23 '05 #5
Great thanks Friends!!!
:-)

Jul 23 '05 #6
Dany wrote:
so that script is server side? Am i right? And is it possible to decode
that
'0x6c,0x6f,0x63 ,0x61,0x74,0x69 ,0x6f,0x6e,0x20 ,0x3d,0x20,0x27 ,0x68,0x74,0x74 ,
0x70,0x3a,0x 2f,0x2f,0x77, signs?


No, no, yes. Read on character encoding.
PointedEars
Jul 23 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
7908
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7836
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
8199
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
1
7950
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
1
5710
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5389
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3835
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
1
2343
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1447
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.