Commit Graph

81 Commits

Author SHA1 Message Date
koins df511a0ec3 this is way cleaner 2022-02-25 11:04:56 -08:00
koins 7b3f328d19 cadence works now, structure of stored commands changed. commands can accept arguments. better formattable command results 2022-02-24 23:53:32 -08:00
koins 6bd2ab8501 making steps towards saving results. also cleaning up some of the prints 2022-02-24 16:25:39 -08:00
koins 160e6540ba implant is state-aware and is able to receive / process 'None' commands if the server has nothing new 2022-02-24 16:07:16 -08:00
koins edc8f5c745 no more perma-established channels 2022-02-23 22:03:13 -08:00
koins 518613d751 putting down more thoughts 2022-02-23 17:52:30 -08:00
koins 63a874ffae some basic comments in the implant 2022-02-23 17:41:20 -08:00
koins 87864b3a64 didnt need that there 2022-02-23 16:35:29 -08:00
koins 63ee51b92e time will tell whether or not this is a good approach, but commands are working generally 2022-02-23 16:34:12 -08:00
koins 3bb51a2d2f i think this covers all the build stuff, badge stuff, and readme stubs 2022-02-22 22:19:35 -08:00
koins 7af7c6994e its looping! next should probably figure out how to maintain state but i need more brainpower for that so itll have to be another day 2022-02-22 22:09:56 -08:00
koins fb3678b5bd getting some basic commands functioning for both target OSes. need to formalize how commands work in general though 2022-02-22 21:50:23 -08:00
koins efb6d6278c notes so i dont forget 2022-02-21 20:38:04 -08:00
koins 2ba3eef7df using a real timestamp and a real implant ID now. also using values from config 2022-02-21 18:09:36 -08:00
koins b3272efd6c all manual, but beacon --> command --> response flow first take 2022-02-21 11:56:06 -08:00
koins 1d3237ad98 working client <--> server communication with tonic 2022-02-18 23:05:23 -08:00
koins 5dd5592701 this is much cleaner IMO 2022-02-16 21:03:08 -08:00
koins 9f2750dee8 just getting protobufs up and running ish 2022-02-15 22:42:54 -08:00
koins c390fb92f2 project layout for a rat consisting of three components. operator uses client to interact with c2. c2 interacts with implant on victim machine 2022-02-15 20:40:21 -08:00
kmanc c7b118babb Release1.1 (#35)
* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md
v1.1.0
2022-02-04 19:19:15 -08:00
kmanc f37e17dc79 Update README.md 2022-02-04 19:13:09 -08:00
kmanc 166f5ae650 Bugfix (#34)
* spelling mistakes...LOL

* version bumps because those spelling mistakes caused issues with feature flags

* Update process migration badge data via Github Action

* Update process hollowing badge data via Github Action

Co-authored-by: kmanc <kmanc@users.noreply.github.com>
2022-02-04 15:23:49 -08:00
kmanc 6e874b9887 Cleanup and refactor (#33)
* whoops

* newlines to end files

* better code comments

* better code comments

* only compile necessary features. ones not asked for get dummy stub functions

* newline at end of file

* small version bump. better conditional compilation logic. better code comments

* build updates to try to cover feature combinations

* typo

* lock

* glaring readme issues...will address more on separate branch

* newline

* typo

* typo

* this was more than just a patch bump for utils

* Update reverse shell badge data via Github Action

* Update process migration badge data via Github Action

* Update process hollowing badge data via Github Action

* Update xor params badge data via Github Action

* lock

* compat change on windows crate

* require newer win version to support change

Co-authored-by: kmanc <kmanc@users.noreply.github.com>
2022-02-03 16:57:30 -08:00
kmanc 477ae0717c Beat defender (#32)
* this is gonna get messy

* getting closer, need to check something

* i was editing the wrong file, lol

* ok now we've made some progress, lets use it

* this needs some cleanup. but tldr is the library has three new functions. one is a legit implementation for windows to try to tell if its AV testing. the other two are bs placeholders

* basic comments and reverse the logic for the wrong one

* lock

* antisand works and now properly passes feature to rco_utils. version bump!

* antisand works and now properly passes feature to rco_utils. version bump!

* Update lib.rs

* Update process migration badge data via Github Action

* Update process hollowing badge data via Github Action

Co-authored-by: kmanc <kmanc@users.noreply.github.com>
2022-02-03 11:59:16 -08:00
kmanc 62455ab55e Encryption (#31)
* reworked a lot of the way encrypting shellcodes work. allowed xor_shellcode to xor more than just the shellcode. renamed xor_shellcode accordingly. changed the feature name from encrypted to xor. bumped versions

* gh actions and shields

* lock and toml

* these functions are only needed here

* these functions not needed in a lib (at least not now)

* lock

* Update process migration badge data via Github Action

* Update process hollowing badge data via Github Action

* Update xor params badge data via Github Action

* missed one thing, damn

Co-authored-by: kmanc <kmanc@users.noreply.github.com>
2022-02-02 22:30:54 -08:00
kmanc 4dc19550e0 Parameterize (#30)
* lock file

* version bump

* allow user to choose which process they target for migration, but provide defaults that should work

* more lock updates

* version bump

* allow user to choose which process they target for hollowing, but provide defaults that should work

* Update process migration badge data via Github Action

* Update process hollowing badge data via Github Action

Co-authored-by: kmanc <kmanc@users.noreply.github.com>
2022-02-01 23:30:18 -08:00
kmanc 970d4146f2 Documentation (#29)
* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md
2022-01-30 22:30:14 -08:00
kmanc 19af1b3066 Update README.md 2022-01-30 22:27:06 -08:00
kmanc 7677f5a46b Documentation (#28)
* Update README.md

* Update README.md
2022-01-30 18:48:17 -08:00
kmanc d9fe80a437 Update README.md 2022-01-30 17:41:53 -08:00
kmanc 83d1efa5ee Hollowing encryption (#27)
* lock update

* features + version bump

* encryption for hollowing too!

* Update process hollowing badge data via Github Action

Co-authored-by: kmanc <kmanc@users.noreply.github.com>
2022-01-30 17:36:03 -08:00
kmanc cdfd676139 Migration encryption (#26)
* changed shellcode default after having changed the key

* features are kinda cool

* lock update

* encryption! will post detection rates and updated instructions later but this is nice

* lock update

* version bump

* Update process migration badge data via Github Action

Co-authored-by: kmanc <kmanc@users.noreply.github.com>
2022-01-30 15:29:23 -08:00
kmanc ada97f0b16 Shellcode encrypter (#25)
* GH actions update

* new badge to track

* lock and toml

* new tool

* key and encrypted shellcode placeholders

* i missed the lock i guess

* slice xor function which will be needed for later tools

* shellcode XORer and printer

* slice length to generic function as a util

* extend shorter slice to be the same length as longer slice by repeating

* return both of the inputs for equalize to make it harder to misuse. return result (possible error) for xor to make it more clear what went wrong

* default key length ++ and version bump

* version bump

* better validation of input data
2022-01-30 09:48:32 -08:00
kmanc 3aca1b57e5 Release 1 (#24)
* Update README.md

* Update README.md

* Update README.md

* Update README.md
v1.0.0
2022-01-28 21:25:07 -08:00
kmanc e111eb39ab Update README.md 2022-01-28 21:02:10 -08:00
kmanc 45d72c96f0 Process hollowing (#23)
* missed commit

* build new tool

* mostly boilerplate for process hollowing

* prepping new tool

* fixing up boilerplate

* whoops, didnt change name

* whoops, didnt change name in another place

* update lock

* scoping out the windows implementation

* CreateProcessW compiles, on to ZwQueryInformation

* new dep for process hollowing

* end to end but something is wrong, gotta debug

* failing at createprocessw....... bleh

* update docs to include process hollowing as the new tool

* update builds in github actions for process_hollowing

* toml and lock updates for process_hollowing

* process_hollowing as the new hotness. windows implementation is 'done' in that it compiles, but it panics immediately so gonna have to look into that

* moved to 'A' win32 calls from 'W'. still not working, but getting further along

* Merge utils into process hollowing (#14)

* update to lock and toml

* adding a utils library for some shared useful functions. starting with u8 array --> u32

* moved to 'A' win32 calls from 'W'. still not working, but getting further along

* needed 64 bit too

* use utils lib instead of byteorder crate. things seem to be working better as a result

* at a bit of a loss...why doesnt this work?

* this was gonna bug me. utils first, then tools

* prep readme for when windows actually works

* moving lone bracket to line above for workflow compat

* badge in workflow, shields, and readme

* still not working, but also not crashing

* spacing error i think

* second validation check. still doesnt work though

* debugging continues

* am i closer? im on the last line so i kinda hope so

* lock update

* update to the new shared config

* update readme a little, more to come

* pretty sure i had a mistake there. also the 'needs' thing will save headache later

* still dunno what the deal is, trying to narrow down the problem

* trying new payloads to no avail

* readme update, still some placeholders

* back to OG shellcode

* it works now. my brain is mush, but it works now

* take THAT comment

* Update README.md

* Update README.md

* Update README.md

* got this working much faster than expected

* readme updated

* Update process hollowing badge data via Github Action

Co-authored-by: kmanc <kmanc@users.noreply.github.com>
2022-01-28 19:46:01 -08:00
kmanc fb9933e5bd Update README.md 2022-01-28 19:39:29 -08:00
kmanc 551e58ee13 Update README.md 2022-01-27 18:10:14 -08:00
kmanc 1d084e598d Documentation (#22)
* Update README.md

* Update README.md

* Update README.md

* badges to sub-readmes

* main readme polishing

* formatting

* feasts feedback incorporated
2022-01-27 18:09:34 -08:00
kmanc 14bf59fa01 Refactor (#21)
* shared config library! this will make setting up the payloads much easier

* update lock and toml for new shared config

* migrate rev shell to the new shared config

* lock update again

* shellcodes to config lib

* migrating...process migration to the new shared config

* update readme's links

* minor version bumps

* Update process migration badge data via Github Action

* Update reverse shell badge data via Github Action

Co-authored-by: kmanc <kmanc@users.noreply.github.com>
2022-01-25 22:00:52 -08:00
kmanc c30ef14d9a Bugfix (#20)
* safer to not go under 100 pid

* Update Cargo.toml

* Update process migration badge data via Github Action

Co-authored-by: kmanc <kmanc@users.noreply.github.com>
2022-01-25 14:31:34 -08:00
kmanc ea80b82d20 Upgrades (#19)
* first official detection rates! need to reorg readmes, add screenshots, and do gifs another day

* separate build categories into jobs so its easier to read

* also separate into jobs for clarity / it seems to make sense

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* mingw issue

* still working on fixing

* Update windows.yml

* does this work?

* Update windows.yml

* Update windows.yml

* Update README.md
2022-01-25 13:42:28 -08:00
kmanc e212d05a8e Bugfix (#18)
* bugfix on cmd process

* version bump for bug

* Update shields data via Github Action

Co-authored-by: kmanc <kmanc@users.noreply.github.com>
2022-01-25 12:58:51 -08:00
kmanc fd16dbab6e Update README.md 2022-01-23 21:56:00 -08:00
kmanc 2bb47361cd Update README.md 2022-01-21 23:43:56 -08:00
kmanc 8170203c08 Update README.md 2022-01-21 23:38:55 -08:00
kmanc 512b05f837 Badges (#16)
* moving the last char up so the new action can work

* placeholder shield data

* new action to update shields based on semver

* new badges on display!

* wrong path

* Update shield_io_updater.yml

* Update shield_io_updater.yml

* Update shields data via Github Action

Co-authored-by: kmanc <kmanc@users.noreply.github.com>
2022-01-21 23:34:34 -08:00
kmanc 4fc0ef3044 Jumped the gun 2022-01-21 18:37:54 -08:00
kmanc 4819562867 Jumped the gun 2022-01-21 18:37:43 -08:00
kmanc 722e81cd4d custom shields in readme! 2022-01-21 18:31:49 -08:00