-
Notifications
You must be signed in to change notification settings - Fork 252
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #384 from GoSecure/readme-rework-for-1.2
README rework for 1.2
- Loading branch information
Showing
4 changed files
with
140 additions
and
94 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# Legacy Documentation | ||
|
||
Some legacy documentation kept around just in case it proves useful. | ||
|
||
|
||
## Migrating away from pycrypto | ||
|
||
Since pycrypto isn't maintained anymore, we chose to migrate to pycryptodome. | ||
If you get this error, it means that you are using the module pycrypto instead of pycryptodome. | ||
|
||
``` | ||
[...] | ||
File "[...]/pyrdp/pyrdp/pdu/rdp/connection.py", line 10, in <module> | ||
from Crypto.PublicKey.RSA import RsaKey | ||
ImportError: cannot import name 'RsaKey' | ||
``` | ||
|
||
You will need to remove the module pycrypto and reinstall PyRDP. | ||
|
||
``` | ||
pip3 uninstall pycrypto | ||
pip3 install -U -e . | ||
``` |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# Using PyRDP with twistd | ||
|
||
The PyRDP MITM component was also implemented as a twistd plugin. This enables | ||
you to run it in debug mode and allows you to get an interactive debugging repl | ||
(pdb) if you send a `SIGUSR2` to the twistd process. | ||
|
||
``` | ||
twistd --debug pyrdp -t <target> | ||
``` | ||
|
||
Then to get the repl: | ||
|
||
``` | ||
killall -SIGUSR2 twistd | ||
``` | ||
|
||
# Using PyRDP with twistd in Docker | ||
|
||
In a directory with our `docker-compose.yml` you can run something like this: | ||
|
||
``` | ||
docker-compose run -p 3389:3389 pyrdp twistd --debug pyrdp --target 192.168.1.10:3389 | ||
``` | ||
|
||
This will allocate a TTY and you will have access to `Pdb`'s REPL. Trying to add `--debug` to the `docker-compose.yml` command will fail because there is no TTY allocated. |