Guest User

Untitled

a guest
Jan 23rd, 2019
144
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.78 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. amqBaseURL="http://10.199.199.199:8080"
  4.  
  5. /usr/bin/wget --http-user=admin --http-password=admin $amqBaseURL/admin/ -O amq1.html
  6.  
  7. store=`cat amq1.html |sed -n '/Store/{n;p}'|grep -o "[0-9]*"`
  8.  
  9. echo -e "$store"
  10.  
  11. --2019-01-23 21:25:13-- http://10.199.199.199:8080/admin/
  12. Connecting to 10.199.199.199:8080... connected.
  13. HTTP request sent, awaiting response... 401 Unauthorized
  14. Reusing existing connection to 10.199.199.199:8080.
  15. HTTP request sent, awaiting response... 200 OK
  16. Length: 7363 (7.2K) [text/html]
  17. Saving to: “amq1.htmlâ€‌
  18.  
  19. 100%[==========================================================================================================>] 7,363 --.-K/s in 0s
  20.  
  21. 2019-01-23 21:25:13 (251 MB/s) - “amq1.htmlâ€‌ saved [7363/7363]
  22.  
  23. 0
  24.  
  25. 100
Add Comment
Please, Sign In to add comment