Coder Social home page Coder Social logo

carmaa / nacker Goto Github PK

View Code? Open in Web Editor NEW
104.0 104.0 19.0 234 KB

Nacker is a tool to circumvent 802.1x Network Access Control (NAC) on a wired LAN. Nacker will help you locate any non-802.1x configurable hosts on your subnet, and spoof their MAC address so that you appear authenticated to the switch.

License: GNU General Public License v2.0

Python 100.00%

nacker's People

Contributors

carmaa 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  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  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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

nacker's Issues

Nacker fails silently when run as non-root

Nacker just silently fails when run as non-root. This was very confusing at first, and I had to go investigating as to what was going on. There should really be an error message, there.

Relevant code, line 60:

# Check if we're root
if not chassis.is_root():
    sys.exit(1)

Sorting lambda functions crash

The sorting functions at lines 112 and 113 fail for me, with a stack trace as follows:

Sorting hosts to targeting printers first, and laptops last
Traceback (most recent call last):
  File "./nacker", line 156, in <module>
    main(sys.argv)
  File "./nacker", line 111, in main
    hosts.sort(key = lambda host: host[1].oui.registration().org in PC_MANUFACTURERS)
  File "./nacker", line 111, in <lambda>
    hosts.sort(key = lambda host: host[1].oui.registration().org in PC_MANUFACTURERS)
  File "/usr/lib/python2.7/dist-packages/netaddr/eui/__init__.py", line 464, in oui
    return OUI(self.value >> 24)
  File "/usr/lib/python2.7/dist-packages/netaddr/eui/__init__.py", line 121, in __init__
    raise NotRegisteredError('OUI %r not registered!' % oui)
netaddr.core.NotRegisteredError: OUI 13164779 not registered!

Relevant code:

    # Sort the MAC addresses based on organization, laptops and workstations
    print('Sorting hosts to targeting printers first, and laptops last')
    hosts.sort(key = lambda host: host[1].oui.registration().org in PC_MANUFACTURERS)
    hosts.sort(key = lambda host: host[1].oui.registration().org in PRINTER_MANUFACTURERS, reverse=True)

(Running from an Ubuntu 14.04 machine.)

NameError: global name 'baseline' is not defined

There seems to be an undefined variable in the script. Luckily it's easily removed, since it's just in a print statement. Stack trace:

Traceback (most recent call last):
File "./nacker", line 156, in
main(sys.argv)
File "./nacker", line 119, in main
print('Found {0} open ports:'.format(len(baseline)))
NameError: global name 'baseline' is not defined

The culprit is at line 119:

print('Found {0} open ports:'.format(len(baseline)))

Thanks!

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.