Welcome To Our Shell

Mister Spy & Souheyl Bypass Shell

Current Path : /proc/self/root/opt/ABBYYOCR/

Linux ift1.ift-informatik.de 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
Upload File :
Current File : //proc/self/root/opt/ABBYYOCR/activatefre.sh

#!/bin/bash

# Go to the directory which contains this script
cd `dirname $0`

# Check curl version
# usage: CheckCurl curl_path
function CheckCurl {
	# Check if argument is not empty
	if [ -z $1 ]; then
		return 1
	fi

	# Check if file exists and is executable
	if [ ! -x $1 ]; then
		return 1
	fi

	local CurlMajor=`$1 --version | grep curl | cut -d. -f 1 | sed -e 's/curl //'`
	local CurlMinor=`$1 --version | grep curl | cut -d. -f 2`

	local RequiredMajor=7
	local RequiredMinor=15
	if [[ ( $CurlMajor < $RequiredMajor ) || ( $CurlMajor == $RequiredMajor && $CurlMinor < $RequiredMinor ) ]]; then
		return 1
	else
		return 0
	fi
}

# Unconditionnaly installs curl into /usr/local/bin/curl
function InstallCurl {
	echo "Installing cURL to /usr/local/bin/curl"
	echo "Please wait..."
	echo -n "#";
	
	tar -xzvf curl-7.15.4.tar.gz 2>>install.err  >> install.log
	echo -n "#";
	cd curl-7.15.4 2>>install.err >> install.log
	echo -n "#";
	./configure 2>>install.err >> install.log
	echo -n "#";
	make 2>>install.err >>install.log;
	echo -n "#";
	make install 2>>install.err >> install.log
	echo -n "#";
	cd ../
	if [ -x /usr/local/bin/curl ]; then
		echo -n "#";
		CURL="/usr/local/bin/curl"
	else
		echo "Can't install cURL utility. You will be able to activate FineReader Engine by e-mail only"
	exit 3
	fi;
}

# Configures curl. Installs it if necessary. Sets CURL variable pointing to suitable curl
function SetupCurl {
	CurlPath=`which curl`

	if CheckCurl $CurlPath; then
		CURL=$CurlPath
		echo "Using previously installed cURL in $CURL"
	else 
		if [[ $CurlPath != "/usr/local/bin/curl" ]]; then
			if CheckCurl "/usr/local/bin/curl"; then
				CURL="/usr/local/bin/curl"
				echo "Using previously installed cURL in $CURL"
			fi
		fi
	fi

	if [ -z $CURL ]; then
		echo "No suitable cURL version found!"
		echo "Activating FineReader Engine by Internet requires cURL version >= 7.15.x"
		echo -n "Would you like to install curl 7.15.4 to /usr/local/bin ? (y/[n]) : "
		read installChoice;
		if [[ $installChoice == 'y' ]]; then 
			InstallCurl
		else
			echo "Skipping installation of cURL utility. You will be able to activate FineReader Engine by e-mail only"
		fi;
	fi

	export CURL
}
#------- end of functions

echo ""
echo "ABBYY FineReader Engine 8.0 activation script"
echo ""

myself=`whoami`
if [ "$myself" != "root" ];  then
 echo "Login as root to activate FineReader Engine";
 echo "Activation aborted";
 exit 1
fi

#cd ./Bin
BinDir=`pwd`

# Some systems don't do default search for shared libraries in /usr/local/lib 
# but curl needs this directory
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib

#install curl
SetupCurl

# Execute activation utility

cd "$BinDir"
./ActivateFRE

# Display license information
if [ $? == 0 ]; then
    echo "Activation successfully completed. "
    echo "To view license properties, please run:"
    echo "  abbyyocrLV <serialNumber>"
    echo "To run ABBYY OCR CLI command:"
    echo "  abbyyocr [open image and analysis options] -if <image file> [export options] -of <export file>"
fi


bypass 1.0, Devloped By El Moujahidin (the source has been moved and devloped)
Email: contact@elmoujehidin.net bypass 1.0, Devloped By El Moujahidin (the source has been moved and devloped) Email: contact@elmoujehidin.net