Advertisement
deseven

chfind

Aug 14th, 2013
460
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.39 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. echo -n > iptvf.m3u
  4.  
  5. for i in {0..10}; do
  6.     for j in {1..254}; do
  7.         echo -n "239.72.$i.$j:1234 ... "
  8.         timeout 60 ffprobe "http://195.191.220.2/udp/239.72.$i.$j:1234" >/dev/null 2>&1
  9.         res=`echo $?`
  10.         if [ "$res" = "0" ]; then
  11.             echo "looks interesting"
  12.             echo "http://iptv.home-nadym.ru/udp/239.72.$i.$j:1234" >> iptvf.m3u
  13.         else
  14.             echo "nothing"
  15.         fi
  16.     done
  17. done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement