![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
ANTFARM (Advanced Network Toolkit For Assessments and Remote Mapping) is a passive network mapping application that utilizes output from existing network examination tools to populate its OSI-modeled database. This data can then be used to form a ‘picture’ of the network being analyzed.
ANTFARM can also be described as a data fusion tool that does not directly interact with the network. The analyst can use a variety of passive or active data gathering techniques, the outputs of which are loaded into ANTFARM and incorporated into the network map. Data gathering can be limited to completely passive techniques when minimizing the risk of disrupting the operational network is a concern.
This library implements the core ANTFARM functionality, which mainly facilitates creating and interacting with the relational database that holds and correlates network data as it is parsed. This library is not meant to stand alone, but rather be part of a larger application needing ANTFARM functionality. Please see the ANTFARM (as opposed to the ANTFARM-CORE) library if you are looking for the command-line application.
Please note that not all of the database models and plugins available in version 0.4.0 are available in the beta release of version 0.5.0. The 'beta' status will be removed once all the functionality available in version 0.4.0 is implemented in version 0.5.0.
The database models not yet available in the beta release of version 0.5.0 are:
Note that in order to install a pre-release version of a gem (such as the beta version of ANTFARM 0.5.0), you must specify the --pre-release option when using 'gem install' along with the full version name (i.e. --version 0.5.0.beta).
At the center of the ANTFARM-CORE library is a boot-strapping and initialization process very similar to the one used in Rails applications. The boot-strapping and initialization process sets the root directory, the environment to use (used by the database and logging features), the log level to use, and loads in all the database models (see below).
DataMapper is used as the ORM for interacting with the database, and models exist for the following database tables:
These models live in the Antfarm::Model namespace.
A framework is provided to facilitate interaction with plugins and manipulation of the database.
The ANTFARM environment and log settings can (and should) be set via the described environment variables below as long as they are set before the config/environment.rb file is loaded.
ENV['ANTFARM_ENV'] = 'foo'
ENV['ANTFARM_LOG_LEVEL'] = 'debug'
When ANTFARM is boot-strapped, it will check to see if a .antfarm directory exists in the home directory of the current user and will create it if not. This is where application-specific data is stored, like default environment and log level settings, database settings, SQLite3 databases (if used), and log files. Custom user plugins can also be placed in the .antfarm directory and they will be recognized by the plugins library.
Right now, only SQLite3 is supported. As such, it is the default. Future plans include supporting Postgres as well, in which case different databases can be configured for different environments via the default settings in the .antfarm directory.
Detailed information for each plugin is provided via the ANTFARM-PLUGINS man
page (gem man antfarm-plugins
). Plugins included in the core library are
located in the 'lib/antfarm/plugins/' directory, and custom plugins created by
a user would/should be located in the '~/.antfarm/plugins' directory.
The requirements for a plugin are as follows:
Here is a very simple example plugin located at 'plugins/custom/foo-bar.rb':
module Antfarm
module Plugin
module Custom
class FooBar
include Antfarm::Plugin
def initialize
super( { :name => 'Foo Bar Plugin',
:desc => 'This plugin does nothing',
:author => 'Me <me@you.com>' },
[{ :name => :input_file,
:desc => 'File that has data in it',
:type => String,
:required => true },
{ :name => :use,
:desc => 'To use or not to use' }
])
end
def run(options)
# options[:input_file] will contain a string
# options[:use] will either be true or false, depending on whether or
# not the user provided the flag
# TODO: do something!
# Database models can be used like so:
# Antfarm::Model::IpInterface.create :address => 'w.x.y.z'
end
end
end
end
end
Note that for optional parameters, if a type is not provided it is assumed to be a flag (true if the flag is provided, false if not). Obviously the default will be false and it is not required.
This project uses the major/minor/bugfix method of versioning. It has yet to reach a 1.x.x status yet because the API is still in flux. When new plugins are officially released, the minor version number will be incremented.
While the ANTFARM-CORE library is completely passive (it does not have any built-in means of gathering data directly from devices or networks), network admin tools that users of ANTFARM may choose to gather data with may or may not be passive. The authors of ANTFARM hold no responsibility in how users decide to gather data they wish to feed into ANTFARM.
Copyright (2008-2010) Sandia Corporation. Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation, the U.S. Government retains certain rights in this software.
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, distribute with modifications, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE ABOVE COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Except as contained in this notice, the name(s) of the above copyright holders shall not be used in advertising or otherwise to promote the sale, use or other dealings in this Software without prior written authorization.
FAQs
Unknown package
We found that antfarm-core demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.