Security News

Patches

Site Menu
  • Home Page
  • New AO Newsletters
  • New Downloads
  • Fight-Back!
  • Discussion Forums
  • Active Threads RSS
  • Top Links List
  • Security Events
  • Hacker Jargon
  • Site FAQ
  • IP Locator

  • Tutorial Menu
  • Main Index
  • AO Related
  • Hardware
  • IRC
  • Networking
  • Newbie Questions
  • Operating Systems
  • Programming
  • Security
  • Web

  • Downloads Menu
  • Main Index
  • Antivirus
  • Cryptography
  • Firewalls
  • Forensics
  • Honeypots
  • Intrusion Detection
  • Keyboard Loggers
  • Password Generators
  • Port Scanners
  • Spam Blockers
  • Spyware Removers
  • quick-and-dirty = Q = quote chapter and verse

    quine /kwi:n/ n.

    [from the name of the logician Willard van Orman Quine, via Douglas Hofstadter] A program that generates a copy of its own source text as its complete output. Devising the shortest possible quine in some given programming language is a common hackish amusement. Here is one classic quine:

    ((lambda (x)
      (list x (list (quote quote) x)))
     (quote
        (lambda (x)
          (list x (list (quote quote) x)))))
    

    This one works in LISP or Scheme. It's relatively easy to write quines in other languages such as Postscript which readily handle programs as data; much harder (and thus more challenging!) in languages like C which do not. Here is a classic C quine for ASCII machines:

    char*f="char*f=%c%s%c;main()
    {printf(f,34,f,34,10);}%c";
    main(){printf(f,34,f,34,10);}
    

    For excruciatingly exact quinishness, remove the interior line breaks. Some infamous Obfuscated C Contest entries have been quines that reproduced in exotic ways.

    quick-and-dirty = Q = quote chapter and verse

    All times are GMT +1. The time now is 06:57 PM.



    Powered by vBulletin® Version 3.8.4
    Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.