Пример #1
0
        /// <summary>
        ///Returns the HTTP messages, in HAR format, that match the given regular expression in the URL optionally filtered by URL and paginated with 'start' position and 'count' of messages.
        /// </summary>
        /// <returns></returns>
        public byte[] HarByUrlRegex(string regex, string baseUrl, string start, string count)
        {
            var parameters = new Dictionary <string, string>
            {
                { "regex", regex }, { "baseUrl", baseUrl }, { "start", start }, { "count", count }
            };

            return(_api.CallApiOther("search", "other", "harByUrlRegex", parameters));
        }
Пример #2
0
        public byte[] harByUrlRegex(string regex, string baseurl, string start, string count)
        {
            Dictionary <string, string> parameters = null;

            parameters = new Dictionary <string, string>();
            parameters.Add("regex", regex);
            parameters.Add("baseurl", baseurl);
            parameters.Add("start", start);
            parameters.Add("count", count);
            return(api.CallApiOther("search", "other", "harByUrlRegex", parameters));
        }
Пример #3
0
        /// <summary>
        ///This component is optional and therefore the API will only work if it is installed
        /// </summary>
        /// <returns></returns>
        public byte[] pnh(string apikey)
        {
            Dictionary <string, string> parameters = null;

            parameters = new Dictionary <string, string>();
            if (!string.IsNullOrWhiteSpace(apikey))
            {
                parameters.Add("apikey", apikey);
            }
            return(api.CallApiOther("pnh", "other", "pnh", parameters));
        }
Пример #4
0
        public byte[] harByUrlRegex(string apikey, string regex, string baseurl, string start, string count)
        {
            Dictionary <string, string> parameters = null;

            parameters = new Dictionary <string, string>();
            if (!string.IsNullOrWhiteSpace(apikey))
            {
                parameters.Add("apikey", apikey);
            }
            parameters.Add("regex", regex);
            parameters.Add("baseurl", baseurl);
            parameters.Add("start", start);
            parameters.Add("count", count);
            return(api.CallApiOther("search", "other", "harByUrlRegex", parameters));
        }
Пример #5
0
        /// <summary>
        ///Generate a form for testing lack of anti-CSRF tokens - typically invoked via ZAP
        /// </summary>
        /// <returns></returns>
        public byte[] genForm(string hrefid)
        {
            Dictionary <string, string> parameters = null;

            parameters = new Dictionary <string, string>();
            parameters.Add("hrefId", hrefid);
            return(api.CallApiOther("acsrf", "other", "genForm", parameters));
        }
Пример #6
0
        /// <summary>
        ///This component is optional and therefore the API will only work if it is installed
        /// </summary>
        /// <returns></returns>
        public byte[] OtherPostModSecurityAuditEvent(string auditeventstring)
        {
            Dictionary <string, string> parameters = null;

            parameters = new Dictionary <string, string>();
            parameters.Add("AuditEventString", auditeventstring);
            return(api.CallApiOther("importLogFiles", "other", "OtherPostModSecurityAuditEvent", parameters));
        }
Пример #7
0
        /// <summary>
        ///This component is optional and therefore the API will only work if it is installed
        /// </summary>
        /// <returns></returns>
        public byte[] OtherPostModSecurityAuditEvent(string auditEventString)
        {
            var parameters = new Dictionary <string, string> {
                { "AuditEventString", auditEventString }
            };

            return(_api.CallApiOther("importLogFiles", "other", "OtherPostModSecurityAuditEvent", parameters));
        }
Пример #8
0
        /// <summary>
        ///Generate a form for testing lack of anti-CSRF tokens - typically invoked via ZAP
        /// </summary>
        /// <returns></returns>
        public byte[] GenForm(string hrefId)
        {
            var parameters = new Dictionary <string, string> {
                { "hrefId", hrefId }
            };

            return(_api.CallApiOther("acsrf", "other", "genForm", parameters));
        }
Пример #9
0
        /// <summary>
        ///This component is optional and therefore the API will only work if it is installed
        /// </summary>
        /// <returns></returns>
        public byte[] OtherPostModSecurityAuditEvent(string apikey, string auditeventstring)
        {
            Dictionary <string, string> parameters = null;

            parameters = new Dictionary <string, string>();
            if (!string.IsNullOrWhiteSpace(apikey))
            {
                parameters.Add("apikey", apikey);
            }
            parameters.Add("AuditEventString", auditeventstring);
            return(api.CallApiOther("importLogFiles", "other", "OtherPostModSecurityAuditEvent", parameters));
        }
Пример #10
0
        /// <summary>
        ///Generate a form for testing lack of anti CSRF tokens - typically invoked via ZAP
        ///This component is optional and therefore the API will only work if it is installed
        /// </summary>
        /// <returns></returns>
        public byte[] genForm(string apikey, string hrefid)
        {
            Dictionary <string, string> parameters = null;

            parameters = new Dictionary <string, string>();
            if (string.IsNullOrWhiteSpace(apikey))
            {
                parameters.Add("apikey", apikey);
            }
            parameters.Add("hrefId", hrefid);
            return(api.CallApiOther("acsrf", "other", "genForm", parameters));
        }
Пример #11
0
        public byte[] proxypac()
        {
            Dictionary <string, string> parameters = null;

            return(api.CallApiOther("core", "other", "proxy.pac", parameters));
        }
Пример #12
0
        /// <summary>
        ///This component is optional and therefore the API will only work if it is installed
        /// </summary>
        /// <returns></returns>
        public byte[] pnh()
        {
            Dictionary <string, string> parameters = null;

            return(api.CallApiOther("pnh", "other", "pnh", parameters));
        }
Пример #13
0
 /// <summary>
 ///This component is optional and therefore the API will only work if it is installed
 /// </summary>
 /// <returns></returns>
 public byte[] PnhMethod()
 {
     return(_api.CallApiOther("pnh", "other", "pnh", null));
 }
Пример #14
0
 /// <summary>
 ///
 /// </summary>
 /// <returns></returns>
 public byte[] ProxyPac()
 {
     return(_api.CallApiOther("core", "other", "proxy.pac", null));
 }