stronghold icon indicating copy to clipboard operation
stronghold copied to clipboard

Reduced code reuse for lockdown method

Open royari opened this issue 6 years ago • 1 comments

#61 I tried to clean up a little bit, let me know if this is what you had in mind. I can make more changes if required.

royari avatar Oct 05 '19 06:10 royari

I meant something more along the lines of defining methods that perform actions, such as:

def disable_sshd():
	sp.run whatever

And then calling that in the lockdown and interactive sequences instead of the literal subprocess command.

alichtman avatar Oct 06 '19 19:10 alichtman