Giter Site home page Giter Site logo

static-toolbox's Introduction

static-toolbox

This repository includes prebuild static binaries and build-recipes for various tools like Nmap and OpenSSH.

The Linux versions are compiled with the musl-cross toolchain and the openssl-pm-snapshot fork of OpenSSL in order to support a wide range of SSL/TLS features (Warning: some of them are insecure!).

Compilation is done automatically with GitHub Actions. The binaries are uploaded to the release section. The artifacts are also available in the artifacts of each GitHub Action. However, there are some limitations:

  • Downloading of build artifacts in GitHub Ations currently requires a GitHub account
  • Blobs in build artifacts are zipped by the GitHub frontend by default, even zip files themselves! Build artifact zips may contain other zip files.
  • Build artifacts will expire after some time.

Therefore, it is recommended to download the binaries from the release section.

Building Status

The following table shows the building status for the current toolset. The following architectures are currently supported:

  • x86
  • x86_64
  • ARMHF
  • AARCH64
Tool Status
Nmap Nmap
OpenSSH OpenSSH
socat socat
GDB & gdbserver GDB & gdbserver
tcpdump tcpdump
strace strace

static-toolbox's People

Contributors

hnzlmnn-ernw avatar nschiess avatar sven-ernw avatar takeshixx avatar ttdennis avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

static-toolbox's Issues

tar missing 'z'

gdb build:

Run /bin/sh -c "cd / && curl -so ${ARCH}-cross.tgz ${HOST}/${ARCH}-cross.tgz && tar -xf ${ARCH}-cross.tgz && rm ${ARCH}-cross.tgz && cd ${ARCH}-cross"

needs to be tar -xzf

`run-nmap.sh` depends on bash

The statically compiled nmap is especially useful in restricted environments, like containers. However, the run-nmap.sh script only works when bash is available, which isn't always the case. Especially in the mentioned restricted environments, like for example in an Alpine container.

So I think it is useful to have the wrapper script being compatible with /bin/sh like this:

#!/bin/sh
SCRIPT_DIR="$(dirname "$(readlink -f -- "$0")")"
NMAPDIR="$SCRIPT_DIR/data" "$SCRIPT_DIR/nmap" "$@" 

I don't know if this repository is still maintained and welcomes patches? If yes, I would be happy to submit a PR.

Nmap executable

┌──(user㉿pentest)-[~/test]
└─$ cd nmap-7.80SVN-x86_64-a36a34aa6-portable

┌──(user㉿pentest)-[~/test/nmap-7.80SVN-x86_64-a36a34aa6-portable]
└─$ file nmap
nmap: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), statically linked, stripped

┌──(user㉿pentest)-[~/test/nmap-7.80SVN-x86_64-a36a34aa6-portable]
└─$ cd ../

┌──(user㉿pentest)-[~/test]
└─$ cd nmap-7.80SVN-x86-a36a34aa6-portable

┌──(user㉿pentest)-[~/test/nmap-7.80SVN-x86-a36a34aa6-portable]
└─$ file nmap
nmap: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), statically linked, stripped

The x86 bit version doesn't run on 32 bit linux system. So i tested both and they say its a ELF 64 bit executable. (I downloaded both zip files, not the tar ones). Not sure if there is an mistake or its correct.

patch command missing during build

I saw this error in the artifacts - seems like the patch command is now in a different install package:

patch /aarch64-linux-musl-cross/aarch64-linux-musl/include/asm/sigcontext.h < $GITHUB_WORKSPACE/patches/gdb/gdb-aarch64-header-sigcontext-fix.patch
/__w/_temp/c372c6a4-254c-4f75-8585-9671bf781585.sh: line 1: patch: not found

whishlist: strace

if you could add strace to the list of binaries - that would be awesome!
:)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.