<?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=237&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Fritz!Load… / Plugin für hugefiles.net]]></title>
		<link>http://ryblog.eu/fritzload/viewtopic.php?id=237</link>
		<description><![CDATA[Die aktuellsten Beiträge in Plugin für hugefiles.net.]]></description>
		<lastBuildDate>Tue, 25 Feb 2014 13:41:25 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Antw.: Plugin für hugefiles.net]]></title>
			<link>http://ryblog.eu/fritzload/viewtopic.php?pid=1484#p1484</link>
			<description><![CDATA[<p>Eingecheckt.</p>]]></description>
			<author><![CDATA[dummy@example.com (rolex0815)]]></author>
			<pubDate>Tue, 25 Feb 2014 13:41:25 +0000</pubDate>
			<guid>http://ryblog.eu/fritzload/viewtopic.php?pid=1484#p1484</guid>
		</item>
		<item>
			<title><![CDATA[Plugin für hugefiles.net]]></title>
			<link>http://ryblog.eu/fritzload/viewtopic.php?pid=1383#p1383</link>
			<description><![CDATA[<p>Filename:<br /><strong>hugefiles_net.sh</strong></p><div class="codebox"><pre class="vscroll"><code class="language-none">#!/bin/ash
# Copyright (c) 2014 genuK/genuk@gmx.net
# Fritzload hosterplugin for http://hugefiles.net
# Version 1.00 31.01.2014
# Maxfilesize for freeuser (5Gb?)
# Maxparalell downloads (?)
# can resume

DEBUG_GET=1
# CAN_RESUME=1

hugefiles_net() {
	local filename data1 data2 filesize url f=$tmp/response.htm c=$tmp/dl.cookie.txt
        local checklink=&quot;http://hugefiles.net/?op=checkfiles&quot;

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

		# check link availability
		local datacheck=&quot;op=checkfiles&amp;process=Check+URLs&amp;list=&quot;$param
		print &quot;=== datacheck is:$datacheck ===&quot;
		GET &quot;$checklink&quot; $f &quot;-d $datacheck -b $c -c $c&quot; &quot;GET-CHECKURL&quot;

		# check $f if link is still available
		if grep -q -i &quot;$param&quot;.*&quot;Filename don&#039;t match!&quot; $f; then
			errmsg &quot;=== Link: $param not found! False link adress? ===&quot; ; return 1
		elif grep -q -i &quot;$param&quot;.*&quot;not found&quot; $f; then
			errmsg &quot;=== Link: $param nicht gefunden. Link ungueltig ===&quot;; return 1
		elif grep -q -i &quot;$param&quot;.*&quot;found&quot; $f; then
			print &quot;=== Link: $param gefunden. Link gueltig ===&quot;
		else
			errmsg &quot;=== Something doesn&#039;t work! ===&quot;; return 1
		fi

		# 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 [ &quot;$H_CODE&quot; != 200 ]; then
			errmsg &quot;SERVER-FEHLER: $H_CODE&quot;
			return 1
		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 filename from the form in $f
		filename=$(formValue fname $f)
		if [ -z &quot;$filename&quot; ];then
			# write the log and quit if &quot;$filename&quot; not found
			errmsg &quot;FAILED: Could not resolve FILENAME&quot;
			return 1
		else
			# write the log and do a check if file already loaded
			print &quot;=== Filename gefunden: $filename ===&quot;
			notalreadyLoaded &quot;$targetdir/$filename&quot; || return
		fi

		# get filesize
		filesize=&quot;$(grep -m1 &quot;File Size&quot; $f | sed -e &#039;s/^.*[^0-9]\(\([0-9]*\.[0-9]*\) [K\|M\|G][B\|b]\).*$/\1/&#039;)&quot;
		print &quot;=== filesize is: $filesize ===&quot;

		# note: there are 2 identical forms with method=&quot;POST&quot;: in the mobile-version and in the full-version
		# extract the form parameter values
		data1=&quot;$(formParams &#039;op;usr_login;id;fname;referer;method_free&#039; $f 0)&quot;
		print &quot;=== extracted form-data1 is: $data1 ===&quot;

		# submit form and load the answer in $f
		GETN &quot;$param&quot; $f &quot;-d $data1 -b $c -c $c&quot; &quot;GET2&quot;

		# # extract the form with &quot;name=F1&quot; from &quot;$f&quot; in &quot;$f.form&quot;
		# extractForm $f &quot;name=\&quot;F1\&quot;&quot; || continue
		# print &quot;### extracted form is: $(cat $f.form | sed -n &#039;s/^$//;t;p;&#039;) ###&quot;
		# # extract form-hidden-params and cut &quot;&amp;adcopy_response=&quot; from it
		# data2=&quot;$(formHiddenParams $f.form | sed -e &#039;s/&amp;adcopy_response=//&#039;)&quot;
		# # delete &quot;$f.form&quot;
		# rm -f $f.form
		# print &quot;### data2 is: $data2 ###&quot;

		# extract the form parameter values
		data2=&quot;$(formParams &#039;op;id;rand;referer;method_free;method_premium;down_direct&#039; $f 0)&quot;
		print &quot;=== Extracted form-data2 is: $data2 ===&quot;

		# captcha processing
		if is_captcha $f; then
			captcha_service_active || return
			captcha_solution $f || continue
		else
			captcha_type_unknown
			return
		fi

		print &quot;=== Returned CAPTCHA_RESPOND is: $CAPTCHA_RESPOND ===&quot;
		# submit the form+captcha and load the answer in $f
		GETN &quot;$param&quot; $f &quot;-d $data2&amp;$CAPTCHA_RESPOND -b $c -c $c&quot; &quot;GET3&quot;

		if [ -n &quot;$H_LOCATION&quot; ];then
			captcha_correct
			print &quot;=== download link is:$H_LOCATION ===&quot;
			# TODO check filesize against the downloaded filesize; is possible somehow?
			# TODO resume; anyone does it?
			local resumeoption=&quot;-C -&quot;
			if download &quot;$H_LOCATION&quot; &quot;$filename&quot; &quot;-b $c -c $c $resumeoption&quot;;then
				succes=1
				break
			fi
		else
			if grep -q &#039;&quot;err&quot;&gt;Wrong captcha&#039; $f;then
				captcha_wrong
			else
				captcha_unknown
			fi
			errmsg &quot;No location link found&quot;
			continue
		fi

		return 1
	done
}</code></pre></div>]]></description>
			<author><![CDATA[dummy@example.com (genuk)]]></author>
			<pubDate>Fri, 31 Jan 2014 10:15:20 +0000</pubDate>
			<guid>http://ryblog.eu/fritzload/viewtopic.php?pid=1383#p1383</guid>
		</item>
	</channel>
</rss>
