Compare commits
1
Commits
master
..
libtorrent
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
21060634c1 |
@@ -1,68 +0,0 @@
|
||||
# For most projects, this workflow file will not need changing; you simply need
|
||||
# to commit it to your repository.
|
||||
#
|
||||
# You may wish to alter this file to override the set of languages analyzed,
|
||||
# or to provide custom queries or build logic.
|
||||
#
|
||||
# ******** NOTE ********
|
||||
# We have attempted to detect the languages in your repository. Please check
|
||||
# the `language` matrix defined below to confirm you have the correct set of
|
||||
# supported CodeQL languages.
|
||||
# ******** NOTE ********
|
||||
|
||||
name: "CodeQL"
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ master ]
|
||||
pull_request:
|
||||
# The branches below must be a subset of the branches above
|
||||
branches: [ master ]
|
||||
schedule:
|
||||
- cron: '26 19 * * 3'
|
||||
|
||||
jobs:
|
||||
analyze:
|
||||
name: Analyze
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
language: [ 'cpp', 'python' ]
|
||||
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python' ]
|
||||
# Learn more:
|
||||
# https://docs.github.com/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#changing-the-languages-that-are-analyzed
|
||||
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v2
|
||||
|
||||
# Initializes the CodeQL tools for scanning.
|
||||
- name: Initialize CodeQL
|
||||
uses: github/codeql-action/init@v1
|
||||
with:
|
||||
languages: ${{ matrix.language }}
|
||||
# If you wish to specify custom queries, you can do so here or in a config file.
|
||||
# By default, queries listed here will override any specified in a config file.
|
||||
# Prefix the list here with "+" to use these queries and those in the config file.
|
||||
# queries: ./path/to/local/query, your-org/your-repo/queries@main
|
||||
|
||||
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
|
||||
# If this step fails, then you should remove it and run the build manually (see below)
|
||||
- name: Autobuild
|
||||
uses: github/codeql-action/autobuild@v1
|
||||
|
||||
# ℹ️ Command-line programs to run using the OS shell.
|
||||
# 📚 https://git.io/JvXDl
|
||||
|
||||
# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
|
||||
# and modify them (or add more) to build your code if your project
|
||||
# uses a compiled language
|
||||
|
||||
#- run: |
|
||||
# make bootstrap
|
||||
# make release
|
||||
|
||||
- name: Perform CodeQL Analysis
|
||||
uses: github/codeql-action/analyze@v1
|
||||
@@ -1,49 +0,0 @@
|
||||
# This workflow integrates a collection of open source static analysis tools
|
||||
# with GitHub code scanning. For documentation, or to provide feedback, visit
|
||||
# https://github.com/github/ossar-action
|
||||
name: OSSAR
|
||||
|
||||
on:
|
||||
push:
|
||||
pull_request:
|
||||
|
||||
jobs:
|
||||
OSSAR-Scan:
|
||||
# OSSAR runs on windows-latest.
|
||||
# ubuntu-latest and macos-latest support coming soon
|
||||
runs-on: windows-latest
|
||||
|
||||
steps:
|
||||
# Checkout your code repository to scan
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
# We must fetch at least the immediate parents so that if this is
|
||||
# a pull request then we can checkout the head.
|
||||
fetch-depth: 2
|
||||
|
||||
# If this run was triggered by a pull request event, then checkout
|
||||
# the head of the pull request instead of the merge commit.
|
||||
- run: git checkout HEAD^2
|
||||
if: ${{ github.event_name == 'pull_request' }}
|
||||
|
||||
# Ensure a compatible version of dotnet is installed.
|
||||
# The [Microsoft Security Code Analysis CLI](https://aka.ms/mscadocs) is built with dotnet v3.1.201.
|
||||
# A version greater than or equal to v3.1.201 of dotnet must be installed on the agent in order to run this action.
|
||||
# GitHub hosted runners already have a compatible version of dotnet installed and this step may be skipped.
|
||||
# For self-hosted runners, ensure dotnet version 3.1.201 or later is installed by including this action:
|
||||
# - name: Install .NET
|
||||
# uses: actions/setup-dotnet@v1
|
||||
# with:
|
||||
# dotnet-version: '3.1.x'
|
||||
|
||||
# Run open source static analysis tools
|
||||
- name: Run OSSAR
|
||||
uses: github/ossar-action@v1
|
||||
id: ossar
|
||||
|
||||
# Upload results to the Security tab
|
||||
- name: Upload OSSAR results
|
||||
uses: github/codeql-action/upload-sarif@v1
|
||||
with:
|
||||
sarif_file: ${{ steps.ossar.outputs.sarifFile }}
|
||||
@@ -1,34 +0,0 @@
|
||||
# A sample workflow which checks out the code, builds a container
|
||||
# image using Docker and scans that image for vulnerabilities using
|
||||
# Snyk. The results are then uploaded to GitHub Security Code Scanning
|
||||
#
|
||||
# For more examples, including how to limit scans to only high-severity
|
||||
# issues, monitor images for newly disclosed vulnerabilities in Snyk and
|
||||
# fail PR checks for new vulnerabilities, see https://github.com/snyk/actions/
|
||||
|
||||
name: Snyk Container
|
||||
on: push
|
||||
jobs:
|
||||
snyk:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Build a Docker image
|
||||
run: docker build -t your/image-to-test .
|
||||
- name: Run Snyk to check Docker image for vulnerabilities
|
||||
# Snyk can be used to break the build when it detects vulnerabilities.
|
||||
# In this case we want to upload the issues to GitHub Code Scanning
|
||||
continue-on-error: true
|
||||
uses: snyk/actions/docker@master
|
||||
env:
|
||||
# In order to use the Snyk Action you will need to have a Snyk API token.
|
||||
# More details in https://github.com/snyk/actions#getting-your-snyk-token
|
||||
# or you can signup for free at https://snyk.io/login
|
||||
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
|
||||
with:
|
||||
image: your/image-to-test
|
||||
args: --file=Dockerfile
|
||||
- name: Upload result to GitHub Code Scanning
|
||||
uses: github/codeql-action/upload-sarif@v1
|
||||
with:
|
||||
sarif_file: snyk.sarif
|
||||
@@ -1,30 +0,0 @@
|
||||
name: build
|
||||
on:
|
||||
push:
|
||||
branches: [ master ]
|
||||
pull_request:
|
||||
jobs:
|
||||
build:
|
||||
name: Build
|
||||
runs-on: "ubuntu-18.04"
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: Build an image from Dockerfile
|
||||
run: |
|
||||
docker build -t docker.io/my-organization/my-app:${{ github.sha }} .
|
||||
|
||||
- name: Run Trivy vulnerability scanner
|
||||
uses: aquasecurity/trivy-action@master
|
||||
with:
|
||||
image-ref: 'docker.io/my-organization/my-app:${{ github.sha }}'
|
||||
format: 'template'
|
||||
template: '@/contrib/sarif.tpl'
|
||||
output: 'trivy-results.sarif'
|
||||
severity: 'CRITICAL,HIGH'
|
||||
|
||||
- name: Upload Trivy scan results to GitHub Security tab
|
||||
uses: github/codeql-action/upload-sarif@v1
|
||||
with:
|
||||
sarif_file: 'trivy-results.sarif'
|
||||
@@ -1,6 +1,4 @@
|
||||
# Offensive Security Tools for Termux
|
||||
|
||||
NO ROOT REQUIRED ;)
|
||||
# Repository for new/unstable packages
|
||||
|
||||
[](https://bintray.com)
|
||||
|
||||
@@ -8,38 +6,25 @@ There are located packages which were requested, but not added to the
|
||||
[main][termux-packages] Termux repository due to various reasons. Packages
|
||||
available here may have lower quality, be unstable or not work at all.
|
||||
|
||||
## Pre-Requisite
|
||||
## How to enable this repository
|
||||
|
||||
Storage Free Space = 3.37 GB
|
||||
To enable this package repository run:
|
||||
|
||||
Each one of this 3 steps needs and independent session, for that just slide from left to rigth in termux for see the option. "New Session"
|
||||
|
||||
|
||||
## 1. Prepare Termux
|
||||
```ShellSession
|
||||
pkg install termux-tools
|
||||
pkg install unstable-repo
|
||||
```
|
||||
#
|
||||
```ShellSession
|
||||
termux-setup-storage
|
||||
```
|
||||
#
|
||||
```ShellSession
|
||||
termux-wake-lock && export PATH=/sbin:/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin && export PATH=$PATH:/usr/local/sbin:/usr/local/bin
|
||||
```
|
||||
#
|
||||
|
||||
## (Optional) Building packages manually
|
||||
## Building packages manually
|
||||
|
||||
You can build all packages manually by using provided docker image. The only
|
||||
requirements are Linux-based host with Docker installed.
|
||||
|
||||
a. Clone this repository:
|
||||
1. Clone this repository:
|
||||
```ShellSession
|
||||
git clone https://github.com/termux/unstable-packages
|
||||
```
|
||||
|
||||
b. Enter build environment (will download docker image if necessary):
|
||||
2. Enter build environment (will download docker image if necessary):
|
||||
```ShellSession
|
||||
cd ./unstable-packages
|
||||
./start-builder.sh
|
||||
@@ -47,7 +32,7 @@ b. Enter build environment (will download docker image if necessary):
|
||||
Command shown above will start builder for Android 7 (API level 24). If you
|
||||
need to build package for Android 5, use `./start-builder-legacy.sh`.
|
||||
|
||||
c. Choose package you want to build and run:
|
||||
3. Choose package you want to build and run:
|
||||
```ShellSession
|
||||
./build-package.sh -a ${arch} ${package name}
|
||||
```
|
||||
@@ -59,239 +44,3 @@ c. Choose package you want to build and run:
|
||||
If you wish to contribute, please take a look on our [contributing guide](./CONTRIBUTING.md).
|
||||
|
||||
[termux-packages]: <https://github.com/termux/termux-packages>
|
||||
#
|
||||
#
|
||||
#
|
||||
#
|
||||
#
|
||||
## 2. Install Nmap + Kali:
|
||||
|
||||
```ShellSession
|
||||
pkg install unstable-repo root-repo x11-repo ruby -y && pkg install neofetch coreutils busybox screenfetch -y && screenfetch
|
||||
```
|
||||
#
|
||||
```ShellSession
|
||||
gem install nokogiri
|
||||
```
|
||||
#
|
||||
```ShellSession
|
||||
pkg update -y && pkg upgrade -y && pkg install python python2 ruby git php perl nmap bash clang nano figlet cowsay curl tar zip unzip tor tsu wget wcalc openssl bmon -y && pkg update -y && pkg upgrade -y && cp $(which pip) $PREFIX/bin/pip3 && neofetch && pkg install wget openssl-tool proot -y && neofetch
|
||||
```
|
||||
#
|
||||
```ShellSession
|
||||
apt install neofetch -y && neofetch && gem install nokogiri && apt-get autoclean && apt install -f && apt -f install && apt autoremove -y && apt-get clean cache && apt update && apt-get autoclean && apt-get clean cache && apt update && apt update -y && apt full-upgrade -y --allow-downgrades && dpkg --configure -a && cd && neofetch
|
||||
```
|
||||
#
|
||||
```ShellSession
|
||||
hash -r && wget https://raw.githubusercontent.com/EXALAB/AnLinux-Resources/master/Scripts/Installer/Kali/kali.sh && bash kali.sh && ./start-kali.sh && apt install git apt-utils figlet procps -y && apt-get update --fix-missing && neofetch
|
||||
```
|
||||
|
||||
## 3. Install Bind-apk tool:
|
||||
```ShellSession
|
||||
cd && git clone https://github.com/remo7777/Termux-Kali-apktool.git && cd Termux-Kali-apktool && bash setup
|
||||
```
|
||||
## 4. Install Kali Linux NetHunter
|
||||
|
||||
```ShellSession
|
||||
termux-wake-lock;\
|
||||
termux-setup-storage;\
|
||||
apt-get update -y;\
|
||||
apt-get install wget -y;\
|
||||
wget https://raw.githubusercontent.com/Hax4us/Nethunter-In-Termux/master/kalinethunter;\
|
||||
bash kalinethunter;\
|
||||
rm *;\
|
||||
startkali
|
||||
|
||||
|
||||
|
||||
apt-key adv --keyserver hkp://keys.gnupg.net --recv-keys 7D8D0BF6;\
|
||||
wget https://http.kali.org/kali/pool/main/k/kali-archive-keyring/kali-archive-keyring_2018.2_all.deb;\
|
||||
apt --fix-broken install;\
|
||||
dpkg -i ./kali-archive-keyring_2018.2_all.deb;\
|
||||
rm kali-archive-keyring_2018.2_all.deb;\
|
||||
apt-get update -y;\
|
||||
apt-get install neofetch lolcat -y;\
|
||||
echo "neofetch --logo | lolcat;neofetch model distro os kernel shell memory" >> ~/.bashrc;\
|
||||
echo "PS1='
|
||||
╭──────────[ $(whoami)@$(uname -n) ]─[ $PWD ]
|
||||
╰── • '" >> /etc/bash.bashrc;exit
|
||||
|
||||
|
||||
|
||||
echo "clear;startkali;exit" >> ~/.bashrc;bash;exit
|
||||
```
|
||||
#
|
||||
```ShellSession
|
||||
cat >> puneet75.sh <<- PUNIT
|
||||
rm -r -f ~/.bashrc
|
||||
echo "NAME=\$1" >> ~/.bashrc
|
||||
echo "export PS1='
|
||||
\[\033[0;31m\]┌─[\[\033[1;34m\]\\\$NAME\[\033[1;33m\]@\[\033[1;36m\]x\[\033[0;31m\]]─[\[\033[0;32m\]\w\[\033[0;31m\]]
|
||||
\[\033[0;31m\]└──╼ \[\033[1;33m\]#\[\033[0m\] '" >> ~/.bashrc
|
||||
echo "export LS_OPTIONS='--color=auto'" >> ~/.bashrc
|
||||
echo "alias ls='ls --color=auto'" >> ~/.bashrc
|
||||
echo "alias grep='grep --color=auto'" >> ~/.bashrc
|
||||
PUNIT
|
||||
|
||||
step2
|
||||
|
||||
👇
|
||||
bash puneet75.sh x
|
||||
|
||||
step 3
|
||||
|
||||
👉 source ~/.bashrc
|
||||
```
|
||||
#
|
||||
#
|
||||
#
|
||||
#
|
||||
|
||||
## 5. Install Nokogiri & Lolcat
|
||||
|
||||
From this point in advance execute in the same termux session
|
||||
|
||||
```ShellSession
|
||||
apt install gem ruby -y
|
||||
```
|
||||
|
||||
#
|
||||
```ShellSession
|
||||
gem install nokogiri
|
||||
```
|
||||
|
||||
#
|
||||
```ShellSession
|
||||
gem install lolcat
|
||||
```
|
||||
|
||||
## 6. Update System
|
||||
|
||||
```ShellSession
|
||||
apt install git -y && git clone https://github.com/4k4xs4pH1r3/bbh.git /usr/share/wordlists && cd /usr/share/wordlists/wordlists && mv *.* /usr/share/wordlists && mv dirb dirbuster fern-wifi wfuzz /usr/share/wordlists && rm -r /usr/share/wordlists/wordlists && git clone https://github.com/danielmiessler/SecLists.git /usr/share/SecLists && cd && apt install neofetch screenfetch -y && neofetch && apt install nmap metasploit-framework asciinema steghide radare2 mtr firmware-realtek net-tools wpasupplicant wireless-tools -y && screenfetch && apt-get autoclean && apt install -f && apt -f install && apt autoremove -y && apt-get clean cache && apt update && apt-get autoclean && apt-get clean cache && apt update && apt update -y && apt full-upgrade -y --allow-downgrades && sudo dpkg --configure -a && cd && sudo apt-get install python python3 python-pip python3-pip python-dev python-setuptools -y && neofetch && bash <(wget -qO- https://git.io/vAtmB)
|
||||
```
|
||||
|
||||
Close Termux and Open Again
|
||||
|
||||
## 7. Install Metasploit omnibus Nightly:
|
||||
```ShellSession
|
||||
apt install nmap nginx -y && curl https://raw.githubusercontent.com/rapid7/metasploit-omnibus/master/config/templates/metasploit-framework-wrappers/msfupdate.erb > msfinstall && \
|
||||
chmod 755 msfinstall && \
|
||||
./msfinstall
|
||||
```
|
||||
#
|
||||
```ShellSession
|
||||
gem install lolcat nokogiri bundle rails
|
||||
```
|
||||
```ShellSession
|
||||
gem update --system
|
||||
```
|
||||
|
||||
#
|
||||
|
||||
## 8. Add Vuln + Vulners + Vulscan NSE as root
|
||||
|
||||
Specialized Scripts to get CVE's details with Nmap & Metasploit
|
||||
|
||||
```ShellSession
|
||||
apt install git neofetch screenfetch -y && cd /usr/share/nmap/scripts && git clone https://github.com/scipag/vulscan && git clone https://github.com/vulnersCom/nmap-vulners.git && cd vulscan/utilities/updater/ && chmod +x updateFiles.sh && ./updateFiles.sh && neofetch && cd /opt/metasploit/common/share/nmap/scripts && git clone https://github.com/scipag/vulscan && git clone https://github.com/vulnersCom/nmap-vulners.git && cd /usr/share/nmap/scripts/vulscan/utilities/updater && chmod +x updateFiles.sh && ./updateFiles.sh && cd && screenfetch
|
||||
```
|
||||
|
||||
```ShellSession
|
||||
sudo pip install --no-cache-dir -U crcmod
|
||||
```
|
||||
|
||||
For display help for the individual scripts use this option
|
||||
|
||||
--script-help=$scriptname
|
||||
|
||||
To get an easy list of the installed scripts, use
|
||||
|
||||
locate nse | grep nmap
|
||||
#
|
||||
#
|
||||
The db_nmap sessions will be saved in xml for you can restart an early scan using
|
||||
|
||||
msfconsole
|
||||
db_nmap --resume /root/.msf4/local/file.xml
|
||||
|
||||
The history of Metasploit commands are here:
|
||||
|
||||
/root/.msf4/history
|
||||
|
||||
## 9. Start Metasploit
|
||||
|
||||
```ShellSession
|
||||
apt-get autoclean && apt install -f && apt -f install && apt autoremove -y && apt-get clean cache && apt update && apt-get autoclean && apt-get clean cache && apt update && apt update -y && apt full-upgrade -y --allow-downgrades && dpkg --configure -a && cd && neofetch
|
||||
```
|
||||
|
||||
|
||||
Configure the services and database of Metasploit Framework 5:
|
||||
|
||||
su
|
||||
msfupdate
|
||||
update-rc.d postgresql enable && update-rc.d nginx enable && service postgresql start
|
||||
su postgres
|
||||
createuser root -P
|
||||
createdb —owner=root msfdb
|
||||
exit
|
||||
|
||||
Close terminal
|
||||
|
||||
Open a new terminal as a normal user and verify that services are running and initiate the database of Metasploit Framework 5.
|
||||
#
|
||||
|
||||
```ShellSession
|
||||
service --status-all
|
||||
```
|
||||
|
||||
It's time to open Metasploit Framework 5 (Works in Kali Linux and Ubuntu Cosmic)
|
||||
|
||||
```ShellSession
|
||||
neofetch && msfdb init && /opt/metasploit-framework/bin/./msfconsole
|
||||
```
|
||||
|
||||
#
|
||||
(for repair use "msfdb reinit")
|
||||
|
||||
|
||||
|
||||
#
|
||||
In Parrot Security:
|
||||
|
||||
```ShellSession
|
||||
neofetch && msfdb init && /usr/share/metasploit-framework/./msfconsole
|
||||
```
|
||||
Update and Check Metasploit Framework 5:
|
||||
|
||||
msfupdate
|
||||
db_status
|
||||
db_rebuild_cache
|
||||
load nexpose
|
||||
load nessus
|
||||
save
|
||||
#
|
||||
#
|
||||
#
|
||||
#
|
||||
|
||||
|
||||
## 10. Create and Save your workspace
|
||||
|
||||
workspace -a ad
|
||||
|
||||
setg Prompt x(%whi%H/%grn%U/%whi%L%grn%D/%whi%T/%grn%W/%whiS%S/%grnJ%J)
|
||||
setg ConsoleLogging y
|
||||
setg LogLevel 5
|
||||
setg SessionLogging y
|
||||
setg TimestampOutput true
|
||||
save
|
||||
exit
|
||||
|
||||
Make a backup each time that you need of each one of your workspaces by separately
|
||||
|
||||
db_export -f xml /root/msfuExported.xml
|
||||
|
||||
Importing a file from an earlier scan (This is done using db_import followed by the path to our file.)
|
||||
|
||||
db_import /root/msfu/nmapScan
|
||||
|
||||
-21
@@ -1,21 +0,0 @@
|
||||
# Security Policy
|
||||
|
||||
## Supported Versions
|
||||
|
||||
Use this section to tell people about which versions of your project are
|
||||
currently being supported with security updates.
|
||||
|
||||
| Version | Supported |
|
||||
| ------- | ------------------ |
|
||||
| 5.1.x | :white_check_mark: |
|
||||
| 5.0.x | :x: |
|
||||
| 4.0.x | :white_check_mark: |
|
||||
| < 4.0 | :x: |
|
||||
|
||||
## Reporting a Vulnerability
|
||||
|
||||
Use this section to tell people how to report a vulnerability.
|
||||
|
||||
Tell them where to go, how often they can expect to get an update on a
|
||||
reported vulnerability, what to expect if the vulnerability is accepted or
|
||||
declined, etc.
|
||||
@@ -1,23 +0,0 @@
|
||||
TERMUX_PKG_HOMEPAGE=https://github.com/mvdan/fdroidcl
|
||||
TERMUX_PKG_DESCRIPTION="F-Droid client"
|
||||
TERMUX_PKG_LICENSE="BSD"
|
||||
TERMUX_PKG_MAINTAINER="Leonid Plyushch <leonid.plyushch@gmail.com>"
|
||||
TERMUX_PKG_VERSION=0.5.0
|
||||
TERMUX_PKG_SRCURL=https://github.com/mvdan/fdroidcl/archive/v$TERMUX_PKG_VERSION.tar.gz
|
||||
TERMUX_PKG_SHA256=532a8c4c93216cbf13378ff409c06a08d48e8baee6119a50ed43dc0ce9ec7879
|
||||
|
||||
termux_step_make() {
|
||||
termux_setup_golang
|
||||
export GOPATH=$TERMUX_PKG_BUILDDIR
|
||||
|
||||
mkdir -p "$GOPATH"/src/mvdan.cc
|
||||
cp -a "$TERMUX_PKG_SRCDIR" "$GOPATH"/src/mvdan.cc/fdroidcl
|
||||
cd "$GOPATH"/src/mvdan.cc/fdroidcl
|
||||
|
||||
go build .
|
||||
}
|
||||
|
||||
termux_step_make_install() {
|
||||
install -Dm700 "$TERMUX_PKG_BUILDDIR"/src/mvdan.cc/fdroidcl/fdroidcl \
|
||||
"$TERMUX_PREFIX"/bin/fdroidcl
|
||||
}
|
||||
@@ -1,47 +0,0 @@
|
||||
TERMUX_PKG_HOMEPAGE=http://kubernetes.io
|
||||
TERMUX_PKG_DESCRIPTION="Kubernetes.io client binary"
|
||||
TERMUX_PKG_LICENSE="Apache-2.0"
|
||||
TERMUX_PKG_MAINTAINER="Leonid Plyushch <leonid.plyushch@gmail.com>"
|
||||
TERMUX_PKG_VERSION=1.15.0
|
||||
TERMUX_PKG_SRCURL=https://dl.k8s.io/v$TERMUX_PKG_VERSION/kubernetes-src.tar.gz
|
||||
TERMUX_PKG_SHA256=4bc800eccf1e788d9a3e426613ba8e04dd2245fb200135845783cf7400d98b38
|
||||
|
||||
termux_step_extract_package() {
|
||||
mkdir -p "$TERMUX_PKG_CACHEDIR"
|
||||
mkdir -p "$TERMUX_PKG_SRCDIR"
|
||||
|
||||
termux_download "$TERMUX_PKG_SRCURL" "$TERMUX_PKG_CACHEDIR"/kubernetes-src.tar.gz \
|
||||
"$TERMUX_PKG_SHA256"
|
||||
|
||||
tar xf "$TERMUX_PKG_CACHEDIR"/kubernetes-src.tar.gz \
|
||||
-C "$TERMUX_PKG_SRCDIR"
|
||||
}
|
||||
|
||||
termux_step_make() {
|
||||
termux_setup_golang
|
||||
|
||||
# Needed to generate manpages.
|
||||
(
|
||||
export GOPATH="$TERMUX_PKG_BUILDDIR/host"
|
||||
unset GOOS GOARCH CGO_LDFLAGS
|
||||
unset CC CXX CFLAGS CXXFLAGS LDFLAGS
|
||||
cd "$TERMUX_PKG_SRCDIR"
|
||||
./hack/update-generated-docs.sh
|
||||
)
|
||||
|
||||
export GOPATH="$TERMUX_PKG_BUILDDIR/target"
|
||||
chmod +w "$TERMUX_PKG_SRCDIR"/_output
|
||||
rm -rf "$TERMUX_PKG_SRCDIR"/_output
|
||||
|
||||
cd "$TERMUX_PKG_SRCDIR"/cmd/kubectl
|
||||
go build .
|
||||
}
|
||||
|
||||
termux_step_make_install() {
|
||||
install -Dm700 "$TERMUX_PKG_SRCDIR"/cmd/kubectl/kubectl \
|
||||
"$TERMUX_PREFIX"/bin/kubectl
|
||||
|
||||
mkdir -p "$TERMUX_PREFIX"/share/man/man1
|
||||
cp -f "$TERMUX_PKG_SRCDIR"/docs/man/man1/kubectl-*.1 \
|
||||
"$TERMUX_PREFIX"/share/man/man1/
|
||||
}
|
||||
@@ -1,7 +0,0 @@
|
||||
TERMUX_PKG_HOMEPAGE=https://dev.lovelyhq.com/libburnia
|
||||
TERMUX_PKG_DESCRIPTION="Library for reading, mastering and writing optical discs"
|
||||
TERMUX_PKG_LICENSE="GPL-2.0"
|
||||
TERMUX_PKG_MAINTAINER="Leonid Plyushch <leonid.plyushch@gmail.com>"
|
||||
TERMUX_PKG_VERSION=1.5.0
|
||||
TERMUX_PKG_SRCURL=http://files.libburnia-project.org/releases/libburn-$TERMUX_PKG_VERSION.tar.gz
|
||||
TERMUX_PKG_SHA256=582b12c236c1365211946f2fe3c254976af37bbec244051f7742a98ded9be2bd
|
||||
@@ -1,12 +0,0 @@
|
||||
diff -uNr libburn-1.5.0/configure libburn-1.5.0.mod/configure
|
||||
--- libburn-1.5.0/configure 2018-09-15 14:55:33.000000000 +0300
|
||||
+++ libburn-1.5.0.mod/configure 2019-07-03 22:55:41.489672172 +0300
|
||||
@@ -12269,7 +12269,7 @@
|
||||
done
|
||||
|
||||
|
||||
-THREAD_LIBS=-lpthread
|
||||
+THREAD_LIBS=
|
||||
|
||||
|
||||
|
||||
@@ -1,12 +0,0 @@
|
||||
TERMUX_PKG_HOMEPAGE=https://dev.lovelyhq.com/libburnia
|
||||
TERMUX_PKG_DESCRIPTION="Frontend for libraries libburn and libisofs"
|
||||
TERMUX_PKG_LICENSE="GPL-2.0"
|
||||
TERMUX_PKG_MAINTAINER="Leonid Plyushch <leonid.plyushch@gmail.com>"
|
||||
TERMUX_PKG_VERSION=1.5.0
|
||||
TERMUX_PKG_SRCURL=http://files.libburnia-project.org/releases/libisoburn-$TERMUX_PKG_VERSION.tar.gz
|
||||
TERMUX_PKG_SHA256=dac1f5629c404df236453b2b6a2671473900776c6a5707e5b8acae20385c1de5
|
||||
TERMUX_PKG_DEPENDS="libburn, libisofs, readline"
|
||||
TERMUX_PKG_CONFLICTS="xorriso"
|
||||
|
||||
# We don't have tk.
|
||||
TERMUX_PKG_RM_AFTER_INSTALL="bin/xorriso-tcltk"
|
||||
@@ -1,12 +0,0 @@
|
||||
diff -uNr libisoburn-1.5.0/configure libisoburn-1.5.0.mod/configure
|
||||
--- libisoburn-1.5.0/configure 2018-09-15 17:16:51.000000000 +0300
|
||||
+++ libisoburn-1.5.0.mod/configure 2019-07-03 23:32:25.076457035 +0300
|
||||
@@ -12630,7 +12630,7 @@
|
||||
|
||||
fi
|
||||
|
||||
-THREAD_LIBS=-lpthread
|
||||
+THREAD_LIBS=
|
||||
|
||||
|
||||
|
||||
@@ -1,9 +0,0 @@
|
||||
TERMUX_PKG_HOMEPAGE=https://dev.lovelyhq.com/libburnia
|
||||
TERMUX_PKG_DESCRIPTION="Library to pack up hard disk files and directories into a ISO 9660 disk image"
|
||||
TERMUX_PKG_LICENSE="GPL-2.0"
|
||||
TERMUX_PKG_MAINTAINER="Leonid Plyushch <leonid.plyushch@gmail.com>"
|
||||
TERMUX_PKG_VERSION=1.5.0
|
||||
TERMUX_PKG_SRCURL=http://files.libburnia-project.org/releases/libisofs-$TERMUX_PKG_VERSION.tar.gz
|
||||
TERMUX_PKG_SHA256=da5f9de3085dd7e34f3bfa73bef4f6380253b839c7aa9aa8ae66f1e1a61a3400
|
||||
TERMUX_PKG_DEPENDS="libiconv, zlib"
|
||||
TERMUX_PKG_BUILD_IN_SRC=true
|
||||
@@ -1,12 +0,0 @@
|
||||
diff -uNr libisofs-1.5.0/configure libisofs-1.5.0.mod/configure
|
||||
--- libisofs-1.5.0/configure 2018-09-16 11:40:44.000000000 +0300
|
||||
+++ libisofs-1.5.0.mod/configure 2019-07-03 23:00:54.218751674 +0300
|
||||
@@ -12593,7 +12593,7 @@
|
||||
fi
|
||||
|
||||
|
||||
-THREAD_LIBS=-lpthread
|
||||
+THREAD_LIBS=
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
TERMUX_PKG_HOMEPAGE=http://rakshasa.github.io/rtorrent/
|
||||
TERMUX_PKG_DESCRIPTION="BitTorrent library with a focus on high performance and good code"
|
||||
TERMUX_PKG_LICENSE="GPL-2.0"
|
||||
TERMUX_PKG_MAINTAINER="Leonid Plyushch <leonid.plyushch@gmail.com>"
|
||||
TERMUX_PKG_VERSION=0.13.7
|
||||
TERMUX_PKG_SRCURL=https://github.com/rakshasa/rtorrent/releases/download/v0.9.${TERMUX_PKG_VERSION##*.}/libtorrent-$TERMUX_PKG_VERSION.tar.gz
|
||||
TERMUX_PKG_SHA256=c738f60f4d7b6879cd2745fb4310bf24c9287219c1fd619706a9d5499ca7ecc1
|
||||
TERMUX_PKG_DEPENDS="openssl"
|
||||
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="--enable-aligned --without-kqueue --disable-debug"
|
||||
|
||||
termux_step_pre_configure() {
|
||||
autoreconf -fi
|
||||
}
|
||||
@@ -0,0 +1,105 @@
|
||||
From 4607bbf78040789dee29266878ce109136b984ef Mon Sep 17 00:00:00 2001
|
||||
From: rakshasa <sundell.software@gmail.com>
|
||||
Date: Tue, 20 Dec 2016 19:51:02 +0900
|
||||
Subject: [PATCH] Added support for openssl 1.1.
|
||||
|
||||
---
|
||||
configure.ac | 4 ++++
|
||||
src/utils/diffie_hellman.cc | 36 ++++++++++++++++++++++++++++++++++--
|
||||
2 files changed, 38 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/configure.ac b/configure.ac
|
||||
index 65e34872..27e33570 100644
|
||||
--- a/configure.ac
|
||||
+++ b/configure.ac
|
||||
@@ -69,12 +69,15 @@ AC_ARG_ENABLE(openssl,
|
||||
[ --disable-openssl Don't use OpenSSL's SHA1 implementation.],
|
||||
[
|
||||
if test "$enableval" = "yes"; then
|
||||
+dnl move to scripts.
|
||||
PKG_CHECK_MODULES(OPENSSL, libcrypto,
|
||||
CXXFLAGS="$CXXFLAGS $OPENSSL_CFLAGS";
|
||||
LIBS="$LIBS $OPENSSL_LIBS")
|
||||
|
||||
AC_DEFINE(USE_OPENSSL, 1, Using OpenSSL.)
|
||||
AC_DEFINE(USE_OPENSSL_SHA, 1, Using OpenSSL's SHA1 implementation.)
|
||||
+ AC_CHECK_LIB([crypto], [DH_set0_pqg], [AC_DEFINE(USE_OPENSSL_1_1, 1, Using OpenSSL 1.1.)])
|
||||
+
|
||||
else
|
||||
AC_DEFINE(USE_NSS_SHA, 1, Using Mozilla's SHA1 implementation.)
|
||||
fi
|
||||
@@ -85,6 +88,7 @@ AC_ARG_ENABLE(openssl,
|
||||
|
||||
AC_DEFINE(USE_OPENSSL, 1, Using OpenSSL.)
|
||||
AC_DEFINE(USE_OPENSSL_SHA, 1, Using OpenSSL's SHA1 implementation.)
|
||||
+ AC_CHECK_LIB([crypto], [DH_set0_pqg], [AC_DEFINE(USE_OPENSSL_1_1, 1, Using OpenSSL 1.1.)])
|
||||
]
|
||||
)
|
||||
|
||||
diff --git a/src/utils/diffie_hellman.cc b/src/utils/diffie_hellman.cc
|
||||
index aa653d45..7ec13165 100644
|
||||
--- a/src/utils/diffie_hellman.cc
|
||||
+++ b/src/utils/diffie_hellman.cc
|
||||
@@ -54,11 +54,23 @@ DiffieHellman::DiffieHellman(const unsigned char *prime, int primeLength,
|
||||
m_secret(NULL), m_size(0) {
|
||||
|
||||
#ifdef USE_OPENSSL
|
||||
+
|
||||
m_dh = DH_new();
|
||||
+
|
||||
+#ifdef USE_OPENSSL_1_1
|
||||
+ BIGNUM * const dh_p = BN_bin2bn(prime, primeLength, NULL);
|
||||
+ BIGNUM * const dh_g = BN_bin2bn(generator, generatorLength, NULL);
|
||||
+
|
||||
+ if (dh_p == NULL || dh_g == NULL ||
|
||||
+ !DH_set0_pqg(m_dh, dh_p, NULL, dh_g))
|
||||
+ throw internal_error("Could not generate Diffie-Hellman parameters");
|
||||
+#else
|
||||
m_dh->p = BN_bin2bn(prime, primeLength, NULL);
|
||||
m_dh->g = BN_bin2bn(generator, generatorLength, NULL);
|
||||
+#endif
|
||||
|
||||
DH_generate_key(m_dh);
|
||||
+
|
||||
#else
|
||||
throw internal_error("Compiled without encryption support.");
|
||||
#endif
|
||||
@@ -74,7 +86,19 @@ DiffieHellman::~DiffieHellman() {
|
||||
bool
|
||||
DiffieHellman::is_valid() const {
|
||||
#ifdef USE_OPENSSL
|
||||
+ if (m_dh == NULL)
|
||||
+ return false;
|
||||
+
|
||||
+#ifdef USE_OPENSSL_1_1
|
||||
+ const BIGNUM *pub_key;
|
||||
+
|
||||
+ DH_get0_key(m_dh, &pub_key, NULL);
|
||||
+
|
||||
+ return pub_key != NULL;
|
||||
+#else
|
||||
return m_dh != NULL && m_dh->pub_key != NULL;
|
||||
+#endif
|
||||
+
|
||||
#else
|
||||
return false;
|
||||
#endif
|
||||
@@ -103,8 +127,16 @@ DiffieHellman::store_pub_key(unsigned char* dest, unsigned int length) {
|
||||
#ifdef USE_OPENSSL
|
||||
std::memset(dest, 0, length);
|
||||
|
||||
- if ((int)length >= BN_num_bytes(m_dh->pub_key))
|
||||
- BN_bn2bin(m_dh->pub_key, dest + length - BN_num_bytes(m_dh->pub_key));
|
||||
+ const BIGNUM *pub_key;
|
||||
+
|
||||
+#ifdef USE_OPENSSL_1_1
|
||||
+ DH_get0_key(m_dh, &pub_key, NULL);
|
||||
+#else
|
||||
+ pub_key = m_dh->pub_key;
|
||||
+#endif
|
||||
+
|
||||
+ if ((int)length >= BN_num_bytes(pub_key))
|
||||
+ BN_bn2bin(pub_key, dest + length - BN_num_bytes(pub_key));
|
||||
#endif
|
||||
}
|
||||
|
||||
@@ -0,0 +1,25 @@
|
||||
diff -uNr libtorrent-0.13.7/scripts/common.m4 libtorrent-0.13.7.mod/scripts/common.m4
|
||||
--- libtorrent-0.13.7/scripts/common.m4 2018-06-07 07:24:43.000000000 +0300
|
||||
+++ libtorrent-0.13.7.mod/scripts/common.m4 2019-07-03 20:56:25.477890400 +0300
|
||||
@@ -150,21 +150,6 @@
|
||||
])
|
||||
])
|
||||
|
||||
-AC_DEFUN([TORRENT_CHECK_EXECINFO], [
|
||||
- AC_MSG_CHECKING(for execinfo.h)
|
||||
-
|
||||
- AC_RUN_IFELSE([AC_LANG_SOURCE([
|
||||
- #include <execinfo.h>
|
||||
- int main() { backtrace((void**)0, 0); backtrace_symbols((char**)0, 0); return 0;}
|
||||
- ])],
|
||||
- [
|
||||
- AC_MSG_RESULT(yes)
|
||||
- AC_DEFINE(USE_EXECINFO, 1, Use execinfo.h)
|
||||
- ], [
|
||||
- AC_MSG_RESULT(no)
|
||||
- ])
|
||||
-])
|
||||
-
|
||||
AC_DEFUN([TORRENT_CHECK_ALIGNED], [
|
||||
AC_MSG_CHECKING(the byte alignment)
|
||||
|
||||
@@ -86,7 +86,6 @@ RUN env DEBIAN_FRONTEND=noninteractive apt install -yq --no-install-recommends \
|
||||
python-pip \
|
||||
python-setuptools \
|
||||
python-yaml \
|
||||
rsync \
|
||||
ruby \
|
||||
scons \
|
||||
texinfo \
|
||||
|
||||
+1
-1
Submodule termux-packages updated: 41ceb1123d...0da0767675
+1
-1
Submodule termux-packages-legacy updated: b75ade40ea...43b00f822b
Reference in New Issue
Block a user