Giter Club home page Giter Club logo

notebooks's Introduction

notebooks

Companion notebooks to the Hardware Hacking Handbook. These are the Jupyter notebooks found under labs/.

Downloading a ready made VM

You can get a ready made VM here (if you are on chrome - copy the URL, the redirect is broken due to HTTPS, it will be fixed shortly). The SHA512 checksum is here. It was built using the instructions below. We recommend you use this option, as it is the least error-prone.

VM build for Hardware Hacking Handbook

The vm-builder containings the needed vagrant file and scripts for building the HHH Jupyter vm. It should take care of everything needed, including installing packages, installing python modules using pip, enabling needed jupyter extensions, and running jupyter. It's based on chipwhisperer-vagrant.

The created VM is called Hardware Hacking Handbook Jupyter.

Building the VM

To build the VM, run build.sh. It requires vagrant and Virtualbox to be installed. In Windows, you may need the vagrant-wsl2 plugin, and read Vagrant on WSL2

During the VM build, a solutions/ subdirectory is created, which has the output of all the notebooks as PDF. (Spoiler alert!)

Connecting to Jupyter

Jupyter can now be connected to via localhost:8888. The default password is '123456hhh', without quotes. If you need to log into the VM itself, you can use username 'root' and password 'vagrant'.

Note: Jupyter is essentially remote code execution as a service. Though it's somewhat sandboxed inside Docker inside the VM, take care of what networks you expose it it.

JUYPTER CAN ONLY BE CONNECTED TO ON FIREFOX/CHROME, EDGE/SAFARI DON'T WORK, OTHER BROWSERS UNTESTED

Potential Issues and Troubleshooting

Most issues occur when moving the VM to a new machine.

  • VM Freezes on Boot
    • This is typically caused by Serial Port 1 being disabled. It can be fixed by enabling it and setting Port Mode to Disconnected
  • Permission Error when running VM
    • Usually caused by trying to run the VM on a Unix-like host off an NTFS filesystem (say a USB flash drive). Can be fixed by copying the VM files onto the host's normal file system

notebooks's People

Contributors

colinoflynn avatar jazvw 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.