Advertisement
Guest User

Hyperz

a guest
Jun 3rd, 2010
1,876
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 5.80 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8" ?>
  2.  
  3. <!-- SharpLeech 2.x.x SiteReader Plugin -->
  4.  
  5. <!-- Version MUST be in x.x.x.x format! -->
  6. <SiteReader pluginVersion="2.0.0.0" pluginAuthor="Hyperz">
  7.     <Settings>
  8.         <SiteName>Warez-BB</SiteName>
  9.         <BaseUrl>http://www.warez-bb.org</BaseUrl>
  10.         <TopicsPerPage>50</TopicsPerPage>
  11.  
  12.         <!-- Supported type values are: IP.Board 3.x.x, IP.Board 2.x.x,
  13.              vBulletin 4.x.x, vBulletin 3.x.x, phpBB 3.x.x, phpBB 2.x.x -->
  14.         <Type>phpBB 2.x.x</Type>
  15.  
  16.         <!-- If unsure choose ISO-8859-1. Except for phpBB 3 boards, they use UTF-8 by default. -->
  17.         <DefaultEncoding>ISO-8859-1</DefaultEncoding>
  18.  
  19.         <!-- Set to true if the site uses SEO urls, otherwise false. -->
  20.         <AllowRedirects>false</AllowRedirects>
  21.         <UseFriendlyLinks>false</UseFriendlyLinks>
  22.     </Settings>
  23.  
  24.     <Sections>
  25.         <Section title="Apps" id="3" />
  26.         <Section title="All-In-One (AIO)" id="47" />
  27.         <Section title="Freewares and Betas" id="9" />
  28.         <Section title="Games" id="5" />
  29.         <Section title="Console Games" id="28" />
  30.         <Section title="Movies" id="4" />
  31.         <Section title="TV Shows" id="57" />
  32.         <Section title="Anime" id="88" />
  33.         <Section title="Music" id="6" />
  34.         <Section title="Music Videos" id="38" />
  35.         <Section title="Templates and Scripts" id="7" />
  36.         <Section title="Template Rips" id="29" />
  37.         <Section title="eBooks" id="8" />
  38.         <Section title="Tutorials" id="83" />
  39.         <Section title="Audio" id="91" />
  40.         <Section title="Mac and Other OSes" id="20" />
  41.  
  42.         <!-- If you have an account with VIP access you can un-comment this (:
  43.         <Section title="VIPs &amp; Donators" id="35" />
  44.         -->
  45.     </Sections>
  46.  
  47.     <!-- Edit this when the site requires custom parsing -->
  48.     <Code>
  49.         <![CDATA[
  50.        
  51.         protected override void Init()
  52.         {
  53.             base.Init();
  54.            
  55.             // Whoever is tracking this over at WBB:
  56.             // Go ahead and keep blocking based on the user-agent value.
  57.             // By the time you're done you will have blocked 99% of your traffic. (:
  58.            
  59.             var f = "Mozilla/{0}.0 (compatible; MSIE {1}.0; Windows NT {2}.{3}; .NET CLR {4}.0.{5})";
  60.             var r = new Random();
  61.             var a = new String[]
  62.             {
  63.                 "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Trident/4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; AskTB5.6)",
  64.                 "Opera/9.80 (Linux armv7l; U; Maemo; Opera Mobi/3; it) Presto/2.5.26 Version/10.00",
  65.                 "Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_3; en-us) AppleWebKit/534.1+ (KHTML, like Gecko) Version/4.0.5 Safari/531",
  66.                 String.Format(f, r.Next(4, 5), r.Next(5, 9), r.Next(5, 6), r.Next(0, 1), r.Next(1, 4), r.Next(50000, 60000)),
  67.                 String.Format(f, r.Next(4, 5), r.Next(5, 9), r.Next(5, 6), r.Next(0, 1), r.Next(1, 4), r.Next(50000, 60000)),
  68.                 String.Format(f, r.Next(4, 5), r.Next(5, 9), r.Next(5, 6), r.Next(0, 1), r.Next(1, 4), r.Next(50000, 60000)),
  69.                 String.Format(f, r.Next(4, 5), r.Next(5, 9), r.Next(5, 6), r.Next(0, 1), r.Next(1, 4), r.Next(50000, 60000)),
  70.                 String.Format(f, r.Next(4, 5), r.Next(5, 9), r.Next(5, 6), r.Next(0, 1), r.Next(1, 4), r.Next(50000, 60000)),
  71.                 String.Format(f, r.Next(4, 5), r.Next(5, 9), r.Next(5, 6), r.Next(0, 1), r.Next(1, 4), r.Next(50000, 60000)),
  72.                 String.Format(f, r.Next(4, 5), r.Next(5, 9), r.Next(5, 6), r.Next(0, 1), r.Next(1, 4), r.Next(50000, 60000)),
  73.                 String.Format(f, r.Next(4, 5), r.Next(5, 9), r.Next(5, 6), r.Next(0, 1), r.Next(1, 4), r.Next(50000, 60000)),
  74.                 "Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.0 (KHTML, like Gecko) Chrome/6.0.408.1 Safari/534.0",
  75.                 "Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; GTB6.4; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0;",
  76.                 "Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3",
  77.                 String.Format(f, r.Next(4, 5), r.Next(5, 9), r.Next(5, 6), r.Next(0, 1), r.Next(1, 4), r.Next(50000, 60000)),
  78.                 String.Format(f, r.Next(4, 5), r.Next(5, 9), r.Next(5, 6), r.Next(0, 1), r.Next(1, 4), r.Next(50000, 60000)),
  79.                 String.Format(f, r.Next(4, 5), r.Next(5, 9), r.Next(5, 6), r.Next(0, 1), r.Next(1, 4), r.Next(50000, 60000)),
  80.                 String.Format(f, r.Next(4, 5), r.Next(5, 9), r.Next(5, 6), r.Next(0, 1), r.Next(1, 4), r.Next(50000, 60000)),
  81.                 String.Format(f, r.Next(4, 5), r.Next(5, 9), r.Next(5, 6), r.Next(0, 1), r.Next(1, 4), r.Next(50000, 60000)),
  82.                 String.Format(f, r.Next(4, 5), r.Next(5, 9), r.Next(5, 6), r.Next(0, 1), r.Next(1, 4), r.Next(50000, 60000)),
  83.                 String.Format(f, r.Next(4, 5), r.Next(5, 9), r.Next(5, 6), r.Next(0, 1), r.Next(1, 4), r.Next(50000, 60000)),
  84.                 String.Format(f, r.Next(4, 5), r.Next(5, 9), r.Next(5, 6), r.Next(0, 1), r.Next(1, 4), r.Next(50000, 60000)),
  85.                 "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3",
  86.                 "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 2.0.50727)",
  87.                 "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322)"
  88.             };
  89.            
  90.             Http.UserAgent = a[r.Next(0, a.Length - 1)];
  91.         }
  92.  
  93.         public override void LoginUser(string username, string password)
  94.         {
  95.             base.LoginUser(username, password);
  96.         }
  97.  
  98.         public override void LogoutUser()
  99.         {
  100.             base.LogoutUser();
  101.         }
  102.  
  103.         public override string[] GetTopicUrls(string html)
  104.         {
  105.             return base.GetTopicUrls(html);
  106.         }
  107.  
  108.         public override SiteTopic GetTopic(string url)
  109.         {
  110.             // Fix 403 errors after reading a few topics
  111.             if (Http.SessionCookies["phpBB_WBB_t"] != null)
  112.             {
  113.                 Http.SessionCookies["phpBB_WBB_t"].Value = String.Empty;
  114.             }
  115.            
  116.             return base.GetTopic(url);
  117.         }
  118.  
  119.         public override SiteTopic GetTopic(int topicId)
  120.         {
  121.             return base.GetTopic(topicId);
  122.         }
  123.        
  124.         public override HttpWebRequest GetPage(int sectionId, int page, int siteTopicsPerPage)
  125.         {
  126.             return base.GetPage(sectionId, page, siteTopicsPerPage);
  127.         }
  128.  
  129.         public override void MakeReady(int sectionId)
  130.         {
  131.             base.MakeReady(sectionId);
  132.         }
  133.        
  134.         ]]>
  135.     </Code>
  136. </SiteReader>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement