<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<atom:link href="http://ryblog.eu/fritzload/extern.php?action=feed&amp;tid=277&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Fritz!Load… / Neuer Hoster: fcore.eu / filecore.co.nz]]></title>
		<link>http://ryblog.eu/fritzload/viewtopic.php?id=277</link>
		<description><![CDATA[Die aktuellsten Beiträge in Neuer Hoster: fcore.eu / filecore.co.nz.]]></description>
		<lastBuildDate>Thu, 24 Apr 2014 10:05:42 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Antw.: Neuer Hoster: fcore.eu / filecore.co.nz]]></title>
			<link>http://ryblog.eu/fritzload/viewtopic.php?pid=1670#p1670</link>
			<description><![CDATA[<p>Eingecheckt.</p>]]></description>
			<author><![CDATA[dummy@example.com (rolex0815)]]></author>
			<pubDate>Thu, 24 Apr 2014 10:05:42 +0000</pubDate>
			<guid>http://ryblog.eu/fritzload/viewtopic.php?pid=1670#p1670</guid>
		</item>
		<item>
			<title><![CDATA[Neuer Hoster: fcore.eu / filecore.co.nz]]></title>
			<link>http://ryblog.eu/fritzload/viewtopic.php?pid=1669#p1669</link>
			<description><![CDATA[<p>Ganz frisch:</p><p>1. die Datei : fcore_eu.sh</p><div class="codebox"><pre class="vscroll"><code class="language-none">#!/bin/ash
# Copyright (c) 2014 genuK/genuk@gmx.net
# Fritzload hosterplugin for http://fcore.eu

DEBUG_GET=1

###########################################
#    ev. Kandidat fuer die captcha libs   #
###########################################
solvePlaintextCaptcha() {
        local span loesung
        span=$(grep &quot;;background:#ccc;text-align&quot; $f|\
                sed -e &#039;s/&lt;div[^&gt;]*&gt;//g&#039; -e &#039;s/\(^.*\)&lt;\/div&gt;/\1/g&#039; \
                -e &#039;s/&lt;\/span&gt;&lt;span /\n/g&#039; -e &#039;s/&lt;span //&#039; -e &#039;s/&lt;\/span&gt;//&#039;)
        loesung=$(echo &quot;$span&quot;|sed &#039;s/.*-left:\([0-9]*\)px[^&gt;]*&gt;\(.*\)/\1 \2/g&#039;|\
                sort -g |sed -e &#039;s/[0-9]* //&#039; -e &#039;s/&amp;#48;/0/&#039; -e &#039;s/&amp;#49;/1/&#039; \
                -e &#039;s/&amp;#50;/2/&#039; -e &#039;s/&amp;#51;/3/&#039; -e &#039;s/&amp;#52;/4/&#039; -e &#039;s/&amp;#53;/5/&#039; \
                -e &#039;s/&amp;#54;/6/&#039; -e &#039;s/&amp;#55;/7/&#039; -e &#039;s/&amp;#56;/8/&#039; -e &#039;s/&amp;#57;/9/&#039;)
        loesung=$(echo &quot;$loesung&quot;| tr -d &#039;\n&#039;)
        echo $loesung
}

fcore_eu_onlineStatus() {
        local url=$1
        local checklink=&quot;http://filecore.co.nz/?op=checkfiles&quot;
        local checkdata=&quot;op=checkfiles&amp;process=Check+URLs&amp;list=&quot;$url
        GET &quot;$checklink&quot; $f &quot;--data $checkdata --cookie $c -cookie-jar $c&quot; &quot;GET-CHECKURL&quot;

        if grep -q -i &#039;&lt;td style=&quot;color:red;&quot;&gt;Not found!&lt;/td&gt;&#039; $f; then
                errmsg &quot;=== Link: $param nicht gefunden. Link ungueltig ===&quot;; return 1
        elif grep -q -i &quot;&lt;td style=\&quot;color:red;\&quot;&gt;Filename don&#039;t match!&lt;/td&gt;&quot; $f; then
                errmsg &quot;=== Link: $param - Filename don&#039;t match!. Link ungueltig ===&quot;; return 1
        elif grep -q -i &#039;&lt;td style=&quot;color:green;&quot;&gt;Found&lt;/td&gt;&#039; $f; then
                print &quot;=== Link: $param gefunden. Link gueltig ===&quot;; return 0
        else
                errmsg &quot;=== Link Check! Something doesn&#039;t work! Please report! ===&quot;; return 1
        fi
}

fcore_eu() {
        local filename filesize data download_link
        local f=$tmp/response.htm c=$tmp/dl.cookie.txt

        # check if link has the minimum length
        # if the link is too long will be catched by fcore_eu_onlineStatus
        if ! echo $param | grep -E &quot;([a-z0-9]{12})&quot; ; then
                errmsg &quot;Link $param is too short! Please check your link!&quot;
                return 1
        fi

        # check online availability
        if ! fcore_eu_onlineStatus &quot;$param&quot;;then
                errmsg &quot;URL-Adresse: Offline ($param)&quot;
                return 1
        fi

        while [ $try -lt $retries ]; do
                try=$(($try+1))

                # get the url from downloadlist and load the answer in $f
                GET &quot;$param&quot; $f &quot;--cookie $c --cookie-jar $c&quot; &quot;GET1&quot;

                # check http status code
                if [ &quot;$H_CODE&quot; = 404 ] &amp;&amp; grep -qiE &quot;&lt;h3&gt;File Not found&lt;/h3&gt;&quot; $f ;then
                        errmsg &quot;SERVER-FEHLER: Link nicht gefunden!; HTTP-Statuscode: $H_CODE&quot;
                        errmsg &quot;Link Adresse falsch?&quot;
                        return 1
                elif grep -qi &quot;No such file\|File Not Found\|The file was removed by\|Reason for deletion&quot; $f; then
                        errmsg &quot;File not found&quot;
                        return 1
                elif grep -qi &quot;This server is in maintenance mode&quot; $f; then
                        errmsg &quot;This server is in maintenance mode&quot;
                        break
                elif grep -qiE &quot;You have reached the download[-\ ]limit&quot; $f; then
                        print &quot;=== Download limit erreicht. Versuche reconnect. ===&quot;
                        { needReconnect; continue; }
                fi

                # extract the form with name=&quot;F1&quot;
                extractForm $f &quot;name=\&quot;F1\&quot;&quot; || extractForm $f &quot;name=&#039;F1&#039;&quot; || continue

                # extract the form parameters values
                data=&quot;$(formParams &#039;op;id;rand;method_free;down_direct;down_script&#039; $f 0)&quot;

                # captcha processing
                local code
                if grep -q &quot;;background:#ccc;text-align&quot; $f.form ; then
                        print &quot;=== Detected captcha method \&quot;Plaintext Captcha\&quot; ===&quot;
                        code=$(solvePlaintextCaptcha $f)
                        print &quot;=== extracted Plaintext Captcha code is: $code ===&quot;
                        data=$data&quot;&amp;code=&quot;$code
                elif grep &#039;/captchas/&#039; $f.form ; then
                        print &quot;=== Detected captcha method \&quot;Standard captcha\&quot; ===&quot;
                        # extract the captcha link
                        local capurl=&quot;$(grep &#039;/captchas/&#039; $f.form | sed -e &#039;s/.*\&quot;\(.*[^\&quot;]\)\&quot;.*/\1/g&#039;)&quot;
                        print &quot;=== Extracted capurl is: $capurl&quot;

                        # get the captcha image
                        local capfile=$tmp/dl.captcha.jpg
                        curl -s --cookie $c &quot;$capurl&quot; -o $capfile
                        set_captcha_solution &quot;$capurl&quot; || continue
                        rm -rf $capfile
                        data=$data&quot;&amp;code=&quot;$CAPTCHA_STRING
                elif is_captcha $f; then
                        if grep -q &quot;api.recaptcha.net\|google.com/recaptcha/api/&quot; $f.form ; then
                                print &quot;=== Detected captcha method \&quot;Re Captcha\&quot; ===&quot;
                        elif grep -q &quot;solvemedia.com/papi/&quot; $f.form ; then
                                print &quot;=== Detected captcha method \&quot;Solve Media\&quot; ===&quot;
                        elif grep -q &quot;id=\&quot;capcode\&quot; name= \&quot;capcode\&quot;&quot; $f.form ; then
                                print &quot;=== Detected captcha method \&quot;Key Captcha\&quot; ===&quot;
                        fi
                        captcha_service_active || return
                        captcha_solution $f || continue
                        print &quot;=== Returned CAPTCHA_RESPOND is: $CAPTCHA_RESPOND ===&quot;
                        data=$data&quot;&amp;&quot;$CAPTCHA_RESPOND
                else
                        captcha_type_unknown
                        return
                fi

                print &quot;=== Form-Data with Captcha-Code is: $data ===&quot;
                # submit the form-data and load the answer in $f
                GET &quot;http://filecore.co.nz/download.html&quot; $f &quot;--data $data --cookie $c --cookie-jar $c&quot; &quot;GET2&quot;

                if grep -q -i &#039;&lt;div class=&quot;err&quot;&gt;Wrong captcha&#039; $f; then
                        print &quot;&#039;Wrong captcha&#039; was found on the second page&quot;
                        captcha_wrong
                        continue
                elif grep -q -i &#039;&lt;div class=&quot;err&quot;&gt;Expired download session&#039; $f; then
                        print &quot;Expired download session&quot;
                        continue
                elif grep -q  -i &quot;images/dl.png&quot; $f; then
                        print &quot;Download Link Button gefunden auf die 2. Seite&quot;
                        captcha_correct
                else
                        errmsg &quot;Something goes wrong. Plugin needs update? Please report!&quot;
                        return 1
                fi

                download_link=&quot;$(grep &#039;images/dl.png&#039; $f | sed -e &#039;s/.*[^&quot;]&quot;\(http.*[^&quot;]\)&quot;&gt;.*/\1/g&#039;)&quot;
                if [ -z &quot;$download_link&quot; ]; then
                        # write the log if &quot;$download_link&quot; not found
                        errmsg &quot;FAILED: Could not resolve download URL&quot;
                        return 1
                fi
                print &quot;=== Extracted download_link is: $download_link ===&quot;

                filename=&quot;$(echo $download_link| sed -e &#039;s@.*/\(.*\)@\1@&#039;)&quot;
                if [ -z &quot;$filename&quot; ]; then
                        # write the log if &quot;$filename&quot; not found
                        errmsg &quot;FAILED: Could not resolve filename&quot;
                        return 1
                fi
                print &quot;=== Extracted filename is: $filename ===&quot;

                notalreadyLoaded &quot;$targetdir/$filename&quot; || return
                if download &quot;$download_link&quot; &quot;$filename&quot; &quot;-b $c -c $c&quot;; then
                        succes=1
                        break
                fi
        done
}</code></pre></div><p>2. die Datei : filecore_co_nz.sh</p><div class="codebox"><pre><code class="language-none">#!/bin/ash
# Copyright (c) 2014 genuK/genuk@gmx.net
# Fritzload hosterplugin for http://filecore.co.nz

. $pdir/lib/hoster/fcore_eu.sh

filecore_co_nz() {
        fcore_eu &quot;$param&quot;
        return $?
}</code></pre></div><p>Testlinks via PM.</p>]]></description>
			<author><![CDATA[dummy@example.com (genuk)]]></author>
			<pubDate>Thu, 24 Apr 2014 09:50:25 +0000</pubDate>
			<guid>http://ryblog.eu/fritzload/viewtopic.php?pid=1669#p1669</guid>
		</item>
	</channel>
</rss>
