Skip to content

Commit

Permalink
Merge pull request #28 from mbrg/t224
Browse files Browse the repository at this point in the history
fix dependency issues
  • Loading branch information
mbrg authored Apr 18, 2024
2 parents b4893a8 + 8f3c826 commit 08ea5db
Show file tree
Hide file tree
Showing 7 changed files with 22 additions and 21 deletions.
10 changes: 5 additions & 5 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,20 @@ Flask==2.2.5
requests~=2.31.0
msal~=1.20.0
responses~=0.23.1
pytest~=7.2.2
pytest~=8.1.1
pytest-cov~=3.0.0
pytest-xdist~=2.5.0
prance~=0.22.11.4.0
prance~=23.6.21.0
openapi~=1.1.0
openapi-spec-validator~=0.5.6
jsf~=0.7.1
pillow~=10.0.0
pillow>=10.3.0
scandir~=1.10.0
backports.shutil-get-terminal-size~=1.0.0
browsepy~=0.5.6
art
art~=6.1
flake8~=4.0.1
black~=22.3.0
black~=24.4.0
types-requests==2.31.0.1
bandit~=1.7.2
mypy~=1.3.0
Expand Down
12 changes: 6 additions & 6 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[metadata]
name = powerpwn
author = Michael Bargury
version = 2.1.4
author = Michael Bargury, Lana Salameh and Avishai Efrat
version = 2.1.5

[options]
install_requires =
Expand All @@ -12,16 +12,16 @@ install_requires =
requests >=2.31.0
msal >=1.20.0
responses >=0.23.1
pytest >=7.2.2
prance >=0.22.11.4.0
pytest >=8.1.1
prance >=23.6.21.0
openapi >=1.1.0
openapi-spec-validator >=0.5.6
jsf >=0.7.1
pillow >=10.0.0
pillow >=10.3.0
scandir >=1.10.0
backports.shutil-get-terminal-size >=1.0.0
browsepy >=0.5.6
art
art >= 6.1
typing_extensions<4.6.0
pyjwt >=2.6.0

Expand Down
1 change: 1 addition & 0 deletions src/powerpwn/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
def main():
print("\n\n------------------------------------------------------------")
tprint("powerpwn")
print("t2`24 edition\n\n")
print("------------------------------------------------------------\n\n")

args = parse_arguments()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,11 @@ def _ping(self, connection_parameters: dict) -> List[DataStore]:
tenant=None,
account="temp",
scope=None,
host=f'https://{connection_parameters["server"]}.database.windows.net'
if is_windows
else f'https://{connection_parameters["values"]["server"]["value"]}',
host=(
f'https://{connection_parameters["server"]}.database.windows.net'
if is_windows
else f'https://{connection_parameters["values"]["server"]["value"]}'
),
name=connection_parameters["server"] if is_windows else connection_parameters["values"]["server"]["value"],
extra={},
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,4 @@

class IDataCollector(ABC):
@abstractmethod
def collect(self, session: requests.Session, env_id: str, output_dir: str) -> None:
...
def collect(self, session: requests.Session, env_id: str, output_dir: str) -> None: ... # noqa
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,4 @@ def collect(self, session: requests.Session, env_id: str) -> Generator[ResourceE
...

@abstractmethod
def resource_type(self) -> ResourceType:
...
def resource_type(self) -> ResourceType: ... # noqa
6 changes: 3 additions & 3 deletions src/powerpwn/powerdump/utils/model_loaders.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,8 @@ def map_connector_id_and_env_id_to_connection_ids(connections: Generator[Connect
for connection in connections:
if connection.environment_id.startswith("default"):
connection.environment_id = connection.environment_id.replace("default", "Default")
connector_id_and_env_id_to_connection_ids[
(connection.connector_id, connection.environment_id)
] = connector_id_and_env_id_to_connection_ids.get((connection.connector_id, connection.environment_id), []) + [connection.connection_id]
connector_id_and_env_id_to_connection_ids[(connection.connector_id, connection.environment_id)] = (
connector_id_and_env_id_to_connection_ids.get((connection.connector_id, connection.environment_id), []) + [connection.connection_id]
)

return connector_id_and_env_id_to_connection_ids

0 comments on commit 08ea5db

Please sign in to comment.