roman

@hi@romanzolotarev.com


homehttps://romanzolotarev.com
0 ★ 0 ↺

[?]roman » 🌐
@hi@romanzolotarev.com

#!/bin/sh
jot 254 1 |
xargs -n1 -P256 sh -c '
ping -c 1 192.168.1.$1 >/dev/null 2>/dev/null &&
echo $1
' sh
a bit faster

    ...

    [?]Jens Lechtenbörger » 🔓
    @lechten@digitalcourage.social

    @hi @libreleah Or this: nmap 192.168.1.0/24

    As usual, the man page knows all kinds of options, in particular for different scan types.

      ...
      0 ★ 0 ↺

      [?]roman » 🔓
      @hi@romanzolotarev.com

      nmap is not in the base :)

        [?]R.L. Dane :Debian: :OpenBSD: :FreeBSD: 🍵 :MiraLovesYou: [he/him/my good fellow] » 🌐
        @rl_dane@polymaths.social

        @hi @libreleah

        Runs faster if you ping in parallel:

        https://codeberg.org/rldane/scripts/src/branch/main/ipscan

        Requires bash, but could be easily converted to ksh/oksh/mksh/pdksh

          History