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

Pastebin like script [WIP]

Started by H4X0RZ, 21 February 2014 - 06:18 AM
H4X0RZ #1
Posted 21 February 2014 - 07:18 AM
Hello all,
I thought about working on a script which works like pastebin, I mean a php script which saves files on the webserver and you can access the files from a cc computer then.
I got it almost working, but I don't see any real use in it…

My only idea is to create something like this:

There a 3 players.
Player 1 and 2 create a "mybin" (that's the name I gave it untill i have a better one) server.
Player 1 uploads only games on his server.
Player 2 only door locks.
Player 3 now wants a game AND a doorlock. He adds Player 1's and Player 2's Server on his server list and is able to download from theese two servers.

I have a working webspace, but it's veeryy slow…

If you wan't to test it, just send me a pm. Then I will send you your upload betakey.

You can find everything here: https://www.dropbox.com/s/pd7kyu3b4kpp30k/MyBin.zip

This ZIP file contains the PHP scripts, two CC scripts and a CC test file for uploading.


If I find enough beta uploaders, I'll give away the link to my current "bad" webspace.


Good day,
Freack100
Thib0704 #2
Posted 23 February 2014 - 11:21 AM
By looking at the PHP script I saw that you where saving the files in /uploads/<aRandomKey>

Isnt that dangerous?
H4X0RZ #3
Posted 23 February 2014 - 11:52 AM
By looking at the PHP script I saw that you where saving the files in /uploads/<aRandomKey>

Isnt that dangerous?
Why would it be dangerous?
Thib0704 #4
Posted 23 February 2014 - 07:37 PM
Well because the files can be accessed from the webserver….
H4X0RZ #5
Posted 24 February 2014 - 04:44 AM
Yes,you can view the raw file when you are going there from your browser. But they aren't executed anywhere…