{"info":{"_postman_id":"2171c8db-fd53-4580-824a-f97a29f9770b","name":"shellapi","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"description":"<html><head></head><body></body></html>","owner":"24043719","collectionId":"2171c8db-fd53-4580-824a-f97a29f9770b","publishedId":"2s8YsozEmb","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2022-11-24T03:13:06.000Z"},"item":[{"name":"Execute Command","id":"6eecef11-6bef-49ee-a560-090c4cc3e354","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"shell_name\":\"sh\",\n    \"password\":\"somecoolpassword\",\n    \"command\":\"sudo -S ls\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8000/api/cmd","description":"<p>Runs shell commands.  </p>\n<p><strong>Request Body Parameters</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Parameter</strong></th>\n<th><strong>Compulsory</strong></th>\n<th><strong>Example</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>shell_name</td>\n<td>no</td>\n<td>sh</td>\n</tr>\n<tr>\n<td>password</td>\n<td>no</td>\n<td></td>\n</tr>\n<tr>\n<td>command</td>\n<td>yes</td>\n<td>sudo -S ls  <br />  <br />date</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"http","port":"8000","path":["api","cmd"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"e48d0b7b-863b-44d1-9b8d-168ad19a60c3","name":"Execute Command","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"shell_name\":\"sh\",\n    \"password\":\"somecoolpassword\",\n    \"command\":\"sudo -S ls\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8000/api/cmd"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Thu, 24 Nov 2022 02:53:57 GMT"},{"key":"Content-Length","value":"157"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"errors\": [],\n    \"message\": \"command executed successfully\",\n    \"data\": {\n        \"stdout\": \"api\\ngo.mod\\ngo.sum\\nLICENSE\\nmain.go\\nmodels\\nshell\\n\",\n        \"stderr\": \"\"\n    }\n}"}],"_postman_id":"6eecef11-6bef-49ee-a560-090c4cc3e354"}]}