11 Commits

Author SHA1 Message Date
kmanc 8efc7f4707 Workflows (#58)
* ran cargo update

* clippy checks for all combinations of features required to pass

* hadnt saved the file, this is the desired version

* small nitpick on my gitignore lol

* new workflow was in the wrong dir and i didnt notice

* need windows dependencies in windows builds

* name consistency

* alphabetizing so i can find things when im adding/changing/removing/etc
2022-09-16 08:42:25 -07:00
kmanc 9561a8c007 no substantive changes, just small updates (#52)
* no substantive changes, just small updates

* Update shield_io_updater.yml
2022-08-13 16:27:48 -07:00
kmanc 57979649d3 change workflows to work on main (#51) 2022-08-11 23:09:59 -07:00
kmanc 4d8e544585 Workflows (#49)
* allow for manual actions runs

* remove blank lines
2022-08-05 21:10:52 -07:00
kmanc 038fa0ebc6 Antistring (#44)
* updates to rco_utils to support api hashing

* version bumps, feature adjustments

* fix tcp cargo

* make the functions public

* hash params done

* add antisand as an optional feature of tcp_reverse shell

* fix links in comments

* lots of cleanup on tcp_reverse_shell

* clippy recommendation

* fully de-stringed version is complete, but gotta figure out how i want to toggle them

* all changes to support antisand and antistring complete!

* antisand and antistring were incompatible because of imports; fixed that. also there is a new implementation of antisand with antistring applied

* antistring support for process hollowing

* antistring updates for process migration

* lock updatrer

* i think this covers the builds needed

* new tool

* readme updates

* more readme updates

* Update README.md

* Update README.md

* Update reverse shell badge data via Github Action

* Update process migration badge data via Github Action

* Update process hollowing badge data via Github Action

* trying a new workflow trigger

* undoing, didnt work the way i wanted it to

Co-authored-by: kmanc <kmanc@users.noreply.github.com>
2022-04-22 11:18:26 -07: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 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 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 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 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 8b2752a5a5 Process migration (#10)
* more precise setup

* smarter imports changed lock

* import only in the mod file

* libc for unix

* import in mod file

* import in mod file

* WIP

* unix --> linux

* target linux correctly

* working build, non-working functionality

* really not sure how to run this thing

* clippy suggestion

* dependencies getting narrowed down

* get target pid and verify ptrace perms with process_vm_readv

* need a linux shellcode too

* swapped to ptrace, feel like im close

* seg faults are common and i never get the shell

* this seems more robust but also doesnt work

* removed a few prints and added some coments

* trying to debug this

* looks nicer this way

* idk what im doing

* have i narrowed down the problem?

* still trying to figure out what doesnt work

* minimal nix version via cargo-minimal-verions

* missed commit

* ok finally it works, but in a way that i would never have thought the documentation on ptrace indicated

* it actually works now! and is cleaned up
2022-01-15 20:41:21 -08:00