clean images

This commit is contained in:
Carlos Polop 2025-01-09 18:30:01 +01:00
parent 6c9db049f2
commit 10c0f3e054
8836 changed files with 67 additions and 127 deletions

View File

@ -1,47 +0,0 @@
name: Build and Push Docker Image
on:
push:
branches:
- master
paths-ignore:
- 'scripts/**'
- '.gitignore'
- '.github/**'
- 'book/**'
workflow_dispatch:
concurrency: build_docker
permissions:
packages: write
id-token: write
contents: write
jobs:
build-and-push:
runs-on: ubuntu-latest
steps:
# 1. Check out the repository to get the Dockerfile
- name: Dowload Dockerfile
run: wget https://raw.githubusercontent.com/HackTricks-wiki/hacktricks-cloud/refs/heads/master/Dockerfile
# 2. Log into GitHub Container Registry
- name: Log in to GHCR
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
# 3. Build and push
- name: Build and push Docker image
run: |
# Define image name
IMAGE_NAME=ghcr.io/hacktricks-wiki/hacktricks/translator-image
# Build Docker image
docker build -t $IMAGE_NAME:latest .
# Push Docker image to GHCR
docker push $IMAGE_NAME:latest

View File

@ -22,7 +22,7 @@ jobs:
run-translation: run-translation:
runs-on: ubuntu-latest runs-on: ubuntu-latest
container: container:
image: ghcr.io/hacktricks-wiki/hacktricks/translator-image:latest image: ghcr.io/hacktricks-wiki/hacktricks-cloud/translator-image:latest
environment: prod environment: prod
steps: steps:

View File

@ -22,7 +22,7 @@ jobs:
run-translation: run-translation:
runs-on: ubuntu-latest runs-on: ubuntu-latest
container: container:
image: ghcr.io/hacktricks-wiki/hacktricks/translator-image:latest image: ghcr.io/hacktricks-wiki/hacktricks-cloud/translator-image:latest
environment: prod environment: prod
env: env:
LANGUAGE: Afrikaans LANGUAGE: Afrikaans

View File

@ -22,7 +22,7 @@ jobs:
run-translation: run-translation:
runs-on: ubuntu-latest runs-on: ubuntu-latest
container: container:
image: ghcr.io/hacktricks-wiki/hacktricks/translator-image:latest image: ghcr.io/hacktricks-wiki/hacktricks-cloud/translator-image:latest
environment: prod environment: prod
env: env:
LANGUAGE: German LANGUAGE: German

View File

@ -22,7 +22,7 @@ jobs:
run-translation: run-translation:
runs-on: ubuntu-latest runs-on: ubuntu-latest
container: container:
image: ghcr.io/hacktricks-wiki/hacktricks/translator-image:latest image: ghcr.io/hacktricks-wiki/hacktricks-cloud/translator-image:latest
environment: prod environment: prod
env: env:
LANGUAGE: Greek LANGUAGE: Greek

View File

@ -22,7 +22,7 @@ jobs:
run-translation: run-translation:
runs-on: ubuntu-latest runs-on: ubuntu-latest
container: container:
image: ghcr.io/hacktricks-wiki/hacktricks/translator-image:latest image: ghcr.io/hacktricks-wiki/hacktricks-cloud/translator-image:latest
environment: prod environment: prod
env: env:
LANGUAGE: Spanish LANGUAGE: Spanish

View File

@ -22,7 +22,7 @@ jobs:
run-translation: run-translation:
runs-on: ubuntu-latest runs-on: ubuntu-latest
container: container:
image: ghcr.io/hacktricks-wiki/hacktricks/translator-image:latest image: ghcr.io/hacktricks-wiki/hacktricks-cloud/translator-image:latest
environment: prod environment: prod
env: env:
LANGUAGE: French LANGUAGE: French

View File

@ -22,7 +22,7 @@ jobs:
run-translation: run-translation:
runs-on: ubuntu-latest runs-on: ubuntu-latest
container: container:
image: ghcr.io/hacktricks-wiki/hacktricks/translator-image:latest image: ghcr.io/hacktricks-wiki/hacktricks-cloud/translator-image:latest
environment: prod environment: prod
env: env:
LANGUAGE: Hindi LANGUAGE: Hindi

View File

@ -22,7 +22,7 @@ jobs:
run-translation: run-translation:
runs-on: ubuntu-latest runs-on: ubuntu-latest
container: container:
image: ghcr.io/hacktricks-wiki/hacktricks/translator-image:latest image: ghcr.io/hacktricks-wiki/hacktricks-cloud/translator-image:latest
environment: prod environment: prod
env: env:
LANGUAGE: Italian LANGUAGE: Italian

View File

@ -22,7 +22,7 @@ jobs:
run-translation: run-translation:
runs-on: ubuntu-latest runs-on: ubuntu-latest
container: container:
image: ghcr.io/hacktricks-wiki/hacktricks/translator-image:latest image: ghcr.io/hacktricks-wiki/hacktricks-cloud/translator-image:latest
environment: prod environment: prod
env: env:
LANGUAGE: Japanese LANGUAGE: Japanese

View File

@ -22,7 +22,7 @@ jobs:
run-translation: run-translation:
runs-on: ubuntu-latest runs-on: ubuntu-latest
container: container:
image: ghcr.io/hacktricks-wiki/hacktricks/translator-image:latest image: ghcr.io/hacktricks-wiki/hacktricks-cloud/translator-image:latest
environment: prod environment: prod
env: env:
LANGUAGE: Korean LANGUAGE: Korean

View File

@ -22,7 +22,7 @@ jobs:
run-translation: run-translation:
runs-on: ubuntu-latest runs-on: ubuntu-latest
container: container:
image: ghcr.io/hacktricks-wiki/hacktricks/translator-image:latest image: ghcr.io/hacktricks-wiki/hacktricks-cloud/translator-image:latest
environment: prod environment: prod
env: env:
LANGUAGE: Polish LANGUAGE: Polish

View File

@ -22,7 +22,7 @@ jobs:
run-translation: run-translation:
runs-on: ubuntu-latest runs-on: ubuntu-latest
container: container:
image: ghcr.io/hacktricks-wiki/hacktricks/translator-image:latest image: ghcr.io/hacktricks-wiki/hacktricks-cloud/translator-image:latest
environment: prod environment: prod
env: env:
LANGUAGE: Portuguese LANGUAGE: Portuguese

View File

@ -22,7 +22,7 @@ jobs:
run-translation: run-translation:
runs-on: ubuntu-latest runs-on: ubuntu-latest
container: container:
image: ghcr.io/hacktricks-wiki/hacktricks/translator-image:latest image: ghcr.io/hacktricks-wiki/hacktricks-cloud/translator-image:latest
environment: prod environment: prod
env: env:
LANGUAGE: Serbian LANGUAGE: Serbian

View File

@ -22,7 +22,7 @@ jobs:
run-translation: run-translation:
runs-on: ubuntu-latest runs-on: ubuntu-latest
container: container:
image: ghcr.io/hacktricks-wiki/hacktricks/translator-image:latest image: ghcr.io/hacktricks-wiki/hacktricks-cloud/translator-image:latest
environment: prod environment: prod
env: env:
LANGUAGE: Swahili LANGUAGE: Swahili

View File

@ -22,7 +22,7 @@ jobs:
run-translation: run-translation:
runs-on: ubuntu-latest runs-on: ubuntu-latest
container: container:
image: ghcr.io/hacktricks-wiki/hacktricks/translator-image:latest image: ghcr.io/hacktricks-wiki/hacktricks-cloud/translator-image:latest
environment: prod environment: prod
env: env:
LANGUAGE: Turkish LANGUAGE: Turkish

View File

@ -22,7 +22,7 @@ jobs:
run-translation: run-translation:
runs-on: ubuntu-latest runs-on: ubuntu-latest
container: container:
image: ghcr.io/hacktricks-wiki/hacktricks/translator-image:latest image: ghcr.io/hacktricks-wiki/hacktricks-cloud/translator-image:latest
environment: prod environment: prod
env: env:
LANGUAGE: Ukranian LANGUAGE: Ukranian

View File

@ -22,7 +22,7 @@ jobs:
run-translation: run-translation:
runs-on: ubuntu-latest runs-on: ubuntu-latest
container: container:
image: ghcr.io/hacktricks-wiki/hacktricks/translator-image:latest image: ghcr.io/hacktricks-wiki/hacktricks-cloud/translator-image:latest
environment: prod environment: prod
env: env:
LANGUAGE: Chinese LANGUAGE: Chinese

41
clean_unused_images.sh Normal file
View File

@ -0,0 +1,41 @@
#!/bin/bash
# Define the image folder and the root of your project
IMAGE_FOLDER="./src/images"
PROJECT_ROOT="."
# Move to the project root
cd "$PROJECT_ROOT" || exit
# Loop through each image file in the folder
find "$IMAGE_FOLDER" -type f | while IFS= read -r image; do
# Extract the filename without the path
image_name=$(basename "$image")
# If image file name contains "sponsor", skip it
if [[ "$image_name" == *"sponsor"* ]]; then
echo "Skipping sponsor image: $image_name"
continue
fi
echo "Checking image: $image_name"
# Search for the image name using rg and capture the result
search_result=$(rg -F --files-with-matches "$image_name" \
--no-ignore --hidden \
--glob '!.git/*' \
--glob '!$IMAGE_FOLDER/*' < /dev/null)
echo "Search result: $search_result"
# If rg doesn't find any matches, delete the image
if [ -z "$search_result" ]; then
echo "Deleting unused image: $image"
rm "$image"
else
echo "Image used: $image_name"
echo "$search_result"
fi
done
echo "Cleanup completed!"

View File

@ -4,13 +4,16 @@
_Hacktricks logos & motion design by_ [_@ppiernacho_](https://www.instagram.com/ppieranacho/)_._ _Hacktricks logos & motion design by_ [_@ppiernacho_](https://www.instagram.com/ppieranacho/)_._
> [!TIP] > **Welcome to the wiki where you will find each hacking trick/technique/whatever I have learnt from CTFs, real life apps, reading researches, and news.** ### Run HackTricks Locally
To get started follow this page where you will find the **typical flow** that **you should follow when pentesting** one or more **machines:** ```bash
# Download latest version of hacktricks
git clone https://github.com/HackTricks-wiki/hacktricks
# Run the docker container indicating the path to the hacktricks folder
docker run -d --rm -p 3337:3000 --name hacktricks -v $(pwd)/hacktricks:/app ghcr.io/hacktricks-wiki/hacktricks-cloud/translator-image bash -c "cd /app && git pull && MDBOOK_PREPROCESSOR__HACKTRICKS__ENV=dev mdbook serve --hostname 0.0.0.0"
```
{{#ref}} Your local copy of HackTricks will be **available at [http://localhost:3337](http://localhost:3337)** after <5 minutes (it needs to build the book, be patient).
generic-methodologies-and-resources/pentesting-methodology.md
{{#endref}}
## Corporate Sponsors ## Corporate Sponsors
@ -110,7 +113,7 @@ You can **create a free account** [**here**](https://serpapi.com/users/sign_up)*
--- ---
### 8kSec Academy In-Depth Mobile Security Courses ### [8kSec Academy In-Depth Mobile Security Courses](https://academy.8ksec.io/)
<figure><img src="images/image (2).png" alt=""><figcaption></figcaption></figure> <figure><img src="images/image (2).png" alt=""><figcaption></figcaption></figure>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 158 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 72 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 21 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 21 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 62 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 62 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 21 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 19 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 34 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 67 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 67 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 67 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 19 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 21 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 21 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 21 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 52 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 36 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 61 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 41 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 52 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 64 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 477 KiB

Some files were not shown because too many files have changed in this diff Show More