Advertisement
teknoraver

memorandl

Jan 5th, 2022
945
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.45 KB | None | 0 0
  1. #!/bin/sh
  2.  
  3. base='https://memorandom.verdebinario.org/rnd'
  4.  
  5. urls='
  6.     stowdy
  7.     iomstb
  8.     neovma
  9.     dyunnf
  10.     lpunds
  11.     cogtre
  12.     plwmny
  13.     apovvr
  14.     ecpmza
  15.     yhcxxu
  16.     mwpvhe
  17.     cdwskj
  18.     '
  19.  
  20. i=1
  21.  
  22. for path in $urls; do
  23.     dir=$(printf '%02d' $i)
  24.     mkdir -p "$dir"
  25.     page=$(printf '%s/%02d_%s.php' $base $i $path)
  26.     while [ $(ls "$dir" |wc -l) -lt 6 ] ; do
  27.         curl --output-dir "$dir" -O "$base/$(curl -s $page |awk -F '"' '{print$6}')"
  28.     done
  29.     i=$((i+1))
  30. done
  31.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement