ship 正在参加 2021 年度 OSC 中国开源项目评选,请投票支持!
ship 在 2021 年度 OSC 中国开源项目评选 中已获得 {{ projectVoteCount }} 票,请投票支持!
2021 年度 OSC 中国开源项目评选 正在火热进行中,快来投票支持你喜欢的开源项目!
2021 年度 OSC 中国开源项目评选 >>> 中场回顾
ship 获得 2021 年度 OSC 中国开源项目评选「最佳人气项目」 !
授权协议 View license
开发语言 SHELL
操作系统 跨平台
软件类型 开源软件
开源组织
地区 不详
投 递 者 首席测试
适用人群 未知
收录时间 2021-11-23

软件简介

a simple, handy network addressing multitool with plenty of features

         


Features

  • Show all network interfaces
  • Show all active network interfaces
  • Show the driver used of each active network interface
  • Show the gateway of each online interface
  • Show the addresses of each active network interface with or without CIDR notation
    • IPv4
    • IPv6 (if possible)
    • MAC
  • Show the vendor name of MAC address/es (needs internet connection)
  • Show the public/external IP/s
    • of current user
    • of website/s or domain/s
  • Show active hosts on current network with or without MAC address
  • Show all valid addresses (IPv4, IPv6, MAC) extracted
    • from file or multiple files at once
    • from website or multiple websites at once
  • Show the route to a network host using three most common tools. ship checks which are installed and decides to run the fastest one for each case scenario
    • IPv4
    • IPv6 (if possible)
  • Show the broadcast and network address, cisco wildcard mask, class and host range by giving the IP address and CIDR or netmask
    • IPv4
    • optionally suppress the bitwise output
    • display results as HTML
    • split into networks of size n1, n2, n3 🚧
    • deaggregate address range 🚧
  • Show a list of common ports with description, private and reserved IPv4 and IPv6 addresses with or without CIDR notation
  • Configuration FLAGS to change behavior, color theme and verbosity
    • COLOR: choose a color theme from 1 to 4
    • SILENT: choose 1 to skip checking, warning and error messages (not critical, useful on scripting)
    • NOCHECK: choose 1 to skip validation and checking functions (faster, expects well-formatted inputs)
    • DEBUG: choose 1 to enter debugging mode a.k.a. trace mode
  • Multiple flags can also be used
    • e.g. COLOR=3 SILENT=1 NOCHECK=1 bash ship.sh -h
  • Compatible with almost any linux distribution
  • Drag and drop URLs or file paths on console window
  • Cleaning temp files and handling remaining tasks on exit
  • Exiting on long running tasks needs confirmation

Usage

Read the Guide 🎓


Requirements

ship uses some of the tools included in coreutils and shell builtins

Mandatory

🔧 Package
awk awk | gawk
grep grep
ip iproute2
ping iputils | iputils-ping
sed sed
ss iproute2
wget wget

Mandatory Choice

One of the following tools must be installed. If more than one is installed ship will use the fastest one

🔧 Package
mtr mtr
tracepath iputils
traceroute traceroute

Compatibility (tested)

🐧 Version
Arch 4.7.5-1 - 4.16.13-2
Black Arch 2017.12.11
CentOS 7
Debian 7 - 8
Kali 2016.2
Ubuntu 14.04.3 - 16.04.1

Getting Started

$ git clone --branch=master --depth 1 https://github.com/xtonousou/ship.git
$ cd /path/to/ship
$ bash ship

Arch Linux

$ yaourt -S ship
$ ship

Contribution

Pull requests, issues, suggestions, testing and feedback are all welcome :octocat:

Please read this article first, about code of conduct

  • Fork the repo
  • Create a new branch
    • $ git checkout -b my-new-feature
  • Make the appropriate changes in the files
  • Add changes to reflect the changes made
  • Commit your changes
    • $ git commit -am 'Added some feature'
  • Push to the branch
    • $ git push origin my-new-feature
  • Create a Pull Request on dev

Changelog

Read the Changelog file to review changes 📜


About ship


License

Copyleft (ↄ) 2017 by Sotirios M. Roussis. Some rights reserved

ship is under the terms of the GPLv3+ License, following all clarifications stated in the license file

FOSSA Status

展开阅读全文

代码

评论 (0)

加载中
更多评论
暂无内容
发表了博客
2019/02/19 08:55

CF1117C Magic Ship

CF1117C Magic Ship 考虑到答案具单调性(若第 $i$ 天能到达目的点,第 $i+1$ 天只需向风向相反的方向航行),可以二分答案. 现在要考虑给出一个天数 $m$ ,问 $m$ 天内能否到达目的点. 显然,船的航行对 $(x,y)$ 的贡献和风对 $(x,y)$ 的贡献可以分开计算. 由于风向是确定的,且有周期性,预处理出一个周期内影响的前缀和,这部分就可以 $O(1)$ 解决. 坐标沿风向移动后,判断 $m$ 天内能否到达,由于船可以向四个方向走,或者不动,则只需判...

0
0
发表了博客
2019/02/19 22:37

CodeForces 1117C Magic Ship

time limit per test 2 second memory limit per test 256 megabytes input standard input output standard output You a captain of a ship. Initially you are standing in a point (x1,y1)(x1,y1) (obviously, all positions in the sea can be described by cartesian plane) and you want to travel to a point (x2,y2)(x2,y2). You know the weather forecast — the string ss of length nn, consisting only of lette...

0
0
2016/06/20 13:35

gamebryo release 与 ship 区别

The Release builds include optimizaed code, but with the NiMemory system, NiMetrics, and release mode logging enabled. The Shipping builds do not have these systems enabled. ship 和 release 工程设置基本相同,但没有NiMemory、NiMetrics、release mode logging.更像是非常稳定之后的版本....

0
0
发表了博客
2016/06/20 13:35

gamebryo release 与 ship 区别

The Release builds include optimizaed code, but with the NiMemory system, NiMetrics, and release mode logging enabled. The Shipping builds do not have these systems enabled. ship 和 release 工程设置基本相同,但没有NiMemory、NiMetrics、release mode logging.更像是非常稳定之后的版本....

0
0
发表了博客
2016/06/20 13:35

gamebryo release 与 ship 区别

The Release builds include optimizaed code, but with the NiMemory system, NiMetrics, and release mode logging enabled. The Shipping builds do not have these systems enabled. ship 和 release 工程设置基本相同,但没有NiMemory、NiMetrics、release mode logging.更像是非常稳定之后的版本....

0
0
2016/06/20 13:35

gamebryo release 与 ship 区别

The Release builds include optimizaed code, but with the NiMemory system, NiMetrics, and release mode logging enabled. The Shipping builds do not have these systems enabled. ship 和 release 工程设置基本相同,但没有NiMemory、NiMetrics、release mode logging.更像是非常稳定之后的版本....

0
0
发表了博客
2019/02/19 18:23

【Codeforces1117C_CF1117C】Magic Ship(构造)

题目: Codeforces1117C 考的时候很困,开局半小时后才过A,只做出来AB,排名3000+,掉了119……半夜体验极差。 翻译: 你是一个船长。最初你在点 $(x_1,y_1)$ (显然,大海上的所有点都可以用平面直角坐标描述),你想去点 $(x_2,y_2)$ 。 你看了天气预报——一个长为 $n$ 的字符串 $s$,只包含字母 U, D, L 和 R 。这些字母表示风向。并且,这个天气预报是循环的。例如,第一天风向是 $s_1$ ,第二天是 $s_2$ ,第 $n$ 天是 ...

0
0
发表了博客
2014/12/31 13:13

How to post ship inventory transfer order

boolean postInventTransferOrderShip() { inventTransferParmTable inventTransferParmTable; InventTransferMultiShip inventTransferMultiShip; YIP_InventTransferSectionDetails table, lastShipDetails; Num parmId; boolean ret = true; InventTransferJour inventTransferJour; InventTransferJourLine...

0
0
发表了博客
2019/04/14 14:46

1011. Capacity To Ship Packages Within D Days

1011. Capacity To Ship Packages Within D Days A conveyor belt has packages that must be shipped from one port to another within D days. The i-th package on the conveyor belt has a weight of weights[i]. Each day, we load the ship with packages on the conveyor belt (in the order given by weights). We may not load more weight than the maximum weight capacity of the ship. Return the least weight ca...

0
0
发表了博客
2019/03/19 17:09

【leetcode】1014. Capacity To Ship Packages Within D Days

题目如下: A conveyor belt has packages that must be shipped from one port to another within D days. The i-th package on the conveyor belt has a weight of weights[i]. Each day, we load the ship with packages on the conveyor belt (in the order given by weights). We may not load more weight than the maximum weight capacity of the ship. Return the least weight capacity of the ship that will result...

0
0
没有更多内容
加载失败,请刷新页面
点击加载更多
加载中
下一页
暂无内容
0 评论
0 收藏
分享
OSCHINA
登录后可查看更多优质内容
返回顶部
顶部