Skip to content

Commit 2f5aaab

Browse files
committed
Fix requirement for target ip
1 parent 0b6a38b commit 2f5aaab

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

wsuks/lib/argparser.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ def initParser():
5757
parser.add_argument("--debug", action="store_true", help="Enable debug output")
5858
parser.add_argument("-ts", "--timestamp", action="store_true", help="Add timestamp to log messages")
5959

60-
parser.add_argument("-t", "--target-ip", metavar="", dest="targetIp", help="IP Address of the victim Client.", required="only_discover" not in mode_args and "serve_only" not in mode_args)
60+
parser.add_argument("-t", "--target-ip", metavar="", dest="targetIp", help="IP Address of the victim Client.", required=not mode_args.serve_only and not mode_args.only_discover)
6161
parser.add_argument("-I", "--interface", metavar="", help="Network Interface to use. (DEFAULT: %(default)s)", default="eth0")
6262
parser.add_argument("-e", "--executable", metavar="", default=f"{dirname(wsuks.__file__)}/executables/PsExec64.exe", type=argparse.FileType("rb"), help="The executable to returned to the victim. It has to be signed by Microsoft (DEFAULT: %(default)s)")
6363
parser.add_argument("-c", "--command", metavar="", default='/accepteula /s powershell.exe "{CREATE_USER_COMMAND}Add-LocalGroupMember -Group $(Get-LocalGroup -SID S-1-5-32-544 | Select Name) -Member {WSUKS_USER};"', help="The command to execute on the victim. \n(DEFAULT (details see README): %(default)s)",)

0 commit comments

Comments
 (0)