How to Kill A Dragon

September 22nd, 2007 by aquataine

This is the coolest article i read from internet since past several years :-p
This great article originated from Brazilian programmers Daniel Quirino, Fernando Camargo and Marihelen Santos. It was first published on Marihelen’s blog at
http://marihelen.blogspot.com/2005/07/programadores-e-dragoes.html

Some portions are added from many people (including me :-p), please extend it while you have some ideas. Enjoy the read :-)

There’s a beautiful princess, prisoner in the highest tower of a castle, guarded by a mighty dragon, and a fearless knight must rescue her…

This is how each programming language would manage to rescue the princess from the hands of the dragon:

Java: Gets there, finds the dragon, develops a framework for dragon anihilation with multiple layers, writes several articles about the framework… But doesn’t kill the dragon.

.NET: Gets there, sees the idea of the Java developer and copies it. Tries to kill the dragon, but the monster eats him.

C: Arrives, looks down at the dragon, pulls out his sword, beheads the dragon, finds the princess… And ignores her to see the last checkins of linux kernel cvs.

C++: Creates a basic needle, and gathers funcionality until he has a complex sword that he can barely understand… He kills the dragon, but gets stuck crossing the bridge because of memory leaks.

COBOL: Arrives, sees the dragon and thinks that he is too old to kill a monster that big and rescuing the princess, so he leaves.

Pascal: He prepares for 10 years to create a dragon anihilation system… When the moment comes, he discovers the program can only take lizards as an entry.

VB: Builds a dragon destruction weapon based on several components, jumps to the back of the dragon and in the most critical time he discovers that the sword works only on rainy nights…

PL/SQL: Gets data from other dragon slayers, creates tables with n ternary complexity relations, tridimensional data, OLAP, takes 15 years to process the information… And by then, the princess became a lesbian.

Ruby: Arrives with massive fame, saying he is the best at anything and when he faces the dragon, he shows a lame motion picture of himself killing a dragon… The dragon eats him out of boredom.

Smalltalk: Arrives, analyzes the dragon and princess, turns around and leaves, they are way too inferior.

shell: Creates a very powerful dragon slaying weapon… But in the moment of truth, he can’t remember how to use it.

shell(2): The guy approaches the dragon with a two line script that kills, cuts, disembowels, impales, chops to pieces and packs the beast, but when he runs it the script grows, it fattens, irritates and puts alcohol in the fire of the dragon…

ksh93 shell: The programmer creates a huge simulation prototype written in ksh93 at home on his Solaris 11/Nevada B72 machine to figure out the best options to kill the dragon but when we goes and tries to kill the dragon he learns that his Solaris 8 installation in his battle horse only has ksh88 installed which doesn’t support floating-point math, compound variables or associative arrays and won’t run the script. The dragon breaks his bones, bites off the head and drinks the blood.

Assembler: He thinks he’s doing the right and most efficient things… But he writes an A instead of a D and kills the princess to end up f***ing the dragon.

Fortran: Arrives and develops a 45-thousand-code-line-solution, kills the dragon, meets the princess… But she calls him a weakling and runs after the Java programmer who was elegant, and also rich.

FOX PRO: Develops a dragon killing system. It’s gorgeous and works on the outside, but it’s really patched inside, so when he runs the dragon anihilator, he realizes he forgot to index the DBFs.

PROCESS ANALYST: Approaches the dragon with two tons of documentation, develops the unified dragon-killing process, he develops a DFD to free the princess and marry her, convinces the dragon that it’s the best for him and it won’t hurt. When he executes the process, he estimates the effort and the damage he will cause with a plan signed by the Pope, Buddha and Michael Jackson. Then he buys a couple of nukes, 45 cannons, an aircraft carrier and hires 300 heavily armed men… When all he needed was the sword he was holding in his hand in the beginning…

CLIPPER: Sets up a routine that loads a codeblock array to insult the dragon, serenade the princess, load the sword in memory, beat the crap out of the dragon, clean the mess, prepare a raspberry milkshake for the princess, make love to her, take a bath, start the car, put it some gas and come back home. When he runs it, he gets a "Bound Error: Array Access" and the dragon eats him with fries.

Lisp: where the famous knight-errant, after speaking with numerous experts in dragon-killing, and modeling the knowledge they posess, he programs the system, and when he runs it he realizes he forgot a bracket (bender the offender).

HTML: Mounts a web on famous swords used to kill dragons, but he ignores the W3C standards. When he meets the dragon, he finds out the code isn’t compatible with his browser, so he’s left swordless. The dragon eats him as an appetizer.

Prolog: Thinks he needs a weapon to kill the dragon. Searches in a catalog for 182014 weapons. By the time the princess dies of her age, he’s achieved to know how to make every weapon starting with A: Atomic Bombs, Anti-Air Weapons, Arches, Ammunition, Axes…

PHP: Creates a web page that when he executes it would eliminate the $dragon selecting from a weapons databese in MySQL over an Apache server. Nevertheless he forgot the WHERE in the DELETE query and kills the princess, the dragon, the peasants, the witch, the sorceror and the programmer himself.

JavaScript: The programmer tries to kill  the great green dragon that spits fire throug his mouth. He creates a script that will delete the dragon when he loads a webpage, to create seconds after, some damsels to throw him flowers and make clapping sounds. Unfortunately he didn’t take into account the DOM structure of the lizard, also known as Mozilla, and the only thing he gets is to fill his console of errors and that the Book of Mozilla tells how he was devoured.

ActiveX: The programmers create a tunnel to enter the dragon’s lair from the castle and run a program that will kil the dragon from a safe and prudential distance. The dragon discovers the tunnel, eats the workers who dug, the dragon slayers, and enslaves every servant in the castle. The castle becomes a dragon-breeding place, full of little dragons that the dragon sends in pop-ups to other castles. The untasty remains of the knights are put in cans of Spam and sent to other castles as well as a warning. (aquelquesiente)

Actionscript: Create a dragon class with a killDragon method attached to a dragon getting killed awesome animation with Flash. Execute the method and half the way through the animation the Internet Explorer crashes…and he switches to another browser quickly, but then he forgot installing the latest flash plugin..so he goes to macromedia.com but he doesn’t find it because the site has moved to adobe.com, when he is in adobe sites and ready to download… the dragon eats him.

BASIC: He creates a weapon able to kill paper dragons, but no matter how they improve it, they discover it’s not good enough to kill any dragon bigger than a baby poodle.

Matlab: They create a loop that calculates the trajectories to shoot a giant arrow at the dragon. The program works flawlessly. What they need now are the voluntaries caoable to launch tha arrow with the necessary strength and accuracy.

Videogame Programmer : Spends two years programming a state-of-the-art sword with shaders and all. When the time comes to kill the dragon, he finds that half the knights aren’t strong enough to raise the sword. Then someone programs a patch that reveals the sex scenes with the princess and Hillary Clinton makes it a scandal.

Brontok updated Removal

October 14th, 2005 by aquataine

=================================
Brontok v. Updated Virus Removal
by Aquataine (14-10-05)
=================================

Petunjuk ini untuk virus Brontok versi updated dan juga versi lainnya,

Akibat/tanda-tanda baru dari virus versi ini:

1. Windows selalu restart jika Anda ingin melakukan logoff, shutdown, atau reboot
2. Regedit.exe DAN Registry Tools lainnya (cth: TweakUI) tidak dapat dijalankan
    dan jika dijalankan akan menyebabkan restart windows.
   (Barontok Versi sebelumnya hanya mematikan akses ke regedit.exe)
3. Ada file C:/Windows/ShellNew/bronstab atau
    C:/Winnt/ShellNew/bronstab
    berukuran 42.097 Bytes
    (Barontok versi sebelumnya berukuran ~81 Kb)

===========================
Langkah-langkah pembersihan
===========================

(Untuk win 95, 98, ME)
- Masuk ke safe mode:   Reboot lalu setelah muncul tampilan bios
  tekan Ctrl, pilih Safe mode dan tekan enter
- Lanjut langsung mulai dari langkah 2

(Untuk windows ME dan XP)
   Matikan System Restore Windows
   Start->Settings->Control panel->System atau
   Start->Control PAnel->System

   pada System restore tab… pilih opsi "Turn off System Restore"

(Untuk Win 2000, XP Home/Pro, Server 2003)

1. Reboot dan masuk ke safe mode.
   ** Restart windows, setelah muncul tampilan BIOS tekan F8, akan ad
    pilihan: Safe mode, Normal,…. pilih:

safe mode with command prompt..

   lalu tekan enter,

   ** catatan:
    Langkah-langkah di sini HARUS dijalankan di mode command prompt (berbeda dgn virus versi         sebelumnya) karena virus versi ini menyerang service-service yang dijalankan ketika mode
    GUI dijalankan (no better way founded yet.. :-p )

  *** TIPS
    Untuk menjalankan program di command prompt:
    ketik nama program lalu tekan enter.

    contoh untuk menjalankan windows explorer:
 
    C:\>explorer.exe

    alu tekan enter

——————————————
Menghilangkan autostart virus di registry
——————————————

2. Buka regedit:

   Pada command prompt ketik regedit.exe lalu tekan enter

   Di panel kiri pilih key:

            HKEY_LOCAL_MACHINE>SOFTWARE>Microsoft>Windows>CurrentVersion>Run

   lalu di panel kanan, hapus key:

            Bron-Spizaetus = "…….."

   Di panel kiri pilih key:

            HKEY_CURRENT_USER>Software>Microsoft>Windows>CurrentVersion>Run

   lalu di panel kanan, hapus key:

            Tok-Cirrhatus = "……"

   di panel kiri pilih key:

            HKEY_LOCAL_MACHINE>SOFTWARE>Microsoft>Windows NT>CurrentVersion>WinLogon

   lalu di panel kanan, ubah key:

            Shell = Explorer.exe "C:\WINDOWS\eksplorasi.exe"

   menjadi

            Shell = Explorer.exe

   **** PERHATIAN!!!!
    LIhat key Bron-Spizaetus di atas dan lihat nilai nya yang berisi nama
    dan letak virus, lalu cari file tersebut melalui explorer dan catat ukuran file dan tanggal         
    pembuatannya..
    Cth:   size:  42 Kb
    Date:  14-10-05

  ** Catatan:
    Jika regedit tidak dapat dibuka (muncul pesan error: ..disabled by administrator).. ini merupakan
    alah satu akibat virus barontok.
    Untuk itu saya telah membuat file untuk mengatasi masalah tsb:

    Download file PatchRegKey.inf (600 Bytes) di :
            
                     http://students.if.itb.ac.id/~if12031/kios/PatchRegKey.inf

    atau

                     http://www.geocities.com/aquata1ne/PatchRegKey.inf

    Setelah di download, install file tsb dengan cara:

    pada Command Prompt ketik explorer.exe lalu tekan enter
    lalu ke direktori tempat Anda menyimpan file PatchRegKey.inf lalu
   
    klik kanan file tsb lalu pilih "Install.."
   
    lalu lanjutkan langkah 2.

———————————————–
Menghilangkan autostart virus di scheduled task
———————————————–

3. Buka Secheduled Task di Control Panel:

Control Panel->Scheduled Task   lalu tekan enter

   Hapus task dengan nama "At1" atau apapun yang berhubungan dengan virus.
   Tips:  Klik kanan task->properties, lalu lihat isi properties dan jika
            ad isi command yang mencurigakan contoh:  BArontok.com , dsb.. hapus
            task tersebut.

   ** TIPS
    Anda dapat masuk ke control panel melalui explorer yang sudah
    dijalankan sebelumnya.

———————————————————
Mengaktifkan kembali aplikasi sistem yang di matikan Virus
———————————————————-

4. Untuk mengaktifkan kembali opsi Folder Options di Control Panel:

   Di command prompt ketik regedit lalu tekan enter:

          HKEY_CURRENT_USER>Software>Microsoft>Windows>CurrentVersion>Policies>Explorer

Lalu cari key berikut:
            
           NoFolderOptions = "dword:00000001"

dan ubah menjadi:

            NoFolderOptions = "dword:00000000"

dengan menge-set value dengan nilai 0 (nol).

Tutup regedit dan logoff windows untuk me-reload registry.

Logon windows dan lanjutkan ke langkah selanjutnya.

 

——————————————————–
Cari dan Hapus file-file virus di seluruh drive komputer
——————————————————–

5. Aktifkan opsi Show hidden Files dan Ekstensi:

    Masuk ke control panel melalui explorer lalu

    Klik Folder Options dan pada Tab view aktifkan opsi:

    1. Show hidden files&Folders
   
        dan matikan opsi

    2. Hide Extensions for known file types
    3. Hide Protected Operating System

6. Gunakan Search File Windows:
   
   Pada explorer, pilih search di toolbar

   Cari di seluruh drive windows yang ad:  C,D, ….
 
   pada input Search for files or folders names masukkan:
   
         *.exe
   lalu pada search options pilih opsi Range Size-> At most:  X Kb

     X = ukuran file yang diperoleh dari langkah 2 di atas
   
   dan pada Advanced Options pilih opsi Search system folders,

search hidden files&folders, search subfolders

   pilihan lain biarkan kosong

   Lalu klik search now..

   Pada hasil pencarian di panel kanan hapus semua file yang:
1. berukuran TEPAT sama dengan X  DAN
2. file nya berekstensi *.exe / *.pif / *.com / *.bat DAN
3. Untuk file .exe, file nya memiliki icon folder/direktori windows

** perhatian: hapus hanya file yang memenuhi SEMUA kondisi di atas
    dan BUKAN yang memenuhi salah satu saja.

    File yang sering ditemukan di direktori

           C:\Documents and Settings\\Local Settings\Application Data

   adalah:

           lsas.exe, smss.exe, winlogon.exe, services.exe
 
   
    Cari File di atas dan HAPUS!!!!

   * * Tips:  Sort hasil pencarian berdasarkan size untuk memudahkan
        penghapusan

7. Ulangi langkah ke-6 atas dengan input search file: *.pif, *.com, *.bat

8. Hapus file autoexec.bat di C:/

————-
Finishing :-p
————-

9. Untuk mengaktifkan kembali program-program registry seperti TweakUI.XP
    ketik perintah berikut di command prompt:

    REG add HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\System /v DisableRegistryTools /t REG_DWORD /d 0 /f

  Lalu ketik enter.

  ** Catatan
    Perintah di atas tidak ada baris baru (terus bersambung ke kanan).

10. Reboot dan masuk windows seperti biasa.

Catatan:
Cara ini sudah BERHASIL diterapkan di banyak komputer
(pastikan Anda sudah mengikuti semua langkah di atas)

Komentar,saran,pertanyaan (I don’t need your money :-p)
harap di kirim ke email saya:

—–
END
—–

By aquataine

Contact Email:    aquataine@f-m.fm
                        web.developer@Phreaker.net