Forums » Suggestions

/system function

12»
May 19, 2004 randomblast link
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...
May 19, 2004 Ssargon link
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
May 19, 2004 Ciuciu link
Well.. it would be one system only.. because binds/aliases for linux wont work with windows and mac
May 19, 2004 Ssargon link
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
May 19, 2004 Sheean link
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.
May 19, 2004 Ciuciu link
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 ;>)
May 19, 2004 paedric link
[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.
May 19, 2004 Sheean link
Again...

/me can't wait to textsurf over the web while flying his Valk at 200 m/s in a roid.

Better?
May 19, 2004 panic link
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.
May 19, 2004 paedric link
Now why didn't you say that in the first place Sheean? :-p
May 20, 2004 Sheean link
/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)
May 20, 2004 paedric link
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?")
May 20, 2004 Sheean link
Hmm, wiring a high voltage cable to my bicycle sounds like a... painfull plan.
May 20, 2004 Magus link
Paedric, all of that is useless unless you have a Flux Capacitor.
May 20, 2004 paedric link
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.
May 20, 2004 harvestmouse link
back to the future
May 20, 2004 Sheean link
"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.
May 20, 2004 panic link
Remember kids, it's not the voltage, it's the current.
May 21, 2004 randomblast link
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.
May 21, 2004 furball link
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.