-
Notifications
You must be signed in to change notification settings - Fork 27
fix bugs in order to use easily #23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for your pull request! But there's something I found that may need some cleanup.
README.md
Outdated
@@ -61,7 +59,7 @@ Current official backends: | |||
Current official terminals: | |||
|
|||
- [ancypwn-terminal-alacritty](https://github.com/Escapingbug/ancypwn-terminal-alacritty) | |||
- [ancypwn-terminal-iterm2](https://github.com/Escapingbug/ancypwn-terminal-iterm2) | |||
- [ancypwn-terminal-iterm2](https://github.com/shizhongpwn/ancypwn-terminal-iterm2.git) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is the problem with the current solution? If you please, you might fire an PR to that repo as well instead of just replacing the "official" one?
README.md
Outdated
|
||
pip3 install ancypwn | ||
# pip3 install ancypwn-backend-* (choose your backend, and install it) | ||
# pip3 install ancypwn-terminal-* (choose your terminal, and install it) | ||
# install ancypwn-backend-* (choose your backend, and install it) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is the "pip3" missing exactly?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
becauser it can't download through pip3.
ancypwn-docker/16.04/.gdb_history
Outdated
@@ -0,0 +1 @@ | |||
parseheap |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this is a mistake..?
ancypwn-docker/20.04/.gdb_history
Outdated
@@ -0,0 +1 @@ | |||
parseheap |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This one as well
ancypwn-terminal/launch.json
Outdated
@@ -0,0 +1,16 @@ | |||
{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This file should not be uploaded.
src/ancypwn.py
Outdated
] | ||
|
||
|
||
system = platform.system().lower() | ||
if 'linux' in system or 'darwin' in system: | ||
system = platform.system().lower() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hopefully, you could deal with the trailing whitespace.
src/server.py
Outdated
@@ -5,6 +5,8 @@ | |||
import importlib | |||
from socketserver import TCPServer, StreamRequestHandler | |||
|
|||
class PluginNotFoundError(Exception): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this used?
i already fixed |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And one more thing, why do we have those submodules present? Are those neccessary?
src/server.py
Outdated
content = json.loads(json_content) | ||
terminal = content['terminal'] | ||
if content['exec'] != '': | ||
terminal = content['terminal'] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sadly the trailing whitespace is still present
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok, i already kown and delete it.
cd ~ && tar -xvf /usr/src/glibc/glibc-2.23.tar.xz | ||
|
||
# python/ruby packages & gdb-plugin | ||
#RUN wget https://files.pythonhosted.org/packages/cd/82/04e9aaf603fdbaecb4323b9e723f13c92c245f6ab2902195c53987848c78/pip-21.1.2-py3-none-any.whl && \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this line of comment useful or we can just remove it away?
|
||
# python/ruby packages & gdb-plugin | ||
#RUN wget https://files.pythonhosted.org/packages/cd/82/04e9aaf603fdbaecb4323b9e723f13c92c245f6ab2902195c53987848c78/pip-21.1.2-py3-none-any.whl && \ | ||
#RUN pip3 install pip-21.1.2-py3-none-any.whl && \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If those comments are not needed, please remove them to keep the codebase clean.
@@ -10,32 +11,28 @@ def pack(num): | |||
return struct.pack('<I', num) | |||
|
|||
|
|||
# 这个主要是用来传递终端参数的,执行的命令,和选择的终端信息。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please use English if you tend to keep this comment.
sock.connect((args.server, port)) | ||
|
||
sock.sendall(protocol_msg) | ||
sock.connect((args.server, port)) #连接服务器 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The same as before.
@@ -40,7 +40,7 @@ | |||
install_plugin_name = 'windows' | |||
|
|||
|
|||
DEFAULT_CONFIG = { | |||
DEFAULT_CONFIG = { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
trailing space
because othre program update , this project have some error, and i change it to user python3, and fix iterm2 bugs in macos.