14.0k views
2 votes
While performing session hijacking, you could only send one

successful telnet command before the connection drops. What are two
methods you (Trudy) could do to send multiple commands to Bob?

User Sjlver
by
8.4k points

1 Answer

4 votes

Final answer:

To execute multiple commands during a session hijacking scenario with telnet where only one command can be sent before disconnection, the attacker can use scripting to automate a sequence of commands and command chaining to execute multiple actions in one request.

Step-by-step explanation:

The question pertains to session hijacking, which is a type of cyber-attack where the attacker takes control of a user's session to gain unauthorized access to information or services. In the context of this scenario where only a single command can be sent via telnet before the connection drops, two methods to send multiple commands might include:

  • Scripting: Writing a shell script or batch file that automates the sending of multiple commands in rapid succession. This requires only one successful connection establishment to execute the entire sequence of commands prepared beforehand.
  • Command Chaining: Combining multiple commands into a single command line separated by command chaining operators such as ';', '&&', or '||' depending on the functionality required. If the command is successfully executed, all the commands in the chain will be executed as part of that single command request.

Both methods aim to maximize the actions performed during the limited window of a hijacked session.

User DimKoim
by
7.4k points