# Tools Setup

## <mark style="color:yellow;">My All Tools install One-liner</mark>

{% code fullWidth="false" %}

```html
go install github.com/projectdiscovery/katana/cmd/katana@latest && cp /root/go/bin/katana /usr/bin/ && go install github.com/ferreiraklet/airixss@latest && cp /root/go/bin/airixss  /usr/bin/ && go install github.com/hahwul/dalfox/v2@latest && cp /root/go/bin/dalfox  /usr/bin/ && go install github.com/bp0lr/gauplus@latest && cp /root/go/bin/gauplus  /usr/bin/ && go install -v github.com/edoardottt/cariddi/cmd/cariddi@latest && cp /root/go/bin/cariddi  /usr/bin/ && go install github.com/jaeles-project/gospider@latest && cp /root/go/bin/gospider  /usr/bin/ && go install github.com/KathanP19/Gxss@latest && cp /root/go/bin/Gxss  /usr/bin/ && go install -v github.com/projectdiscovery/httpx/cmd/httpx@latest && cp /root/go/bin/httpx  /usr/bin/ && go install -v  github.com/Emoe/kxss@latest && cp /root/go/bin/kxss  /usr/bin/ && go install github.com/tomnomnom/qsreplace@latest && cp /root/go/bin/qsreplace  /usr/bin/ && go install github.com/mmarting/unwaf@latest && cp /root/go/bin/unwaf  /usr/bin/ && go install -v github.com/tomnomnom/anew@latest && cp /root/go/bin/anew  /usr/bin/ && go install -v github.com/famasoon/crtsh@latest && cp /root/go/bin/crtsh  /usr/bin/ && go install -v github.com/projectdiscovery/dnsx/cmd/dnsx@latest && cp /root/go/bin/dnsx  /usr/bin/ && go install github.com/takshal/freq@latest && cp /root/go/bin/freq  /usr/bin/ && go install github.com/lc/gau/v2/cmd/gau@latest && cp /root/go/bin/gau  /usr/bin/ && go install github.com/sensepost/gowitness@latest && cp /root/go/bin/gowitness  /usr/bin/ && go install github.com/hakluke/hakcheckurl@latest && cp /root/go/bin/hakcheckurl  /usr/bin/ && go install github.com/tomnomnom/httprobe@latest && cp /root/go/bin/httprobe  /usr/bin/ && go install github.com/SharokhAtaie/paramleak@latest && cp /root/go/bin/paramleak  /usr/bin/ && go install github.com/thecyberworld/reflector@latest && cp /root/go/bin/reflector  /usr/bin/ && go install github.com/tomnomnom/waybackurls@latest && cp /root/go/bin/waybackurls  /usr/bin/ && go install github.com/hakluke/hakrawler@latest && cp /root/go/bin/hakrawler  /usr/bin/ 
```

{% endcode %}

## <mark style="color:yellow;">install GF tool in Linux</mark> <a href="#dd46" id="dd46"></a>

```
go install github.com/tomnomnom/gf@latest && cp ~/go/bin/gf /usr/bin/ && gf -h && mkdir ~/.gf && git clone https://github.com/NitinYadav00/gf-patterns.git && cd gf-patterns/ && cp *.json ~/.gf && gf -list
```

{% embed url="<https://medium.com/@sherlock297/how-to-install-gf-tool-in-kali-linux-fc672053a943>" %}

## <mark style="color:red;">----------------------------------------------------------------</mark>

## <mark style="color:yellow;">My Data Extracting Commands</mark> <a href="#dd46" id="dd46"></a>

### Replacing web extension in Endpoints:

```
cat endpoints.txt | sed 's/php/htm/'
cat endpoints.txt | sed 's/php/htm/g'
```

### Extarct First Folder from a URL Endpoints&#x20;

```
cat endpoints.txt | cut -d/ -f-4 

cat endpoints.txt | cut -d/ -f-4 | sed 's/.?.*//' 

cat endpoints.txt | cut -d/ -f-4 | sed 's/.?.*//' | sed 's/.php.*//' 

cat endpoints.txt | cut -d/ -f-4 | sed 's/.?.*//' | sed 's/.php.*//' | sed 's/.html.*//' | sed 's/.htm.*//' | sed 's/.js.*//' | sed 's/.txt.*//' |  sed 's/.jsp.*//' |  sed 's/.jspx.*//' | sed 's/.do.*//' | sed 's/.asp.*//' | sed 's/.aspx.*//' |  uro
```

## <mark style="color:red;">----------------------------------------------------------------</mark>

```
# Ask the user for the website URL or domain
read -p "Enter the website URL or domain: " website_input

# Normalize the input: Add "https://" if the input is just a domain without protocol
if [[ ! $website_input =~ ^https?:// ]]; then
    website_url="https://$website_input"
else
    website_url="$website_input"
fi

# Inform the user of the normalized URL being used
echo "Normalized URL being used: $website_url"
```

## <mark style="color:red;">----------------------------------------------------------------</mark>

## <mark style="color:yellow;">install x8 tool in Linux</mark> <a href="#dd46" id="dd46"></a>

```
git clone https://github.com/sh1yo/x8
cd x8
apt install libssl-dev
apt install cargo
cargo build --release
# move the binary to $PATH so you can use it without specifying the full path
sudo cp ./target/release/x8 /usr/bin 

```

## <mark style="color:red;">----------------------------------------------------------------</mark>

## <mark style="color:yellow;">install Burp Suite in Linux</mark> <a href="#dd46" id="dd46"></a>

```
wget -O 'burpsuite_pro_linux.sh' 'https://portswigger-cdn.net/burp/releases/download?product=pro&type=Linux'
```

```
sudo chmod +x burpsuite_pro_linux.sh
```

```
wget -O 'burpsuite_pro_patcher_linux.sh' 'https://github.com/mmgordon82/BurpSuiteInstaller/releases/latest/download/burpsuite_pro_patcher_linux_generic.sh'
```

```
sudo chmod +x burpsuite_pro_patcher_linux.sh
```

```
./burpsuite_pro_linux.sh
```

```
./burpsuite_pro_linux.sh
```

```
sudo ./burpsuite_pro_patcher_linux.sh /usr/local/bin/BurpSuitePro
sudo ./burpsuite_pro_patcher_linux.sh /home/AMBERJACK/5ujjtvqpxp/BurpSuitePro
```

## <mark style="color:red;">----------------------------------------------------------------</mark>

## <mark style="color:yellow;">How to run python files without typing python extension (Linux)</mark>

```
Step 1 : Add shebang line as first line in your python code
#!/usr/bin/python3
```

{% code overflow="wrap" %}

```
Step 2 : Make your python file executable
In terminal, go to your directory where your python file is located and type the below command.

chmod +x filename.py
```

{% endcode %}

```
Step 3 : Move your file to bin to run it from anywhere
In terminal type the following command

cp filename.py /usr/bin/new_name_you want_to_run_with example: ssrf

OR

cp filename.py ~/bin/new_name_you want_to_run_with
```

## <mark style="color:red;">----------------------------------------------------------------</mark>

## <mark style="color:yellow;">How to install GO in Linux</mark>

```
1. Uninstall the exisiting version
sudo rm -rf /usr/local/go
sudo rm -rf /usr/bin/go
sudo apt remove golang-go

2. Install the new version
Go to the https://go.dev/dl/ downloads page and download the binary release suitable for your system.

3. your Path /Downloads then Extract the archive file

sudo tar -C /usr/local -xzf go1.21.4.linux-amd64.tar.gz
export PATH=$PATH:/usr/local/go/bin
source ~/.profile
```
