Skip to content

kmitofficial/Cybersecurity2024

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cybersecurity examples

  • This repo contains sample code
  • Fork/clone the repo and experiment with the live code samples

Content

Instructions

💉 SQLi attack + prevention

Steps to run server

  1. Change to server directory

    cd SQLi/server

  2. Before first run, install all node modules (needs to be run only once)

    npm install

  3. Run server

    npm start

Steps to run client

  1. Change to client directory

    cd SQLi/client

  2. Before first run, install all node modules (needs to be run only once)

    npm install

  3. Run client

    npm start

💉 XSS attack + prevention

Steps to run the code

  1. Change to XSS directory

    cd XSS

  2. Before first run, install all node modules (needs to be run only once)

    npm install

  3. Run the app

    npm start

JWT example

Steps to run the code

  1. Change to JWT directory

    cd JWT

  2. Before first run, install all node modules (needs to be run only once)

    npm install

  3. Run the app

    npm start

Acknowledgements

  1. SQLi code reference [link]
  2. XSS code reference [link]
  3. JWT code reference [link]