コード例 #1
0
        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;
        }
コード例 #2
0
        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);
        }