honeynet | sentinel guard - use to build up honey net with zero cost | SSH library
kandi X-RAY | honeynet Summary
kandi X-RAY | honeynet Summary
sentinel guard - use to build up honey net with zero cost. over the past few years, people have always talked excitedly about honeypot technology, all kinds of honeypot is emerge in endlessly, open source, commercial, low interactive, highly interactive, and so on, under normal circumstances, the general enterprise to the requirement of the honeypot actually is not high, and its essence require expensive deployment cost and not easy deployment, in companies with large network, the difficuty is also on the system operations of honeypot depens on the nubmer of honeypots you deployed; in addition, the number of honeypot probes in the internal network also determines the detection node distribution degree, and the distribution degree also determines
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of honeynet
honeynet Key Features
honeynet Examples and Code Snippets
Community Discussions
Trending Discussions on honeynet
QUESTION
I am trying to execute HoneyC, which code is on this link: HoneyC Source Code. I have followed the 'readme' document instructions, which says that the UnitTest have to be run first.
It says: "Unpack the HoneyC distribution into a directory, cd into that directory, and execute ‘ruby UnitTester.rb’. This will start the unit tests executing some basic module tests. (Note that you need to have network connectivity and direct outgoing access on port 80 for the unit tests to succeed.)"
I am using Ruby version 2.3.1p112 (2016-04-26) [x86_64-linux-gnu]
*I've never programmed using Ruby before.
Port 80 seems to be okay ... if I run the command netstat I get:
:~$ netstat -tulnap (Not all processes could be identified, non-owned process info will not be shown, you would have to be root to see it all.) Active Internet connections (servers and established) Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name tcp 0 0 127.0.0.1:3306 0.0.0.0:* LISTEN - tcp 0 0 127.0.0.1:30800 0.0.0.0:*
LISTEN - tcp 0 0 0.0.0.0:80
0.0.0.0:* LISTEN - tcp 0 0 127.0.0.1:30900 0.0.0.0:* LISTEN -
tcp 0 0 127.0.1.1:53 0.0.0.0:*
LISTEN
However, I am getting the following error when I try to run the UnitTest:
...ANSWER
Answered 2019-Jul-16 at 22:47The most recent commit on this codebase is from 2007 (and that's transferring it to git, I'm not sure whether the original subversion commits are even older). Ruby has come a long way since then, and the UnitTester you're running relies on some metaprogramming behavior that's changed over the years. It's trying to look through all the ruby files in the source tree to load them to find tests, but the way it's doing that doesn't work in modern rubies. There are at least two things wrong:
Starting in ruby 1.9, released in 2009, the current directory is no longer (by default) in the load path, so when you try to
require
a module/class that's defined in the current directory it'll fail. They'd need to switch torequire_relative
(Why does Ruby 1.9.2 remove "." from LOAD_PATH, and what's the alternative?)The codebase is doing something very bizarre (but maybe once necessary) in how it's crawling the object tree to try to figure out what classes/modules have been defined (https://github.com/honeynet/honeyc/blob/master/UnitTester.rb#L10). This doesn't work properly in modern rubies.
You can get the UnitTests running with ruby 1.8.7, but be aware that version of ruby hasn't been supported since 04/01/2017. The unit tests mostly pass except some are querying web services that no longer exist.
I don't think you can really use this codebase without significant work upgrading it, which is probably off-topic here.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install honeynet
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page