byt3bl33d3r / CrackMapExec

A swiss army knife for pentesting networks
BSD 2-Clause "Simplified" License
8.38k stars 1.64k forks source link

Service Interaction module does not work due to a little mistake #63

Closed maaaaz closed 8 years ago

maaaaz commented 8 years ago
(venvcrackmapexec)root@kali:~/Partage/CrackMapExec# python crackmapexec.py 192.168.11.136 -u administrator -p <password>  --service status --name MozillaMaintenance
Traceback (most recent call last):
  File "crackmapexec.py", line 215, in <module>
    if not args.name:
AttributeError: 'Namespace' object has no attribute 'name'

Fixed in PR https://github.com/byt3bl33d3r/CrackMapExec/pull/62

Also, it seems that these parameters are never used in the code: is this normal ?

wgroup.add_argument("--start-type", metavar='TYPE', help='Service start type')
wgroup.add_argument("--start-name", metavar='NAME', help='Name of the account under which the service should run')
wgroup.add_argument("--start-pass", metavar='PASS', help='Password of the account whose name was specified with the --start-name parameter')

Cheers

byt3bl33d3r commented 8 years ago

Fixed in #62