2020-12-30 06:36:54 +01:00
|
|
|
#!./env/bin/python
|
2021-01-04 00:22:17 +01:00
|
|
|
import subprocess
|
|
|
|
|
2020-12-30 06:36:54 +01:00
|
|
|
import pwncat.manager
|
2021-01-04 00:22:17 +01:00
|
|
|
import pwncat.platform.windows
|
2021-01-02 00:53:13 +01:00
|
|
|
import time
|
2021-01-22 21:52:25 +01:00
|
|
|
import stat
|
2021-02-15 05:32:05 +01:00
|
|
|
import json
|
2020-12-30 06:36:54 +01:00
|
|
|
|
|
|
|
# Create a manager
|
|
|
|
manager = pwncat.manager.Manager("data/pwncatrc")
|
|
|
|
|
|
|
|
# Establish a session
|
2021-01-22 21:52:25 +01:00
|
|
|
# session = manager.create_session("windows", host="192.168.56.10", port=4444)
|
2021-02-15 05:32:05 +01:00
|
|
|
session = manager.create_session("windows", host="192.168.122.11", port=4444)
|
2021-01-22 21:52:25 +01:00
|
|
|
# session = manager.create_session("linux", host="127.0.0.1", port=4444)
|
2021-02-15 05:32:05 +01:00
|
|
|
# session = manager.create_session("windows", host="0.0.0.0", port=4444)
|
2021-01-11 00:01:08 +01:00
|
|
|
|
2021-02-15 05:32:05 +01:00
|
|
|
manager.interactive()
|