how to ping and know if the target is alive Kali Linux

C++
Using terminal

sudo fping pastehereiptotarget
Source

Also in C++: