Coder Social home page Coder Social logo

redteam-infra's Introduction

Red Team Hosted Infrastructure

What

This project houses reference deployment recipies that can be used to build Red Team Infrastructure. As such, there are no security guarantees or promises. Use at your own risk.

This infrastructure was discussed at CanSecWest 2019 and the slides can be found here

Contributing

See contributing.md

Setup

View external/cloudProvider for setup instructions

What What? In The Puppet

See puppet/README.md for information on puppet modules

Rebasing Op repos

Perquisite

  1. Add original repo as remote
git remote add infra [email protected]:redteam-infra/redteam-infra

Workflow

This can probably be abbreviated, this is what I do.

  1. Observe curent state

    $ git show -s --pretty=short infra/master
    commit 52d09519a84bf4cca3af80287958e506627d755f (infra/master)
    Author: ctimzen <[email protected]>
    
    
    $ git show -s --pretty=short master
    commit a2a80ce163ecd131ee2b34293acec83a5aed4153 (HEAD -> master, origin/master, origin/HEAD)
    Author: Michael Leibowitz <[email protected]>
    
    
    
  2. Find the common ancestor

    $ git merge-base master infra/master
    
  3. Checkout your "feature" branch

    This is counter-intuitive, but master is you feature branch. We'll make a branch and then, since it will be branched from HEAD, will be our feature branch

    git checkout -b feature
    
  4. Switch back to master and reset back to common ancenstor

    git checkout master
    git reset --hard <commit given in merge-base>
    
  5. Pull infra master

    git pull infra master
    
  6. checkout and rebase feature

    git checkout feature
    git rebase master
    
  7. merge feature to master

    git checkout master
    git merge feature
    git branch -d feature
    
  8. Push for victory

    git push --force origin master
    git push --force homebase-opname:/var/lib/git/infra
    

redteam-infra's People

Contributors

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