can we rename/write to local files in HTML5 [duplicate] - javascript

This question already has answers here:
Closed 11 years ago.
Possible Duplicate:
Modifying Local Files Using HTML5 and JavaScript
I know we can read a local file that has been selected by the user, but is there the ability to rename or write to local files in javascript?

There is no way to natively write the filesystem in Javascript, for obvious security reasons.
However, if you must, there is an ActiveX object (Only in IE). It's Scripting.FileSystemObject.
You will find the documentation about that beast on the msdn site.

Related

Is it possible to possible update registry values using a client side programming language [duplicate]

This question already has answers here:
How to change registry settings on a system through web browser
(4 answers)
Closed 5 years ago.
I am new to penetration testing. My requirement is to update registry values from browser using a client side programming language like javascript. Is it possible?
No, JavaScript can't read / write arbitrary files to the hard disk, copy them or call programs. It does not have direct access to the operating system.
This is done for the security of users, so that an attacker could not use JavaScript to obtain personal data or somehow damage the user's computer.

is there an alternative to javascript for accessing the DOM API? [duplicate]

This question already has answers here:
Why is javascript the only client side scripting language implemented in browsers? [closed]
(3 answers)
Closed 7 years ago.
Every programming language has many alternatives, however, I could not find any alternative to javascript for accessing the DOM API? Why is this the case?
Thanks.
You have alternatives like Dart, LiveScript, Typescript, Babel and Coffeescript, yet these will be compiled/translated to native Javascript. The reason there is no real alternative is the fact that it is the only standard that is being implemented by all major browser "companies".

Is possible read the browser history with JS? [duplicate]

This question already has answers here:
Is it possible to detect a visitor's browsing history using JavaScript or PHP?
(5 answers)
Closed 9 years ago.
Is possible read the browser history with Javascript? If the answer is Yes, how can I do it?
I want to read it and save it in a JS variable.
No. Other sites visited by a user are their business, not the business of every website they visit. Browsers do not expose that information to web sites.
Browsers go to pretty serious lengths to plug anything that could leak a user's history to websites
In general history is protected by the browser against javascript accessing it except through back and forward functionality.
Source From : Access my entire browsing history via Javascript

compress a javascript [duplicate]

This question already has answers here:
Closed 10 years ago.
Possible Duplicate:
How can I obfuscate JavaScript?
I want my js not to be understood by anyone. I have read some similar posts on this site but can get an exe or a full desktop application for it. Whatever I get are online tools.
OR how to sense '\n' character in js?
UglifyJS / UglifyJS2:
JavaScript parser / mangler / compressor / beautifier toolkit
You can download "yui compressor" to compress the javascript. But I does not means that no-one can read you scripts.
Their are again tool which make your compressed javascript files again readable :(

Protecting JavaScript? Or use Something else? [duplicate]

This question already has answers here:
Closed 12 years ago.
Possible Duplicate:
How can I obfuscate JavaScript?
I have been working on a web app in JavaScript. Nearing complete.
How do I protect me JavaScript code from someone copying it? I mean if you view my page source, it references the .js files and one could really steal these.
Should I be using something else? RoR?
Does Google Maps have a RoR API?
Your closest bet would be to use something like
A Javascript Obfucator
A Javascript Minifier
A Javascript Packer
People will still be able to steal and use your code though, it will just be harder to modify.

Categories