Skip to content

Commit

Permalink
added sum5list for check backdoor
Browse files Browse the repository at this point in the history
  • Loading branch information
DyanGalih committed Dec 22, 2023
1 parent 24214f8 commit 75c4be4
Show file tree
Hide file tree
Showing 4 changed files with 2,209 additions and 2,188 deletions.
136 changes: 68 additions & 68 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,69 +1,69 @@
# First Aid Guide for Manual and Free Slot Gacor(Panduan Pertolongan Pertama Pada Slot Gacor Secara Manual Dan Gratis)

This bash script reads a list of search strings from a file, searches for these strings in a specified directory and its subdirectories, and prints the unique results.

## Usage

To use this script, you need to call it with the path to the directory you want to search as an argument. For example:

```bash
sh scan.sh /var/www/html
```

In this example, the script will search for the strings in the `/var/www/html` directory and its subdirectories.

## Script

Here is the script:

```bash
#!/bin/bash

# Check if an argument was provided
if [ "$#" -ne 1 ]; then
echo "Usage: $0 path"
exit 1
fi

# Store the argument into a variable
path=$1

# Read the file list.txt and store each line into the array search_strings
readarray -t search_strings < list.txt

# Get the total number of search strings
total=${#search_strings[@]}

# Create an empty array to store the grep results
grep_results=()

# Initialize a counter
counter=0

# Loop through each search string in the array
for string in "${search_strings[@]}"; do
# Increment the counter
((counter++))

# Print the current position and total
echo "Scanning string $counter of $total: $string"

# Run the grep command with the current search string and store the results in the array grep_results
while IFS= read -r line; do
grep_results+=("$line")
done < <(grep -Rlw "$path" -e "$string")
done

# Remove duplicates from the array grep_results
readarray -t unique_grep_results < <(printf '%s\n' "${grep_results[@]}" | sort -u)

# Display the unique results
printf '%s\n' "${unique_grep_results[@]}"

```

## Input File

The script reads the search strings from a file named `list.txt`. Each search string should be on its own line in this file.

# First Aid Guide for Manual and Free Slot Gacor(Panduan Pertolongan Pertama Pada Slot Gacor Secara Manual Dan Gratis)

This bash script reads a list of search strings from a file, searches for these strings in a specified directory and its subdirectories, and prints the unique results.

## Usage

To use this script, you need to call it with the path to the directory you want to search as an argument. For example:

```bash
sh scan.sh /var/www/html
```

In this example, the script will search for the strings in the `/var/www/html` directory and its subdirectories.

## Script

Here is the script:

```bash
#!/bin/bash

# Check if an argument was provided
if [ "$#" -ne 1 ]; then
echo "Usage: $0 path"
exit 1
fi

# Store the argument into a variable
path=$1

# Read the file list.txt and store each line into the array search_strings
readarray -t search_strings < list.txt

# Get the total number of search strings
total=${#search_strings[@]}

# Create an empty array to store the grep results
grep_results=()

# Initialize a counter
counter=0

# Loop through each search string in the array
for string in "${search_strings[@]}"; do
# Increment the counter
((counter++))

# Print the current position and total
echo "Scanning string $counter of $total: $string"

# Run the grep command with the current search string and store the results in the array grep_results
while IFS= read -r line; do
grep_results+=("$line")
done < <(grep -Rlw "$path" -e "$string")
done

# Remove duplicates from the array grep_results
readarray -t unique_grep_results < <(printf '%s\n' "${grep_results[@]}" | sort -u)

# Display the unique results
printf '%s\n' "${unique_grep_results[@]}"

```

## Input File

The script reads the search strings from a file named `list.txt`. Each search string should be on its own line in this file.

---
Loading

0 comments on commit 75c4be4

Please sign in to comment.