Discuss Scratch

ronsid
Scratcher
100+ posts

Make a computer extension and network extension

I am thinking of an extension on scratch that would allow people to perform HTTP requests to sites(like the api site or other site) and access computer resources(like USB thumb drives,Hard Disks to read (With permission of the user) or sort of like upload files or handle http requests and set request and response headers
Pros:
It could be used to create a cloud-based mesh without any effort
It could make a message-notifier that is on scratch only
It could process an image by uploading it
Eg I want to use my PL2303 USB-TTL converter with scratch. This scratch-USB interface would be really helpful to communicate with it
It could make a http server easy and be able to use “save cookies” and “session ids” and “csrf tokens”.
Cons:
It could read an important file and share it to others.(can be solved by confirmation for reading files or an upload system like you get a alert saying “Scratch wants to get access to this file ”file“ allow/Deny” )
It could do a GET request to a bad website and show the content(can be solved by blacklist/whitelist or a confirmation system which says “Scratch wants to make a request the site ”site“ allow/Deny”)
It could POST data to another site where someone could get access to it (can be solved by blacklist/whitelist)

Last edited by ronsid (May 8, 2019 13:43:06)


This siggy is protected by the Antiquat group
when green flag clicked
say [Scratch Time] for (2) secs
broadcast [funtime v]
when I receive [funtime v]
say [ Yaay] for (2) secs
Luingus221
Scratcher
14 posts

Make a computer extension and network extension

There are a few other problems with this. For example, if it were able to download things, it could possibly download viruses to a computer. Now, of course, many web browsers will check downloads to see if they are malicious and will ask if you want to save a file that executes data (.exe's for Windows, etc.) and so will antivirus programs, but they aren't always foolproof.

I certainly like the idea, but there are definite problems with it. Partial support.
ronsid
Scratcher
100+ posts

Make a computer extension and network extension

Luingus221 wrote:

There are a few other problems with this. For example, if it were able to download things, it could possibly download viruses to a computer. Now, of course, many web browsers will check downloads to see if they are malicious and will ask if you want to save a file that executes data (.exe's for Windows, etc.) and so will antivirus programs, but they aren't always foolproof.

I certainly like the idea, but there are definite problems with it. Partial support.
It would ask before downloading anything as that is built into an extension. Maybe I'll make a cloud-based request system with the api.

This siggy is protected by the Antiquat group
when green flag clicked
say [Scratch Time] for (2) secs
broadcast [funtime v]
when I receive [funtime v]
say [ Yaay] for (2) secs
ResExsention
New to Scratch
1000+ posts

Make a computer extension and network extension

Now you want the Scratch Cat to escape Scratch. Interesting.

No support for any of your suggestions. I really can't think of any good use for it, and you'd just be making your code much more complicated. With that USB-TTL converter you have, I don't think Scratch would be the best platform to try it out. Maybe you can explore Processing.

Hi, I'm ResExsention, a New Scratcher who refuses to press that button! I hope we get to know each other and become friends!

If you see "[DATA EXPUNGED]", you'll know it was deleted by me. It's a lot easier.

Powered by DjangoBB

Standard | Mobile