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-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 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

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