Compare commits

..

3 Commits

Author SHA1 Message Date
Richard Mwewa
79a97a7883 Update setup.py 2023-01-22 02:48:11 +02:00
Richard Mwewa
ac6ebc6d72 Update octosuite.py 2023-01-22 02:45:05 +02:00
Richard Mwewa
a12210cfa2 Fixed bug in octosuite.py 2023-01-22 01:17:50 +02:00
2 changed files with 5 additions and 12 deletions

View File

@@ -199,14 +199,7 @@ An advanced and lightning fast framework for gathering open-source intelligence
Whats new in v{version_tag}? Whats new in v{version_tag}?
[{green}IMPROVED{reset}] Octosuite will now also run with command line arguments (use 'octosuite --help', to show usage) [{green}FIXED{reset}] Fixed a bug '[ERROR] An error occurred: can only concatenate str (not "NoneType") to str'
[{green}IMPROVED{reset}] Users will now be able to view previous commands with the ↑ ↓ arrow keys (for Windows systems)
[{green}IMPROVED{reset}] Removed width from tables, so that they can auto adjust
[{green}ADDED{reset}] Added the 'ls' command, which will be used to list all files and directories of the specified directory (beta)
[{green}ADDED{reset}] Added the 'cd' command, which will be used to move to a specified directory (beta)
[{green}ADDED{reset}] Added the 'log:clear' command, which will be used to clear all logs
[{green}ADDED{reset}] Added the 'csv:clear' command, which will be used to clear all csv files
[{green}GUI{reset}] The GUI will now come as a standalone executable
Read the wiki: https://github.com/bellingcat/octosuite/wiki Read the wiki: https://github.com/bellingcat/octosuite/wiki
GitHub REST API documentation: https://docs.github.com/rest GitHub REST API documentation: https://docs.github.com/rest
@@ -527,7 +520,7 @@ class Octosuite:
if response.status_code == 404: if response.status_code == 404:
xprint(f"{NEGATIVE} {org_not_found.format(organization)}") xprint(f"{NEGATIVE} {org_not_found.format(organization)}")
elif response.status_code == 200: elif response.status_code == 200:
org_profile_tree = Tree("\n" + response.json()['name']) org_profile_tree = Tree("\n{response.json()['name']}")
for attr in self.org_attrs: for attr in self.org_attrs:
org_profile_tree.add(f"{self.org_attr_dict[attr]}: {response.json()[attr]}") org_profile_tree.add(f"{self.org_attr_dict[attr]}: {response.json()[attr]}")
xprint(org_profile_tree) xprint(org_profile_tree)
@@ -547,7 +540,7 @@ class Octosuite:
if response.status_code == 404: if response.status_code == 404:
xprint(f"{NEGATIVE} {user_not_found.format(username)}") xprint(f"{NEGATIVE} {user_not_found.format(username)}")
elif response.status_code == 200: elif response.status_code == 200:
user_profile_tree = Tree("\n" + response.json()['name']) user_profile_tree = Tree(f"\n{response.json()['name']}")
for attr in self.profile_attrs: for attr in self.profile_attrs:
user_profile_tree.add(f"{self.profile_attr_dict[attr]}: {response.json()[attr]}") user_profile_tree.add(f"{self.profile_attr_dict[attr]}: {response.json()[attr]}")
xprint(user_profile_tree) xprint(user_profile_tree)
@@ -570,7 +563,7 @@ class Octosuite:
if response.status_code == 404: if response.status_code == 404:
xprint(f"{NEGATIVE} {repo_or_user_not_found.format(repo_name, username)}") xprint(f"{NEGATIVE} {repo_or_user_not_found.format(repo_name, username)}")
elif response.status_code == 200: elif response.status_code == 200:
repo_profile_tree = Tree("\n" + response.json()['full_name']) repo_profile_tree = Tree(f"\n{response.json()['full_name']}")
for attr in self.repo_attrs: for attr in self.repo_attrs:
repo_profile_tree.add(f"{self.repo_attr_dict[attr]}: {response.json()[attr]}") repo_profile_tree.add(f"{self.repo_attr_dict[attr]}: {response.json()[attr]}")
xprint(repo_profile_tree) xprint(repo_profile_tree)

View File

@@ -5,7 +5,7 @@ with open("README.md", "r", encoding="utf-8") as file:
setuptools.setup( setuptools.setup(
name="octosuite", name="octosuite",
version="3.0.1", version="3.0.2",
author="Richard Mwewa", author="Richard Mwewa",
author_email="rly0nheart@duck.com", author_email="rly0nheart@duck.com",
packages=["octosuite"], packages=["octosuite"],