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

Code refactor, arguments extension #21

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open

Conversation

zeinlol
Copy link

@zeinlol zeinlol commented May 7, 2024

Desired Outcome

Update structure of code, add new arguments

Implemented Changes

  • New arguments
  • Refactored code to improve readability and code style
  • update requirements

@DanielNiv DanielNiv self-requested a review May 7, 2024 19:57
Copy link
Contributor

Choose a reason for hiding this comment

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

Please rename the file to consts.py

\____/|_|\___/|_.__/\_| |_/\__,_|_| |_|\__\___|_|

-------------------------------------------------------------
Author: Daniel Niv & Nick Borshchov
Copy link
Contributor

@DanielNiv DanielNiv May 8, 2024

Choose a reason for hiding this comment

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

We will not change the logo for every person who commits, as we have many contributors.
It should be the same as the original.

subprocess.check_output("az login", shell=True, stderr=subprocess.DEVNULL)
username = subprocess.check_output("az account show --query user.name", shell=True,
stderr=subprocess.DEVNULL).decode("utf-8")
credentials = AzureCliCredential()
print("[+] Logged in as user {}".format(username.replace('"', '').replace("\n", '')), flush=True)
Copy link
Contributor

Choose a reason for hiding this comment

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

Please change all the strings to f-strings.

Copy link
Contributor

Choose a reason for hiding this comment

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

Do we really need the newer packages versions?



def create_parser():
parser = argparse.ArgumentParser(description='The AWS Cloud Post Exploitation framework')
Copy link
Contributor

Choose a reason for hiding this comment

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

This description is not correct.

Copy link
Contributor

Choose a reason for hiding this comment

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

Please rename the file to args.py

Copy link
Contributor

Choose a reason for hiding this comment

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

Please rename the file to file_ops.py

@g3rzi g3rzi self-requested a review July 7, 2024 16:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants