Podskazhite plz how do the application in Linux, access to the URL when it only supports IP addresses?

Hello.

Need to app that can only work with addresses IP:PORT to make access to our address https:/xxx.com/dasdasd/dasdasd/dsasasd?dsdasdasdasda

How to configure mono Kali that-when referring to, e.g. 127.0.0.1:5000 were bi-directional connection to https:/xxx.com/dasdasd/dasdasd/dsasasd?dsdasdasdasda ?

I tried this code:

$ mkfifo proxypipe

$ mkfifo proxypipe2

$ nc-l 5000-k > proxypipe < proxypipe2 &

$ while true do; openssl s_client -connect www.google.com:443 -quiet < proxypipe > proxypipe2; done

nothing happened, connect also gives aress unknown etc. bugs.

Looking for the easiest and most reliable method.

Thank you !
March 20th 20 at 11:44
2 answers
March 20th 20 at 11:46
Nginx localhost and it redirect wherever you want.
and it will support https connection ?

And if redirect is when you need something, the connection was constantly ?

Is there no simpler method ?

Thank you - candida_Cartwright commented on March 20th 20 at 11:49
March 20th 20 at 11:48
A niche that IP:PORT and https://url/path is at least different protocols. Your application is able to handle https Protocol?
can ! but without the "/path" - candida_Cartwright commented on March 20th 20 at 11:51
Not necessarily, the Protocol can be any, and no matter how "soft" gets the destination address, however, it does not prevent to drive "https" on 10.1.1.1:65000 :)

@madisyn.Kerluke, if you have the source code, it is easier to finished a variety of specifying a server address, rather than to split hairs with proxies, etc., will only have to specify rdinit DNS name if the domain to which you will appeal nowhere zaregan (DNS server or HOSTS file)

In Python, resolv name in the address is very simple
import socket
data = socket.gethostbyname_ex("sysalex.com")

print " IP ", data

well, parsing the URL is the identity task and simple Google about one request :)
https://docs.python.org/3/library/urllib.parse.html - agnes43 commented on March 20th 20 at 11:54

Find more questions by tags LinuxIP