acmpesuecc / nexus-framework

A c2 server written in go with payload generation and agent connections
GNU General Public License v3.0
0 stars 3 forks source link

Written Relevant Tests #5

Closed SavvyHex closed 2 weeks ago

SavvyHex commented 2 weeks ago

I've created a main_test.go file with relevant tests and moved some structs to another file (models.go) as they are frequently reused

bunsamosa-bot[bot] commented 2 weeks ago

Thank you from Opening this Pull Request, @SavvyHex ! A Maintainer will review it soon!

SavvyHex commented 2 weeks ago

since the /execute-command endpoint hasn't been created yet, the test_command_execution.go file is riddled with errors

Icarus131 commented 2 weeks ago

@SavvyHex Are you still working on this?

SavvyHex commented 2 weeks ago

I've submitted a pull request with the tests for the execute command endpoint.

Icarus131 commented 2 weeks ago

looks like tests are still failing-- could you check and revert?

SavvyHex commented 2 weeks ago

The tests work for everything except the execute command endpoint, which doesn't exist yet, so...

Icarus131 commented 2 weeks ago

Just add a simple endpoint in main.go to give a 200 OK so that the tests will pass. Do not worry about the logic for the test suite

SavvyHex commented 2 weeks ago

Ahhh got it, just give me some time

SavvyHex commented 2 weeks ago

yeah, done

Icarus131 commented 2 weeks ago

!bounty 250

bunsamosa-bot[bot] commented 2 weeks ago

Assigned 250 Bounty points to user @SavvyHex !