Coder Social home page Coder Social logo

opsdisk / the_cyber_plumbers_handbook Goto Github PK

View Code? Open in Web Editor NEW
2.5K 36.0 162.0 5.18 MB

Free copy of The Cyber Plumber's Handbook - The definitive guide to Secure Shell (SSH) tunneling, port redirection, and bending traffic like a boss.

Home Page: https://opsdisk.gumroad.com/l/cphlab

License: Other

ssh penetration-testing tunneling kali oscp lateral-movement socks5 proxychains blueteam redteam

the_cyber_plumbers_handbook's People

Contributors

opsdisk avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

the_cyber_plumbers_handbook's Issues

Reverse dynamic forwarding

Great book, thanks!

Since version 7.6, OpenSSH client is able to act as a reverse SOCKS 5 proxy with -R option (just don't provide tunnel target). Great function to give an isolated host full internet access… I already use it to update hosts, download stuff from internet, or access internal network resources from a distant server.
It should be described as a part of 6 or 7 chapter.

hostnames vs. IPs

You use names in the text, but IPs in the actual commands... for instance, you write: "This sets up a remote port forward on JUMPBOX1’s 127.0.0.1 interface on TCP 5000", then show this as:

ssh -p 22 [email protected] -R 127.0.0.1:5000:127.0.0.1:5555

However, using ports in numbers and hosts in text allows you to immediately pick out which is which, esp. in more complex lines... this seems far more readable... and eliminating the private IP space it makes it seem more real (I mean... who uses an IP vs. a FQDN/SSH host entry?)

ssh -p 22 nemo@jumpbox1 -R localhost:5000:localhost:5555

All IMHO, of course.

Using shell prompts to help readabilty

Some commands are not immediately obvious as to what host you are asking people to type things on. Esp. for simple things this isn't much of an issue, but when you're shuffling commands between several hosts the text can be ambiguous... for instance (p42, netcat chat):

"For this demonstration, we are also going to initiate a vanilla SSH connection to TARGET1, in order to get a shell on the box."

ssh -p 22 nemo@192 .168.1.230

Initiate a SSH connection from where? (To be fair you do usually say it in the text, but not always, and if this is for people learning... why not be more clear?)

Having a prompt with a hostname would make it clear that you're talking about doing this from KALI... e.g. (prompt whatever, but have that hostname in) -

root@kali: ~ ssh -p 22 nemo@192 .168.1.230

I'll note that the screenshots of your kali box always has the prompt with the hostname clearly indicated (having a different color for the prompt also helps clarify what to type.)

One downside is it makes it ever-so-slightly harder to cut-n-paste, but presumably no one is going to use the same hostname/IPs as you use anyway, so... again, IMHO.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.