Git Product home page Git Product logo

csci476-code's Introduction

Source code for CSCI 476 @ MSU - Computer Security

Includes some code examples from class.

Mostly adopted from "Computer & Internet Security: A Hands-on Approach" (2nd Edition) by Wenliang (Kevin) Du.

https://www.handsonsecurity.net

Tips & Tricks

Configure gdb to ensure it uses att syntax

# make sure default assembly syntax is att syntax. ONLY NEED TO RUN THIS ONCE!
echo 'set disassembly-flavor att' >> ~/.gdbinit

Disable ASLR

sudo sysctl -w kernel.randomize_va_space=0;

Updating the Shell

On the SEED VM, /bin/sh is actually an alias for /bin/dash.

# sh is actually an alias
$ which sh
/bin/sh
$ ls -l /bin/sh
lrwxrwxrwx 1 root root 8 Jan 23 03:32 /bin/sh -> /bin/dash

/bin/dash has countermeasures against some of our exercises. So, at times we may need to use another shell, such as /bin/zsh. Here are examples of how to set/reset the shell symlinks:

$ sudo ln -sf /bin/zsh /bin/sh   # make sh symlink to zsh
$ sudo ln -sf /bin/dash /bin/sh  # sh is symlink to dash (default)

csci476-code's People

Contributors

kevin-w-du avatar traviswpeters avatar

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.