File xray.spec of Package xray
#
# spec file for package xray
#
# Copyright (c) 2022, Martin Hauke <mardnh@gmx.de>
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
Name: xray
Version: 0~git20220827
Release: 0
Summary: A tool for network OSINT gathering
License: GPL-3.0-or-later
Group: Productivity/Networking/Diagnostic
#Git-Clone: https://github.com/evilsocket/xray.git
URL: https://github.com/evilsocket/xray
Source: %{name}-%{version}.tar.xz
Source1: vendor.tar.gz
BuildRequires: go1.18
BuildRequires: golang-packaging
%{go_provides}
%description
XRay is a tool for network OSINT gathering, its goal is to make
some of the initial tasks of information gathering and network
mapping automatic.
XRay is a very simple tool, it works this way:
* It'll bruteforce subdomains using a wordlist and DNS requests.
* For every subdomain/ip found, it'll use Shodan to gather open
ports and other intel.
* If a ViewDNS API key is provided, for every subdomain
historical data will be collected.
* For every unique ip address, and for every open port, it'll
launch specific banner grabbers and info collectors.
* Eventually the data is presented to the user on the web ui.
Grabbers and Collectors
* HTTP Server, X-Powered-By and Location headers.
* HTTP and HTTPS robots.txt disallowed entries.
* HTTPS certificates chain ( with recursive subdomain grabbing
from CN and Alt Names ).
* HTML title tag.
* DNS version.bind. and hostname.bind. records.
* MySQL, SMTP, FTP, SSH, POP and IRC banners.
%prep
%autosetup -a 1
#TODO: Support für die wordlists reinbauen
%build
go build \
-mod=vendor \
-buildmode=pie \
-o xray.bin .
%install
install -D -m0755 xray.bin %{buildroot}%{_bindir}/xray
%files
%license LICENSE
%doc README.md
%{_bindir}/xray
%changelog