Skip to content

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

Open
wants to merge 17 commits into
base: master
Choose a base branch
from

Conversation

shizhongpwn
Copy link

because othre program update , this project have some error, and i change it to user python3, and fix iterm2 bugs in macos.

Copy link
Owner

@Escapingbug Escapingbug left a 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)
Copy link
Owner

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)
Copy link
Owner

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?

Copy link
Author

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.

@@ -0,0 +1 @@
parseheap
Copy link
Owner

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..?

@@ -0,0 +1 @@
parseheap
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This one as well

@@ -0,0 +1,16 @@
{
Copy link
Owner

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()
Copy link
Owner

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):
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this used?

@shizhongpwn
Copy link
Author

i already fixed

Copy link
Owner

@Escapingbug Escapingbug left a 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']
Copy link
Owner

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

Copy link
Author

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 && \
Copy link
Owner

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 && \
Copy link
Owner

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)


# 这个主要是用来传递终端参数的,执行的命令,和选择的终端信息。
Copy link
Owner

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)) #连接服务器
Copy link
Owner

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 = {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

trailing space

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants