Package Details: ligolo-ng-git 1.0.0.r5.g1234567-1

Git Clone URL: https://aur.archlinux.org/ligolo-ng.git (read-only, click to copy)
Package Base: ligolo-ng
Description: A simple, light and fast reverse proxy for pentesters
Upstream URL: https://github.com/nicocha30/ligolo-ng
Keywords: pentesting, proxy, reverse tunneling
Licenses: GPL
Submitter: 0xDezzy
Maintainer: 0xDezzy
Last Packager: 0xDezzy
Votes: 0
Popularity: 0.000000
First Submitted: 2024-10-06 06:41 (UTC)
Last Updated: 2024-10-06 06:41 (UTC)

Dependencies (2)

Required by (0)

Sources (1)

Latest Comments

y0no commented on 2025-11-01 00:01 (UTC)

Hi @0xDezzy, here is an updated PKGBUILD for ligolo :

_pkgname=ligolo-ng
pkgname=${_pkgname}-git
pkgver=0.8.2
pkgrel=1
pkgdesc="An advanced, yet simple, tunneling/pivoting tool that uses a TUN interface."
arch=('x86_64' 'armv7h' 'aarch64')
url="https://github.com/nicocha30/ligolo-ng"
source=("https://raw.githubusercontent.com/nicocha30/ligolo-ng/refs/heads/master/README.md")
conflicts=('ligolo-ng' 'ligolo')
provides=('ligolo-ng')
licence=('GPL3')
makedepends=('go')
source=(${_pkgname}-${pkgver}.tar.gz::${url}/archive/refs/tags/v${pkgver}.tar.gz)
sha256sums=('d13231959fbbcf607f1be0b8d6a7f11693a0fd7a34a187b6ea64b3493e44e3f4')
install=${_pkgname}.install

prepare() {
  export GOPATH="${srcdir}/gopath"
  go clean -modcache   
}

build() {
    cd "${_pkgname}-${pkgver}"

    go build -o proxy cmd/proxy/main.go

    for platform in linux windows; do
        for arch in amd64 arm64 arm; do
            GOOS=${platform} GOARCH=${arch} go build -o ${platform}/${arch}/agent cmd/agent/main.go
        done
    done    
}

package() {
    cd "${_pkgname}-${pkgver}"

    # Install proxy in an executable path
    mv proxy ${_pkgname}
    install -Dm755 ${_pkgname} -t "${pkgdir}/usr/bin/"

    # Install agent in a share path
    for platform in linux windows; do
        for arch in amd64 arm64 arm; do
            if [ -d "$platform/$arch" ] && [ "$(ls -A $platform/$arch)" ]; then
                install -Dm755 $platform/$arch/* -t "${pkgdir}/usr/share/${_pkgname}/${platform}/${type}/${arch}"
            fi
        done
    done

    # Install documentation
    install -Dm644 README.md -t "${pkgdir}/usr/share/doc/${_pkgname}"    
}

It build the proxy and multiple version of the agent.