This repository contains the code of "Reverse Engineering" event under DCOD. Reverse engineering is a competition through which, a developer can test his PHP decoding skills. This PHP code uses some simple (but complex looking) functions.
- Update your system.
$ sudo apt-get update
- Install Apache server
$ sudo apt-get install apache2
- Install PHP 5.6
$ sudo apt-get install python-software-properties
$ sudo add-apt-repository ppa:ondrej/php
$ sudo apt-get update
$ sudo apt-get install -y php5.6
-
Copy the folder to /var/www/html
-
Install mysql
$ sudo apt-get install mysql-server
- Configure mysql (setting up root password and other settings) by running the following command.
$ mysql_secure_installation
- Install phpmyadmin.
$ sudo apt-get install phpmyadmin php-mbstring php-gettext
$ sudo phpenmod mcrypt
$ sudo phpenmod mbstring
- Restart apache server.
$ sudo systemctl restart apache2
-
Goto localhost/phpmyadmin
-
Create a database named 'reverse-engineering-v2'.
-
Import the .sql file present in the git repository.
-
Goto localhost/reverse_engineering-dcod-mca-cet to view the site.
I added only ubuntu's detailed installation because, we used Ubuntu for setting up our server. For installing in other OS, refer this link.