Giter Club home page Giter Club logo

polenum's Introduction

polenum

Uses Core's Impacket Library to get the password policy from a windows machine

This is a fork of the original polenum which is available at Portcullis Labs Research and Development (https://labs.portcullis.co.uk/tools/polenum/)

This version supports the latest impacket DCERPC v5 library.

polenum's People

Contributors

mpgn avatar sbrun avatar wh1t3fox avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

polenum's Issues

Windows Server 2008x64 & also Null Sessions

I was having some issues connecting an authenticated session with Windows Server 2008 x64, commenting out #dce.set_auth_level(ntlm.NTLM_AUTH_PKT_INTEGRITY) fixed that issue.

Also when trying to connect to a NULL Session it was failing also. Changing the hsamrconnect to hsamrconnect2

resp = samr.hSamrConnect2(dce) fixed this also.

Should switch to Python 3

Hello
Python 2.x will no longer be supported by their upstream developers in 2020. Thus Debian developers are actively removing Python 2 support in Debian Testing with the goal of getting rid of Python 2 in Debian 11 (bullseye).
Impacket is now Python 3 compatible. You should consider to switch polenum to Python 3.

Debian bug: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=937307

Password Policy Enumeration Results Printout Error

The variable assignments on lines 51 and 52 should be moved to the outside if statement.
The correct piece of code should be like this:

if not lockout:
        if (low != 0):
            high = abs(high+1)
        else:
            high = abs(high)
            low = abs(low)

        tmp = low + (high)*16**8  # convert to 64bit int
        tmp *= (1e-7)  # convert to seconds
    else:
tmp = abs(high) * (1e-7)

Otherwise the tmp variable would not be initialized and the rest of the code would not correctly interpret the data.

Not compatible with current python-impacket package

# polenum
Traceback (most recent call last):
  File "/usr/bin/polenum", line 33, in <module>
    from impacket.dcerpc import dcerpc_v4, dcerpc, transport, samr
ImportError: cannot import name dcerpc_v4

impacket 0.9.15

A little bit of history ;)

Hey, didn't realise you'd forked our polenum code. Great to see it maintained (thanks!) but maybe you could drop a reference in to https://labs.portcullis.co.uk/tools/polenum/ which is where we made the original release (alongside the patches we submitted to the CORE folks to add the necessary library changes). I think we could probably put a link up in the opposite direction so that folks can find your latest updates too.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.