Giter Site home page Giter Site logo

hckops / hckctl Goto Github PK

View Code? Open in Web Editor NEW
8.0 8.0 0.0 8.64 MB

The Security Automation Toolkit

License: GNU General Public License v3.0

Go 99.76% Just 0.24%
adversarial-attacks adversary-emulation bugbounty devsecops hacking mitre-attack pentesting pwnbox security-automation

hckctl's People

Contributors

dependabot[bot] avatar niqdev avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

hckctl's Issues

shared folder flag

By default the content of ${HOME}/.local/state/hck/share is automatically

  • mounted as path - for the docker provider
  • uploaded to a shared volume with the pod - for the kube provider

The current approach works but it is not efficient: add a flag to specify the path to upload and disable this feature by default

cloud provider preview

Placeholder to collect feedback and interest about the managed cloud platform, as of today it's in private preview only.
Please, leave a comment or a ๐Ÿ‘๐Ÿป and we'll make sure to keep you posted and let you know about general availability.

Don't forget to โญ the project!

shared folder issue

On macOS the docker provider is not working. How to reproduce the error

brew install homebrew/cask/docker
brew install hckops/tap/hckctl
hckctl box alpine

Error

2023-11-15T21:58:48Z WRN ../../home/runner/work/hckctl/hckctl/internal/command/box/common.go:54 > error invoking client: provider=docker
error="error container create: Error response from daemon: invalid mount config for type \"bind\": bind source path does not exist: /host_mnt/Users/<REDACTED>/Library/Application Support/hck/share" sessionId=ijea7 source=hckctl

Similar error with the kube provider

2023-11-15T22:18:31Z WRN ../../home/runner/work/hckctl/hckctl/internal/command/box/common.go:54 > error invoking client: provider=kube
error="error copy invalid localPath=/Users/<REDACTED>/Library/Application Support/hck/share" sessionId=g3gjr source=hckctl

For kube the quick solution is to run

mkdir -p /Users/admin/Library/Application\ Support/hck/share

Investigate

  • github.com/adrg/xdg
  • docker why the path is read-only by default and why it uses the prefix /host_mnt which requires the user to manually edit the setting in Docker Desktop i.e. Settings > Resources > File sharing - the folder shouldn't be read-only
  • kube why the folder is not automatically created

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.