OK, so I guess you can hack any server without knowing it's location/ip right?
Right. You don't need a location or IP to hack a server, you need a
network connection. You need to be able to send and receive datagrams to and from the server. It doesn't matter
how you connect to the server, if you can connect to it, you can hack it through that connection. Hopefully it goes without saying that you don't need a location or IP to connect to a Tor hidden service.
Tor hidden services only provide anonymity and end-to-end encryption. Nothing more.