Question
Write Bot Master (MasterBot.java) and provide the code for the slaves (SlaveBot.java) to be commanded by the Bot Master. The master, when started, will present
Write Bot Master (MasterBot.java) and provide the code for the slaves (SlaveBot.java) to be commanded by the Bot Master. The master, when started, will present a command line interface to the user like that provided by the shell in unix (i.e. present prompt >). The following commands are to be supported: (DO NOT INCLUDE THE HYPEN IN YOUR COMMANFD SYNTAX, ONLY THE COMMAND: i.e. list) 1.-connect (IPAddressOrHostNameOfYourSlave|all) (TargetHostName|IPAddress) TargetPortNumber [NumberOfConnections: 1 if not specified] [keepalive] When the keepalive option is given, your client should select that socket option while creating the related connection. 2.- connect (IPAddressOrHostNameOfYourSlave|all) (TargetHostName|IPAddress) TargetPortNumber [NumberOfConnections: 1 if not specified] [url=path-to-be-provided-to-web-server] As an example, if you select to attack the Google search engine you will use: url=/#q= The slave will generate a HTTP request equivalent to: https://www.google.com/#q=YourRandomString Your client must also clean up data provided by the server response. The length of the string being added to the should also be generated at random between 1 char and 10 chars.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started