clean images
47
.github/workflows/build_docker.yml
vendored
@ -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
|
|
2
.github/workflows/build_master.yml
vendored
@ -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:
|
||||||
|
2
.github/workflows/translate_af.yml
vendored
@ -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
|
||||||
|
2
.github/workflows/translate_de.yml
vendored
@ -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
|
||||||
|
2
.github/workflows/translate_el.yml
vendored
@ -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
|
||||||
|
2
.github/workflows/translate_es.yml
vendored
@ -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
|
||||||
|
2
.github/workflows/translate_fr.yml
vendored
@ -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
|
||||||
|
2
.github/workflows/translate_hi.yml
vendored
@ -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
|
||||||
|
2
.github/workflows/translate_it.yml
vendored
@ -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
|
||||||
|
2
.github/workflows/translate_ja.yml
vendored
@ -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
|
||||||
|
2
.github/workflows/translate_ko.yml
vendored
@ -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
|
||||||
|
2
.github/workflows/translate_pl.yml
vendored
@ -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
|
||||||
|
2
.github/workflows/translate_pt.yml
vendored
@ -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
|
||||||
|
2
.github/workflows/translate_sr.yml
vendored
@ -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
|
||||||
|
2
.github/workflows/translate_sw.yml
vendored
@ -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
|
||||||
|
2
.github/workflows/translate_tr.yml
vendored
@ -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
|
||||||
|
2
.github/workflows/translate_uk.yml
vendored
@ -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
|
||||||
|
2
.github/workflows/translate_zh.yml
vendored
@ -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
@ -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!"
|
@ -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>
|
||||||
|
|
||||||
|
Before Width: | Height: | Size: 158 KiB |
Before Width: | Height: | Size: 72 KiB |
Before Width: | Height: | Size: 21 KiB |
Before Width: | Height: | Size: 21 KiB |
Before Width: | Height: | Size: 62 KiB |
Before Width: | Height: | Size: 62 KiB |
Before Width: | Height: | Size: 16 KiB |
Before Width: | Height: | Size: 8.4 KiB |
Before Width: | Height: | Size: 11 KiB |
Before Width: | Height: | Size: 8.5 KiB |
Before Width: | Height: | Size: 14 KiB |
Before Width: | Height: | Size: 20 KiB |
Before Width: | Height: | Size: 13 KiB |
Before Width: | Height: | Size: 21 KiB |
Before Width: | Height: | Size: 19 KiB |
Before Width: | Height: | Size: 34 KiB |
Before Width: | Height: | Size: 67 KiB |
Before Width: | Height: | Size: 67 KiB |
Before Width: | Height: | Size: 67 KiB |
Before Width: | Height: | Size: 19 KiB |
Before Width: | Height: | Size: 12 KiB |
Before Width: | Height: | Size: 21 KiB |
Before Width: | Height: | Size: 21 KiB |
Before Width: | Height: | Size: 21 KiB |
BIN
src/images/3.jpg
Before Width: | Height: | Size: 52 KiB |
Before Width: | Height: | Size: 36 KiB |
BIN
src/images/4.jpg
Before Width: | Height: | Size: 61 KiB |
Before Width: | Height: | Size: 41 KiB |
Before Width: | Height: | Size: 52 KiB |
BIN
src/images/5.jpg
Before Width: | Height: | Size: 64 KiB |
BIN
src/images/6.gif
Before Width: | Height: | Size: 477 KiB |
Before Width: | Height: | Size: 1.5 KiB |
Before Width: | Height: | Size: 1.5 KiB |
Before Width: | Height: | Size: 1.5 KiB |
Before Width: | Height: | Size: 1.5 KiB |
Before Width: | Height: | Size: 1.5 KiB |
Before Width: | Height: | Size: 1.5 KiB |
Before Width: | Height: | Size: 1.5 KiB |
Before Width: | Height: | Size: 1.5 KiB |
Before Width: | Height: | Size: 1.5 KiB |
Before Width: | Height: | Size: 1.5 KiB |
Before Width: | Height: | Size: 1.5 KiB |
Before Width: | Height: | Size: 1.5 KiB |
Before Width: | Height: | Size: 1.5 KiB |
Before Width: | Height: | Size: 1.5 KiB |
Before Width: | Height: | Size: 1.5 KiB |
Before Width: | Height: | Size: 1.5 KiB |
Before Width: | Height: | Size: 1.5 KiB |
Before Width: | Height: | Size: 1.5 KiB |
Before Width: | Height: | Size: 1.5 KiB |
Before Width: | Height: | Size: 1.5 KiB |
Before Width: | Height: | Size: 1.5 KiB |
Before Width: | Height: | Size: 1.5 KiB |
Before Width: | Height: | Size: 1.5 KiB |
Before Width: | Height: | Size: 1.5 KiB |
Before Width: | Height: | Size: 1.5 KiB |
Before Width: | Height: | Size: 1.5 KiB |
Before Width: | Height: | Size: 1.5 KiB |
Before Width: | Height: | Size: 1.5 KiB |
Before Width: | Height: | Size: 1.5 KiB |
Before Width: | Height: | Size: 1.5 KiB |
Before Width: | Height: | Size: 1.5 KiB |
Before Width: | Height: | Size: 1.5 KiB |
Before Width: | Height: | Size: 1.5 KiB |
Before Width: | Height: | Size: 1.5 KiB |
Before Width: | Height: | Size: 1.5 KiB |
Before Width: | Height: | Size: 1.5 KiB |
Before Width: | Height: | Size: 1.5 KiB |
Before Width: | Height: | Size: 1.5 KiB |
Before Width: | Height: | Size: 1.5 KiB |
Before Width: | Height: | Size: 1.5 KiB |
Before Width: | Height: | Size: 1.5 KiB |
Before Width: | Height: | Size: 1.5 KiB |
Before Width: | Height: | Size: 1.5 KiB |
Before Width: | Height: | Size: 1.5 KiB |
Before Width: | Height: | Size: 1.5 KiB |
Before Width: | Height: | Size: 1.5 KiB |
Before Width: | Height: | Size: 1.5 KiB |
Before Width: | Height: | Size: 1.5 KiB |
Before Width: | Height: | Size: 1.5 KiB |