{"size": 1269, "ext": "js", "max_stars_repo_path": "Payload_Types/apfell/mythic/browser_scripts/screenshot.js", "max_stars_repo_name": "xorrior/Mythic", "max_stars_repo_stars_event_min_datetime": "2021-01-28T19:35:46.000Z", "max_stars_repo_stars_event_max_datetime": "2021-04-08T12:01:48.000Z", "max_issues_repo_path": "Payload_Types/apfell/mythic/browser_scripts/screenshot.js", "max_issues_repo_name": "xorrior/Mythic", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "Payload_Types/apfell/mythic/browser_scripts/screenshot.js", "max_forks_repo_name": "xorrior/Mythic", "max_forks_repo_forks_event_min_datetime": "2020-12-29T02:34:13.000Z", "max_forks_repo_forks_event_max_datetime": "2021-06-24T04:07:38.000Z"}
{"max_stars_count": 2, "max_issues_count": null, "max_forks_count": 2, "avg_line_length": 63.45, "max_line_length": 375, "alphanum_fraction": 0.5894405043}
function(task, responses){
    if(task.status === 'error'){
        return "<pre> Error: Untoggle swtich to see error message(s) </pre>";
      }
    if(task.completed){
        try{
            let status = JSON.parse(responses[0]['response']);
            let id = status['agent_file_id'];
            let output = "<div class='card'><div class='card-header border border-dark shadow'><a class='btn stretched-link' type='button' data-toggle='collapse' data-target='#task" + task['id'] + "screencapture' aria-expanded='false' aria-controls='task" + task['id'] + "screencapture' style='padding:0'>Finished <font color='red'>Screencapture</font>. Click to view</div>";
          output += "<div class='collapse' id=\"task" + task['id'] + "screencapture\" style='width:100%'>";
          output += "<div class='response-background card-body' style='padding:0'><img src='/api/v1.4/files/screencaptures/" + escapeHTML(id) + "' width='100%'></div></div></div>";
                  return output;
        }catch(error){
           return "<pre>Error: " + error.toString() + "\n" + JSON.stringify(responses, null, 2) + "</pre>";
        }
      }
    if(task.status === 'processing' || task.status === "processed"){
  	    return "<pre> downloading pieces ...</pre>";
      }
}