Cable Forum

Cable Forum (https://www.cableforum.uk/board/index.php)
-   General IT Discussion (https://www.cableforum.uk/board/forumdisplay.php?f=19)
-   -   Guess what.. (https://www.cableforum.uk/board/showthread.php?t=33674269)

Dai 27-01-2011 12:09

Guess what..
 
Anyone care to guess what this does?


($=[$=[]][(__=!$+$)[_=-~-~-~$]+({}+$)[_/_]+
($$=($_=!''+$)[_/_]+$_[+$])])()[__[_/_]+__
[_+~$]+$_[_]+$$](_/_)


googling will reveal all ... how many web forums that attempt to strip
out javascript from posts would strip it out?

Matth 27-01-2011 22:57

Re: Guess what..
 
Alarming, IE8 detected an XSS attempt
See also
http://utf-8.jp/public/jjencode.html

budwieser 27-01-2011 23:43

Re: Guess what..
 
Quote:

Originally Posted by DaiNasty (Post 35159750)
Anyone care to guess what this does?


($=[$=[]][(__=!$+$)[_=-~-~-~$]+({}+$)[_/_]+
($$=($_=!''+$)[_/_]+$_[+$])])()[__[_/_]+__
[_+~$]+$_[_]+$$](_/_)


googling will reveal all ... how many web forums that attempt to strip
out javascript from posts would strip it out?

Is it the script for an ASCI Porn film?:D Needs a couple more ( . )( . ) in it mate.:angel:

Dai 28-01-2011 22:31

Re: Guess what..
 
Quote:

Originally Posted by Matth (Post 35160320)
Alarming, IE8 detected an XSS attempt
See also
http://utf-8.jp/public/jjencode.html

I'm reliably informed thusly:

What it does very cleverly is dissect individual letters from the
runtime string constants like "object", "false" and "true", then
concatenate them back together to make a string representation of the
code it wants to execute, which it can do because javascript is a
dynamic language ...

All that demo code does is build the equivalent of

window["alert"](1)

but without containing any alphanumerics itself, with similar techniques
and by making use of additional string constants (you could get hold of
"null", "number", "string", "undefined" and "array" easily) you could
grab 18 out of the 26 letters to play with

abcdefg_ij_lmno__rstu___y_

with suitable cunning, you could start to patch together a sizeable
fraction of whatever code you really wanted to inject, all without
looking like recognisable code.

Or something..

Maggy 28-01-2011 23:18

Re: Guess what..
 
http://incognitas.ghotihosted.com/SugarwareZ-196.gif


All times are GMT +1. The time now is 12:15.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
All Posts and Content are © Cable Forum