PDA

View Full Version : Bash: Ion Cannon Startup Script



Blacklemon67
March 28th, 2009, 02:27 PM
Just a novelty bash script I made as a joke. Simulates the starting up of an orbital ion cannon. :P

http://pastebin.com/f81df77c

JordyD
March 28th, 2009, 05:17 PM
Invite your neighbors over, put a computer in the livingroom with a fullscreen terminal (of course with the scary green text on black background) and execute. Observe reaction.

jimi_hendrix
March 28th, 2009, 06:56 PM
you rock, make it require some mysterious passcode (like some quote from literature)

Blacklemon67
March 29th, 2009, 06:35 PM
you rock, make it require some mysterious passcode (like some quote from literature)

Good idea! Just I have no clue what book has a quote that relates to Ion Cannons... :confused:

jimi_hendrix
March 29th, 2009, 07:11 PM
just think of some well known quote...but one thats kinda...out there

Blacklemon67
March 30th, 2009, 12:15 AM
“The most powerful weapon on earth is the human soul on fire.”

Humm, that's a good one. But too long for a passcode...

How about a fill in the blanks type thing

jimi_hendrix
March 30th, 2009, 12:19 AM
why not?

Blacklemon67
March 30th, 2009, 12:21 AM
Well, If you're gonna use this as often as one should, it shouldn't be that long.

Can+~
March 30th, 2009, 12:51 AM
Maybe some reference from "Hackers"?

Like "Hack the Gibson (http://www.urbandictionary.com/define.php?term=Hack%20the%20Gibson)".

Blacklemon67
March 30th, 2009, 01:48 AM
Maybe some reference from "Hackers"?

Like "Hack the Gibson (http://www.urbandictionary.com/define.php?term=Hack%20the%20Gibson)".

lol, like the term will say:

What do you tell the noob to do?
then you need to input "Hack The Gibson"

Does the read command work well for passwords?

curvedinfinity
March 30th, 2009, 04:05 AM
Haha, awesome script. You have to make it request a target also. Then we can blow up New York or Tokyo or Paris all day long! Muhahaha!

Nevon
March 30th, 2009, 11:44 AM
You should use some kind of speech synthesizer to do the countdowns and read some of the messages (like "Ion beam fired" and "Awaiting user input").

Blacklemon67
March 30th, 2009, 12:06 PM
Haha, awesome script. You have to make it request a target also. Then we can blow up New York or Tokyo or Paris all day long! Muhahaha!

That could work, just get some sort of parameter parser... Of course I have no clue how to do that. Lol. :P


You should use some kind of speech synthesizer to do the countdowns and read some of the messages (like "Ion beam fired" and "Awaiting user input").

Tried speech synth once before and it's actually a real disappointment. The numbers come up before the synth finishes and the sounds start garbling up.

Blacklemon67
March 30th, 2009, 09:54 PM
Ok version two. http://pastebin.com/pastebin.php?dl=m3b96cb64

Nevon
March 31st, 2009, 12:22 PM
I rewrote the script in Python as a learning excersise. It has some minor improvements, but it's still pretty much identical to the bash version. However, I can't seem to get the last loop to end. I want the user to be able to enter 0 as the target in order to quit, but for some reason it doesn't work, so the loop continues on forever.

Anyway, here's the script:
http://pastebin.com/f1b4311dd

Blacklemon67
March 31st, 2009, 11:15 PM
...However, I can't seem to get the last loop to end. I want the user to be able to enter 0 as the target in order to quit, but for some reason it doesn't work, so the loop continues on forever.

Fixed it, The input is a string and the condition checks it as if it's a integer.

http://pastebin.com/pastebin.php?dl=f780b3cc0