You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Bash script to download VirusShare hashes wgets strings unrelated to hash files
Request Type
Bug
Work Environment
|---------------------------|--------------------
| OS version (server) | Ubuntu
| OS version (client) | 16.04
| Cortex Analyzer Name | VirusShare getHashes.sh
| Cortex Analyzer Version | 0.1
| Cortex Version | 1.1.4
| Browser type & version | N/A
Description
When pulling down virusshare's hashes using the bash script, the script parses lines past the end of the list of hashfiles. Currently, "https://virusshare.com/hashes.4n6" has a line at the bottom containing a link to "https://twitter.com/CodexGigasSys", which is parsed and wgat. No harm done here, but in the unlikely event that virusshare is ever popped and the page is changed to include a less-than-savory URL, we'd end up downloading that.
Steps to Reproduce
Use the gethashes.sh script to download the VS hashes
Wait until the end
Possible Solutions
Use a more specific regex, like /VirusShare_[0-9]{5}.md5/, to parse or check to make sure we only get what we're looking for
Complementary information
Screenshot of the script attempting to wget the twitter URL
The text was updated successfully, but these errors were encountered:
3c7
added a commit
to 3c7/Cortex-Analyzers
that referenced
this issue
Dec 13, 2017
Title
Bash script to download VirusShare hashes wgets strings unrelated to hash files
Request Type
Bug
Work Environment
|---------------------------|--------------------
| OS version (server) | Ubuntu
| OS version (client) | 16.04
| Cortex Analyzer Name | VirusShare getHashes.sh
| Cortex Analyzer Version | 0.1
| Cortex Version | 1.1.4
| Browser type & version | N/A
Description
When pulling down virusshare's hashes using the bash script, the script parses lines past the end of the list of hashfiles. Currently, "https://virusshare.com/hashes.4n6" has a line at the bottom containing a link to "https://twitter.com/CodexGigasSys", which is parsed and wgat. No harm done here, but in the unlikely event that virusshare is ever popped and the page is changed to include a less-than-savory URL, we'd end up downloading that.
Steps to Reproduce
Possible Solutions
Complementary information
Screenshot of the script attempting to wget the twitter URL

The text was updated successfully, but these errors were encountered: