mgerst / flag-slurper

A red team utility for Cyber Defense Competitions.
https://flag-slurper.rtfd.io
MIT License
3 stars 2 forks source link

Initial setup of flag-slurper shell command #106

Closed mgerst closed 11 months ago

mgerst commented 1 year ago

Add command to spawn a shell with the given project already set. This works in a similar fashion to poetry shell and the like.

$ flag-slurper shell ~/cdc/isu1-20
[-] Launching shell in project
$ echo $SLURPER_PROJECT
~/cdc/isu1-20

This means you no longer need to do eval $(flag-slurper project env ~/cdc/isu1-20).

Closes #74 Replaces #96

codecov[bot] commented 11 months ago

Codecov Report

Attention: 39 lines in your changes are missing coverage. Please review.

Comparison is base (6161c3f) 77.36% compared to head (66a566e) 78.63%. Report is 7 commits behind head on master.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #106 +/- ## ========================================== + Coverage 77.36% 78.63% +1.26% ========================================== Files 27 30 +3 Lines 1551 1769 +218 ========================================== + Hits 1200 1391 +191 - Misses 351 378 +27 ``` | [Files](https://app.codecov.io/gh/mgerst/flag-slurper/pull/106?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Matt+Gerst) | Coverage Δ | | |---|---|---| | [flag\_slurper/autolib/exploit.py](https://app.codecov.io/gh/mgerst/flag-slurper/pull/106?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Matt+Gerst#diff-ZmxhZ19zbHVycGVyL2F1dG9saWIvZXhwbG9pdC5weQ==) | `58.51% <100.00%> (+12.27%)` | :arrow_up: | | [flag\_slurper/autolib/models.py](https://app.codecov.io/gh/mgerst/flag-slurper/pull/106?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Matt+Gerst#diff-ZmxhZ19zbHVycGVyL2F1dG9saWIvbW9kZWxzLnB5) | `100.00% <100.00%> (ø)` | | | [flag\_slurper/autolib/post.py](https://app.codecov.io/gh/mgerst/flag-slurper/pull/106?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Matt+Gerst#diff-ZmxhZ19zbHVycGVyL2F1dG9saWIvcG9zdC5weQ==) | `95.20% <100.00%> (+0.94%)` | :arrow_up: | | [flag\_slurper/cli.py](https://app.codecov.io/gh/mgerst/flag-slurper/pull/106?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Matt+Gerst#diff-ZmxhZ19zbHVycGVyL2NsaS5weQ==) | `100.00% <100.00%> (+2.19%)` | :arrow_up: | | [flag\_slurper/conf/config.py](https://app.codecov.io/gh/mgerst/flag-slurper/pull/106?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Matt+Gerst#diff-ZmxhZ19zbHVycGVyL2NvbmYvY29uZmlnLnB5) | `98.70% <100.00%> (-1.30%)` | :arrow_down: | | [flag\_slurper/shadow/cmd.py](https://app.codecov.io/gh/mgerst/flag-slurper/pull/106?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Matt+Gerst#diff-ZmxhZ19zbHVycGVyL3NoYWRvdy9jbWQucHk=) | `100.00% <100.00%> (ø)` | | | [flag\_slurper/shadow/formatters.py](https://app.codecov.io/gh/mgerst/flag-slurper/pull/106?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Matt+Gerst#diff-ZmxhZ19zbHVycGVyL3NoYWRvdy9mb3JtYXR0ZXJzLnB5) | `100.00% <100.00%> (ø)` | | | [flag\_slurper/autolib/protocols.py](https://app.codecov.io/gh/mgerst/flag-slurper/pull/106?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Matt+Gerst#diff-ZmxhZ19zbHVycGVyL2F1dG9saWIvcHJvdG9jb2xzLnB5) | `31.81% <15.38%> (-2.21%)` | :arrow_down: | | [flag\_slurper/shell.py](https://app.codecov.io/gh/mgerst/flag-slurper/pull/106?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Matt+Gerst#diff-ZmxhZ19zbHVycGVyL3NoZWxsLnB5) | `41.66% <41.66%> (ø)` | | ... and [13 files with indirect coverage changes](https://app.codecov.io/gh/mgerst/flag-slurper/pull/106/indirect-changes?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Matt+Gerst)

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.