Skip to content
KitploitKITPLOIT
ToolsBlog
Submit
ToolsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

··Feeds·Contact·Privacy·© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
PwnCtfTool — Automated ret2win exploit tool for CTF challenges. Finds stack offset, generates payloads, supports remote exploitation, and attaches GDB for debugging x86 binaries. | Kitploit
Tools/GitHubGitHub/diego-altf4/pwnctftool
Payload GenerationExploitationCTFPenetration TestingBinary Exploitation
GitHubdiego-altf4/pwnctftool

PwnCtfTool

Automated ret2win exploit tool for CTF challenges. Finds stack offset, generates payloads, supports remote exploitation, and attaches GDB for debugging x86 binaries.

View Repository
1414 years agoNot yet reviewed

Most Popular

View all →

Discover the most used tools by our community.

Explore all tools

Browse our collection of tools

View all tools →
Share


Tool for ret2win challenges.

root@kitploit:~
    ____                 ________  __________            __
   / __ \_      ______  / ____/ /_/ __/_  __/___  ____  / /
  / /_/ / | /| / / __ \/ /   / __/ /_  / / / __ \/ __ \/ / 
 / ____/| |/ |/ / / / / /___/ /_/ __/ / / / /_/ / /_/ / /  
/_/     |__/|__/_/ /_/\____/\__/_/   /_/  \____/\____/_/   
                                                           
                By: DiegoAltF4 and Dbd4

Introduction

It can be used both locally and remotely (indicating IP and port). It automatically finds the offset to the Instruction Pointer stored in the stack.

Furthermore, it can be configured to return a shell. By default, it prints the data received by the connection (possible flag).

It also allows to display the offset to the instruction pointer in the stack and supports x86 architecture in both 32-bit and 64-bit and it can be used to debug the exploit with GDB.

Parameters

ParameterInformation
-findicates the binary to be exploited (mandatory parameter).
-tindicates the target function we want to jump to (mandatory parameter).
-vindicates verbose info mode.
-vvindicates maximum verbosity value, debug mode.
-gallows attaching GDB for debugging purposes.
--offsetprints the offset to the Instruction Pointer.
--shellallows an interactive session to be maintained after exploitation.
--remoteallows to exploit on a remote server.
--beforeallows you to add content from a file before the payload.
--afterallows you to add content from a file after the payload.

Basic usage:

root@kitploit:~
./PwnCtfTool.py -f vuln.bin -t flag_func

Advanced use with examples

In this part, we will explain the different uses of the tool with examples. We have uploaded a list of vulnerable binaries and we will update this list as we include new options in the tool. To make it easier to find the information we will indicate the parameters used in the final command that allows us to exploit the binary. In addition, we are going to classify the difficulty of the challenges using the 💣 emoji. A single bomb means that it is very easy, five bombs indicates that the difficulty is very high. For each challenge we have included a small writeup that explains in much more detail how we can get to the solution.

Vulnerable binary resolution 1

Using the -f -t --shell --offset parameters

For all the explanation you can read the writeup:

  • Vuln1 💣

Final command:

root@kitploit:~
python3 ../../PwnCtfTool.py -f ./vuln1 -t win --shell --offset

Vulnerable binary resolution 2

Using -f -t --before --shell parameters

For all the explanation you can read the writeup:

  • Vuln2 💣

Final command:

root@kitploit:~
python3 ../../PwnCtfTool.py --before before2.txt -f vuln2 -t rce --shell

Installation:

root@kitploit:~
git clone https://github.com/Diego-AltF4/PwnCtfTool.git
cd ./PwnCtfTool
pip3 install -r requirements.txt
chmod +x PwnCtfTool.py
./PwnCtfTool.py

Acknowledgements


David Billhardt

Created by DiegoAltF4 and Dbd4

Download Tool