Giter Site home page Giter Site logo

pynet-top's Introduction

pynet-top

A set of functions for CNA python course. Uses scapy and itertools.

Author: Daniel C. Hoberecht

If you have suggestions or ways I can improve it let me know! I'm always open to learn!

Pynettop

encompasing class for functions. usage:

test=Pynettop("8.8.8.6-8")
print(test.i)

ip_range()

used to generate an iterable range of ip addresses. Found the original code on a stack overflow forum, but had to adjust it so it would stop breaking in python3. usage:

i = [for i in ip_range("192.168.1-2.4-20")]

trace()

At the moment increments ttl value until It reaches target, First with unix style UDP upon that failing attempts ICMP (windows style), upon that failing try tcp.

usage:

trace("8.8.8.8")

discovery()

Meant to be used in conjunction with ip_range() and trace_route() if iterates across a list until it pings a discoverable host then calls trace_route() to find a path to the first discovered target. Then pings the rest on said list if any remain. It then returns the targets that replied, the ones that didn't, and the trace (ipup, ipdown, trace) as lists. usage:

ip = [for i in ip_range("192.168.1-2.4-20")]
t=discovery(ip)
print(t[0], " Are up.")

port_scanner()

as name describes, has a default list of ports it scans. Returns dict of {host: open_ports}.

pynet-top's People

Contributors

xl350r avatar

Stargazers

 avatar

Watchers

 avatar

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.