SSRFmap/modules
Daniel Corbett c980416e9f MINOR: readfiles: check if output is ELF binary
One of the checks for /proc/self/exe returns a binary directly to
terminal, which could print a several MB file out and also can cause
pain within a terminal due to a variety of escape sequences requiring a
"reset" to be performed.

This commit adds a check for ELF magic bytes to determine whether the
output is an ELF binary and if so it avoid writing it to stdout but
still writes it a local file.

Sample output:
```
[INFO]:Reading file : /proc/self/exe
ELF binary found - not printing to stdout
[INFO]:Writing file : /proc/self/exe to 127.0.0.1/_proc_self_exe
```
2023-02-10 14:17:26 -05:00
..
alibaba.py - Added logging to file for better troubleshooting 2022-03-16 14:27:30 -04:00
aws.py - Added logging to file for better troubleshooting 2022-03-16 14:27:30 -04:00
consul.py - Added logging to file for better troubleshooting 2022-03-16 14:27:30 -04:00
custom.py - Added logging to file for better troubleshooting 2022-03-16 14:27:30 -04:00
digitalocean.py - Added logging to file for better troubleshooting 2022-03-16 14:27:30 -04:00
docker.py - Added logging to file for better troubleshooting 2022-03-16 14:27:30 -04:00
fastcgi.py - Added logging to file for better troubleshooting 2022-03-16 14:27:30 -04:00
gce.py - Added logging to file for better troubleshooting 2022-03-16 14:27:30 -04:00
github.py - Added logging to file for better troubleshooting 2022-03-16 14:27:30 -04:00
httpcollaborator.py - Added logging to file for better troubleshooting 2022-03-16 14:27:30 -04:00
memcache.py - Added logging to file for better troubleshooting 2022-03-16 14:27:30 -04:00
mysql.py - Added logging to file for better troubleshooting 2022-03-16 14:27:30 -04:00
networkscan.py - Added logging to file for better troubleshooting 2022-03-16 14:27:30 -04:00
portscan.py - Added logging to file for better troubleshooting 2022-03-16 14:27:30 -04:00
readfiles.py MINOR: readfiles: check if output is ELF binary 2023-02-10 14:17:26 -05:00
redis.py - Added logging to file for better troubleshooting 2022-03-16 14:27:30 -04:00
smbhash.py - Added logging to file for better troubleshooting 2022-03-16 14:27:30 -04:00
smtp.py - Added logging to file for better troubleshooting 2022-03-16 14:27:30 -04:00
socksproxy.py - Added logging to file for better troubleshooting 2022-03-16 14:27:30 -04:00
template.py - Added logging to file for better troubleshooting 2022-03-16 14:27:30 -04:00
tomcat.py - Added logging to file for better troubleshooting 2022-03-16 14:27:30 -04:00
zabbix.py - Added logging to file for better troubleshooting 2022-03-16 14:27:30 -04:00