__ _ __ _ _ __ ______\ \_\\_______________________\///__________________________//_/ /______ \___\ /___/ | .__ __ | | | ___ __________/ |________ | | \ \/ / ____/\ __\_ __ \ | ; > < <_| | | | | | \/ ; : /__/\_ \__ | |__| |__| : . \/ |__| . . . : H/Q Another Droid BBS - andr01d.zapto.org:9999 : ; ; + --- -- - . - --- --- --- - . - -- --- + : : | implement torrent files in a bbs | : : ` --- -- - . - --- --- --- - . - -- --- ' [1;33;41mthe writer of this text, has no responsibility on how you will use the info [0m [1;33;41mprovided. this is a proof of concept thing and is done for educational purposes[0m [1;33;41monly. torrent files are thought to be illegal. you have been warned. [0m with all bbses connected to the net 24/7, a bbs is the perfect system to be a torrent search engine/downloader. below i will describe how to get and config a mystic bbs to be used with torrent/magnet links in the easiest way. you can use the same info for other bbs software also. the logic is the same. we will use the filesystem of the bbs itself. no external scripts, except from a bash script that will download the magnet links. this way, the users of the bbs will be able to use the search engine of the bbs to find the torrent and also browse the file system in a familiar enviroment. first create a file group to keep all torrents in one place. then create as many file bases you want, according the categories of the torrent files you want to get and provide to users. for example, create one base for movies, one for music, one for apps etc. "this is not a mystic bbs tutor. i assume you know how to create groups/bases." inside the bases you have to put a directory path for the system to check for files. this directory has to have a name like 101, 100, 201, 203 etc. this number is not random. we are using ThePirateBay (TPB) search engine and tpb has categories with those names. select top 100 from the main page of tpb and hover the mouse pointer over a link to get this number. we are also using links/files from this web page of tpb. the top 100 page of tpb is a cool way to get the most wanted files out there, with more seeders and chances to complete the download. also its a compact way for us to get the torrent files. so we will use this page. because pirate bay, is always on the run, is changing its url all the time. visit https://piratebay-proxylist.se/ to get the latest and valid urls for tpb. below its the script that does all the work for us. you have to configure it before using it, but is simple. * in the prt variable place the url of thepiratebay * in the areas variable place the number of categories you want to download. you can use all of them or some of them. just put the \n to distinct the categories. * the root variable is the directory that all the sub-dirs and files will be saved. make sure that your bbs soft. like mystic can "see" this folder. [1;30m=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=[0m [1;32m#!/bin/bash[0m [1;35m#Use a valid address. Check https://piratebay-proxylist.se/ for new ones.[0m prt="https://unblocktheship.org" [1;35m#Check https://unblocktheship.org/top to get area numbers[0m areas=$'201\n205\n101\n301\n306' [1;35m#Edit this to your torrents root folder.[0m root="/home/$(whoami)/mystic/files/torrentz" while read -r area; do mkdir -p $root/$area sleep 2s curl -s $prt/top/$area > /tmp/tmp.htm page="$(cat /tmp/tmp.htm)" links="$(cat /tmp/tmp.htm | grep "