Giter Club home page Giter Club logo

moreping's Introduction

Moreping

This project aims at being a pinging (ICMP) and TCP dialing tool.

Library

GoDoc Build Status

This code can be used as a normal Go library to include in your Go project. Take a look at the tests in src/moreping/net_dialers* for more details.

Command

The artifact (command) produced when running make shares similarities with other commands like ping, telnet and nmap.

Install

Run make, this will put the command you just built into /usr/local/bin/. For ICMP calls make sure you are running it as sudo.

Requirements

This code has been tested on:

  • Go 1.8
  • Linux/amd64
  • godep v79

Tests

Due to how the ICMP protocol internals along with Linux raw sockets, the ICMP integration tests and the ICMP command executions themselves must be executed as a super user.

  • put this mysudo alias into .bashrc to run ginkgo as super user with the context of the normal user (e.g. $PATH evaluated with $GOPATH/bin): alias mysudo='sudo -E env "PATH=$PATH"'
  • run the tests: mysudo go test -v ./src/moreping/...

The mysudo alias is needed because of the $GOPATH environment variable which is usually specified for the standard user, not for the super user.

Examples

Some examples of usage as a library could be found in the example directory.

  • go run example/mainTcp.go
  • mysudo go run example/mainIcmp.go (you can use only sudo in case the go command is included in its $PATH environment variable)

moreping's People

Contributors

tappoz avatar

Watchers

 avatar  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.