Skip to content

Commit

Permalink
update the artifact
Browse files Browse the repository at this point in the history
  • Loading branch information
reddevil-j committed Apr 25, 2023
1 parent 568575d commit fd8accd
Show file tree
Hide file tree
Showing 6 changed files with 29 additions and 16 deletions.
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2023 BUseclab

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ directory. To perform this analysis, run the following command:

## Phase 2 - Debloating of Web App using LIM

In this phase, Minimalist uses the LIM interface to debloat web applications.
In this phase, Minimalist uses the LIM interface to debloat web applications.

`step_2.sh` copies the web application to the LIM directory, builds the dockers,
and runs the LIM's admin on port `8086`. You can access the LIM admin page on:
Expand All @@ -93,9 +93,9 @@ http://localhost:8086/admin/
Next, you can upload the Minimalist results either automatically or through the
user-interface provided by the LIM.

<span style="color:red">
Note: Use a different terminal for the rest of the artifact.
</span>
*Note: Use a different terminal for the rest of the artifact. For more
information on LIM UI, you can visit this
[link](https://lessismore.debloating.com/walkthrough.html).*

#### Automatic Import of Minimalist results

Expand Down
14 changes: 3 additions & 11 deletions prepare.sh
Original file line number Diff line number Diff line change
@@ -1,30 +1,22 @@
#!/bin/sh
cur=$PWD
echo "[*] Download Minimalist packages (It takes a few seconds)"
wget -q https://www.dropbox.com/s/9mdhcu81gk55drw/packages.zip

echo "[*] Move Minimalist packages to step-1 directory"
mv packages.zip ./step-1/data/go-workspace/src/
echo "[*] Install wget"
apt install -y wget

echo "[*] Unzip Minimalist packages"
cd ./step-1/data/go-workspace/src/
unzip -o packages.zip
rm packages.zip

cd $cur
echo "[*] Download Less is More (LIM) docker files (It takes a few seconds)"
wget -q https://www.dropbox.com/s/79xbyzekiakabvd/step-2.zip

echo "[*] Unzip LIM"
unzip -o step-2.zip
rm step-2.zip

cd $PWD/step-1
echo "[*] Downloading phpMyAdmin 4.0.0"
wget -q https://files.phpmyadmin.net/phpMyAdmin/4.0.0/phpMyAdmin-4.0.0-all-languages.zip

echo "[*] Unzipping the PMA"
rm -r ./data/4.0.0
unzip -q phpMyAdmin-4.0.0-all-languages.zip -d ./data
rm phpMyAdmin-4.0.0-all-languages.zip
mv ./data/phpMyAdmin-4.0.0-all-languages ./data/4.0.0
Expand All @@ -38,6 +30,6 @@ chmod 774 ./data/4.0.0/config.inc.php

cd $cur
echo "[*] copy phpMyAdmin to LIM-Minimalist directory"
cp -R $PWD/step-1/data/4.0.0/ $PWD/step-2/web/
cp -R $PWD/step-1/data/4.0.0/ $PWD/step-2/web/4.0.0/
chmod -R 777 $PWD/step-2/web/4.0.0
chmod 774 $PWD/step-2/web/4.0.0/config.inc.php
Binary file added step-1/data/go-workspace/src/packages.zip
Binary file not shown.
2 changes: 1 addition & 1 deletion step-1/dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM ubuntu:latest
FROM --platform=linux/amd64 ubuntu:latest

RUN apt update; apt install -y wget
WORKDIR /home
Expand Down
Binary file added step-2.zip
Binary file not shown.

0 comments on commit fd8accd

Please sign in to comment.