Skip to content
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

cb/wrapper #20

Draft
wants to merge 15 commits into
base: master
Choose a base branch
from
Draft

cb/wrapper #20

wants to merge 15 commits into from

Conversation

sysgoblin
Copy link
Collaborator

@sysgoblin sysgoblin commented Mar 10, 2021

CLI wrapper for phishpond

TODO:

  • docs
  • tests

Quick setup guide for testing:

  • stop any existing phishpond containers
  • pip install requirements.txt
  • pip install -e .
  • phishpond --setup
  • phishpond
  • Configure > MOUNTS > set mount locations for www and logs (FULL paths)
  • phishpond > Start/Stop > select required modules (press space to select)

Drop in to a shell for the selected container using the Attach menu item.

class Menus(object):
b_opts = {"bullet": ">>", "margin": 2}
c_opts = {"check": ">>", "margin": 2}
banner = textwrap.dedent(
Copy link
Contributor

Choose a reason for hiding this comment

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

👁️ 👄 👁️

@zmallen
Copy link
Contributor

zmallen commented Jun 10, 2021

@sysgoblin some notes from me running this

image

it didn't get to 100% on two of the images, but I think it built?

I tried to run configure and it kept saying invalid volumes. I tried setting different volume names and it didn't work

image

@zmallen
Copy link
Contributor

zmallen commented Jun 10, 2021

phishpond_network not found")
Starting pp_mitmproxy ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 100% 0:00:00
404 Client Error for http+docker://localhost/v1.41/images/create?tag=latest&fromImage=pp_webserver: Not Found ("pull access denied for pp_webserver, 
repository does not exist or may require 'docker login': denied: requested access to the resource is denied")
Starting pp_webserver ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 100% 0:00:00


mitmweb:        http://localhost:8080
webserver:      http://localhost:80


Choose additional modules (mitmproxy/webserver included by default)

Okay.. got it working? Says the phishpond_network isn't available



def run(module):
client = docker.from_env()
Copy link
Contributor

Choose a reason for hiding this comment

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

I think we need to make a docker_network here.. https://docker-py.readthedocs.io/en/stable/networks.html

Copy link
Contributor

Choose a reason for hiding this comment

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

Nevermind.. I see it being made down below.. I don't think its being loaded from the config.


mitmproxy = {
"name": "pp_mitmproxy",
"network": "phishpond_network",
Copy link
Contributor

Choose a reason for hiding this comment

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

nevermind, I see it here.. hmm

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

yea network should be created automatically when running --setup and is included in each config.

@sysgoblin
Copy link
Collaborator Author

re first 2 comments:
weird... not sure why pp_webserver generated 2 jobs like that. the progress basically reads the output of the build log and ticks whenever a a Step x/x completes. maybe the stream died...
and yea, you need to put the full path to the mount location. idea is you can set www and logs to be anywhere on your host.

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