Skip to content

Commit a01149e

Browse files
committed
Fix kali deb build
1 parent 3b32709 commit a01149e

File tree

7 files changed

+27
-5
lines changed

7 files changed

+27
-5
lines changed

.github/workflows/kali-package.dockerfile

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,16 @@
11
From kalilinux/kali-rolling:latest
22

33
RUN apt-get update -y && apt-get install --no-install-recommends -y \
4-
git python3 python3-pip debhelper cmake\
4+
git python3 python3-pip debhelper cmake gcc-13 g++-13\
55
dh-virtualenv build-essential devscripts equivs \
66
&& apt-get clean \
77
&& rm -rf /var/lib/apt/lists/*
88

9+
ENV CC=gcc-13 CXX=g++-13
10+
11+
COPY ping /usr/bin/ping
12+
RUN chmod +x /usr/bin/ping
13+
914
WORKDIR /root/
1015
COPY quark-engine /root/quark-engine
1116

.github/workflows/kali-package.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ jobs:
1818
run: |
1919
cd ..
2020
cp quark-engine/.github/workflows/kali-package.dockerfile .
21+
cp quark-engine/.github/workflows/ping .
2122
docker build . --file kali-package.dockerfile -t packaging_for_kali
2223
cd -
2324
@@ -27,7 +28,7 @@ jobs:
2728
docker cp factory:/root/ .
2829
2930
- name: Upload package as artifact
30-
uses: actions/upload-artifact@v3
31+
uses: actions/upload-artifact@v4
3132
with:
3233
name: kali-package
3334
path: '${{ github.workspace }}/root/*.deb'

.github/workflows/ping

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#!/usr/bin/bash
2+
3+
cat <<< "PING www.google.com (142.250.196.196) 56(84) bytes of data.
4+
64 bytes from nctsaa-ac-in-f4.1e100.net (142.250.196.196): icmp_seq=1 ttl=115 time=44.5 ms
5+
64 bytes from nctsaa-ac-in-f4.1e100.net (142.250.196.196): icmp_seq=2 ttl=115 time=227 ms
6+
7+
--- www.google.com ping statistics ---
8+
2 packets transmitted, 2 received, 0% packet loss, time 1001ms
9+
rtt min/avg/max/mdev = 44.475/135.747/227.019/91.272 ms"
10+

debian/control

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Package: quark-engine
1515
Architecture: all
1616
Depends: ${misc:Depends},
1717
${python3:Depends},
18-
rizin
18+
libzip5
1919
Description: Android Malware (Analysis | Scoring System)
2020
Quark-Engine is a full-featured Android analysis framework written in
2121
Python for hunting threat intelligence inside the APK, DEX files.

debian/quark-engine.links

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
/opt/venvs/quark-engine/bin/quark usr/bin/quark
22
/opt/venvs/quark-engine/bin/freshquark usr/bin/freshquark
3-
3+
/usr/share/quark-engine/quark/libshuriken.so /usr/local/lib/libshuriken.so

debian/rules

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,9 @@ export PYBUILD_DISABLE=test
66

77
%:
88
dh $@ --with python-virtualenv
9+
10+
11+
override_dh_virtualenv:
12+
dh_virtualenv
13+
cp /usr/local/lib/libshuriken.so quark
14+
dh_install

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"rzpipe",
1717
"click",
1818
"r2pipe==1.8.0",
19-
"ShurikenAnalyzer @ git+https://github.com/Fare9/Shuriken-Analyzer.git@c6087e5cd6308c6df82c8c44239d231bcdfde59e#subdirectory=shuriken/bindings/Python/"
19+
"ShurikenAnalyzer @ git+https://github.com/Fare9/Shuriken-Analyzer.git@b26778813b487aa55e7e183d153ec83300f4e075#subdirectory=shuriken/bindings/Python/"
2020
]
2121

2222
quarkAgentRequirements = [

0 commit comments

Comments
 (0)