carnal0wnage / weirdAAL

WeirdAAL (AWS Attack Library)
773 stars 92 forks source link

METAPOGRAMMING FTW #20

Closed cktricky closed 6 years ago

cktricky commented 6 years ago

So the basic gist around improvements here is two-fold.

I want all files under the lib and modules folder to be easily accessible in terms of import statements. The second is just simply that we want to call do-something from the CLI. (under the -s step switch). So, -s enumerate_permissions for example (made up step). Point being, we want people to have the ability to add a file under the modules directory, have the file include a step_<whatever the hell you feel like method, so long as it has the step_ prefix, and it be able to be called from the CLI. So... this PR does that. Have some other stuff to do which IMO is like... much more work so it deserves its own PR/branch. That having been said... this is why I'm gonna just push and merge tonight all on my own. ❤️

cktricky commented 6 years ago

On the whole note of iam_pwn.py file (the example we talked about) @carnal0wnage, I moved that file under the modules folder and created a def step_cg_test(): method. You can call this by doing a:

python3 weirdAAL.py -s cg_test -t myTarget
cktricky commented 6 years ago

Before you test @carnal0wnage, I need to fix up some remaining print statements that my regexp-fu failed to find (I know why). Anyways, I'm tired and need sleep but will fix this in the am (my time) and hit you up when its 👍 to test.

carnal0wnage commented 6 years ago

sounds good man ty - this is awesome