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
()
| 1320 | return retVal |
| 1321 | |
| 1322 | def 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 | |
| 1330 | def isZipFile(filename): |
| 1331 | """ |