Last active
May 10, 2024 09:31
-
-
Save sathishshan/fe90b48ff59e2c750b80fc98b04788b6 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Remote Traffic to Localhost -> Ex: Curl to Burp | |
Tunnel Establishment: | |
ssh -fNT -R 8080:localhost:8080 username@IP | |
Test Run: | |
curl -svk https://www.google.com -x http://localhost:8080 | |
----------------------------------------------------------------------------------- | |
Local Traffic to Remote Server -> Ex: Access_WebApp -> WebServer | |
Tunnel Establishment: | |
ssh -fNT -L 8080:localhost:8080 username@IP | |
Test Run: | |
Use browser to access the application running on remote -> http://localhost:8080 | |
------------------------------------------------------------------------------------- | |
Checking Tunnel Alive -> Try on Remote Server | |
nc -z localhost PORT || echo "no tunnel open" | |
netstat -lpnt | grep PORT | |
t: TCP | |
p: show process | |
l: listening | |
n: numeric values | |
------------------------------------------------------- | |
Run python server in Local -> python -m http.server (8000 Default Port) | |
Try to Connect from remote server using curl or telnet | |
telnet localhost PORT | |
Curl localhost:PORT | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment