Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Windows Support #28

Closed
phin3has opened this issue Sep 12, 2014 · 2 comments
Closed

Windows Support #28

phin3has opened this issue Sep 12, 2014 · 2 comments

Comments

@phin3has
Copy link

It would be wicked to see some Windows love.

After installing requests, I get an initial traceback:

C:\Tools\clusterd>python clusterd.py
←[32m
                clusterd/0.3.1 - clustered attack toolkit←[0m
                        ←[33m[Supporting 6 platforms]←[0m

Traceback (most recent call last):
  File "clusterd.py", line 108, in <module>
    options = parse(sys.argv[1:])
  File "C:\Tools\clusterd/src/core/parse_cmd.py", line 92, in parse
    group = build_platform_flags(platform, group)
  File "C:\Tools\clusterd/src/core/auxengine.py", line 65, in build_platform_flags
    mod = auxiliary[0].find_module(auxiliary[1]).load_module(auxiliary[1])
  File "C:\Python27\lib\pkgutil.py", line 246, in load_module
    mod = imp.load_module(fullname, self.file, self.filename, self.etc)
  File "C:\Tools\clusterd\src\platform\jboss\auxiliary\smb_hashes.py", line 8, in <module>
    from os import getuid
ImportError: cannot import name getuid
@hatRiot
Copy link
Owner

hatRiot commented Sep 12, 2014

There are some platform-specific things that need to be extrapolated out. Off the top of my head:

  • Permission check functions on SMB modules
  • Manually shelling out to move stuff around - should switch to shutil
  • Output coloring won't work on Windows

hatRiot added a commit that referenced this issue Oct 7, 2014
Removed several system() calls for moving/removing files on the system.
This is the first step in the direction to multi-platform support (see issue #28)
hatRiot added a commit that referenced this issue Oct 8, 2014
* clusterd.py
  src/core/state.py
  -- Added the platform variable to determine what platform we're
  currently running on.  This is currently used to determine if we
  should colorize output.
* src/core/utility.py
  -- capture_input now returns an empty string on error, instead of None
  -- Modified coloring in the Msg() function
hatRiot added a commit that referenced this issue Oct 8, 2014
* clusterd.py
  -- Moved the platform set to before the start string
* src/core/utility.py
  -- Added a multi-platform (linux/windows, at least) admin
  check function, check_admin()
  -- Tweaked the Msg() function a bit more to work nicer on
  Windows
* src/platform/*/auxiliary/smb_hashes.py
  -- Removed all of the getuid() calls and replaced them with
  check_admin()
@hatRiot
Copy link
Owner

hatRiot commented Oct 16, 2014

I've got this mostly working, but I think I'd have to castrate clusterd too much to make this a viable platform. In its current state it will perform basic scanning, but will choke on payload generation, auto-updating, etc. I'm going to close this as WONTFIX for now, but will remain cognizant of the platform.

@hatRiot hatRiot closed this as completed Oct 16, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants