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

mSend - File Transfer using the String Metatable exploit

Started by LDDestroier, 05 February 2015 - 08:51 PM
LDDestroier #1
Posted 05 February 2015 - 09:51 PM
I never was a fan of some file transfer programs, and I was annoyed with the range limitations of modems. I heard about the string metatable hack, and decided to test my programming skills (sort of).

mSend v1.2

modemless, infinite range

file transfer program


Install v1.1:
pastebin get 0FW50ZZ1 msend

Syntax:


msend send [filename] <target_id>
msend receive <filter_id>
msend update
msend about

Features:

-The ability to quickly transfer single files across any distance and across worlds

-No dependence on rednet modems

-Everything is in one file

-Argument to automatically update


Notes:

-If you want to send a file to anyone listening or recieve a file from anyone, ignore the ID or set it to -1.

-All global variables are set to nil 0.1 seconds after the send command.

-This has been patched for ComputerCraft 1.7x and later. Booooooo.


Changelog:


1.0:
		+Initial release (2/5/2015)
1.1:
	+Added ID filtering arguments
1.2:
	+Added update option
	*Fixed overwriting issue


Let me know if there are any problems. It works perfect for me. At least, in CC 1.63.
Edited on 06 January 2018 - 11:23 PM
LDDestroier #2
Posted 06 February 2015 - 03:31 AM
Updated to 1.1 with improved arguments and security!
cdel #3
Posted 06 February 2015 - 06:20 AM
Looks fantastic, will try this out as soon as I can! :)/>
cdel #4
Posted 06 February 2015 - 08:42 AM
Received an error on the receiving computer, nil on line six. I was using CCEmuRedux, I think it may be due to the ComputerCraft version it uses.
LDDestroier #5
Posted 06 February 2015 - 11:29 AM
Received an error on the receiving computer, nil on line six. I was using CCEmuRedux, I think it may be due to the ComputerCraft version it uses.

I tested it ingame, not in an emulator. I'll try to test it in CCEmuRedux, but try it ingame. I got it to work on LuaLand.

EDIT in 2018: oh lualand how I loved you

EDIT in 2020: oh lualand how I loved you
Edited on 18 February 2020 - 12:48 AM
cdel #6
Posted 06 February 2015 - 11:32 AM
yeah, it's most likely the emulator then. :)/>
LDDestroier #7
Posted 08 February 2015 - 05:57 AM
yeah, it's most likely the emulator then. :)/>

It probably wasn't. At the time of your comment, I was still making msend, and that's when you got the receive error, which is what I was trying to fix. It should work now!

Also, thanks for putting msend on LuaLand as a default application!
LDDestroier #8
Posted 08 February 2015 - 06:03 AM
Update to 1.2 with update option and overwriting prompt!
Geforce Fan #9
Posted 15 February 2015 - 07:14 AM
this will go one of two ways:
1:
The mods will get mad at you for exploiting a bug
2:
The mods will think it's awesome you've exploited a bug to do something cool
oeed #10
Posted 15 February 2015 - 08:10 AM
Well, it appears that the latest beta has patched this exploit, as was to be expected really.
cdel #11
Posted 15 February 2015 - 09:21 AM
cant wait for the official patch, the exploit causes a lot of mayhem and havoc.
Geforce Fan #12
Posted 15 February 2015 - 08:08 PM
aaaaand it's been patched
pretty hilarious to think all this time we where building huge pillars with rednet servers and having to go to near someone lives to play a multiplayer when we could do it with a simple hack for free.
Edited on 15 February 2015 - 07:11 PM