Git Product home page Git Product logo

sectrain's Introduction

sectrain


alt_tag

sectrain is a program to illustrate some basic security technigues such as XSS and buffer overflows along with how to stop them. Currently this shows example in PHP and Python.

Still to be done is include javascript, sqli and othe buffer overflows, should be done shortly.

alt_tag

Installation


The simplest way to install sectrain is to use the snap

sudo snap install teamtime 

alt_tag

Web Starting


sectrain startweb 

Web Stopping


sectrain stopweb 

Web Usage


Open your browser to your host on port 1984, then browse choose the secure or insecure links. Try an exploit such as :

"><script>alert('xss');</script>

You will see how sanitizing the input/output helps solve these issues.

alt_tag

Python Buffer Overflows


There are two examples to look at, pybuffgood and pybuffbad, sending in too long of a string breaks it. Simple, but still a good way to illustrate the point.

sectrain pybuffbad  abcdefghijkl 
sectrain pybuffgood abcdefghijkl

alt_tag

Clearly more can be done, but this is just to aid in getting people interested in fixing their code.

sectrain's People

Contributors

joemcmanus avatar

Stargazers

yogananth subramanian avatar

Watchers

James Cloos avatar  avatar Bodunrin David  avatar

Forkers

alexmurray

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.