— — — — — — — — — — — — — — — — — 2021.5.26 update — — — — — — — — — — — — — — — — — — — — –

The same principle that this article uses to make http-server run in the background (without the black box) and start on the machine, Intranet penetrating commands can also be implemented through a script

— — — — — — — — — — — — — — — — — 2021.5.26 update — — — — — — — — — — — — — — — — — — — — –

The previous one to let their own computer resources (web pages, files, videos, PPT, etc.) by the public network others to access, read this is a personal will build, using the nail Intranet penetration, this article introduces several open source, this can also customize a part of the domain name

       

Faults in front

As in the previous article, which nails Intranet penetration, these three methods have the same certainty that two command-line Windows cannot be crossed. Cross it off and it breaks. I am considering how to make them windowless, running in the background, and boot running, looking for I will update

       

Necessary steps, prerequisite knowledge, install HTTP-server

  1. Download nodejs and install http-server. Click download nodejs to get a.msi file. Double-click to run it.
  2. After the installation is complete, search from the bottom left corner to enter the command line, and typenpm install http-server -gInstall the HTTP server,-gHttp-server is installed globally

       

       

1, ngrok (each domain is random, not recommended, pay can customize the domain name)

Go to the websiteNgrok software website”And logged in. I logged in with my Google accountThen copy your own token.

Download the corresponding version, my computer Windows, I download is Windows

Extract a.exe file and open the command line in this directory. See this blog post for detailsWin10 Open command line window in file path, usuallyShift + right

runNgrok AuthToken Your tokenSo, this is the first time you run it, you don’t have to run it again

< span style = “box-width: 0px; box-width: 0px; box-width: 0px; box-width: 0px; box-width: 0px; box-width: 0px; box-width: 0px; box-width: 0px; If I specify a specific open port 8088 with -p, for example, if I want to share learning materials,

Go back to the directory where we downloaded the file and open the command line and runngrok http 8088Press enter to see the screen below, where the port is the same as the one we opened up above.Do you see the domain names in the red box, one HTTP, one HTTPS, either copy to the browser open, you can see below.

2, ngrok.cc domestic, fast network, and can define a part of the domain name, the most recommended

Go to the website ngrok.cc to register, any email will do

Come in after the point tunnel management, open the tunnel, and then pull to the end, find the free one, immediately buy

Then tunnel management, download the client, my computer 64 bit Win10, so download win64

Copy to your desired folder and unzip it to get two files

< span style = “box-width: 0px; box-width: 0px; box-width: 0px; box-width: 0px; box-width: 0px; box-width: 0px; box-width: 0px; box-width: 0px; If I specify a specific open port 8088 with -p, for example, if I want to share learning materials,

Double click on the.bat file, copy your tunnel ID (in the tunnel management section of the website, the first one) and press Enter

The third line of the interface you get is your domain name mapped to port 8088 on your host

Remember your domain name (which is also available on the tunnel management website), copy it to your browser and open it

IOEE domain name fixed, but can not be set by themselves, generally recommended

As usual, sign up for IOEE website. I did it directly on Github

Package service, package selection, free version go

I can’t do it twice here, so if I click on it, it’s going to let you set a name, and then it’s goneThen go to Mapping configuration and click Edit

After the configuration is complete, click OK

I am win10, so I download Win10 client

Download copy to your desired folder and unzip it to get an EXE file

< span style = “box-width: 0px; box-width: 0px; box-width: 0px; box-width: 0px; box-width: 0px; box-width: 0px; box-width: 0px; box-width: 0px; If I specify a specific open port 8088 with -p, for example, if I want to share learning materials,

Back to download the client directory, open the command line, run the command client_windows_amd64. Exe cd59b1112d9748b292f0fc0eb325abdc – jp.cdjxt.net – p – 5993 – s k SSL true

The browser accesses the site to your domain name