What's new

Closed Closed

Status
Not open for further replies.
Anong improve 😆 wala ng iimprove yan

ahh ok! momodify ko na lang tong script mo 😀😂😀😂😀

Code:
#!/bin/bash


while true; do
  clear
  echo "Oh Diba Legit si Kupal"
  echo ""
  echo "Squid Configuration Menu"
  echo "1. Display/Change HTTP Port"
  echo "2. Payload"
  echo "3. Exit"
  
  read -p "Enter your choice: " choice

  case $choice in
    1)
      currentPort=$(grep -E '^http_port ' /etc/squid3/squid.conf  | awk '{print $2}')
      clear
      echo ""
      echo "Squid Port: $currentPort"
      
      read -p "Enter your custom Squid port (limited to 60000): " customPort
      
      if [[ "$customPort" =~ ^[0-9]+$ && "$customPort" -le 60000 ]]; then
        sudo sed -i "s/http_port $currentPort/http_port $customPort/g" /etc/squid3/squid.conf 
        echo "Squid Port changed to $customPort"
        sudo service squid3 restart
        echo "Success"
      else
        echo "Invalid port. Please enter a valid number, limited to 60000."
      fi
      ;;
    2)
      echo -e "CONNECT [host_port] HTTP:www.wattpad.com[split][crlf] HTTP/?0[lf]Host: www.wattpad.com[lf][lf][lf]"
      ;;
    3)
      echo "Exiting menu..."
      exit 0
      ;;
    *)
      echo "Invalid choice. Please enter 1, 2, or 3."
      ;;
  esac

  read -p "Press Enter to continue..."
done
 
ahh ok! momodify ko na lang tong script mo 😀😂😀😂😀

Code:
#!/bin/bash


while true; do
  clear
  echo "Oh Diba Legit si Kupal"
  echo ""
  echo "Squid Configuration Menu"
  echo "1. Display/Change HTTP Port"
  echo "2. Payload"
  echo "3. Exit"
 
  read -p "Enter your choice: " choice

  case $choice in
    1)
      currentPort=$(grep -E '^http_port ' /etc/squid3/squid.conf  | awk '{print $2}')
      clear
      echo ""
      echo "Squid Port: $currentPort"
     
      read -p "Enter your custom Squid port (limited to 60000): " customPort
     
      if [[ "$customPort" =~ ^[0-9]+$ && "$customPort" -le 60000 ]]; then
        sudo sed -i "s/http_port $currentPort/http_port $customPort/g" /etc/squid3/squid.conf
        echo "Squid Port changed to $customPort"
        sudo service squid3 restart
        echo "Success"
      else
        echo "Invalid port. Please enter a valid number, limited to 60000."
      fi
      ;;
    2)
      echo -e "CONNECT [host_port] HTTP:www.wattpad.com[split][crlf] HTTP/?0[lf]Host: www.wattpad.com[lf][lf][lf]"
      ;;
    3)
      echo "Exiting menu..."
      exit 0
      ;;
    *)
      echo "Invalid choice. Please enter 1, 2, or 3."
      ;;
  esac

  read -p "Press Enter to continue..."
done
Kahit modify mo yan di mo mapapagana 😆 Ikaw himay himayin mo haha
 
Status
Not open for further replies.

Similar threads

Back
Top