netcat
Netcat is a utility that can be used to create connections between two (or more) machines using specified ports. One machine listens for a connection which essentially opens a specific port whilst the other attempts to connect to it. Without firewalls the process is straightforward and allows for a simple connection between the two machines. Firewalls on either machine make it a little more tricky and require a few more steps.
Reverse Shell
- A
reverse shellis a remote access approach where you run administrative commands from one terminal while connecting to another server on the network. To get started, you need to enable the shell tool over a Netcat command by using Netcat reverse shell:
To get started, you need to enable the shell tool over a Netcat command by using Netcat reverse shell
Then from any other system on the network you can connect to the reversed shellConnect to the reversed shell
Bind Shell
Start a bind shell on the target
Below works as:
- Listens on port 1337
- Binds /bin/bash to the socket
- Works on almost all systems
Chat or Web Server
Transfer files
Send syslogs to a server
| Value | Severity | Meaning |
|---|---|---|
| 0 | emerg | System unusable |
| 1 | alert | Immediate action required |
| 2 | crit | Critical condition |
| 3 | err | Error condition |
| 4 | warning | Warning |
| 5 | notice | Normal but significant |
| 6 | info | Informational |
| 7 | debug | Debug-level message |
| Facility Value | Facility Name |
|---|---|
| 0 | kern |
| 1 | user |
| 2 | |
| 3 | daemon |
| 4 | auth |
| 5 | syslog |
| 6 | lpr |
| 7 | news |
| 8 | uucp |
| 9 | cron |
| 10 | authpriv |
| 11 | ftp |
| 16 | local0 |
| 17 | local1 |
| 18 | local2 |
| 19 | local3 |
| 20 | local4 |
| 21 | local5 |
| 22 | local6 |
| 23 | local7 |
| Value | Description |
|---|---|
<13> |
user.notice |
<14> |
user.info |
<15> |
user.debug |
<11> |
user.err |
<4> |
kern.warning |
<132> |
local4.info (16×8+4) |
How to Generate Specific Priority
Send UDP Test Message
Bind A Shell Via Javascript From Webrowser Console
- Listener
- Browser