N
N
NO_GLITCH2015-07-20 01:27:26
bash
NO_GLITCH, 2015-07-20 01:27:26

How to "hide" the output of a Linux (bash) process?

All health!
Let's say I'm doing a port scan using masscan

sudo masscan 192.168.0.1/24 -p22 --banners -oJ ssh.json

In this case, the status is displayed in the console
Starting masscan 1.0.3 (http://bit.ly/14GZzcT) at 1917-10-7 12:40:25 GMT
 -- forced options: -sS -Pn -n --randomize-hosts -v --send-eth
Initiating SYN Stealth Scan
Scanning 256 hosts [1 port/host]
rate:  1.00-ptpps, 99.9% done,found=0

Is it possible to put a stub if the application call is made from a bash script?
Those. while the process is running, I want to see, for example, Scan in progress...

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry Bannik, 2015-07-20
@NO_GLITCH

sudo masscan 192.168.0.1/24 -p22 --banners -oJ ssh.json > /dev/null 2>&1

habrahabr.ru/post/138591

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question