From 934121ac127540b305e6397db57b450692e6cda2 Mon Sep 17 00:00:00 2001 From: xf0r3m Date: Thu, 11 Jan 2024 09:42:49 +0100 Subject: [PATCH] =?utf8?q?Kod=20PHP=20modu=C5=82u=20immudex=20-=20BT=20#15?= =?utf8?q?1?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- module/immudex.php | 43 ++++++++++++++----------------------------- 1 file changed, 14 insertions(+), 29 deletions(-) diff --git a/module/immudex.php b/module/immudex.php index 30c83ba..82b82e6 100755 --- a/module/immudex.php +++ b/module/immudex.php @@ -1,37 +1,21 @@ #!/usr/bin/php -d log_errors=Off https://ftp.morketsmerke.org/immudex/" . $branch . "/iso/" . $version . "/immudex" . $arch . ".iso"; - } else { - echo "https://ftp.morketsmerke.org/immudex/" . $branch . "/iso/" . $version . "/immudex-" . $branch . $arch . ".iso"; - } - + function getLink($version, $branch="sdk", $arch="amd64") { + echo "https://sourceforge.net/projects/immudex/files/immudex/" . $branch . "/immudex-" . $branch . "_" . $version . "_" . $arch . ".iso/download"; } - function getCRC($branch, $version, $arch) { - if ( $branch == "stable" ) { - $crcArray=explode(' ', trim(file_get_contents("https://ftp.morketsmerke.org/immudex/" . $branch . "/iso/" . $version . "/immudex" . $arch . "_" . $version . "_crc.txt"))); - return $crcArray[0]; - } else { - $crcArray=explode(' ', trim(file_get_contents("https://ftp.morketsmerke.org/immudex/" . $branch . "/iso/" . $version . "/immudex-" . $branch . $arch . "_" . $version . "_crc.txt"))); + function getCRC($version, $branch="sdk", $arch="amd64") { + $crcArray=explode(' ', trim(file_get_contents("https://master.dl.sourceforge.net/project/immudex/immudex/" . $branch . "/immudex-" . $branch . "_" . $version . "_" . $arch . "_crc.txt?viasf=1"))); return $crcArray[0]; - } } - function getSHA1($branch, $version, $arch) { - if ( $branch == "stable" ) { - $sha1Array=explode(' ', trim(file_get_contents("https://ftp.morketsmerke.org/immudex/" . $branch . "/iso/" . $version . "/immudex" . $arch . "_" . $version . "_sha1.txt"))); + function getSHA1($version, $branch="sdk", $arch="amd64") { + $sha1Array=explode(' ', trim(file_get_contents("https://master.dl.sourceforge.net/project/immudex/immudex/" . $branch . "/immudex-" . $branch . "_" . $version . "_" . $arch . "_sha1.txt?viasf=1"))); return $sha1Array[0]; - } else { - $sha1Array=explode(' ', trim(file_get_contents("https://ftp.morketsmerke.org/immudex/" . $branch . "/iso/" . $version . "/immudex-" . $branch . $arch . "_" . $version . "_sha1.txt"))); - return $sha1Array[0]; - } - } ?> @@ -338,18 +322,19 @@ - - - - - + +
• immudex-sdk (Debian 12 Bookworm) •
64-bit: + + +
CRC: 3126496459SHA1: ad720604890e5e2f3397c0a9f86c57b4d1ecdc06

-- 2.39.5