Advertisement
felmoltor

Prestashopt enumerate Web Service permissions

Sep 18th, 2014
222
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.93 KB | None | 0 0
  1. ---------------------------
  2. - prestashop.objects.list -
  3. ---------------------------
  4. addresses
  5. carriers
  6. cart_rules
  7. carts
  8. categories
  9. combinations
  10. configurations
  11. contacts
  12. content_management_system
  13. countries
  14. currencies
  15. customer_messages
  16. customer_threads
  17. customers
  18. deliveries
  19. employees
  20. groups
  21. guests
  22. image_types
  23. images
  24. languages
  25. manufacturers
  26. order_carriers
  27. order_details
  28. order_discounts
  29. order_histories
  30. order_invoices
  31. order_payments
  32. order_slip
  33. order_states
  34. orders
  35. price_ranges
  36. product_feature_values
  37. product_features
  38. product_option_values
  39. product_options
  40. product_suppliers
  41. products
  42. search
  43. shop_groups
  44. shops
  45. specific_price_rules
  46. specific_prices
  47. states
  48. stock_availables
  49. stock_movement_reasons
  50. stock_movements
  51. stocks
  52. stores
  53. suppliers
  54. supply_order_details
  55. supply_order_histories
  56. supply_order_receipt_histories
  57. supply_order_states
  58. supply_orders
  59. tags
  60. tax_rule_groups
  61. tax_rules
  62. taxes
  63. translated_configurations
  64. warehouse_product_locations
  65. warehouses
  66. weight_ranges
  67. zones
  68.  
  69. --------------
  70.  
  71. $ for object in `cat prestashop.objects.list`; do echo "Object: $object" && curl -s -I  -u  "B17X6YFTR2KJKUIN119N2V22MOHAZQJI:" http://www.example.com/prestashop/api/$object; done  | grep -E "Object:|HTTP\/1" | sed 's/HTTP\/1\.. /- /g'
  72.  
  73. Object: addresses
  74. - 401 Unauthorized
  75. Object: carriers
  76. - 401 Unauthorized
  77. Object: cart_rules
  78. - 401 Unauthorized
  79. Object: carts
  80. - 401 Unauthorized
  81. Object: categories
  82. - 401 Unauthorized
  83. Object: combinations
  84. - 401 Unauthorized
  85. Object: configurations
  86. - 401 Unauthorized
  87. Object: contacts
  88. - 401 Unauthorized
  89. Object: content_management_system
  90. - 401 Unauthorized
  91. Object: countries
  92. - 401 Unauthorized
  93. Object: currencies
  94. - 401 Unauthorized
  95. Object: customer_messages
  96. - 401 Unauthorized
  97. Object: customer_threads
  98. - 401 Unauthorized
  99. Object: customers
  100. - 405 Method Not Allowed
  101. Object: deliveries
  102. - 401 Unauthorized
  103. [...]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement