This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
Emma's profile picture

File Encrypter

Started by Emma, 29 September 2014 - 05:28 AM
Emma #1
Posted 29 September 2014 - 07:28 AM
Hey guys, this evening, I was toying around with a virus scanner for CC, which I made. Pretty basic, just a keyword searcher, which got me thinking, about how easily it could be bypassed if the bits of each digit were shifted 1 forward or somthing like that. So i quickly made a file encrypter. So, next time you need to hide your stuff inside a legit looking program, use this!

(Just for fun, I ran the encrypter through itself, and it worked! Which is why the code on the pastebin looks so weird, because thats the encrypted encrypter. :P/>)

[Obfuscated code removed. -L]

And for those of you who dont trust me: pmSngSa7

HOW TO USE:
<file you saved it as> <file to encrypt>
eg.
> crypt test2
it will ask what you want to save it as
Edited on 30 September 2014 - 02:18 AM
oeed #2
Posted 29 September 2014 - 07:42 AM
What happens if one byte happens to be one (or zero, which ever the lowest one is). Does it roll over or crash?
Emma #3
Posted 29 September 2014 - 07:44 AM
What happens if one byte happens to be one (or zero, which ever the lowest one is). Does it roll over or crash?
I have no idea… xD
It was just a proof of concept really.
I'll try that and get back to you.

EDIT: Nope, it works fine, and… just does nothing when you run the product… :P/>
Edited on 29 September 2014 - 05:46 AM
TurtleHunter #4
Posted 30 September 2014 - 02:38 AM
This doesnt count as malicious?
cdel #5
Posted 30 September 2014 - 07:51 AM
This doesnt count as malicious?

This program doesn't fit the description of a malicious program, to be malicious is to be "intending or intended to do harm."
Edited on 30 September 2014 - 05:51 AM
TurtleHunter #6
Posted 30 September 2014 - 04:22 PM
This doesnt count as malicious?

This program doesn't fit the description of a malicious program, to be malicious is to be "intending or intended to do harm."
But it can be used to hide malicious programs. Why dont you post a decrypter so programs can be checked?
KingofGamesYami #7
Posted 30 September 2014 - 04:55 PM
This doesnt count as malicious?

This program doesn't fit the description of a malicious program, to be malicious is to be "intending or intended to do harm."
But it can be used to hide malicious programs. Why dont you post a decrypter so programs can be checked?

  for i=1,#run do
    exc = exc..string.char(string.byte(run:sub(i,i))-1)
  end
Then check exc.
Saldor010 #8
Posted 30 September 2014 - 05:02 PM
This doesnt count as malicious?

This program doesn't fit the description of a malicious program, to be malicious is to be "intending or intended to do harm."
But it can be used to hide malicious programs. Why dont you post a decrypter so programs can be checked?

Just because it can be used for malicious purposes doesn't mean it's malicious.

Guns aren't in themselves evil. But they can be used for evil.

The internet in itself is not evil, but it can be used for evil.

nsh isn't malicious, but it can be used for malicious purposes too.