aztarna package

Submodules

aztarna.cmd module

aztarna.cmd.main()[source]

Main method

aztarna.commons module

class aztarna.commons.BaseRobotHost[source]

Bases: object

A base class for different type of Robot hosts

class aztarna.commons.RobotAdapter(ports=[80], extended=False)[source]

Bases: object

BaseScanner class, an abstraction for different type scans

load_from_file(filename)[source]

Load a range of ipv4 addresses to scan and add them The :class:BaseScanner host_list attribute :param filename: name of the input file

load_range(net_range)[source]

Transform ipv4 address strings to pythons ipaddress library type objects for scanning purposes :param net_range: A range of string type IPv4 addresses

print_results()[source]
rate
scan()[source]
scan_pipe_main()[source]
static stream_as_generator(loop, stream)[source]
write_to_file(out_file)[source]

aztarna.helpers module

class aztarna.helpers.HelpersLINQ[source]

Bases: object

A helper class for emulating .NET useful methods.

static distinct(sequence)[source]
class aztarna.helpers.HelpersNetWorking[source]

Bases: object

A helper class that checks networking related data

static ping(host)[source]

A method that replicates the command line ping utility.

Parameters

host – Host to ping to

Returns

A boolean type that means if the ping reaches the destination or not

class aztarna.helpers.PortScanner[source]

Bases: object

A base class that provides methods to check correct por scans.

static check_port(ip, port)[source]

Checks if a certain port is open :param ip: The host’s IP address :param port: The host’s port :return: The scanned port if open, else None

static check_port_sem(sem, ip, port)[source]

Calls to :method:check_port with a Semaphore to avoid too many open connections.

Parameters
  • sem

  • ip

  • port

Returns

static scan_host(address, start_port, end_port, max_conns=400)[source]
Parameters
  • address – IPv4 address to scan

  • start_port – First port value to scan

  • end_port – Last port value to scan

  • max_conns – Maximum simultaneous number of connections

Returns

Module contents