Skip to content
This repository was archived by the owner on Aug 6, 2024. It is now read-only.

Commit 92e34c5

Browse files
committed
usage message added
1 parent 09c0c76 commit 92e34c5

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/main/java/ir/xenoncommunity/jss/JSSAttack.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,12 @@ public void run() {
5454
final String method = this.parser.get("--method", String.class, "TCPFLOOD");
5555
final Boolean verbose = this.parser.get("--verbose", Boolean.class, false);
5656

57+
if (ip == null) {
58+
System.out.println("JSSAttack by XenonCommunity");
59+
System.out.println("Usage: java -jar JSSAttack.jar --ip <ip> --port <port> --threads <threads> --byteSize <byteSize> --duration <duration> --method <method> [--verbose] [--debug]");
60+
System.exit(0);
61+
}
62+
5763
// Set logging level based on verbosity and debug mode
5864
if (verbose) {
5965
Logger.setCurrentLevel(Logger.LEVEL.VERBOSE);

0 commit comments

Comments
 (0)