Comments (1)
strace output with /dev/null on stdin
accept(3, {sa_family=AF_INET, sin_port=htons(44148), sin_addr=inet_addr("127.0.0.1")}, [128 => 16]) = 4
close(3) = 0
fcntl(4, F_GETFL) = 0x2 (flags O_RDWR)
fcntl(4, F_SETFL, O_RDWR|O_NONBLOCK) = 0
pselect6(5, [0 4], [], NULL, NULL, NULL) = 2 (in [0 4])
read(0, "", 8192) = 0
exit_group(0) = ?
+++ exited with 0 +++
with /dev/zero on stdin:
...
accept(3, {sa_family=AF_INET, sin_port=htons(54661), sin_addr=inet_addr("127.0.0.1")}, [128 => 16]) = 4
close(3) = 0
fcntl(4, F_GETFL) = 0x2 (flags O_RDWR)
fcntl(4, F_SETFL, O_RDWR|O_NONBLOCK) = 0
pselect6(5, [0 4], [], NULL, NULL, NULL) = 2 (in [0 4])
read(0, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 8192) = 8192
fcntl(4, F_GETFL) = 0x802 (flags O_RDWR|O_NONBLOCK)
fcntl(4, F_SETFL, O_RDWR) = 0
sendto(4, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 8192, 0, NULL, 0) = -1 EPIPE (Broken pipe)
--- SIGPIPE {si_signo=SIGPIPE, si_code=SI_USER, si_pid=74438, si_uid=1000} ---
fcntl(4, F_GETFL) = 0x2 (flags O_RDWR)
fcntl(4, F_SETFL, O_RDWR|O_NONBLOCK) = 0
close(4) = 0
read(0, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 8192) = 8192
exit_group(0)
and when it is attached to the terminal (working):
accept(3, {sa_family=AF_INET, sin_port=htons(32795), sin_addr=inet_addr("127.0.0.1")}, [128 => 16]) = 4
close(3) = 0
fcntl(4, F_GETFL) = 0x2 (flags O_RDWR)
fcntl(4, F_SETFL, O_RDWR|O_NONBLOCK) = 0
pselect6(5, [0 4], [], NULL, NULL, NULL) = 1 (in [4])
recvfrom(4, "test\n", 8192, 0, NULL, NULL) = 5
write(1, "test\n", 5test
) = 5
pselect6(5, [0 4], [], NULL, NULL, NULL) = 1 (in [4])
recvfrom(4, "", 8192, 0, NULL, NULL) = 0
close(4) = 0
exit_group(0) = ?
+++ exited with 0 +++
So if there is data on stdin (or it was closed) it will exit right away before printing the data it got.
from nmap.
Related Issues (20)
- broadcast-avahi-dos vuln error and potential workaround
- zenmap crash HOT 1
- ncat server leaves the socket open in child processes
- don't know
- Unexpected Crash
- Zenmap 7.95) not opening on MacOS Sonoma 14.5 via Application folder icon - only through CLI invocation
- Zenmap 7.95 dialog not redrawing correctly on MacOS Sonoma 14.5
- Generated PHP CVE ID in XML output is using the Apache server version, not PHP version HOT 1
- zenmap ver 7.95 open profile crash (windows 10) HOT 1
- Nmap no longer finds PCRE headers in `pcre` directory HOT 2
- redis-info script does not talk TLS
- crash report
- Crash HOT 1
- npcap.com and nmap.org are down HOT 1
- VirusTotal detections in docs/Nmap-Third-Party-Open-Source.pdf HOT 1
- Added the scripts bitcoin-testnets*
- Nmap in depth guide
- Unexpected crash of Zenmap 7.95
- NSE: Improve existing scripts to add IPv6 capability
- Promote Nping to same version as other Nmap tools
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nmap.