How to create a dynamic length wrapping tentacle

It’s a good video, but only the cable part is relevant, and I knew that part. The big problem is creating the tip of the tentacle, and wrapping it around an object (while staying connected to the cable?)