Skip to content

bchadwic/necho

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

necho

About

network echo, or necho (super clever ikr), is a cli widget that writes to stdout the icmp echo reply data from a server

Usage

$ necho
#> usage: necho [HOST] [MESSAGE...]

$ necho 8.8.8.8 "if you're reading this, I'm alive."
#> if you're reading this, I'm alive.

$ necho 127.0.0.1 look mom\! no quotes
#> look mom! no quotes

$ cat war-and-peace-the-extended-cut.txt | xargs -0 necho 1.1.1.1
#> main: Message too long

$ necho 9.8.7.6.5.4.3.2.1 lift off
#> sendto: Permission denied

Install

$ git clone https://github.com/bchadwic/necho.git
$ gcc -o necho main.c
# stop! run the below if you trust me, which you definitely shouldn't
$ sudo mv necho /usr/local/bin/ && sudo setcap cap_net_raw+ep /usr/local/bin/necho

Appendix

this is for educational purposes only, it doesn't support dns names, ipv6, windows, timeouts, or anything else

About

simple icmp widget

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages