Skip to content

Instantly share code, notes, and snippets.

@jgstew
Last active April 5, 2016 20:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jgstew/ef36d020de4614673ba8 to your computer and use it in GitHub Desktop.
Save jgstew/ef36d020de4614673ba8 to your computer and use it in GitHub Desktop.
" <br/> \n// Flagged as a potential virus " +
$('#basic-info > div > div > table > tbody > tr:has(> td:contains("Detection ratio:") ) > td:nth-child(2)').text().trim().split(' / ')[0] +
" times <br/> \n// TrID: " +
$('div#file-details.extra-info > div > div > table > tbody').children('tr:has(> td.field-key:contains("TrID") )').children('td.field-value').text().trim() +
" <br/> \n// Comments: " +
$('#file-details > div > div:has( > span:contains("Comments") )').contents().filter(function() { return this.nodeType == 3; }).text().trim() +
" <br/> \n// ProductName: " +
$('#file-details > div > div:has(> span:contains("Product"))').contents().filter(function() { return this.nodeType == 3; }).text().trim() +
" <br/> \n// ProductVersion: " +
$('#file-details > div > div:has( > div:contains("ProductVersionNumber") )').children('div.floated-field-value').text().trim() +
" <br/> \nprefetch " +
$('#basic-info > div > div > table > tbody > tr:has(> td:contains("File name:") ) > td:nth-child(2)').text().trim() +
" sha1:" +
$('div#file-details.extra-info').children('div').children('div:has(> span:contains("SHA1") )').contents().filter(function() { return this.nodeType == 3; }).text().trim() +
" size:" +
$('div#file-details.extra-info').children('div').children('div:has(> span:contains("File size") )').contents().filter(function() { return this.nodeType == 3; }).text().split(' ( ')[1].split(' bytes ')[0] +
" http://PUT_URL_TO_FILE_HERE sha256:" +
$('div#file-details.extra-info').children('div').children('div:has(> span:contains("SHA256") )').contents().filter(function() { return this.nodeType == 3; }).text().trim();
@jgstew
Copy link
Author

jgstew commented Nov 13, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment