Jump to content

Dave-ee Jones

Member Since 19 Jan 2013
Online Last Active Today, 04:08 AM

Posts I've Made

In Topic: load() multiple functions in a string?

Today, 12:54 AM

View PostSquidDev, on 25 September 2017 - 12:44 AM, said:

View PostDave-ee Jones, on 25 September 2017 - 12:39 AM, said:

You can..? Unless you mean you can't send functions over rednet but you can using the modem API?
rednet uses the modems behind the scenes, so for this one can consider them equivalent. It wouldn't make a difference if you put it in a table - it just gets converted to nil. You can send a string to be executed, but that's opening yourself to all sorts of exploits - you'd want some form of security before going down that route.

K. I assumed that rednet did some annoying magic that made all sent functions nil, but modems sent packets as they were without rednet 'filtering'. But never mind. So the only real way of executing functions across rednet is to have the client have a function that uses the rednet message's contents as arguments OR execute a string sent over rednet. Annoying :/ I wonder why mine isn't working then..

In terms of security, I was thinking about doing something like a rolling code system. Have the client and host know a passcode to decrypt/encrypt the code while it's sent over their modems. The host decides the new code everytime, while the client receives it and decrypts the code, but sends the actual code (unencrypted) when it wants to use it. Makes it useless to outsiders reading the messages because the host replies with an encrypted code that was just generated by it, allowing the client to have a code for next time.

Samy Kamkar can't hack this one, haha! (Unless of course he hacks one of the computers and steals the passcode..).

In Topic: load() multiple functions in a string?

Today, 12:39 AM

View PostLupus590, on 22 September 2017 - 10:42 AM, said:

View PostDave-ee Jones, on 22 September 2017 - 03:48 AM, said:

I know I could pass a function over rednet
Currently you can't do this.

You can..? Unless you mean you can't send functions over rednet but you can using the modem API?
--# 0's code
local function test()
--# 1's code
local id,msg = os.pullEvent("rednet_message")

If you can't do it like that you could just send a table with the function in the table, with other items (like what some remote shell programs do). Or you could just do what I'm trying to do and load a string.

View PostSquidDev, on 22 September 2017 - 05:08 PM, said:

The code you've provided above should function perfectly fine. For instance:
load([[os.queueEvent("char", "x") os.queueEvent("char", "y")]])()
adds "xy" to the prompt. I suspect something elsewhere in your code is pulling events.

Yeah, you're probably right. I'll keep playing with it.

In Topic: Guess Who's Below

20 September 2017 - 12:23 AM

Nope. Lyqyd?

In Topic: Thoughts on Drag & Drop Coding

19 September 2017 - 11:34 PM

View PostKingofGamesYami, on 19 September 2017 - 12:09 PM, said:

View PostDave-ee Jones, on 19 September 2017 - 04:15 AM, said:

And I dare you to try and do what LabView is doing in the background. I'm telling you, it's far more confusing. LabVIEW is a foreground, user friendly program to simplify it for users. 'Dumbifying' it.
Is there any difference between dragging around a little icon that says "set the motor to xx speed" and motor.setSpeed( xx )? No. Not really.

View PostKingofGamesYami, on 19 September 2017 - 03:31 AM, said:

This type of programming can actually be very powerful in some situations. It has also been shown to be less intimidating to a younger audience than text based programming.

You just made your own point invalid..?

Code is more versatile, you can (in general) do more with it, changing the flow to how you would like. Those drop-down menus, for example, would only show limited options based on what object you need there. In code you could set virtually anything there (may or may not work, depending on how you're doing it).

I agree that code-block programming is easier to understand for beginners, better for visualisation (I mean, it's basically a big flowchart so ofc it's easy to visualise) and is in general great for beginners. But I believe, like Saldor, that it should stay as a beginners-learning tool. It's more for being introduced into programming so you know general program flow and sequence. From there, you can migrate to code where you can incorporate you learnt flow and sequence.

Anyway this has gone from a legitimate question to an argument. There's a time and place for arguments, it ain't here ruining someone else's question. Maaan, never mind.

In Topic: Axiom - The easy to use OS.

19 September 2017 - 04:34 AM

View Postdestrucktoid, on 18 September 2017 - 09:25 PM, said:

hey @Nothy really love the OS its really good, just wanted to ask a few things:

1. when is v2.0 predicted to come out?

2. do you plan on adding an app store of sorts? it would be really good to be able to load up my os and play zombease or chess without having to do a bunch of console work and stuff,

3. just a security question, is it possible for someone to design a brute force (attempting every password till you get it correct) feature, put it onto a floppy disc and then find some way to execute it without signing in? also does it have rednet hack prevention, because if i have a program installed which uses rednet someone could mimic the rednet protocol and send a virus into the computer without your system being able to detect and prevent the hack. odds are no one will need this but if you are designing a program it would be really annoying if some jackass decided to hack into your computer by mimicing the rednet broadcast id of something and stuffing up your computer

@ 3. Of course it's possible. I myself have done it, but it is (of course) malicious so I cannot and will not post it. You can make it automatically put in the password for you, but bypassing the lock screen altogether is another story that Nothy could explain a bit better to you.

Rednet hack prevention is basically non-existent. Rednet is easily readable, so if Nothy is sending rednet messages anywhere anyone could see them. I don't know if it does have any rednet features though so that might be alright.