Skip to content

Incorrect Response - GET - Default Shell #3

@ashgit301

Description

@ashgit301

Describe the bug
The call to get shell returns incorrect response.

To Reproduce
Steps to reproduce the behavior:

  • The Command being traced :
    1. java -Dspring.profiles.active=mysql -jar target/*.jar

  • Sequence of REST APIs and Trace Options used :
    1. URL : /api/{accountID}/v1/startTracing?pid=93167
    Method : PUT
    2. URL : /api/{accountID}/v1/getshell
    Method : GET

  • Response Body and Response Code from the REST API
    {
    "shell": "/bin/bash"
    }

  • In case of command line utility issue, the command line options used and the response from the command line utility

  • Sail terminal logs

Expected behavior
The expected response while hitting the API - URL : /api/{accountID}/v1/getshell is,
{
"shell": "/bin/sh"
}

Screenshots
If applicable, add screenshots to help explain your problem.

** System (please complete the following information):**

  • OS: Ubuntu
  • Version 20.04

You can get these information from the os-release file as below:

cat /etc/os-release

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions