You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+4-21Lines changed: 4 additions & 21 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,7 +10,7 @@ Then starts 2 Threads for Async I/O:<br>
10
10
- one thread for reading from the socket and writing to Pseudo Console input pipe;<br>
11
11
- the second thread for reading from the Pseudo Console output pipe and writing to the socket.</p>
12
12
13
-
ConPtyShell has also the magic button "Upgrade to fully interactive" for your reverse shell, just use it as your needs :)
13
+
ConPtyShell has also the magic flag "Upgrade" that transform your current shell in a fully interactive one, use it if you don't want to use a new connection and want to hijack your current shell socket :)
14
14
15
15
If you want to know further information regarding ConPty you can find a great article [1] in the references section.
If you prefer to have more freedom on the tcp listener and your terminal you can proceed with a "Manual" way to get the reverse shell. In this case it's important that you set rows and cols size when calling the Invoke-ConPtyShell function:
51
45
@@ -63,19 +57,9 @@ Here you should use the values read from ```stty size``` command in the Paramete
You can also upgrade your current shell to a fully interecative shell. In this case it's important that you set rows and cols size when calling the Invoke-ConPtyShell function:
74
62
75
-
**WARN1: Do not use Invoke-WebRequest if you load the assembly directly in powershell because ConPtyShell won't work properly when multiple sockets (and multiple \Device\Afd) are found in the current process**
76
-
77
-
**WARN2: Only sockets created with the flag WSA_FLAG_OVERLAPPED are compatible with the upgrade. Non overlapped sockets won't give a nice upgraded shell and it will have locks on I/O operations.**
78
-
79
63
##### Server Side:
80
64
```
81
65
stty size
@@ -88,10 +72,9 @@ stty raw -echo; fg[ENTER]
88
72
Here you should use the values read from ```stty size``` command in the Parameters -Rows and -Cols
In any case if you resize your terminal while you have already open the remote shell you can change the rows and cols size directly from powershell pasting the following code:
@@ -110,9 +93,9 @@ Below you can watch 2 demos. The first gif using the **Method 1** with the compi
0 commit comments