Read a remote file
Reads the entire content of a remote file through an active shell session.
Authorization
bearerAuth The bearer token used is the session token that you receive from the handshake exchange.
In: header
Request Body
application/json
The connection uuid
The target file path
Response Body
application/octet-stream
application/json
application/json
curl -X POST "http://localhost:21721/fs/read" \ -H "Content-Type: application/json" \ -d '{ "connection": "f0ec68aa-63f5-405c-b178-9a4454556d6b", "path": "/home/user/myfile.txt" }'{
"message": "string"
}{
"error": {
"cause": {},
"stackTrace": [],
"suppressed": [],
"localizedMessage": "string",
"message": "string"
}
}Store raw file blob POST
Stores arbitrary binary data in a blob such that it can be used later on to for example write to a remote file. This will return a uuid which can be used as a reference to the blob. You can also store normal text data in blobs if you intend to create text or shell script files with it.
Write blob to a shell script POST
Creates a shell script in the temporary directory of the file system that is access through the shell connection. This can be used to run more complex commands on remote systems.