Skip to content
leg3ndProjects & tools
01Home02Projects03Tools04Notes
GMT+8
O/ OSCP exploitation reference
Workspace controls Memory only · 0 steps
Visualize path ↗
Command values 0 filled

Temporary connection values clear on reload. Passwords, hashes and tickets remain placeholders. Check address-family syntax in the selected command.

Reference index ↗ Search all procedures & variants ↗
01Discovery02Enumeration03Initial access04Usable access05Local privilege06Active Directory07Internal access08Evidence & reporting

QUICK REFERENCE

Discovery›Services›Web mapping›Web exploitation›Credentials›Public exploits›Sessions & transfers›Linux escalation›Windows escalation›AD enumeration›AD identity attacks›Lateral movement›Pivoting & tunnels›Execution troubleshooting›Integration & evidence›
174 methods · 15 topicsFull reference on GitHub ↗Commands · scripts · next steps
Tools/OSCP/Usable access/Execution troubleshooting
← All execution troubleshooting tasks

Interpret endpoint-control evidence and select a justified alternative

CommandsIf → thenExplanation & examples

Needs: Observable evidence at the relevant boundary and a compatible alternative whose own prerequisites hold

Windows Defender status, when the current identity can query it

ObservationMost useful next action
Transferred hash differsRepair transfer/encoding before execution
File arrives then vanishesInspect quarantine/detection events and resource path
File remains; process creation deniedInspect AppLocker/WDAC, permissions and parent process
Script-loading policy errorInspect scope/precedence; use an authorized process-only invocation if applicable
Explicit AMSI/content blockTreat content/control as confirmed; encoding alone is not a supported conclusion
Process starts then exitsCapture exit/error, dependency and architecture evidence
Process remains; no connectionTest target egress, LHOST and listener
TCP handshake then closeHandler/payload mismatch, stage failure, crash or control interruption
  • changing a filename does not imply a new payload;
  • Base64 does not imply concealment from AMSI;
  • an in-memory technique is not automatically invisible;
  • an encoder is primarily useful for transport/bad-character constraints, not guaranteed AV bypass;
  • a clean third-party scanner result does not prove execution on the target and may disclose a private sample.

Windows Defender status, when the current identity can query it:

# Windows Defender status, when the current identity can query it
Get-MpComputerStatus |
  Select-Object AntivirusEnabled,RealTimeProtectionEnabled,BehaviorMonitorEnabled,IoavProtectionEnabled

For MOTW/Office/Library-file delivery, execution-policy precedence, AMSI/AppLocker/Defender evidence and restricted Metasploit module/session handling, continue with payload execution obstacles.

Verify → Tie the observed block to the artifact/process and preserve the exact error/event context privately.

If it fails → No event visibility leaves the diagnosis inconclusive. Deep control-bypass development is not added through troubleshooting. More detail ↓

If → then

  • A downloaded/generated artifact exists but does not run → Match an artifact to its executable consumer and runtime

    Needs: Matching OS/process architecture, interpreter/loader/runtime, intact bytes, execute/destination permissions and compatible format

  • An exploit sends requests but authentication, routing or parsing differs from the target → Repair a web PoC using the real HTTP transaction

    Needs: A valid baseline transaction with correct host, base path, session/CSRF state and request encoding

  • A WinRM listener and a candidate endpoint-authorized account → Use WinRM, WinRS or PowerShell remoting

    Needs: Reachable HTTP(S) listener, accepted authentication and endpoint/session configuration permissions; hash/ticket support depends on client/context

No useful finding → another task in this topic. Failed check → resolve the failure before ruling out the path.

Explanation & examples

Interpret endpoint-control evidence and select a justified alternative

USE WHEN
An artifact disappears, a process is blocked, or execution is stopped with a policy/security event
STARTING ACCESS
A recorded delivery/execution chain with the expected consumer and effect
RESULT
A supported failure classification and selected alternative delivery/execution path

Recognize the clue

Check artifact persistence/hash and, when permitted, the matching security/policy event before labelling a missing effect as endpoint detection.

Test-Path .\FILE
Get-FileHash .\FILE -Algorithm SHA256 -ErrorAction SilentlyContinue
SYNTHETIC EXAMPLE OUTPUT
After transfer: file present with expected hash
Before launch: file absent
Matching security event: inspect

Means: A disappearing artifact narrows the boundary but does not identify a particular control without corroboration.

Confirm: Correlate file/process/event identity, time and exact action before selecting an alternative consumer.

After validation
Specific control evidence identifies the block and another permitted compatible method exists: select that alternative.
Ruled out in this context
The file is intact and the actual error is wrong architecture: reject the detection hypothesis.
Still inconclusive
No event visibility leaves the cause possible/inconclusive; do not invent an AMSI/AV diagnosis.

Troubleshooting: No event visibility leaves the diagnosis inconclusive. Deep control-bypass development is not added through troubleshooting.

ObservationMost useful next action
Transferred hash differsRepair transfer/encoding before execution
File arrives then vanishesInspect quarantine/detection events and resource path
File remains; process creation deniedInspect AppLocker/WDAC, permissions and parent process
Script-loading policy errorInspect scope/precedence; use an authorized process-only invocation if applicable
Explicit AMSI/content blockTreat content/control as confirmed; encoding alone is not a supported conclusion
Process starts then exitsCapture exit/error, dependency and architecture evidence
Process remains; no connectionTest target egress, LHOST and listener
TCP handshake then closeHandler/payload mismatch, stage failure, crash or control interruption

Modern protection can inspect files, scripts after decoding, process memory, behavior and network activity. Therefore:

  • changing a filename does not imply a new payload;
  • Base64 does not imply concealment from AMSI;
  • an in-memory technique is not automatically invisible;
  • an encoder is primarily useful for transport/bad-character constraints, not guaranteed AV bypass;
  • a clean third-party scanner result does not prove execution on the target and may disclose a private sample.

Prefer the least complex route already supported by evidence: a direct command, native interpreter, authenticated management service or simple command shell may meet the objective without a custom binary. Deep shellcode development, process-injection implementation and generalized AV-bypass recipes are outside this speedrun.

Windows Defender status, when the current identity can query it:

Do not label every failure “AV.” Differentiate:

  • file never arrived or hashes differ;
  • file arrived and disappeared/quarantined;
  • process creation was denied;
  • script content was blocked;
  • process started and exited/crashed;
  • callback was blocked after execution;
  • application-control or language-mode restrictions;
  • ordinary format, architecture, permission or dependency errors.

Prefer an already available native or authenticated route when it satisfies the objective. Encoding is transport representation, not proof of evasion. Custom shellcode development and deep AV-bypass work are outside this unit.

For MOTW/Office/Library-file delivery, execution-policy precedence, AMSI/AppLocker/Defender evidence and restricted Metasploit module/session handling, continue with payload execution obstacles.

Why it works

Disappearance, access denial and a missing callback are not interchangeable proof of antivirus detection. Hash, file persistence, process creation and available events narrow the failed boundary.

Worked example · hypothetical

Observation: the transferred file vanishes before it is launched. Test: verify transfer integrity and available control events. Illustrative output: quarantine evidence names the file. Interpretation: execution has not been demonstrated; choose a justified allowed approach rather than changing listener syntax.

New identity, privilege, host or route? Re-enumerate → All topic tasks →

Study guide ↗Full procedure ↗Cheatsheet ↗
HomeProjectsToolsNotes
Interactive toolsOSCP notes ↗Extended OSCP workspace ↗Attack-path visualizer ↗

© 2026 Armaan. Built with curiosity.

GitHub ↗GMT+8