Help for ReefDose

  • Thread starter Thread starter Elwinmage
  • Start date Start date
  • Tagged users Tagged users None

Elwinmage

New Member
View Badges
Joined
Jul 8, 2025
Messages
8
Reaction score
9
Location
Toulouse
What state or country do you live in
Other International
Rating - 0%
0   0   0
Hi, I'm currently developping a card for homeassistant system.
If someone with a Reefdose could execute the follwing script (with his credentials) it would help me to know if the uid of supplement depends on user or not.
Thx a lot

```
#!/usr/bin/python

import httpx
import json

uname="__TO_REPLACE__"
passwd="__TO_REPLACE__"

header={
"Authorization": "Basic Z0ZqSHRKcGE6Qzlmb2d3cmpEV09SVDJHWQ==",
"Content-Type": "application/x-www-form-urlencoded"
}
payload="grant_type=password&username=" + uname + "&password=" + passwd

r= httpx.post("https://cloud.reef-beat.com/oauth/token",data=payload,headers=header,verify=False)
token=r.json()["access_token"]
header={"Authorization": "Bearer %s"%token}
urls=["https://cloud.reef-beat.com/reef-dosing/supplement",
"https://cloud.reef-beat.com/reef-dosing/bundled-supplements/reef_care"]
for url in urls:
print('################################################################################')
print('# %s'%url)
r=httpx.get(url,headers=header)
if r.status_code != 200:
print(r.status_code)
print(json.dumps(r.json(),indent=4))
```
 
Bumping.. the problem with this code is that there could be a script injector in here and you can steal people information.
 
🤣🤣
If you know a little python, or other programming language you will see that it's only connection to redsea serveur :-)

And script injection is not what you think, yout can not do script injection with get a URL without parameters.

The problem with forums is people who don't know anything but still give their opinion.
For your culture https://en.wikipedia.org/wiki/Code_...ript injection are,for HTML code or scripting.
 
Last edited:

TOP 10 Trending Threads

WHAT’S YOUR MOST MEMORABLE EXPERIENCE WITH A CORAL THAT LOOKED LIKE IT MIGHT NOT MAKE IT?

  • I’ve seen a dramatic comeback. I would have sworn it was a goner

    Votes: 12 44.4%
  • A slow recovery, and it got back to looking healthy

    Votes: 4 14.8%
  • It came back some, but never looked as good as it used to

    Votes: 3 11.1%
  • I tried to save one, but it didn’t make it

    Votes: 2 7.4%
  • Mine is still struggling...no comeback yet

    Votes: 3 11.1%
  • I’ve never had a coral in serious trouble

    Votes: 0 0.0%
  • See, this is why I don’t keep corals

    Votes: 1 3.7%
  • Other (Post in the comments)

    Votes: 2 7.4%
Back
Top
Home
Post thread…
Market
What's new