jikjik Posted April 30, 2016 Share Posted April 30, 2016 crypter javascript is possible create the crypter? eg. read binary data, encrypt, savae binary data? :) I mean by the addition to mozilla by my super mega crypter ;D who try? Link to comment Share on other sites More sharing options...
0 0b3y Posted May 1, 2016 Share Posted May 1, 2016 Re: crypter javascript With javascript its imposible becasue it can´t open a file, read or write, you can make it in php but not in javascript Link to comment Share on other sites More sharing options...
0 jikjik Posted May 1, 2016 Author Share Posted May 1, 2016 Re: crypter javascript impossible? try hmmm eg, try{ var file = file.replace(/\\/g,""); }catch(e){} // zamienia \ na \\ var fpLocal = Components.classes['@mozilla.org/file/local;1'].createInstance(Components.interfaces.nsILocalFile); fpLocal.initWithFile(file); //fpLocal.initWithPath(file); var finStream = Components.classes["@mozilla.org/network/file-input-stream;1"].createInstance(Components.interfaces.nsIFileInputStream); finStream.init(fpLocal, 1, 0, false); var bufStream = Components.classes["@mozilla.org/network/buffered-input-stream;1"].createInstance(Components.interfaces.nsIBufferedInputStream); bufStream.init(finStream, 9000000); return bufStream; var binaryOutputStream = Components.classes["@mozilla.org/binaryoutputstream;1"].createInstance(Components.interfaces.nsIBinaryOutputStream); var storageStream = Components.classes["@mozilla.org/storagestream;1"].createInstance(Components.interfaces.nsIStorageStream); storageStream.init(4096, danepliku.length, null); binaryOutputStream.setOutputStream(storageStream.getOutputStream(0)); binaryOutputStream.writeBytes(danepliku, danepliku.length); binaryOutputStream.close(); //danepliku = storageStream.newInputStream(0); //danepliku = binaryOutputStream; var inputStream = Components.classes["@mozilla.org/network/file-input-stream;1"].createInstance(Components.interfaces.nsIFileInputStream); inputStream.init(plik2, 0x01, 0600, 0); var stream = Components.classes["@mozilla.org/binaryinputstream;1"].createInstance(Components.interfaces.nsIBinaryInputStream); stream.setInputStream(inputStream); danepliku = stream.readBytes( stream.available() ); ps. i not try build this crypter i only question :) Link to comment Share on other sites More sharing options...
0 0b3y Posted May 2, 2016 Share Posted May 2, 2016 Re: crypter javascript well it seams that i failed so hard xD. Handling the file content, i think there no more problems (asuming that it can write files) to create crypter Link to comment Share on other sites More sharing options...
Question
jikjikcrypter javascript is possible create the crypter?
eg. read binary data, encrypt, savae binary data? :)
I mean by the addition to mozilla by my super mega crypter ;D
who try?
Link to comment
Share on other sites
2 answers to this question
Recommended Posts