Skip to content

Conversation

@sinfulz
Copy link

@sinfulz sinfulz commented Jan 27, 2022

pycobalt/third_party/SharpGen currently contains the following in the file: /share/tools/development/SharpGen. This path does not exist by default and will cause PyCobalt to error on install with the follow error:

root@kali:/opt/pycobalt# python3 setup.py install
including data_files: [('aggressor', ['aggressor/pycobalt.cna']), ('aggressor', ['aggressor/json.cna']), ('aggressor/jars', ['aggressor/jars/json.jar']), ('examples', ['examples/sharpgen.py']), ('examples', ['examples/note.gui.cna']), ('examples', ['examples/aliases.cna']), ('examples', ['examples/note.gui.py']), ('examples', ['examples/ps.py']), ('examples', ['examples/sharpgen.cna']), ('examples', ['examples/elist.txt']), ('examples', ['examples/recon.cna']), ('examples', ['examples/ps.cna']), ('examples', ['examples/aliases.py']), ('examples', ['examples/bot.py']), ('examples', ['examples/recon.py']), ('examples', ['examples/utils.py']), ('examples', ['examples/bot.cna']), ('third_party', ['third_party/SharpGen']), ('.git', ['.git/HEAD']), ('.git', ['.git/index']), ('.git', ['.git/description']), ('.git', ['.git/packed-refs']), ('.git', ['.git/config']), ('.git/info', ['.git/info/exclude']), ('.git/logs', ['.git/logs/HEAD']), ('.git/logs/refs/remotes/origin', ['.git/logs/refs/remotes/origin/HEAD']), ('.git/logs/refs/heads', ['.git/logs/refs/heads/master']), ('.git/hooks', ['.git/hooks/pre-commit.sample']), ('.git/hooks', ['.git/hooks/pre-rebase.sample']), ('.git/hooks', ['.git/hooks/pre-merge-commit.sample']), ('.git/hooks', ['.git/hooks/update.sample']), ('.git/hooks', ['.git/hooks/push-to-checkout.sample']), ('.git/hooks', ['.git/hooks/pre-push.sample']), ('.git/hooks', ['.git/hooks/post-update.sample']), ('.git/hooks', ['.git/hooks/commit-msg.sample']), ('.git/hooks', ['.git/hooks/fsmonitor-watchman.sample']), ('.git/hooks', ['.git/hooks/pre-receive.sample']), ('.git/hooks', ['.git/hooks/pre-applypatch.sample']), ('.git/hooks', ['.git/hooks/applypatch-msg.sample']), ('.git/hooks', ['.git/hooks/prepare-commit-msg.sample']), ('.git/refs/remotes/origin', ['.git/refs/remotes/origin/HEAD']), ('.git/refs/heads', ['.git/refs/heads/master']), ('.git/objects/pack', ['.git/objects/pack/pack-04a187e2061ff9172cbffbc3d4596de422be2724.pack']), ('.git/objects/pack', ['.git/objects/pack/pack-04a187e2061ff9172cbffbc3d4596de422be2724.idx'])]
running install
running bdist_egg
running egg_info
writing pycobalt.egg-info/PKG-INFO
writing dependency_links to pycobalt.egg-info/dependency_links.txt
writing top-level names to pycobalt.egg-info/top_level.txt
reading manifest file 'pycobalt.egg-info/SOURCES.txt'
writing manifest file 'pycobalt.egg-info/SOURCES.txt'
installing library code to build/bdist.linux-x86_64/egg
running install_lib
running build_py
installing package data to build/bdist.linux-x86_64/egg
running install_data
error: can't copy 'third_party/SharpGen': doesn't exist or not a regular file

This can be fixed by adding sharpgen.py to SharpGen, or, symlinking SharpGen to sharpgen.py.

pycobalt/third_party/SharpGen currently contains the following in the file: "/share/tools/development/SharpGen". This path does not exist by default and will cause PyCobalt to error on install with the follow error:
```
root@kali:/opt/pycobalt# python3 setup.py install
including data_files: [('aggressor', ['aggressor/pycobalt.cna']), ('aggressor', ['aggressor/json.cna']), ('aggressor/jars', ['aggressor/jars/json.jar']), ('examples', ['examples/sharpgen.py']), ('examples', ['examples/note.gui.cna']), ('examples', ['examples/aliases.cna']), ('examples', ['examples/note.gui.py']), ('examples', ['examples/ps.py']), ('examples', ['examples/sharpgen.cna']), ('examples', ['examples/elist.txt']), ('examples', ['examples/recon.cna']), ('examples', ['examples/ps.cna']), ('examples', ['examples/aliases.py']), ('examples', ['examples/bot.py']), ('examples', ['examples/recon.py']), ('examples', ['examples/utils.py']), ('examples', ['examples/bot.cna']), ('third_party', ['third_party/SharpGen']), ('.git', ['.git/HEAD']), ('.git', ['.git/index']), ('.git', ['.git/description']), ('.git', ['.git/packed-refs']), ('.git', ['.git/config']), ('.git/info', ['.git/info/exclude']), ('.git/logs', ['.git/logs/HEAD']), ('.git/logs/refs/remotes/origin', ['.git/logs/refs/remotes/origin/HEAD']), ('.git/logs/refs/heads', ['.git/logs/refs/heads/master']), ('.git/hooks', ['.git/hooks/pre-commit.sample']), ('.git/hooks', ['.git/hooks/pre-rebase.sample']), ('.git/hooks', ['.git/hooks/pre-merge-commit.sample']), ('.git/hooks', ['.git/hooks/update.sample']), ('.git/hooks', ['.git/hooks/push-to-checkout.sample']), ('.git/hooks', ['.git/hooks/pre-push.sample']), ('.git/hooks', ['.git/hooks/post-update.sample']), ('.git/hooks', ['.git/hooks/commit-msg.sample']), ('.git/hooks', ['.git/hooks/fsmonitor-watchman.sample']), ('.git/hooks', ['.git/hooks/pre-receive.sample']), ('.git/hooks', ['.git/hooks/pre-applypatch.sample']), ('.git/hooks', ['.git/hooks/applypatch-msg.sample']), ('.git/hooks', ['.git/hooks/prepare-commit-msg.sample']), ('.git/refs/remotes/origin', ['.git/refs/remotes/origin/HEAD']), ('.git/refs/heads', ['.git/refs/heads/master']), ('.git/objects/pack', ['.git/objects/pack/pack-04a187e2061ff9172cbffbc3d4596de422be2724.pack']), ('.git/objects/pack', ['.git/objects/pack/pack-04a187e2061ff9172cbffbc3d4596de422be2724.idx'])]
running install
running bdist_egg
running egg_info
writing pycobalt.egg-info/PKG-INFO
writing dependency_links to pycobalt.egg-info/dependency_links.txt
writing top-level names to pycobalt.egg-info/top_level.txt
reading manifest file 'pycobalt.egg-info/SOURCES.txt'
writing manifest file 'pycobalt.egg-info/SOURCES.txt'
installing library code to build/bdist.linux-x86_64/egg
running install_lib
running build_py
installing package data to build/bdist.linux-x86_64/egg
running install_data
error: can't copy 'third_party/SharpGen': doesn't exist or not a regular file
```
This can be fixed by adding sharpgen.py to SharpGen, or, symlinking SharpGen to sharpgen.py.
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.

1 participant