From patchwork Tue May 7 12:33:35 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jugurtha BELKALEM X-Patchwork-Id: 1096324 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=busybox.net (client-ip=140.211.166.137; helo=fraxinus.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=smile.fr Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=smile-fr.20150623.gappssmtp.com header.i=@smile-fr.20150623.gappssmtp.com header.b="rbCKcwT7"; dkim-atps=neutral Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 44yzYQ5qgTz9sB8 for ; Tue, 7 May 2019 22:33:46 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 4E06985233; Tue, 7 May 2019 12:33:45 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 560I2BVUOyvQ; Tue, 7 May 2019 12:33:44 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id 4B294854B4; Tue, 7 May 2019 12:33:44 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 622021BF2B7 for ; Tue, 7 May 2019 12:33:42 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 5F1568568D for ; Tue, 7 May 2019 12:33:42 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id A+TImwUAecI6 for ; Tue, 7 May 2019 12:33:41 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wr1-f66.google.com (mail-wr1-f66.google.com [209.85.221.66]) by whitealder.osuosl.org (Postfix) with ESMTPS id 2F3E0855B1 for ; Tue, 7 May 2019 12:33:41 +0000 (UTC) Received: by mail-wr1-f66.google.com with SMTP id w12so8650292wrp.2 for ; Tue, 07 May 2019 05:33:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=smile-fr.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id; bh=8oMYqYXY6WMo3PpowPVLFlJIcbEPQpUtbdYCUCIhT7E=; b=rbCKcwT7D/M/2sofmY+vdyVdRPsUVVImyCgaF8XlOvZF1CD7NQZjzIjR67EDCiyQDR iqH8im5NBV/fxOm2BZa0Po/ih6ujg5twMDkg061EcO0bjz7TD3/RomQN5rtR5rY49/z1 UgqajbaYACmL0VrFsWoAy1kYSOdmLxws4m3NLd/vum6tGL/j0e77LDe2bImSp42PAsey rMpIUY0RMZ/GUDc/sy0khRLUlobOtp5tVt6kqy76r/m332GRQDjpr/laD7oNMYm3Hywg QNFfsyz3ualxCeAuWWVm+4z14NFxpzDF12S3v2Bw12ZdH1YDCrL7bmzMOZOHAZ3G85EF o/RQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=8oMYqYXY6WMo3PpowPVLFlJIcbEPQpUtbdYCUCIhT7E=; b=CI+VPJtGSFBly+E1Tx7VYOvfxpDwK5UGXTO6r1Mc6zU6jqJfxywv7sx4ctpsvdBwcX d0hCw1q2BCVtq427yuSRCKQ+uO3XW0Ia/kYq4Fzy6oeLOlrOLoKmI3NNL9ezVV8o9jLV 6zQ6AQxFnHcj/leeS7ugeN0R0u2jrV5nED8+odtmFkp39WbptZPiK1r88fW/EDUlgey7 gC7b1FQQwqBkpBn5CdEgCaGvflnxWIKMltr/Q+CAg0P9TBbD9rE4c100R/2dNpqSuNDC mIZFGEKNnAzMwlz8VEZKagzOyveM9sft6T7vJS19yShAunk8hEMQrM16zNIhozi5O6Ao AGZA== X-Gm-Message-State: APjAAAUIoEduYWEbTfX83+K3j/8DVgPbo+rHGc+Y/yDRnJ9Yq6fo9GmP wd0d0Div7DBInPCRUa3J8gZnLDAXpww= X-Google-Smtp-Source: APXvYqwlUQOKcXOPIMIlD8D2/8MAPzJ48SbN/JDCi95RFSB7NGggP4RJBAXeJu9NE2v6CU2ndmT29A== X-Received: by 2002:adf:cd0d:: with SMTP id w13mr6600676wrm.38.1557232419325; Tue, 07 May 2019 05:33:39 -0700 (PDT) Received: from P-NAN-SUCRE.nantes.intranet (static-css-ccs-204145.business.bouyguestelecom.com. [176.157.204.145]) by smtp.gmail.com with ESMTPSA id u8sm14146901wmj.27.2019.05.07.05.33.38 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 07 May 2019 05:33:38 -0700 (PDT) From: Jugurtha BELKALEM To: buildroot@buildroot.org Date: Tue, 7 May 2019 14:33:35 +0200 Message-Id: <1557232415-11421-1-git-send-email-jugurtha.belkalem@smile.fr> X-Mailer: git-send-email 2.7.4 Subject: [Buildroot] [PATCH] package/ettercap: new package X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Jugurtha BELKALEM MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Ettercap is a comprehensive suite for man in the middle attacks. It features sniffing of live connections, content filtering on the fly and many other interesting tricks. Ettercap can help identify misconfigured networks, testing intrusion detection and prevention applications and build robust embedded systems that are "security by design" compliant. This tool can be used for security testing or educational purposes. Master branch from : https://github.com/Ettercap/ettercap was used as the source for this packet as it remains in active development (unlike release version which dates back to 2015). More information is available at: https://www.ettercap-project.org/ Signed-off-by: Jugurtha BELKALEM --- DEVELOPERS | 3 ++ package/Config.in | 1 + .../0001-Fix-invalid-utf-8-is-not-supported.patch | 33 ++++++++++++++++++++++ package/ettercap/Config.in | 22 +++++++++++++++ package/ettercap/ettercap.hash | 3 ++ package/ettercap/ettercap.mk | 16 +++++++++++ 6 files changed, 78 insertions(+) create mode 100644 package/ettercap/0001-Fix-invalid-utf-8-is-not-supported.patch create mode 100644 package/ettercap/Config.in create mode 100644 package/ettercap/ettercap.hash create mode 100644 package/ettercap/ettercap.mk diff --git a/DEVELOPERS b/DEVELOPERS index 5bfc456..9246d96 100644 --- a/DEVELOPERS +++ b/DEVELOPERS @@ -1227,6 +1227,9 @@ F: package/python-xlib/ N: Joshua Henderson F: package/qt5/qt5wayland/ +N: Jugurtha BELKALEM +F: package/ettercap/ + N: Juha Rantanen F: package/acsccid/ diff --git a/package/Config.in b/package/Config.in index f592e74..52d08d3 100644 --- a/package/Config.in +++ b/package/Config.in @@ -1757,6 +1757,7 @@ endif endmenu menu "Security" + source "package/ettercap/Config.in" source "package/libselinux/Config.in" source "package/libsemanage/Config.in" source "package/libsepol/Config.in" diff --git a/package/ettercap/0001-Fix-invalid-utf-8-is-not-supported.patch b/package/ettercap/0001-Fix-invalid-utf-8-is-not-supported.patch new file mode 100644 index 0000000..9627cc3 --- /dev/null +++ b/package/ettercap/0001-Fix-invalid-utf-8-is-not-supported.patch @@ -0,0 +1,33 @@ +From b4f8a10100669806de6cb37b1c1f747539e93b31 Mon Sep 17 00:00:00 2001 +From: Jugurtha BELKALEM +Date: Tue, 7 May 2019 13:25:44 +0200 +Subject: [PATCH] Fix invalid utf-8 is not supported + +Fixes fatal error message generated even when +utf-8 is available. +Ettercap requires gettext package and works fine. + +Signed-off-by: Jugurtha BELKALEM +--- + ettercap-5fb604823c6063676ebdf7cac66b7807acb4f7ed/src/ec_format.c | 5 +---- + 1 file changed, 1 insertion(+), 4 deletions(-) + +diff --git a/src/ec_format.c b/ettercap-5fb604823c6063676ebdf7cac66b7807acb4f7ed/src/ec_format.c +index 5c9b850..dd9d972 100644 +--- a/src/ec_format.c ++++ b/src/ec_format.c +@@ -417,10 +417,7 @@ int set_utf8_encoding(u_char *fromcode) + + /* make sure encoding type is supported */ + cd = iconv_open("UTF-8", (const char*)fromcode); +- +- if (cd == (iconv_t)(-1)) +- SEMIFATAL_ERROR("The conversion from %s to UTF-8 is not supported.", fromcode); +- ++ + iconv_close(cd); + + utf8_encoding = strdup((const char*)fromcode); +-- +2.7.4 + diff --git a/package/ettercap/Config.in b/package/ettercap/Config.in new file mode 100644 index 0000000..fbab876 --- /dev/null +++ b/package/ettercap/Config.in @@ -0,0 +1,22 @@ +config BR2_PACKAGE_ETTERCAP + bool "ettercap" + select BR2_PACKAGE_ETHTOOL # runtime + select BR2_PACKAGE_GEOIP # runtime + select BR2_PACKAGE_GETTEXT # runtime + select BR2_PACKAGE_LIBCURL # runtime + select BR2_PACKAGE_LIBNET # runtime + select BR2_PACKAGE_LIBPCAP # runtime + select BR2_PACKAGE_LIBPTHREAD_STUB # runtime + select BR2_PACKAGE_NCURSES # runtime + select BR2_PACKAGE_OPENSSL # runtime + select BR2_PACKAGE_ZLIB # runtime + help + Ettercap is a comprehensive suite for man + in the middle attacks. It features sniffing of + live connections, content filtering on the fly + and many other interesting tricks. It supports + active and passive dissection of many protocols + and includes many features for network and + host analysis. + + http://www.ettercap-project.org/ diff --git a/package/ettercap/ettercap.hash b/package/ettercap/ettercap.hash new file mode 100644 index 0000000..776c34c --- /dev/null +++ b/package/ettercap/ettercap.hash @@ -0,0 +1,3 @@ +# Locally calculated +sha256 a6ea1b70f9e1d8ba8815ca540ff1571556d6ba19cfd05c409f518d03e669befc ettercap-5fb604823c6063676ebdf7cac66b7807acb4f7ed.tar.gz +sha256 8177f97513213526df2cf6184d8ff986c675afb514d4e68a404010521b880643 LICENSE diff --git a/package/ettercap/ettercap.mk b/package/ettercap/ettercap.mk new file mode 100644 index 0000000..b913708 --- /dev/null +++ b/package/ettercap/ettercap.mk @@ -0,0 +1,16 @@ +################################################################################ +# +# ettercap +# +################################################################################ + +ETTERCAP_VERSION = 5fb604823c6063676ebdf7cac66b7807acb4f7ed +ETTERCAP_SITE = $(call github,Ettercap,ettercap,$(ETTERCAP_VERSION)) +ETTERCAP_LICENSE = GPL-2.0 +ETTERCAP_LICENSE_FILES = LICENSE +ETTERCAP_SUPPORTS_IN_SOURCE_BUILD = NO +ETTERCAP_DEPENDENCIES = geoip host-ncurses libzlib \ + libcurl libnet libopenssl libpcap ncurses +ETTERCAP_CONF_OPTS = -DENABLE_GTK=NO + +$(eval $(cmake-package))