MCPcopy Index your code
hub / github.com/sqlmapproject/sqlmap / checkPipedInput

Function checkPipedInput

lib/core/common.py:1322–1328  ·  view source on GitHub ↗

Checks whether input to program has been provided via standard input (e.g. cat /tmp/req.txt | python sqlmap.py -r -) # Reference: https://stackoverflow.com/a/33873570

()

Source from the content-addressed store, hash-verified

1320 return retVal
1321
1322def checkPipedInput():
1323 """
1324 Checks whether input to program has been provided via standard input (e.g. cat /tmp/req.txt | python sqlmap.py -r -)
1325 # Reference: https://stackoverflow.com/a/33873570
1326 """
1327
1328 return hasattr(sys.stdin, "fileno") and not os.isatty(sys.stdin.fileno())
1329
1330def isZipFile(filename):
1331 """

Callers 2

mainFunction · 0.90
checkFileFunction · 0.85

Calls 1

filenoMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…