How to get local network info of website user?

I want to create website with some payload to get user S local network info.
If it’s possible to collect any other info please tell me I just want to collect data as much as possible.

You should look into a beef fremwork ,
You will get payload idea from there.

you can use java script library to develop malware pages .