MythicAgents / thanatos

Mythic C2 agent targeting Linux and Windows hosts written in Rust
BSD 3-Clause "New" or "Revised" License
310 stars 42 forks source link

Payload Failed to Build! #10

Closed digitalohm closed 1 year ago

digitalohm commented 1 year ago

Trying to build a test and I received "Payload Failed to Build!"


   Compiling autocfg v1.1.0
   Compiling cc v1.0.79
   Compiling winapi-x86_64-pc-windows-gnu v0.4.0
   Compiling winapi v0.3.9
   Compiling cfg-if v1.0.0
   Compiling proc-macro2 v1.0.51
   Compiling unicode-ident v1.0.7
   Compiling quote v1.0.23
   Compiling syn v1.0.109
   Compiling pkg-config v0.3.26
   Compiling typenum v1.16.0
   Compiling libc v0.2.139
   Compiling version_check v0.9.4
   Compiling windows_x86_64_gnu v0.42.1
   Compiling log v0.4.17
   Compiling untrusted v0.7.1
   Compiling serde_derive v1.0.152
   Compiling spin v0.5.2
   Compiling serde v1.0.152
   Compiling parking_lot_core v0.8.6
   Compiling memchr v2.5.0
   Compiling thiserror v1.0.38
   Compiling rustls v0.20.8
   Compiling smallvec v1.10.0
   Compiling scopeguard v1.1.0
   Compiling base64 v0.21.0
   Compiling bitflags v1.3.2
   Compiling subtle v2.4.1
   Compiling ppv-lite86 v0.2.17
   Compiling openssl v0.10.45
   Compiling foreign-types-shared v0.1.1
   Compiling cpufeatures v0.2.5
   Compiling minreq v2.6.0
   Compiling opaque-debug v0.3.0
   Compiling serde_json v1.0.93
   Compiling ryu v1.0.13
   Compiling widestring v0.3.0
   Compiling block-padding v0.2.1
   Compiling once_cell v1.17.1
   Compiling lazy_static v1.4.0
   Compiling field-offset v0.1.1
   Compiling widestring v0.5.1
   Compiling num_cpus v1.15.0
   Compiling bytes v1.4.0
   Compiling itoa v1.0.6
   Compiling pin-project-lite v0.2.9
   Compiling path-clean v0.1.0
   Compiling base64 v0.13.1
   Compiling openssl-src v111.25.1+1.1.1t
   Compiling num-traits v0.2.15
error[E0599]: the method `join` exists for struct `Vec<&OsStr>`, but its trait bounds were not satisfied
   --> /root/.cargo/registry/src/github.com-1ecc6299db9ec823/openssl-src-111.25.1+1.1.1t/src/lib.rs:335:55
    |
335 |                     ar.get_args().collect::<Vec<_>>().join(OsStr::new(" ")),
    |                                                       ^^^^ method cannot be called on `Vec<&OsStr>` due to unsatisfied trait bounds
    |
    = note: the following trait bounds were not satisfied:
            `[&OsStr]: Join<_>`

error[E0599]: the method `join` exists for struct `Vec<&OsStr>`, but its trait bounds were not satisfied
   --> /root/.cargo/registry/src/github.com-1ecc6299db9ec823/openssl-src-111.25.1+1.1.1t/src/lib.rs:344:59
    |
344 |                     ranlib.get_args().collect::<Vec<_>>().join(OsStr::new(" ")),
    |                                                           ^^^^ method cannot be called on `Vec<&OsStr>` due to unsatisfied trait bounds
    |
    = note: the following trait bounds were not satisfied:
            `[&OsStr]: Join<_>`

For more information about this error, try `rustc --explain E0599`.
error: could not compile `openssl-src` due to 2 previous errors
warning: build failed, waiting for other jobs to finish...
error: build failed
Error building payload: Failed to build payload. Check Build Errors traceback: ['Traceback (most recent call last):\n', '  File "/Mythic/mythic/agent_functions/builder.py", line 215, in build\n    raise Exception("Failed to build payload. Check Build Errors")\n', 'Exception: Failed to build payload. Check Build Errors\n']```
MEhrn00 commented 1 year ago

I bumped the openssl version to the latest. That should fix this build issue https://github.com/MythicAgents/tetanus/commit/63b9796bfa6b748e2992c45d8ede4d6605af4251