Author Topic: Who can tell me what this does?  (Read 7994 times)

0 Members and 1 Guest are viewing this topic.

Offline iago

  • Leader
  • Administrator
  • Hero Member
  • *****
  • Posts: 17914
  • Fnord.
    • View Profile
    • SkullSecurity
Who can tell me what this does?
« on: August 18, 2005, 07:41:01 pm »
I know the answer, of course. 

"kill -9 -1"

Offline Vex3

  • Rick James Bitch!
  • Full Member
  • ***
  • Posts: 116
  • I am Agarwaen!
    • View Profile
    • Vex3 Solutions
Re: Who can tell me what this does?
« Reply #1 on: August 18, 2005, 07:49:45 pm »
I can also tell you... but that would be no fun for everyone else.
Wish I had more hands, give those tities four thumbs down!


Offline Ergot

  • 吴立峰 ^_^ !
  • x86
  • Hero Member
  • *****
  • Posts: 3724
  • I steal bandwidth. p_o
    • View Profile
Re: Who can tell me what this does?
« Reply #2 on: August 18, 2005, 08:13:09 pm »
I don't know what -1 does, but I could take a good guess :P
Who gives a damn? I fuck sheep all the time.
And yes, male both ends.  There are a couple lesbians that need a two-ended dildo...My router just refuses to wear a strap-on.
(05:55:03) JoE ThE oDD: omfg good job i got a boner thinkin bout them chinese bitches
(17:54:15) Sidoh: I love cosmetology

Offline iago

  • Leader
  • Administrator
  • Hero Member
  • *****
  • Posts: 17914
  • Fnord.
    • View Profile
    • SkullSecurity
Re: Who can tell me what this does?
« Reply #3 on: August 18, 2005, 08:22:50 pm »
I don't know what -1 does, but I could take a good guess :P

What would that guess be?

Offline Eric

  • Full Member
  • ***
  • Posts: 304
  • I'm new here!
    • View Profile
Re: Who can tell me what this does?
« Reply #4 on: August 18, 2005, 08:45:33 pm »
It closes all processes owned by the user with a process ID greater than 1.  I had to Google the -9, only to find out that it was exactly what I thought it was.

trust

  • Guest
Re: Who can tell me what this does?
« Reply #5 on: August 18, 2005, 08:47:37 pm »
It closes all processes owned by the current user. The -9 is the SIGKILL signal.

Offline iago

  • Leader
  • Administrator
  • Hero Member
  • *****
  • Posts: 17914
  • Fnord.
    • View Profile
    • SkullSecurity
Re: Who can tell me what this does?
« Reply #6 on: August 18, 2005, 09:16:22 pm »
Good job!

And can you guess the effect of running it on my laptop before doing "man kill" to find out what -1 does?

Instant lock-up for the current user! Woo! :)

Next, this one's tougher, who can explain to me what this does when run in Bash?
:-(){ :|:& };:


trust

  • Guest
Re: Who can tell me what this does?
« Reply #7 on: August 18, 2005, 09:21:00 pm »
It can't be good cause none of those are smily faces. :( :|

Offline iago

  • Leader
  • Administrator
  • Hero Member
  • *****
  • Posts: 17914
  • Fnord.
    • View Profile
    • SkullSecurity
Re: Who can tell me what this does?
« Reply #8 on: August 18, 2005, 09:22:01 pm »
It can't be good cause none of those are smily faces. :( :|

haha

And by the way, _please_ don't try that out on my server if you have access :P

Offline Joe

  • B&
  • x86
  • Hero Member
  • *****
  • Posts: 10319
  • In Soviet Russia, text read you!
    • View Profile
    • Github
Re: Who can tell me what this does?
« Reply #9 on: August 18, 2005, 10:00:45 pm »
Alright, thanks for the warning!
I'd personally do as Joe suggests

You might be right about that, Joe.


Offline Ergot

  • 吴立峰 ^_^ !
  • x86
  • Hero Member
  • *****
  • Posts: 3724
  • I steal bandwidth. p_o
    • View Profile
Re: Who can tell me what this does?
« Reply #10 on: August 18, 2005, 10:04:00 pm »
ergot@darkside:~$ :-(){ :|:& };:

shit :/
Who gives a damn? I fuck sheep all the time.
And yes, male both ends.  There are a couple lesbians that need a two-ended dildo...My router just refuses to wear a strap-on.
(05:55:03) JoE ThE oDD: omfg good job i got a boner thinkin bout them chinese bitches
(17:54:15) Sidoh: I love cosmetology

Offline Joe

  • B&
  • x86
  • Hero Member
  • *****
  • Posts: 10319
  • In Soviet Russia, text read you!
    • View Profile
    • Github
Re: Who can tell me what this does?
« Reply #11 on: August 19, 2005, 02:52:06 am »
Code: [Select]
while (1) {
  fork();
}

Can I do it yet? =)
« Last Edit: August 19, 2005, 02:55:02 am by Joe[x86] »
I'd personally do as Joe suggests

You might be right about that, Joe.


Offline iago

  • Leader
  • Administrator
  • Hero Member
  • *****
  • Posts: 17914
  • Fnord.
    • View Profile
    • SkullSecurity
Re: Who can tell me what this does?
« Reply #12 on: August 19, 2005, 07:47:21 am »
Code: [Select]
while (1) {
  fork();
}

Can I do it yet? =)

That's basically what it does, but how?

Offline Vex3

  • Rick James Bitch!
  • Full Member
  • ***
  • Posts: 116
  • I am Agarwaen!
    • View Profile
    • Vex3 Solutions
Re: Who can tell me what this does?
« Reply #13 on: August 19, 2005, 09:51:42 am »
Since iago gets to give all the puzzle's I will throw some in aswell but iago you can't answer.

I will start these easy and get harder....

ps -ax|more
Wish I had more hands, give those tities four thumbs down!


Offline mynameistmp

  • Moderator
  • Full Member
  • *****
  • Posts: 111
  • Hi! I'm new here!
    • View Profile
Re: Who can tell me what this does?
« Reply #14 on: August 19, 2005, 03:22:24 pm »
Quote
Code:
while (1) {
  fork();
}

Can I do it yet? =)

That's basically what it does, but how?

He won't know unless he can find the log of me explaining it to him last night ;P

Offline iago

  • Leader
  • Administrator
  • Hero Member
  • *****
  • Posts: 17914
  • Fnord.
    • View Profile
    • SkullSecurity
Re: Who can tell me what this does?
« Reply #15 on: August 19, 2005, 03:34:43 pm »
Quote
Code:
while (1) {
  fork();
}

Can I do it yet? =)

That's basically what it does, but how?

He won't know unless he can find the log of me explaining it to him last night ;P

Haha, I didn't think he'd figure that out himself :)

To quote somebody else:
Quote
The ':()' defines a fuction ':' with a fuction body of
{
 : | : &
}

As you can see this is a recursive call as the fuction ':' is called,
it's output passed via a pipe as input to the fuction ':' and this
whole command is run in the background '&' .

The last ':' in the string (after the ';') calls the fuction and therefore
starts it all of.

(Krazed edit: Disabled smileys.)
« Last Edit: August 21, 2005, 08:38:35 am by Krazed »