widhisec

fake.sh

Jun 21st, 2021
688
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/bin/bash
  2. # widhisec | simple code
  3. function banne3r(){
  4. printf "
  5. [ CREATE BY WIDHISEC  ]
  6. [ fake-name-generator ]
  7. "
  8. read -p "berapa : " jumlah
  9. }
  10. banne3r
  11. function Get_Name(){
  12.              requests=$'curl -Ls http://namegenerators.org/fake-name-generator/'
  13.              response=$($requests |
  14.              grep -Po '</div>.*</div>' | grep -Po 'col2">[^>]*</div>' | sed '/^\/ >/d' | sed -e 's/<[^>]*>//g' |  cut -d\" -f2 | cut -d'>' -f2 | cut -d'<' -f1)
  15.              printf "[=====================]\n"
  16.              printf "%s\n" "${response}"
  17. }
  18. i=0;
  19. while [ $i -le $jumlah ];
  20. do
  21.     Get_Name;
  22.     let i=$i+1;    #counter untuk mencapai batas
  23. done
RAW Paste Data