Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

str/byte, new server message check, agents listing bug #103

Merged
merged 14 commits into from Feb 29, 2020
Merged

str/byte, new server message check, agents listing bug #103

merged 14 commits into from Feb 29, 2020

Conversation

hypnoticpattern
Copy link

agent.py: Stripped trailing white spaces. In some cases the default HTML page and the current one, used to check if a new server message arrived, have a different number of trailing white spaces that makes the agent to try to base64 decode the HTML causing an exception within the agen:

main() exception: 'utf-8' codec can't decode byte 0x99 in position 0: invalid start byte
main() exception: 'utf-8' codec can't decode byte 0x99 in position 0: invalid start byte
main() exception: 'utf-8' codec can't decode byte 0x99 in position 0: invalid start byte

empire.py: str/byte error trying to read the file.

helpers.py: Typo

messages.py: In some cases when an agent doesn't fully complete a connection the hostname is Null. In Python 3 that causes an unsupported format string passed to NoneType.__format__ exception when the command agents is invoked. If that happens the agents listing breaks until the offending agent is removed. Reference

@Cx01N Cx01N added the bug Something isn't working label Feb 15, 2020
@Cx01N Cx01N merged commit c7c373a into BC-SECURITY:dev Feb 29, 2020
vinnybod added a commit that referenced this pull request Jul 27, 2021
* stopping point with pydantic

* a little cleanup

* refactors

* convert a couple modules

* Keep modules endpoints functioning the same as 3.x

* fix default option format strings

* fix a couple of the modules

* fix rubeus and add docs

* formatting fix

* add stub for python yaml

* fix a few of the modules that weren't loading

* fix issues in bypassuac

* some initial python conversions

* rename variables

* clear some todos... add others

* python minify

* clear out more todos

* convert a few more modules

* Converted modules to YAML Format (#60)

* converted modules to yaml format

* reformatted code

* initial csharp module ingestor

* added agent option when loading covenant yamls

* updates to call the compiler

* Tasks compile and runing on powershell agent

* initial agent integration. Not working yet

* initial covenant compiler integration

* adding in all files

* renaming folder

* adding compiler files

* removing unnecessary files

* make generic csharp directory, remove covenant debug files

* fix 1 yaml name

* remove some more definite unused files

* some formatting

* updates to the agent. no argument tasks running

* fixed C# tasks with parameters in C# agents

* csharp cleanup

* graceful csharp shutdown

* updated submodules

* added rubeus

* updated rubeus

* updated dpapi

* local updates

* added notifications to csharpserver

* fixed message stylization

* fixed agent on the server

* added colorization to stager generation in cli

* updated csharp launcher with single exe

* C# taskings fix for powershell agent. Throws error at the server

* temporary fix for the outpipe bug in powershell agents

* fix issue with main menu reference in 'send_socketio_message' (#96)

* Update gitignore, limit text sent to compiler, fix issue starting up … (#94)

* Update gitignore, limit text sent to compiler, fix issue starting up csharpserver plugin

* add credential module

* updated config.yaml back to defaults

* readded autoconnect as a default config option

* mimikatz resource folder

* actually added files

* binary clean up and supress agent console window

* merge clean up

* more csharp updates (#101)

* more updates

* fix agent option format

* write full path on generated-stager

* Fixed sharpire responses (#102)

* fixed sharpire responses

* removed .kill for thread

* readded .kill for vinnybod...

* Sharpire merge fixes (#103)

* fix color issue

* fixed csharp tasking

* fixed missing type 44 bracket

Co-authored-by: Vince Rose <vrose04@gmail.com>
Co-authored-by: Anthony Rose <20302208+Cx01N@users.noreply.github.com>
Co-authored-by: Cx01N <anthony.rose@bc-security.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants