项目作者: pticon

项目描述 :
A port knocking daemon
高级语言: C
项目地址: git://github.com/pticon/aker.git
创建时间: 2017-08-23T21:06:26Z
项目社区:https://github.com/pticon/aker

开源协议:BSD 3-Clause "New" or "Revised" License

下载


AKER

A port knocking daemon. It gives you the ability to execute a command triggered by a magic port combination.
Generally, we can use it to hide a management port like SSH and execute the given iptables rule to allow this client.

Aker was also an Ancient Egyptian earth and death deity and was described as one of the earth gods guarding the “gate to the yonder site”. For more info, please check wikipedia).

Prerequisites

You have to install the libpcap, make, and a working C compiler (clang, gcc, etc…).

Build

Generate the configure script:

  1. ./bootstrap.sh

Generate the Makefile:

  1. ./configure

Compile the source:

  1. make

Clean everything:

  1. ./clean.sh

Running the tests

There is a python script called regress.py.

  1. Usage: regress.py [options] <testname>
  2. Options:
  3. -h, --help show this help message and exit
  4. -a, --all execute all of the tests
  5. -l, --list list all of the tests
  6. -g GROUP, --group=GROUP
  7. execute the group test

There is some issues for the live tests with FreeBSD because we cannot create socket with the AF_PACKET type. Any help would be appreciated !

Install

Just run:

  1. make install

Then you should edit the config file in /usr/local/etc/aker.conf to suit to your needs.

Config

Edit the aker.conf.

Run

  1. usage: aker [options]
  2. options:
  3. -c <conffile> : default is /usr/local/etc/aker.conf
  4. -f : run in foreground (do not fork)
  5. -h : display this and exit
  6. -t : test the generated pcap filter and exit
  7. -v : display version number and exit

License

aker is licensed under the BSD 3-clause “New” or “Revised” License.