Advertisement
Rickey

Projet m3u

Dec 15th, 2020
18
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  1. Déterminer automatiquement l'user et le mot de passe d'une url
  2.  
  3. http://host:port/user/pass/channel
  4.  
  5. Ignorer channel si elle apparaît.
  6.  
  7.  
  8.  
  9. while getopts ":a:p:" opt; do
  10.     case $opt in
  11.        h) arg1="$HOST"
  12.        ;;
  13.       p) arg2="$PORT"
  14.   ;;
  15.        u) arg1="$USER"
  16.        ;;
  17.        P) arg1="$PASS"
  18.        ;;
  19.        t) arg1="$TYPE"
  20.        ;;
  21. \?) echo "Invalid option -$OPTARG" >&2
  22.  
  23.  
  24. ;;
  25.  
  26. esac done
  27.  
  28.  
  29. http://host:port/get.php?username=user&password=pass&type=m3u
  30.  
  31.  
  32. wget http://$HOST:$PORT/get.php?username=$USER&password=$PASS&type=$TYPE
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement