Giter Club home page Giter Club logo

31261-the-sensor-db's Introduction

31261 - The Sensor DB

15/05/2022

the-sensor-db

Description

This is based on my implementation of SQLIA vulnerable web app called 'The Gadget Shop'. With the titles and database renamed to 'sensors', to fit the context of IoT Security. For the purposes of project demonstration to my supervisors.

Instructions for Raspberry Pi

  1. Install PHP 7.3
  • sudo apt update
  • sudo apt install php7.3 php7.3-mysql
  1. Enable Short Open Tags
  • sudo vim /etc/php/7.3/cli/php.ini
# replace this line with the value below
short_open_tags = On
  1. Install MariaDB
  • sudo apt install mariadb-server
  1. Configure The Database
  • sudo vim /etc/mysql/mariadb.conf.d/50-server.cnf
# append the following to the [mysqld] section excluding this comment
[mysqld]
secure_file_priv = ""
  • sudo mysql < sql/init_db.sql
  1. Apply/Remove Firewall Rules
  • sudo bash ufw-rules.sh on
  • sudo bash ufw-rules.sh off

Instructions for WSL 2

  1. Install PHP 7.4.29
  • sudo apt update
  • sudo apt install php7.4 php7.4-mysql
  1. Enable Short Open Tags
  • sudo vim /etc/php/7.4/cli/php.ini
# replace this line with the value below
short_open_tags = On
  1. Install MySQL 8.0
  • sudo apt mysql-server
  1. Configure The Database
  • sudo vim /etc/mysql/mysql.conf.d/mysqld.cnf
# append the following to the [mysqld] section excluding this comment
[mysqld]
secure_file_priv = ""
  • sudo mysql < sql/init_db.sql
  1. Apply/Remove Firewall Rules
  • sudo bash ufw-rules.sh on
  • sudo bash ufw-rules.sh off

Running the Web App

chmod 777 31261-The-Sensor-DB
cd 31261-The-Sensor-DB
php -S 0.0.0.0:8000

technologies used

bootstrap mysql php

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.