View Single Post
  #1  
Old 11th July 2016, 00:05
CoFix CoFix is offline
Senior Member
 
Join Date: May 2010
P2P
Posts: 15
Default ScarS Bash Torrent Uploader Script
Anybody have any experience about this script? I try install it. But cant login any tracker using my username and pass. All time getting this error.


loaded settings from `/home/hodor/upload/.upload.rc'

logging in . . . failed

error: it appears you could not be logged in. check login settings.

PHP Code:
#!/bin/bash
####################################
##    example resource file for   ##
##      torrent upload script     ##
##                                ##
##      save in ~/.upload.rc      ##
##  chmod 700 to restrict access  ##
####################################
##         LOGIN SETTINGS         ##
####################################

# your website username
USERNAME="CoFix"

# your website password
PASSWORD="*****"

# website login URL
LOGINURL="http://***/login.php?returnto=%2F"

# logged in text: something _unique_ to check if you are logged in
# possibly your username if it's unique and on the page you get directed to after logging in
LOGINTXT="CoFix"

# login form username: look for input NAME="username"
LOGINUSR="username"

# login form password: look for input NAME="password"
LOGINPWD="password"


####################################
##         SEARCH SETTINGS        ##
####################################

# website search URL
SEARCHURL="http://*****/browse.php?search=&searchin="

# search no result text: something _unique_ to check if no results are found
SEARCHTXT="Nothing found!"

# download dupe: 1 = yes, 0 = no
# note: only possible if download link is on the torrents page
DUPEDL=0

# URL that needs to be prepended to the download URL
DUPEURL=""

# search download link text:  something _unique_ to find the exact line
DUPETXT="action=download"

# command to extract the download link from the complete line
# note: test for the best way to get it outside the script first
DUPECMD="cut -d \" -f 2"

####################################
##         UPLOAD SETTINGS        ##
####################################

# website upload URL
UPLOADURL="http://****/upload.php"

# your personal announce URL
ANNOUNCEURL="http://****/announce.php"

# upload form torrent: look for input NAME="torrent"
UPLOADTOR="torrent"

# upload form category: look for select NAME="category"
UPLOADCAT="category"

# upload title form input
UPLOADTITLE=""

# upload tags
UPLOADTAG="tags"

# upload form extras: look for other inputs with NAME and VALUE
# and add to the list with: -F 'name=value'
UPLOADXTRA=" -F 'submit=true' -F 'desc=<\$STRNFO' -F 'Anonymous=on'"
# The auth field is no longer needed, upload script now auto adds it since version 0.9.7
# -F 'auth='

####################################
##          PATH SETTINGS         ##
####################################

# path to your downloads directory
DOWNLOADS="/home/user/downloads"

# path to your torrent client watch directory
TORRENTS="/home/user/downloads/watch"

# path to your log file: set to /dev/null to disable logging
LOGFILE="/home/user/upload/upload.log"

# path to curl: if in $PATH just enter curl
CURL="curl"

# path to mktorrent: if in $PATH just enter mktorrent
MKT="mktorrent"

# path to rtorrent_fast_resume.pl: leave empty if you dont want to use this
RFR=""


####################################
##       ADVANCED SETTINGS        ##
####################################

# string used to identify as a specific user-agent
USERAGENT="Mozilla/4.0"

# text to prepend on the torrent file before moving it to your torrents dir
PREPEND="td."

# check for already uploading: use with UPCHECK - 1 = yes, 0 = no
# you only need to disable this if you expect to upload the same torrent multiple times at the same time
UPCHECK=1

# list of categories able to be uploaded into: look for options after select NAME=category
# if the option value is a number add it _after_ the category name
ALLCATS=(
    
"Music" "Movies" "TV" 2  
    
"Apps" "Games" "Porn" "Other" 6
)

# list of groups that should be flagged as p2p. Format: "(-GrpName1|-Grpname2)", dont forget the seperator :)
P2PCATS="(-NYDIC|-26K|-CM8|-THETA|-3DM|-NFT|-LAZi|-FUSiON|-P2P|-XWT|-LTW|-FLAWL3SS|-IMAGiNE|-SIC|-ViSiON|-Rx|-FreaK|-CaLLiOPEd|-P2PROCKS|-J4F|-aXXo|-CtrlHD|-DEViSE|-DON|-D-ZON3|-ESiR|-EuReKA|-FOM|-GRiM|-iAPULA|-iLL|-JamBo|-KingBen|-LTRG|-LTT|-Lynks|-Prodji|-STG|-Stuffies|-TD|-TDM|-TFE|-THS|-TLF|-VamPTV|-ViEW|-Vision|-VoX|-vRs|-AJP|-ALLCRiME|-AXIA|-B-G|-BLaZekVCD|-DEViSE|-DiSHON|-DNR|-ELEKTRI4KA|-EMiNENCE|-EOS|-EOSiNT|-ESiR|-Funner|-GHEYLARD|-G0LDz|-HDB|-HDC|-HDmonSK|-HDV|-HDxT|-iAPULA|-iLL|-iRO|-KingBen|-Lynks|-M14CH0|-M794|-McFly|-MMI|-PerfectionHD|-PoTuS|-PrisM|-STG|-Stuffies|-TDM|-THS|-TFE|-THORA|-tK|-TLF|-TRiBE|-TriggeR|-XSHD|-sDx|-HWE|-OOO)"
P2PEXCEPTS=""

# is the option value different than the category name? 1 = yes, 0 = no
KEYVAL=1

####################################
##        FILTERS SETTING         ##
##                                ##
## - FILTERS : case insensitive   ##
## - EXCEPTS : case insensitive   ##
## - MINS    : min size in MB     ##
## - MAXS    : max size in MB     ##
## - CATS    : case sensitive,    ##
##             look at allcats.   ##
##             if KEYVAL use NUM  ##
## - TAGS    : case insensitive      ##
##             must be in ""      ##
##             can be anything    ##
##             you want           ##
##                                ##
##  NOTE: make sure the filter    ##
##        ends with `let n+=1'    ##
##                                ##
####################################

#FILTERS[n]=REGEX
#EXCEPTS[n]=REGEX
#MINS[n]=MIN_SIZE
#MAXS[n]=MAX_SIZE
#CATS[n]=UPLOAD_CAT
#TAGS[n]=tags
n=0;



##################################
##         SETTINGS END         ##
################################## 
Reply With Quote