Skip to content

Commit

Permalink
add maltego
Browse files Browse the repository at this point in the history
  • Loading branch information
thelamer committed Apr 27, 2024
1 parent 774bef4 commit b23fa57
Show file tree
Hide file tree
Showing 6 changed files with 80 additions and 0 deletions.
43 changes: 43 additions & 0 deletions apps/maltego/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
ARG REPO
FROM ghcr.io/${REPO}:debian-bookworm-av as rootfs
ARG REPO

# Install packages
RUN \
echo "**** install packages ****" && \
apt-get update && \
apt-get install -y --no-install-recommends \
default-jre \
jq && \
DEB_URL=$(curl -sL https://downloads.maltego.com/maltego-v4/info.json \
| jq -r '.[] | select(.os == "linux" and .["file-type"] == ".deb") | .url') && \
curl -o \
/tmp/maltego.deb -L \
"${DEB_URL}" && \
apt install -y --no-install-recommends \
/tmp/maltego.deb && \
echo "**** customize desktop file ****" && \
sed -i \
-e "/^Exec=/c Exec=/bin/sh -c \"\$HOME\/.local\/bin\/proot-apps run ghcr.io/${REPO}:maltego %U\"" \
-e "s/Name=Maltego/Name=Maltego PA/g" \
-e '/^TryExec=/d' \
/usr/share/applications/maltego.desktop && \
mv \
/usr/share/applications/maltego.desktop \
/usr/share/applications/maltego-pa.desktop && \
echo "**** set bin name ****" && \
echo "maltego-pa" > /bin-name && \
echo "**** cleanup ****" && \
apt-get autoclean && \
rm -rf \
/root/.cache \
/var/lib/apt/lists/* \
/var/tmp/* \
/tmp/*

COPY ./entrypoint /entrypoint
COPY ./install /install
COPY ./remove /remove

FROM scratch
COPY --from=rootfs / /
4 changes: 4 additions & 0 deletions apps/maltego/entrypoint
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/bash

# Start Maltego
maltego "$@"
19 changes: 19 additions & 0 deletions apps/maltego/install
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#!/bin/bash

## Desktop and icons install ##
echo "Adding icon"
mkdir -p $HOME/.local/share/icons/hicolor/scalable/apps/
cp \
/usr/share/pixmaps/maltego.png \
$HOME/.local/share/icons/hicolor/scalable/apps/
echo "Adding start menu entry"
mkdir -p $HOME/.local/share/applications/
cp \
/usr/share/applications/maltego-pa.desktop \
$HOME/.local/share/applications/
echo "Adding desktop shortcut"
mkdir -p $HOME/Desktop
cp \
/usr/share/applications/maltego-pa.desktop \
$HOME/Desktop/
chmod +x $HOME/Desktop/maltego-pa.desktop
7 changes: 7 additions & 0 deletions apps/maltego/remove
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/bash
echo "Removing icon"
rm -f $HOME/.local/share/icons/hicolor/scalable/apps/maltego.png
echo "Removing start menu entry"
rm -f $HOME/.local/share/applications/maltego-pa.desktop
echo "Removing desktop shortcut"
rm -f $HOME/Desktop/maltego-pa.desktop
1 change: 1 addition & 0 deletions metadata/img/maltego.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions metadata/metadata.yml
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,12 @@ include:
arch: linux/amd64,linux/arm64
icon: lollypop.svg
description: "Lollypop is a lightweight modern music player designed to work excellently on the GNOME desktop environment."
- name: maltego
full_name: Maltego
arch: linux/amd64,linux/arm64
icon: maltego.svg
description: "Maltego is link analysis software used for open-source intelligence, forensics and other investigations."
disabled: True
- name: melonds
full_name: melonDS
arch: linux/amd64,linux/arm64
Expand Down

0 comments on commit b23fa57

Please sign in to comment.