Repository of spec files needed to build the COPR r3pek/cybersec
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

149 lines
4.9 KiB

# spec file for package gsocket
# Copyright (c) 2021, Martin Hauke <>
# 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
# Used it to build on copr (r3pek)
Name: gsocket
Version: 1.4.33
Release: 1%{?subversion}%{?dist}
Summary: Global Socket - Connect like there is no firewall
License: BSD-2-Clause
Group: Productivity/Networking/Other
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: openssl-devel
BuildRequires: gcc
## tests
#BuildRequires: socat
#BuildRequires: bc
#BuildRequires: rsync
#BuildRequires: net-tools-deprecated
#BuildRequires: netcat
## /tests
Global Socket allows two workstations on different private
networks to communicate with each other. Through firewalls
and through NAT - like there is no firewall.
* Uses the Global Socket Relay Network to connect TCP pipes
* End-2-End encryption (using OpenSSL's SRP / RFC 5054)
* AES-256 & key exchange using 4096-bit Prime
* No PKI required.
* Perfect Forward Secrecy
* TOR support (optional)
Abandon the thought of IP Addresses and Port Numbers. Instead start
thinking that two programs should be able to communicate with each
other as long as they know the same secret (rather than each
other's IP Address and Port Number). The Global Socket library
facilitates this: It locally derives temporary session keys and IDs
and connects two programs through the Global Socket Relay Network
(GSRN) regardless and independent of the local IP Address or
geographical location. Once connected the library then negotiates a
secure TLS connection(End-2-End). The secret never leaves your
workstation. The GSRN sees only the encrypted traffic.
The GSRN is a free cloud service and is free to use by anyone.
The Global Socket Toolkit comes with a set of tools:
* gsocket - Makes an existing program (behind firewall or NAT)
accessible from anywhere in the world. It does so by analyzing
the program and replacing the IP-Layer with its own
Gsocket-Layer. A client connection to a hostname ending in
'*.gsocket' then gets automatically redirected (via the GSRN) to
this program.
* gs-netcat - Netcat on steroids. Turn gs-netcat into an AES-256
encrypted reverse backdoor via TOR (optional) with a true
PTY/interactive command shell (gs-netcat -s MySecret -i),
integrated file-transfer, spawn a Socks4/4a/5 proxy or forward
TCP connections or give somebody temporary shell access.
* gs-sftp - sftp server & client between two firewalled
workstations (gs-sftp -s MySecret)
* gs-mount - Access and mount a remote file system
(gs-mount -s MySecret ~/mnt/warez)
* blitz - Copy data from workstation to workstation
(blitz -s MySecret /usr/share/*)
%setup -q
chmod -x LICENSE
sed -i 's|/usr/bin/env bash|/usr/bin/bash|g' tools/{blitz,gs_funcs,gs-mount,gs-sftp,gsocket}
autoreconf -fiv
#%%configure --enable-tests
#cd tests
%license LICENSE
%doc ChangeLog
%config(noreplace) %{_sysconfdir}/gsocket.conf
%dir %{_datadir}/gsocket
* Thu Mar 3 09:00:00 UTC 2022 - Carlos Mogas da Silva <>
Import into COPR and version bump
* Thu Jul 1 15:44:08 UTC 2021 - Martin Hauke <>
- Update to version 1.4.32
* New Key Deriviation Method and fixed gs secret length
* -v, -vv and -vvv for verbosity
* Auto-Reconnect for -l (server) when DNS fails and keep
re-trying until success.
* Downgraded automake requirements to 2.69
* unique exit() codes
* Thu May 13 16:44:39 UTC 2021 - Martin Hauke <>
- Update to version 1.4.30
* fixed a rare occasion where gs-netcat might consume 100% cpu
* Sun Apr 25 18:44:32 UTC 2021 - Martin Hauke <>
- Initial package, version 1.4.29