Example #1
0
        public State(FileAnalyzer fileAnalyzer, CodeClass codeClass, CodeMethod codeMethod)
        {
            this.FileAnalyzer = fileAnalyzer;
            this.CodeClass    = codeClass;
            this.CodeMethod   = codeMethod;
            this.IsEvil       = false;

            foreach (string scaryMethod in Util.ScaryMethodNames)
            {
                if (this.CodeMethod.Code.Contains(scaryMethod))
                {
                    this.IsEvil          = true;
                    this.ScaryMethodUsed = scaryMethod;
                    break;
                }
            }
        }
Example #2
0
        public State(FileAnalyzer fileAnalyzer, CodeClass codeClass, CodeMethod codeMethod)
        {
            this.FileAnalyzer = fileAnalyzer;
            this.CodeClass = codeClass;
            this.CodeMethod = codeMethod;
            this.IsEvil = false;

            foreach (string scaryMethod in Util.ScaryMethodNames)
            {
                if (this.CodeMethod.Code.Contains(scaryMethod))
                {
                    this.IsEvil = true;
                    this.ScaryMethodUsed = scaryMethod;
                    break;
                }
            }
        }
Example #3
0
 public ScaryCsRule(FileAnalyzer a)
 {
     this.analyzer = a;
 }
Example #4
0
 public TestRule(FileAnalyzer a)
 {
     this.analyzer = a;
 }
Example #5
0
 public ScaryAspxRule(FileAnalyzer a)
 {
     this.analyzer = a;
 }
Example #6
0
 public WeakHashRule(FileAnalyzer a)
 {
     this.analyzer = a;
 }
Example #7
0
 public LocalFileInclusionRule(FileAnalyzer a)
 {
     this.analyzer = a;
 }
Example #8
0
 public ScaryAspxRule(FileAnalyzer a)
 {
     this.analyzer = a;
 }
Example #9
0
 public DomBasedXssRule(FileAnalyzer a)
 {
     this.analyzer = a;
 }
Example #10
0
 public AspxXSSRule(FileAnalyzer a)
 {
     this.analyzer = a;
 }
 public HashWithoutSaltRule(FileAnalyzer a)
 {
     this.analyzer = a;
 }
 public LocalFileInclusionRule(FileAnalyzer a)
 {
     this.analyzer = a;
 }
 public HashWithoutSaltRule(FileAnalyzer a)
 {
     this.analyzer = a;
 }
Example #14
0
 public AspxXSSRule(FileAnalyzer a)
 {
     this.analyzer = a;
 }
Example #15
0
 public TestRule(FileAnalyzer a)
 {
     this.analyzer = a;
 }
Example #16
0
 public HardCodedPasswordRule(FileAnalyzer a)
 {
     this.analyzer = a;
 }
 public CookieSecurityRule(FileAnalyzer a)
 {
     this.analyzer = a;
 }
Example #18
0
 public CookieSecurityRule(FileAnalyzer a)
 {
     this.analyzer = a;
 }
Example #19
0
 public ScaryCsRule(FileAnalyzer a)
 {
     this.analyzer = a;
 }
 public HardCodedPasswordRule(FileAnalyzer a)
 {
     this.analyzer = a;
 }
Example #21
0
 public WeakHashRule(FileAnalyzer a)
 {
     this.analyzer = a;
 }
Example #22
0
 public DomBasedXssRule(FileAnalyzer a)
 {
     this.analyzer = a;
 }