Page 1 of 1

CGI keygen on FreeBSD server

Posted: Wed Apr 15, 2009 10:59 am
by Enigma
At a first look FreeBSD server is a Linux server and keygen (you can get it from Enigma folderm EnigmaSDK\CGI Keygen\Linux) should work well on this server, but if we try to run keygen we are getting the following error:

Code: Select all

[host ~/enigmaprotector.com/cgi]$ ./keygen 
ELF binary type "0" not known.
bash: ./keygen: cannot execute binary file
The error is happening due to incompatibilities of FreeBSD and Linux binaries. To solve this problem we need to install Linux Emulator on the server. If you have admin privileges, you may done this yourselves or ask a server administator to do this.

Initially, linux emulator might be installed while FreeBSD installation, see attached screenshot, but if you did not do this, do not worry, it can be installed manually:

1. run the follwoing commands:

Code: Select all

# cd /usr/ports/emulators/linux_base 
# make install distclean 
2. Add the following string into /etc/rc.conf file:

Code: Select all

linux_enable= "YES"


The second way how to install Linux emulator can be:
Run the program /stand/sysinstall and go through the menu Configure –> Packages, then choose the sources of installation package ftp, http (PC has to be connected to the internet), CD. Then go to emulators section and choose linux_base package. After instalation is done, modify /etc/rc.conf file like written above, add string

Code: Select all

linux_enable= "YES"
. After restarting of the system it will be possible to run Linux binaries on the server and run our keygen.