Jump to content
YOUR-AD-HERE
HOSTING
TOOLS
  • 0

Locked crypter javascript


jikjik

Question

2 answers to this question

Recommended Posts

  • 0

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

  • 0

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

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.