Question on "-sc" flag
7MinSec opened this issue · 1 comments
7MinSec commented
Hi there,
Love this project. Works like a champ in my lab.
I'm trying to run this through a C2 server and things get a bit tricker because I need that .dll in the same folder where the .exe runs, and also if I'm running through C2 I can't get access to that new cmd.exe that spawns as SYSTEM.
I've played around with a ton of options and couldn't get it working so I thought I'd ask: can the -sc
flag be a call to cmd.exe
with some actions attached, like net localgroup administrators add luser /add
? If so could you provide an example of formatting please? I think I've tried them all :-)
7MinSec commented
I think I'm good to go - this works:
davrelayup -cn PC -cp PCPASSWORD -sc cmd /k net localgroup administrators LIMITEDUSER /add