Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix broken rid #102

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,9 @@ Usage:
- subdomains - a space separated list of evilginx3 subdomains, can be one if only one
- root domain bool - true or false to proxy root domain to evilginx3
- feed bool - true or false if you plan to use the live feed
- rid replacement - replace the gophish default "rid" in phishing URLs with this value
- rid replacement - replace the gophish default "rid" in phishing URLs with this value. Consider not using rid or user_id
Example:
./setup.sh example.com "accounts myaccount" false true user_id
./setup.sh example.com "accounts myaccount" false true custom_user_id
```

## Cloudflare Turnstile Setup
Expand Down Expand Up @@ -124,9 +124,9 @@ In case you ran `setup.sh` once and already replaced the default `RId` value thr
Usage:
./replace_rid <previous rid> <new rid>
- previous rid - the previous rid value that was replaced
- new rid - the new rid value to replace the previous
- new rid - the new rid value to replace the previous. Consider not using rid or user_id
Example:
./replace_rid.sh user_id client_id
./replace_rid.sh custom_user_id new_custom_user_id
```

## Email Campaign Setup
Expand Down Expand Up @@ -246,4 +246,4 @@ There should be no expectation for me to respond to issues in this public versio

## Contributing

I would like to see this project improve and grow over time. If you have improvement ideas, new redirect rules, new IP addresses/blocks to blacklist, phishlets, or suggestions, please open a pull request.
I would like to see this project improve and grow over time. If you have improvement ideas, new redirect rules, new IP addresses/blocks to blacklist, phishlets, or suggestions, please open a pull request.
6 changes: 3 additions & 3 deletions replace_rid.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ if [[ $# -ne 2 ]]; then
print_error "Usage:"
print_error "./replace_rid <previous rid> <new rid>"
print_error " - previous rid - the previous rid value that was replaced"
print_error " - new rid - the new rid value to replace the previous"
print_error " - new rid - the new rid value to replace the previous. Consider not using rid or user_id"
print_error "Example:"
print_error " ./replace_rid.sh user_id client_id"
print_error " ./replace_rid.sh custom_user_id new_custom_user_id"

exit 2
fi
Expand Down Expand Up @@ -46,4 +46,4 @@ function main () {
print_good "Replaced previous rid and rebuilt successfully!"
}

main
main
5 changes: 3 additions & 2 deletions setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ if [[ $# -ne 5 ]]; then
print_error " - subdomains - a space separated list of subdomains to proxy to evilginx3, can be one if only one"
print_error " - root domain bool - true or false to proxy root domain to evilginx3"
print_error " - feed bool - true or false if you plan to use the live feed"
print_error " - rid replacement - replace the gophish default \"rid\" in phishing URLs with this value"
print_error " - rid replacement - replace the gophish default \"rid\" in phishing URLs with this value. Consider not using rid or user_id"
print_error "Example:"
print_error ' ./setup.sh example.com "accounts myaccount" false true user_id'
print_error ' ./setup.sh example.com "accounts myaccount" false true custom_user_id'

exit 2
fi
Expand Down Expand Up @@ -98,6 +98,7 @@ function setup_gophish () {
fi
# Replace rid with user input
find . -type f -exec sed -i "s|client_id|${rid_replacement}|g" {} \;
sed -i "s|\"rid\"|\"${rid_replacement}\"|g" evilginx3/core/http_proxy.go
cd gophish || exit 1
go build
cd ..
Expand Down