/// <summary> /// 最新提交 /// </summary> /// <returns></returns> public List <string> GetZuiXinTiJiao() { var help = new HttpHelper(); var html = help.getHtmlByHttpGET("http://wooyun.org/bugs/new_submit/"); RegexWooyun reg = new RegexWooyun(); return(reg.MatchBugIDList(html)); }
/// <summary> /// 根据wooyun-xxxx-xxxxxx获取漏洞细节 /// </summary> /// <param name="bugid"></param> /// <returns>0bugid 1标题 2相关厂商 3简要描述</returns> public string[] GetBugInfo(string bugid) { var help = new HttpHelper(); var html = help.getHtmlByHttpGET("http://wooyun.org/bugs/" + bugid); RegexWooyun reg = new RegexWooyun(); string[] result = new string[4]; result[0] = bugid; result[1] = reg.MatchBugTitle(html); result[2] = reg.MatchBugComp(html); result[3] = reg.MatchBugDes(html); return(result); }