GithubHelp home page GithubHelp logo

gp_hijack's Introduction

GroupPolicy Hijacking


Warning

Current version of a script will turns on karma smb for all smb traffic. So when you MiTM your victim and his DC (domain controller), all SMB functionality excep those that need for a Group Policy hijacking will be lost!


Version 1.0

This script allows you to exploit Group Policy Hijacking attack to get an RCE.

What it does:

Setup mode

  • Download and setup Impacket (which consists karmaSMB)
  • Create necessary files: config and different files to be returned by karma SMB
  • Create malicious payload via msfvenom or choose your own script
  • Copy paylod to relevant folder

Run mode

  • Check and if necessary creates iptables rules for supplied IP addresses
  • Check and if necessary run apache2 or vsftpd
  • Increment version GPT.ini
  • Run karmaSMB with created config (created in setup mode)
  • Write logs of karmaSMB activity

Config mode

  • Change a way of the shell delivering
  • Change type of the shell: custom or msf

Read mode

  • Read config created in setup mode

Related research/articles

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.