From c40a46d46080ed4986a0d1694aac0a1d83e50209 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Sun, 9 Jun 2024 10:55:31 -0700 Subject: [PATCH 1/5] Bump thomaseizinger/create-pull-request from 1.3.1 to 1.4.0 (#201) Bumps [thomaseizinger/create-pull-request](https://github.com/thomaseizinger/create-pull-request) from 1.3.1 to 1.4.0. - [Release notes](https://github.com/thomaseizinger/create-pull-request/releases) - [Changelog](https://github.com/thomaseizinger/create-pull-request/blob/master/CHANGELOG.md) - [Commits](https://github.com/thomaseizinger/create-pull-request/compare/1.3.1...1.4.0) --- updated-dependencies: - dependency-name: thomaseizinger/create-pull-request dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- .github/workflows/release-private-start.yml | 2 +- .github/workflows/release-public-start.yml | 2 +- .github/workflows/release-sponsor-kali-start.yml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release-private-start.yml b/.github/workflows/release-private-start.yml index f55f268..41dbb23 100644 --- a/.github/workflows/release-private-start.yml +++ b/.github/workflows/release-private-start.yml @@ -58,7 +58,7 @@ jobs: - name: Push new branch run: git push origin ${{ env.RELEASE_BRANCH }} - name: Create pull request into ${{ env.TARGET_BRANCH }} - uses: thomaseizinger/create-pull-request@1.3.1 + uses: thomaseizinger/create-pull-request@1.4.0 with: GITHUB_TOKEN: ${{ secrets.RELEASE_TOKEN }} head: ${{ env.RELEASE_BRANCH }} diff --git a/.github/workflows/release-public-start.yml b/.github/workflows/release-public-start.yml index 2dfd7b7..dd4a42c 100644 --- a/.github/workflows/release-public-start.yml +++ b/.github/workflows/release-public-start.yml @@ -44,7 +44,7 @@ jobs: - name: Push new branch run: git push public ${{ env.RELEASE_BRANCH }} - name: Create pull request into main - uses: thomaseizinger/create-pull-request@1.3.1 + uses: thomaseizinger/create-pull-request@1.4.0 with: GITHUB_TOKEN: ${{ secrets.RELEASE_TOKEN }} head: ${{ env.RELEASE_BRANCH }} diff --git a/.github/workflows/release-sponsor-kali-start.yml b/.github/workflows/release-sponsor-kali-start.yml index b53371f..9fa65a5 100644 --- a/.github/workflows/release-sponsor-kali-start.yml +++ b/.github/workflows/release-sponsor-kali-start.yml @@ -47,7 +47,7 @@ jobs: - name: Push new branch run: git push origin ${{ env.RELEASE_BRANCH }} - name: Create pull request into ${{ env.TARGET_BRANCH }} - uses: thomaseizinger/create-pull-request@1.3.1 + uses: thomaseizinger/create-pull-request@1.4.0 with: GITHUB_TOKEN: ${{ secrets.RELEASE_TOKEN }} head: ${{ env.RELEASE_BRANCH }} From bf10b2d95383e35ef20375df05f32552a3742eea Mon Sep 17 00:00:00 2001 From: Anthony Rose <20302208+Cx01N@users.noreply.github.com> Date: Thu, 13 Jun 2024 09:00:51 -0400 Subject: [PATCH 2/5] Add request for agent task status list (#202) * Added get agent task status button * Update changelog * made lint updates * updated format * Update src/components/agents/AgentTerminal.vue Co-authored-by: Vincent Rose * Update src/components/agents/AgentTerminal.vue Co-authored-by: Vincent Rose * updated format --------- Co-authored-by: Vincent Rose --- CHANGELOG.md | 3 +++ src/api/agent-task-api.js | 6 ++++++ src/components/agents/AgentFileBrowser.vue | 6 +++--- src/components/agents/AgentTasksTable.vue | 5 +++-- src/components/agents/AgentTerminal.vue | 21 +++++++++++++++++++++ src/components/modules/ModulesTable.vue | 4 ++-- src/components/plugins/PluginTasksTable.vue | 5 +++-- src/utils/pause.js | 2 +- src/views/AgentEdit.vue | 15 +++++++++++++++ 9 files changed, 57 insertions(+), 10 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 82e7430..8fc7db0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -14,6 +14,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +### Added +- Added request for job/task list from agents + ## [2.8.1] - 2024-05-05 ### Fixed diff --git a/src/api/agent-task-api.js b/src/api/agent-task-api.js index c00f63f..0b4c31e 100644 --- a/src/api/agent-task-api.js +++ b/src/api/agent-task-api.js @@ -172,6 +172,12 @@ export function scriptImport(sessionId, file) { .then((response) => response.data) .catch((error) => Promise.reject(handleError(error))); } +export function getJobs(sessionId) { + return axios + .post(`/agents/${sessionId}/tasks/jobs`) + .then(({ data }) => data) + .catch((error) => Promise.reject(handleError(error))); +} export function scriptCommand(sessionId, command) { return axios diff --git a/src/components/agents/AgentFileBrowser.vue b/src/components/agents/AgentFileBrowser.vue index 04a5abc..db9b0cf 100644 --- a/src/components/agents/AgentFileBrowser.vue +++ b/src/components/agents/AgentFileBrowser.vue @@ -30,16 +30,16 @@ :open.sync="open" :items="tree" > -