Git Product home page Git Product logo

go-pcie-screamer's Introduction

GO-PCIe-Screamer

About

PCIe screamer is an FPGA PCIe board developed by LambdaConcept. The device supports raw PCIe Transaction Layer Packet (TLP) access, and helps security researchers assess the host's PCIe security.

PCIe Screamer

LeechCore, developed by Ulf Frisk, is a low-level software library that interacts with the screamer. For additional information, see https://github.com/ufrisk/LeechCore/wiki/Device_FPGA.

go-pcie-screamer is a re-implementation of LeechCore software stack, written in Go.

Hardware setup

Download the v4 bitstream from https://github.com/ufrisk/pcileech-fpga/tree/master/pciescreamer, and follow the flashing instructions at http://blog.lambdaconcept.com/doku.php?id=products:pcie_screamer.

Usage

import "github.com/google/go-pcie-screamer/screamer"

// Enumerates and opens all screamer devices on the system.
devs, err := screamer.OpenScreamers()
if err != nil {
    return nil, err
}

// Closes screamers on exit.
defer func() {
    for _, d := range devs {
        d.Close()
    }
}()

// Creates an io.ReadWriter for reading and writing TLPs.
rw = screamer.NewTLPController(devs[0])

// Writes a single TLP.
tlp := []byte{0xaa, 0xaa, 0xaa, 0xaa}
rw.Write(tlp)

// Reads a single TLP (with timeout).
b := make([]byte, 1024)
n, err := rw.Read(b)

Supported Hardware

go-pcie-screamer was only tested on PCIeScreamer R02 PCIe board, however, other PCILeech FPGA devices may be supported.

License

This project is a derivative work of LeechCore, therefore, it is licensed under GPLv3, as the original work.

Disclaimer

This is not an official Google product (experimental or otherwise), it is just code that happens to be owned by Google.

go-pcie-screamer's People

Contributors

cfircohen avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

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