Skip to content

Latest commit

 

History

History
129 lines (87 loc) · 4.5 KB

File metadata and controls

129 lines (87 loc) · 4.5 KB

Shellcode Tester for Windows Users

This file shows the specific procedures to Windows users.

General README

Before start this, please, views our general README

Installing Python3

  1. Download the latest version of Python3 from Python3
  2. Install Python3 for wide system users (as the step-by-step bellow)
  3. Make sure to put python at Windows SYSTEM PATH

Installing Python step-by-step

  1. Download the latest version of Python3 from Python3 Note: For this project we recommend Python version up to 3.10

  2. Execute python installer

  3. Select the options

    1. Install launcher for all users
    2. Add Python to PATH Python all users checkbox
  4. Select the following optional features

    1. pip
    2. py laucher
    3. for all users optional features
  5. Select the following advanced options

    1. Install for all users
    2. Associate files...
    3. Add Python to environment variables Advanced options
  6. Install Python

  7. After install, disable path length limit Disable path length limit

Set modules folder to windows PATH

After you install any package (as shellcodetester example) using pip install shellcodetester or pythin -m pip install shellcodetester you can receive a message indicating the python scripts folder is not present at SYSTEM Environment PATH, so check this message and path and set this one at your SYSTEM environment PATH

Python SYSTEM PATH

NASM

  1. Download the latest version of NASM from NASM
  2. Install NASM
  3. Put NASM binary folder C:\Program Files (x86)\NASM\ at Windows SYSTEM PATH

ObjDump

  1. Download Binutils from SourceForge BinUtils
  2. Create the program files path C:\Program Files (x86)\BinUtils\
  3. Extract download file and put all content of C:\Program Files (x86)\BinUtils\
  4. Put Binutils binary folder C:\Program Files (x86)\BinUtils\bin at Windows SYSTEM PATH

Install GCC

In order to install GCC you have several options

  1. Install Visual Studio (the best option)
  2. Install MinGW64 from Last Release
  3. Install Dev C++ (the simplest one)

Installing DEV C++

  1. Download Dev C++ from SourceForge Dev C++
  2. Install Dev C++
  3. Put MinGW64 binary folder C:\Program Files (x86)\Dev-Cpp\MinGW64\bin at Windows SYSTEM PATH

Visual C++ 2015-2019

Depending on the version of your Windows maybe you will need install Visual Studio C++

Optional procedures

Depending on what you will test, maybe you will need to disable some windows protections, so follows the instructions.

Disable Windows update

How to Turn Off Automatic Updates on Windows 10

Disable Windows Defender

How to permanently disable Windows Defender Antivirus on Windows 10

Disable Windows Firewall

How to Disable a Windows Firewall

Disable DEP

Open an elevated Command Prompt and run the command bellow

bcdedit.exe /set {current} nx AlwaysOff

Disable ASLR

Download reg file Disable_ASLR.reg

Open an elevated Command Prompt and run the command bellow

Regedit.exe Disable_ASLR.reg

or open an elevated Powershell prompt and run the command bellow

Set-ItemProperty -Path "HKLM:SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management" -Name MoveImages -Type DWord -Value 0

Disable SEHOP

Download reg file Disable_SEHOP.reg Open an elevated Command Prompt and run the command bellow

Regedit.exe Disable_SEHOP.reg

or open an elevated Powershell prompt and run the command bellow

Set-ItemProperty -Path "HKLM:SYSTEM\CurrentControlSet\Control\Session Manager\kernel" -Name DisableExceptionChainValidation -Type DWord -Value 1