Skip to content

Commit

Permalink
add script for build deb package
Browse files Browse the repository at this point in the history
  • Loading branch information
Yisus7u7 committed Dec 17, 2021
1 parent c057b04 commit cd23a75
Show file tree
Hide file tree
Showing 4 changed files with 66 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .package/DEBIAN/control
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
Package: zphisher
Version: 2.2
Installed-Size: 9400
Architecture: all
Maintainer: @htr-tech
Depends: php, wget, git, curl
Homepage: https://github.com/htr-tech/zphisher
Description: An automated phishing tool with 30+ templates. This Tool is made for educational purpose only !
8 changes: 8 additions & 0 deletions .package/TERMUX/control
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
Package: zphisher
Version: 2.2
Installed-Size: 9400
Architecture: all
Maintainer: @htr-tech
Depends: php, wget, git, curl, resolv-conf, proot
Homepage: https://github.com/htr-tech/zphisher
Description: An automated phishing tool with 30+ templates. This Tool is made for educational purpose only !
12 changes: 12 additions & 0 deletions .package/launch.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/bin/bash

DISTRO=$(uname -o)

if [ $DISTRO == Android ]; then
export ZPHISHER_ROOT="/data/data/com.termux/files/usr/opt/zphisher"
else
export ZPHISHER_ROOT="/usr/opt/zphisher"
fi

cd $ZPHISHER_ROOT
bash ./zphisher.sh
38 changes: 38 additions & 0 deletions make-deb.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
#!/bin/bash
PACKAGE_NAME=zphisher
ZPHISHER_VERSION=2.2
PACKAGE_ARCH=all
DISTRO=$(uname -o)

echo "Building Zphisher deb package..."

build_termux(){
mkdir -p ./package/DEBIAN
mkdir -p ./package/data/data/com.termux/files/usr/bin
mkdir -p ./package/data/data/com.termux/files/usr/opt
cp -rf ./.package/TERMUX/control ./package/DEBIAN/control
mkdir -p package/data/data/com.termux/files/usr/opt/$PACKAGE_NAME
cp -rf ./LICENSE ./.sites ./.imgs ./zphisher.sh ./package/data/data/com.termux/files/usr/opt/$PACKAGE_NAME
cp -rf ./.package/launch.sh ./package/data/data/com.termux/files/usr/bin/$PACKAGE_NAME
chmod 755 ./package/DEBIAN
dpkg-deb --build ./package $PACKAGE_NAME\_$ZPHISHER_VERSION\_$PACKAGE_ARCH.deb

}

build_linux(){
mkdir -p ./package/DEBIAN
mkdir -p ./package/usr/bin
mkdir -p ./package/usr/opt
cp -rf ./.package/TERMUX/control ./package/DEBIAN/control
mkdir -p package/usr/opt/$PACKAGE_NAME
cp -rf ./LICENSE ./.sites ./.imgs ./zphisher.sh ./package/usr/opt/$PACKAGE_NAME
cp -rf ./.package/launch.sh ./package/usr/bin/$PACKAGE_NAME
chmod 755 ./package/DEBIAN
dpkg-deb --build ./package $PACKAGE_NAME\_$ZPHISHER_VERSION\_$PACKAGE_ARCH.deb
}

if [ $DISTRO == Android ]; then
build_termux
else
build_linux
fi

0 comments on commit cd23a75

Please sign in to comment.