public SqlmapStatus GetScanStatus(string taskid) { JObject tok = JObject.Parse(_session.ExecuteGet("/scan/" + taskid + "/status")); SqlmapStatus stat = new SqlmapStatus(); stat.Status = (string)tok["status"]; if (tok["returncode"].Type != JTokenType.Null) stat.ReturnCode = (int)tok["returncode"]; return stat; }
public SqlmapStatus GetScanStatus(string taskid) { JObject tok = JObject.Parse(_session.ExecuteGet("/scan/" + taskid + "/status")); SqlmapStatus stat = new SqlmapStatus(); stat.Status = (string)tok["status"]; if (tok["returncode"].Type != JTokenType.Null) { stat.ReturnCode = (int)tok["returncode"]; } return(stat); }