SharpLeech 2.0.0 ALPHA

Status
Not open for further replies.

Hyperz

Active Member
Veteran
2,428
2009
575
13,755
ad0600sllogo.png



Custom SharpLeech 2 Plugins: http://www.wjunction.com/showthread.php?t=35208


A few days late but here it is. This version is mainly a maintenance update. By this I mean no flashy new futures were added. Instead this should resolve a bunch of issues and crashes that some people had with the Pre-ALPHA.

Changes Since v2.0.0 Pre-ALPHA:

  • Fixed a crash that would occur on some PC's when a window is opened for the 2nd time.
  • Fixed a crash that would occur on some PC's when clicking on the login button.
  • Fixed a crash or freeze that would occur when the Start Leeching button was clicked.
  • Fixed the program not logging the ChatBox content when the option is enabled.
  • Fixed a typo. I'm sure there are more typos left in the GUI so let me know if you find one!
  • Fixed problems with IPB 3 quote tags.
  • Added error logging layer.
  • Added asynchronous leeching (300%+ speed boost on 5Mbit+ connections and fast sites).
  • Removed all F# code and ported it to the C# DLL. The F# runtime is no longer required to be installed.
  • Improved duplicate topic posting prevention - It will now check the hash before actually reading the topic (speed improvement).
  • Improved Keep-Alive requests.
  • Increased HTTP connection limit (2 -> 12).
  • Changed the default timeout value from 100.000 to 30.000 ms.
  • Changed the default Regex settings (they are now enabled by default).
  • Changed the default ChatBox nickname. The program will now set your Windows username as default value.
  • Changed the window background color for the non-Aero interface.
Screenshots:
[slide]http://i40.tinypic.com/s3k7q0.png[/slide]

[slide]http://i40.tinypic.com/k1qj68.png[/slide]

Download (460 KByte):
http://rapidshare.com/files/366704030/SL_2.0.0_ALPHA.zip

Install .NET 4.0 RC before running (48 MB):
http://download.microsoft.com/downlo...ll_x86_x64.exe

Things you should know:
Async leeching is automatically enabled when the Pause value in your options is set to 0. By setting it to 1 or higher the program will switch to the old sync leeching method. A fast site (both leech and post) and a 5Mbit+ connection are highly recommended for async posting. On slow sites/connections async posting might actually drown your speed instead of improving it.

When you report a bug
or problem make sure to include your Errors.log file. A screenshot alone is worthless. Also make sure you describe the problem as good as possible. Simply saying "it crashes for me" is useless.

Plugins (tested by me):
- Fixed Warez-Centre plugin: http://pastebin.com/25kFqM5A
- Fixed Warez-BB plugin: http://pastebin.com/11VXPpjr
- TehPARADOX (by The End): http://pastebin.com/v1uBptkt
- ForumW (.org) (by NewEraCracker): http://pastebin.com/n38aWkau

SharpLeech 2.0.0 BETA progress (frequently updated):
  • Changes Since v2.0.0 ALPHA:
  • Switched to .NET 4.0 RTM (the final version).
  • Fixed the IRC client not sending a nickchange request when changing your nickname in the options.
  • Fixed a resource leak in one of the async fucntions due to not handling the IAsyncResult.
  • Fixed the radio volume (and slider) not updating when restoring the default settings.
  • Fixed a problem where logging in to a vBulletin 4.0.3 forum wouldn't work.
  • Fixed a crash that would occur when leeching in async mode due to a thread safety issue.
  • Fixed a crash that would occur when clicking the Copy Url button when the url was 'null'.
  • Fixed a crash that would occur when clicking the Open topic in a browser button when the url was 'null'.
  • Fixed an issue with the Warez-BB plugin.
  • Fixed an issue with the Warez-Centre plugin.
  • Changed the logo to the new one that was created by Elio.
  • Changed the application icon. Again.
  • [strike]Changed the internal proxy setup from forced off to the .NET default (same as SL1)[/strike].
  • Changed the internal proxy setup from forced off to the systems default proxy settings.
  • Added a plugin for TehParadox.
  • Added a plugin for ForumW (.org).
  • Removed the Stats tab (moved to a future version).
  • Removed the Feed tab (moved to a future version).
  • Removed some TV station streams that were no longer broadcasting.
  • The start page number now increments when leeching like it was in SL1.
 
278 comments
You can make a hack for that. For example if you're leeching from warez-bb open the Warez_BB.xml file and find this:

PHP:
            return base.GetTopic(url);
replace with:

PHP:
            // Config
            string findTag = "code";
            string replaceTag = "hide-reply";

            // Don't edit below
            string pattern = @"(?i)\[" + findTag + @"\]" +
                             @"([\s\S]*)\[/" + findTag + @"\]";
            string replace = "[" + replaceTag + "]${1}[/" + replaceTag + "]";
            SiteTopic topic = base.GetTopic(url);

            if (topic == null) return null;

            topic.Content = System.Text.RegularExpressions.Regex.Replace(
                topic.Content,
                pattern,
                replace
            );

            return topic;
You can basically manipulate the topic in any way you like trough the plugins.



I can't say what's going on in the case of a crash trough the logs. Because if it crashes it means whatever error occurred wasn't caught and so not logged.

You may want to try leeching with a pause value of 1.


hey. okay it didnt work. this is what i did

PHP:
public override string[] GetTopicUrls(string html)
        // Config
            string findTag = "code";
            string replaceTag = "hide-reply-thanks";

            // Don't edit below
            string pattern = @"(?i)\[" + findTag + @"\]" +
                             @"([\s\S]*)\[/" + findTag + @"\]";
            string replace = "[" + replaceTag + "]${1}[/" + replaceTag + "]";
            SiteTopic topic = base.GetTopic(url);

            if (topic == null) return null;

            topic.Content = System.Text.RegularExpressions.Regex.Replace(
                topic.Content,
                pattern,
                replace
            );


and now Sharpleech doesnt recognize it
 
That's because:
- the code you pasted isn't valid
- the GetTopicUrls method has nothing to do with this
- you most likely replaced the wrong line of code
 
hey. okay it didnt work. this is what i did

PHP:
public override string[] GetTopicUrls(string html)
        // Config
            string findTag = "code";
            string replaceTag = "hide-reply-thanks";

            // Don't edit below
            string pattern = @"(?i)\[" + findTag + @"\]" +
                             @"([\s\S]*)\[/" + findTag + @"\]";
            string replace = "[" + replaceTag + "]${1}[/" + replaceTag + "]";
            SiteTopic topic = base.GetTopic(url);

            if (topic == null) return null;

            topic.Content = System.Text.RegularExpressions.Regex.Replace(
                topic.Content,
                pattern,
                replace
            );
and now Sharpleech doesnt recognize it


I tested it it works Fine
 
hey Hyperz!

I wanna know something, suppose if i want to filter some words in post like (warez-bb.com) to (myfourm.com) then what expression i have to add??? please can u write the code which i'll write in expressions???

will b thankful to u
 
Code:
<?xml version="1.0" encoding="utf-8" ?>

<!-- SharpLeech 2.x.x SiteReader Plugin -->

<!-- Version MUST be in x.x.x.x format! -->
<SiteReader pluginVersion="2.0.0.0" pluginAuthor="Hyperz">
    <Settings>
        <SiteName>Warez-BB</SiteName>
        <BaseUrl>http://www.warez-bb.org</BaseUrl>
        <TopicsPerPage>50</TopicsPerPage>
        
        <!-- Supported type values are: IP.Board 3.x.x, IP.Board 2.x.x,
             vBulletin 4.x.x, vBulletin 3.x.x, phpBB 3.x.x, phpBB 2.x.x -->
        <Type>phpBB 2.x.x</Type>
        
        <!-- If unsure choose ISO-8859-1. Except for phpBB 3 boards, they use UTF-8 by default. -->
        <DefaultEncoding>ISO-8859-1</DefaultEncoding>
        
        <!-- Set to true if the site uses SEO urls, otherwise false. -->
        <AllowRedirects>false</AllowRedirects>
        <UseFriendlyLinks>false</UseFriendlyLinks>
    </Settings>

    <Sections>
        <Section title="Apps" id="3" />
        <Section title="All-In-One (AIO)" id="47" />
        <Section title="Freewares and Betas" id="9" />
        <Section title="Games" id="5" />
        <Section title="Console Games" id="28" />
        <Section title="Movies" id="4" />
        <Section title="TV Shows" id="57" />
        <Section title="Anime" id="88" />
        <Section title="Music" id="6" />
        <Section title="Music Videos" id="38" />
        <Section title="Templates and Scripts" id="7" />
        <Section title="Template Rips" id="29" />
        <Section title="eBooks" id="8" />
        <Section title="Tutorials" id="83" />
        <Section title="Audio" id="91" />
        <Section title="Mac and Other OSes" id="20" />

        <!-- If you have an account with VIP access you can un-comment this (:
        <Section title="VIPs &amp; Donators" id="35" />
        -->
    </Sections>
    
    <!-- Edit this when the site requires custom parsing -->
    <Code>
        <![CDATA[
        
        protected override void Init()
        {
            base.Init();
        }

        public override void LoginUser(string username, string password)
        {
            base.LoginUser(username, password);
        }

        public override void LogoutUser()
        {
            base.LogoutUser();
        }

        public override string[] GetTopicUrls(string html)
        {
            return base.GetTopicUrls(html);
        }

        public override SiteTopic GetTopic(string url)
        {
            if (Http.SessionCookies["phpBB_WBB_t"] != null)
            {
                Http.SessionCookies["phpBB_WBB_t"].Value = String.Empty;
            }
            
            // Config
            string findTag = "code";
            string replaceTag = "HIDE-REPLY-THANKS";

            // Don't edit below
            string pattern = @"(?i)\[" + findTag + @"\]" +
                             @"([\s\S]*)\[/" + findTag + @"\]";
            string replace = "[" + replaceTag + "]${1}[/" + replaceTag + "]";
            SiteTopic topic = base.GetTopic(url);

            if (topic == null) return null;

            topic.Content = System.Text.RegularExpressions.Regex.Replace(
                topic.Content,
                pattern,
                replace
            );

            return topic;  
        }

        public override SiteTopic GetTopic(int topicId)
        {
            return base.GetTopic(topicId);
        }
        
        public override HttpWebRequest GetPage(int sectionId, int page, int siteTopicsPerPage)
        {
            return base.GetPage(sectionId, page, siteTopicsPerPage);
        }

        public override void MakeReady(int sectionId)
        {
            base.MakeReady(sectionId);
        }
        
        ]]>
    </Code>
</SiteReader>
hey Hyperz!

I wanna know something, suppose if i want to filter some words in post like (warez-bb.com) to (myfourm.com) then what expression i have to add??? please can u write the code which i'll write in expressions???

will b thankful to u

Example:
Code:
\bwarez-bb\.(com|org|net)\b
Would remove the words warez-bb.com, warez-bb.net and warez-bb.org.

Edit:
Whoops, didn't read you post well enough sorry. New example, in the plugin you use replace:
PHP:
            return base.GetTopic(url);
with:
PHP:
            // Domains to replace...
            string[] domains = { "warez-bb.org", "another-domain.com", "yetanotherdomain.net" };
            // Your domain name?
            string newDomain = "yoursite.com";
            
            // Don't edit below.
            SiteTopic topic = base.GetTopic(url);
            
            if (topic == null) return null;
            
            foreach (string domain in domains)
            {
                topic.Content = topic.Content.Replace(domain, newDomain);
            }
            
            return topic;
 
Yup. That's a known problem and has been fixed for the beta release. The ALPHA was only tested with vB 4.0.0. Later versions aren't compatible. For now I suggest you use the Manual Login future to login until the beta is out.

And by the way, the beta progress notes on the 1st post are also a good way to see what the known issues with the alpha version are.
 
?

Yes Hyperz, I use the manual login.
But when I click on "Start Leech", it resets itsself about 2 seconds later, and doesn't start the leech process...
How can I fix this?
 
I'm not sure if you can.

Can you:
1) delete the Errors.log file in your sharpleech folder
2) try leeching again
3) if it resets again quit sharpleech and upload the contents of Errors.log to pastebin.com

So I can have a look.
 
This happens to me also, I would say it's a common problem when trying to leech from vbulletin 4.

All you got to do is:
(Make hidden icons & folders visible first!)
Close SharpLeech!
X(windows drive) -> Users -> "Your Username" -> AppData -> Local
In "Local" folder delete the "Hyperz" folder.
Restart SharpLeech

Everything should be working fine now..
I have to do this everytime I run a new SL instance,
good luck! ;)
 
:)

Thank you very much guys!
DarioX your solution worked great.
Thanks Hyperz for the support also.

EDIT:
SHIT! It posts 5 threads then it gives me a Windows Error that it has stopped working.
Damnit.. everything goes wrong for me. I'm using Windows 7 and I have the framework installed.
 
Running SL as admin will have no effect because there's nothing in there that requires those rights. In fact I recommend not doing so. Especially if you downloaded it from a link other than the one in this thread. Also SL 2 is 32 bit so it doesn't really matter which the OS uses.

I'd start with pasting your Errors.log file to pastebin.
 
Icon ID can be left to 0 - it's not important. In the case of the url you posted the Section ID would be 10.

http://pastebin.com/2x3t1rn6

I have to use the manual login since vB 4.0 login doesn't work on my site. in the Forum Home URL i put "http://www.deviantwarez.info/forums/", I have also tried forum.php. If that's the problem..

I'm assuming you were leeching from wbb? You might wanna use a different site to leech from for the moment. It seems like they are aware of the previous fix and decided to ban everything that uses the SL user-agent header. I guess I better stop posting fixes on there. Can't blame them though, I noticed the past few days that wbb was pretty slow and unstable with quite a few timeouts.

I'll fix the wbb plugin ASAP.

Edit:
When you leech set the pause value to 1 instead of 0. There's a few known bugs when using 0.
 
I tried but got no result.
As I click the Start Leeching button, it gets disabled for a second(as it should be) but then again becomes enabled.
Please help
 
its warezmonster**** and warezunited.info

Right now I'm using sharpleech 1.0.0 in warezmonster**** as other versions are not working.
And in warezunited.info none of them are working.
Can you please try yourself in these forums and tell me how to do it?
 
Status
Not open for further replies.
Back
Top