Giter Club home page Giter Club logo

simplec2's Introduction

Continuation of Malware C2 Development

Git repo for BSides Workshop; an interactive course to design and create a simple C2 toolset. We will be conintinuing to refine and imporve our C2 to learn the ins and outs of C# and .net programing.

C2 Usage

  • Call back port port/IP is hard coded into top line C2/Program.cs and app.run in server/server.py
  • All payloads should be saved in to the payloads folder with ps1 extension for powershell and dll for .net assmeblies
  • Supports unmanaged powershell
    • runps \<scriptname\> argument1 argument2 ...
  • Supports reflecive assembly loading/and reuse
    • load \<assemblyname\>
    • run \<assemblyname\> argument1 argument2 ...
  • All native commands are passed through and invoked via cmd.exe /c formating and stdout only is returned

Learning Objectives

  • Intro to programing concepts
  • Use of Python Flask
  • Using C# Libraries
  • Building .net projects
  • Debugging Code in Visual Studio Code
  • Reflective loading
  • Using powershell "runspace" environment in .net
  • Incorporating 3rd partry projects

Student Requirements

Getting Started

  • git clone this repo localy
  • pip install -r .\requirments.txt
    • or just pip install flask as that's the only requirment for now
  • open folder in VS code
    • If VS code asks to fiddle with the project first time opening, go ahead and let it, it's setting up some build tasks for you
  • right click server\server.py and "run python file in terminal"
    • If this is your first python project you might have to tell VS Code where you installed python.
    • Alt text
  • build implant with ctrl+shift+b
    • if VS code didn't set you up you can cd into C2 folder and run "dotnet build"
  • start implant .\C2\bin\Debug\net6.0\SimpleC2.exe
    • you'll get your call back in your python window and can test out the revserse shell functionality

Goals for Project

  • HTTP beaconing server
  • .net based reverse shell
  • Reverse shell functionality
  • Extend functionality with custom commands
  • Ability to load .net assemblies
  • Create a payloads to extend functionaliy
    • Keylogger
    • Disable logging
  • Ability to run powershell scripts

simplec2's People

Contributors

mattfindley avatar

Stargazers

Graham Moss avatar  avatar  avatar David avatar

Watchers

 avatar

Forkers

securepadawan

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.