Evals are to be respected! NEVER run this on anything publically available! This is the keys to the castle for PHP. Anything PHP can do, eval will interperet it. Only warning...
- Node.js v16+
- NPM v8+
- PHP v7+
- Apache/NGINX/Web Server
- Save
Ctrl
+S
- Last
Ctrl
+R
- Evaluate
Ctrl
+Enter
- Fresh Start
Ctrl
+B
- Wrap highlighted text with brackets, braces, parethesis, backticks, single and double quotes, as well as greater\less than
- Install XAMPP
- Modify
httpd.conf
Default Location:C:\xampp\apache\conf\httpd.conf
Search forDocumentRoot
and replace it with the following
# Replace "LOCATION" with location of your project folder
DocumentRoot "LOCATION"
<Directory "LOCATION">
Options Indexes FollowSymLinks Includes ExecCGI
AllowOverride All
Require all granted
</Directory>
- Restart Apache Service
- Download EvalPal to your project folder
- Go to location, example:
http://localhost/EvalPal/
- Install Apache2
sudo apt update
sudo apt install apache2
sudo ufw allow 'Apache Full'
(allows port 80 and 443)
sudo mkdir -p -v /home/USER/dev/EvalPal
cd /home/USER/dev/EvalPal
git clone https://github.com/ImSeaWorld/EvalPal /home/USER/dev/EvalPal
- Make
saved
folder to save scriptssudo mkdir -p -v /home/USER/dev/EvalPal/saved/
sudo chown www-data -R /home/USER/dev/EvalPal/saved/
sudo nano /etc/apache2/sites-available/000-default.conf
orvim
if you prefer.- Go to(
ctrl
+shift
+_
) line 12 toDocumentRoot /var/www/public
- Exit(
ctrl
+x
) and save
- Go to(
ln -s /home/USER/dev/EvalPal /var/www/public
sudo service apache2 restart
- Now visit http://localhost/EvalPal and you should see EvalPal.
cd /home/USER/dev/EvalPal
npm install
- If you see "vulnerabilities", just note, it's very broad about what a vulnerability is.
- Still concerned? Run
npm audit -production
ornpm audit --omit=dev
and follow the instructions.
- Main style location
./inc/scss/style/style.scss
- Building the style(regular and compressed):
npm run sassy
- Building regular:
npm run compile-sass
- Building compressed:
npm run compile-sass-compressed
- Building the style(regular and compressed):
- Main javascript file location
./assets/js/main.js
- MySQL eval
- JavaScript eval(dev tools exists though)