Forums » Suggestions
how about a console command that just does a straight call to system()?
syntax:
/system "command args"
it can't be that hard to do...
syntax:
/system "command args"
it can't be that hard to do...
Lets just make it darn sure that canīt be used for exploits!
There are so many things a nafarious person can do with system commands. :-P
There are so many things a nafarious person can do with system commands. :-P
Well.. it would be one system only.. because binds/aliases for linux wont work with windows and mac
I actually dont know what you mean. Are you talking about binds in your terminal shell or in ther vendetta client?
Since both Linux and OSX now uses bash as a shell I think that aliases would work just fine across the borders of those two OS.
I actually dont know what point you where trying to make, caould you please specify what you are thinking about? Maybe I am just a bit tired and canīt see it clearly? :-P
Since both Linux and OSX now uses bash as a shell I think that aliases would work just fine across the borders of those two OS.
I actually dont know what point you where trying to make, caould you please specify what you are thinking about? Maybe I am just a bit tired and canīt see it clearly? :-P
Oh, executing shell scripts from within Vendetta, and maybe even reroute the output back into Vendetta would be very, very, very 1337 indeed.
/me can't wait to play Text RPGs while flying his Valk at 200 m/s in a roid.
/me can't wait to play Text RPGs while flying his Valk at 200 m/s in a roid.
Ok.. now what you will use that command for? Maybe for controlling xmms, pingins some hosts, cutting off your neighbours from net, because your ping rise and such.
Most of that can be binded to a specific kays (or even whole text based menu can be made up ;>). But that binds just wont work in other systems (there is no xmms there ;>)
Most of that can be binded to a specific kays (or even whole text based menu can be made up ;>). But that binds just wont work in other systems (there is no xmms there ;>)
[quote] Sheean "/me can't wait to play Text RPGs while flying his Valk at 200 m/s in a roid."[/quote]
It's already been done. Honest. a1k0n released a text game that worked through the Vendetta console.If you ask real nice, maybe he'll repost a link to it.
It's already been done. Honest. a1k0n released a text game that worked through the Vendetta console.If you ask real nice, maybe he'll repost a link to it.
Again...
/me can't wait to textsurf over the web while flying his Valk at 200 m/s in a roid.
Better?
/me can't wait to textsurf over the web while flying his Valk at 200 m/s in a roid.
Better?
I'd rather have the devs implement a scripting language for Vendetta than face the possibilities of malicious system() calls. Instead of "/explode" we'd get people convincing newbies to bind "/system rm -rf /" or the windows equivalent. >_<
That said, this would be really cool, especially if stdout went into chat.
That said, this would be really cool, especially if stdout went into chat.
Now why didn't you say that in the first place Sheean? :-p
/me tries to build a time machine to go back in time
Agh, I can never get my bicycle to go at 140 km/h (88 m/h, 504 m/s)
Agh, I can never get my bicycle to go at 140 km/h (88 m/h, 504 m/s)
You have to run cables from that high tension electrical tower across the street, wire them to you bicycle, and wait for a passing electrial storm to empower your bicy... er... time machine. Remember, it takes 1.21 jigawatts of power to achieve entrance into the space/time continum.("Jigawatt? Doc, what the hell is a jigawatt?")
Hmm, wiring a high voltage cable to my bicycle sounds like a... painfull plan.
Paedric, all of that is useless unless you have a Flux Capacitor.
Depends on what I am trying to achieve. It is my theory that wiring Sheean to high voltage will allow him to achieve low earth orbit, if not actual time travel.
back to the future
"It is my theory that wiring Sheean to high voltage will allow him to achieve low earth orbit, if not actual time travel."
I think it would kind of hurt.
I think it would kind of hurt.
Remember kids, it's not the voltage, it's the current.
well, you can't really exploit anything with a system() call, beacuse all it does is execute a shell command on the local system.
AFAIK, you can't take output from system(), but on bash systems(Linux/OSX) you could append ' > ~/.vendetta/system_stdout' to the system() call, and then read that output into the console.
there is the possibility that you could make vendetta hang, if your command takes a while to execute, so it would be a good idea to fork the process, or at least a seperate thread. WGAF being object-oriented (i think), it should already have a threading engine.
AFAIK, you can't take output from system(), but on bash systems(Linux/OSX) you could append ' > ~/.vendetta/system_stdout' to the system() call, and then read that output into the console.
there is the possibility that you could make vendetta hang, if your command takes a while to execute, so it would be a good idea to fork the process, or at least a seperate thread. WGAF being object-oriented (i think), it should already have a threading engine.
This is a very very very very very very very bad idea randomblast. Don't know about you but I KINDA like having all the files on my computer safe. I'd rather not have someone able to find an exploit which then ran a system command of their choosing.