Skip to content

padsalatushal/Malicious-Debian-Package-Maker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Malicious-Debian-Package-Maker

Simple script to inject bash script inside any debian package. It utilises preinst and postinst scripts as a medium to run user defined bash script. This script depends on dpkg-deb command line to achieve it's task, so make sure you have it on your system.

Install

git clone https://github.com/Trushal2004/Malicious-Debian-Package-Maker.git
cd Malicious-Debian-Package-Maker/
python3 -m pip install -r requirements.txt
chmod +x main.py
./main.py

Help

$./main.py --help
usage: python3 ./main.py -p debian_package -s bash_script

Inject bash script in debian package

optional arguments:
  -h, --help         show this help message and exit
  -v, --version      show the version of program
  -s bash script     Enter your bash script path
  -p debian package  Enter your debian package path

EXAMPLE - python3 ./main.py -p /tmp/file.deb -s /tmp/script.sh

Demo

image

image

Resources

https://www.youtube.com/watch?v=1FOHV8fr6bI

About

Inject your own bash script inside any Debian package.

Topics

Resources

License

Stars

Watchers

Forks

Languages