Amnesiac
  • Welcome
  • Intended Usage
  • Get-Started
    • Quick Start
  • Main Menu
    • Available Commands
    • Main Menu Structure
    • [0] Scan Network for Admin Access
    • [1] Single-Listener (single target)
    • [2] Global-Listener (multiple targets)
    • [3] Scan Network for Listening Targets
    • Bookmarks
    • Payload Types
    • Payload Delivery
    • Serving Scripts
    • Sessions Display
    • Targets
    • Terminate Sessions
  • Sessions
    • Core Commands
      • Download
      • Exit
      • GListener
      • GLSet
      • Help
      • Kill
      • OneIsNone
      • Scramble
      • Sync
      • Toggle
      • Upload
    • System Commands
      • AV
      • Net
      • Process
      • Services
      • Sessions
      • Software
      • Startup
    • User Activity
      • ClearLogs
      • Clipboard
      • History and ClearHistory
      • Keylog and KeylogRead
      • ScreenShot and Screen4K
    • Scripts Loading
      • Mimi
      • Patch and PatchNet
      • PInject
      • PowerView
      • Rubeus
      • TLS
    • Local Actions
      • Ask4Creds
      • AutoMimi
      • CredMan
      • Dpapi
      • GetSystem
      • HashGrab
      • Hive
      • Kerb
      • Migrate
      • Monitor
    • Domain Actions
      • DCSync
      • CredValidate
      • Impersonation
      • LocalAdminAccess
      • PassSpray
      • Remoting
      • SessionHunter
  • Beware
    • Encryption
    • Non-Domain-Joined systems
    • SessionID 0
    • Timeouts
Powered by GitBook
On this page
  1. Sessions
  2. Scripts Loading

PInject

Load ProcessInjection | https://github.com/3xpl01tc0d3r/ProcessInjection

Last updated 1 year ago

The PInject command in Amnesiac is used to load the ProcessInjection tool, which was designed for process injection. Process injection is a technique used to hide the execution of malware code within the address space of a legitimate process.

To load the ProcessInjection module, simply type PInject in your active Amnesiac session.

This module provides you with the capability to specify two critical parameters:

  1. Target Process: specify the target process into which you want to inject your shellcode.

  2. Shellcode: the shellcode you want to inject into the target process in hexadecimal format.

To generate the shellcode, you have a couple of options:

  • Use the ShellGen command provided in Amnesiac. Simply follow it with the command you want to execute on the target via process injection. ShellGen will then convert that command into shellcode, which you can subsequently use with the PInject command for injection.

  • Alternatively, you can use the msfvenom tool from the Metasploit Framework to generate your shellcode with specific payloads and configurations.

The combination of PInject and ShellGen allows you to perform execution of arbitrary code within a running process.