mirror of
https://github.com/bellingcat/octosuite.git
synced 2026-06-12 21:38:34 +03:00
Compare commits
13 Commits
2.0.0-beta
...
2.0.1-alph
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
62a9556432 | ||
|
|
705966135d | ||
|
|
85e5c28a33 | ||
|
|
19165e1d48 | ||
|
|
c669aa87af | ||
|
|
7d0c462842 | ||
|
|
10e2d2dae7 | ||
|
|
d0f9ff2dd0 | ||
|
|
c88ec5f5ed | ||
|
|
161da5f5be | ||
|
|
5dd0ce300d | ||
|
|
89b98b7281 | ||
|
|
3e750bced7 |
@@ -1,11 +1,11 @@
|
|||||||

|

|
||||||
|
|
||||||

|

|
||||||

|

|
||||||

|

|
||||||

|

|
||||||

|

|
||||||

|

|
||||||

|

|
||||||
|
|
||||||
> *Simply gather OSINT on Github users & organizations like a God🔥*
|
> *Simply gather OSINT on Github users & organizations like a God🔥*
|
||||||
|
|||||||
28
core/main.py
28
core/main.py
@@ -16,14 +16,15 @@
|
|||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
import logging
|
import logging
|
||||||
|
import getpass
|
||||||
import requests
|
import requests
|
||||||
import platform
|
import platform
|
||||||
import subprocess
|
import subprocess
|
||||||
from tqdm import tqdm
|
from tqdm import tqdm
|
||||||
from pprint import pprint
|
from pprint import pprint
|
||||||
from utils.misc import Banner
|
from utilities.misc import Banner
|
||||||
from utils.helper import Help
|
from utilities.helper import Help
|
||||||
from utils.colors import Color
|
from utilities.colors import Color
|
||||||
from datetime import datetime
|
from datetime import datetime
|
||||||
|
|
||||||
|
|
||||||
@@ -315,7 +316,7 @@ class Octosuite:
|
|||||||
# Use 'cls' to clear screen on Windows based machines
|
# Use 'cls' to clear screen on Windows based machines
|
||||||
# Otherwise, use 'clear'
|
# Otherwise, use 'clear'
|
||||||
while True:
|
while True:
|
||||||
command_input = input(f'''\n{Color.white}┌──({Color.red}{os.getlogin()}{Color.white}@{Color.red}octosuite{Color.white})-[{Color.green}{os.getcwd()}{Color.white}]\n└╼[{Color.green}:_{Color.white}]{Color.reset} ''')
|
command_input = input(f'''\n{Color.white}┌──({Color.red}{getpass.getuser()}{Color.white}@{Color.red}octosuite{Color.white})-[{Color.green}{os.getcwd()}{Color.white}]\n└╼[{Color.green}:_{Color.white}]{Color.reset} ''')
|
||||||
# Looping through the commands base to check if the user input command matches any command in the commands base, and return its functionality
|
# Looping through the commands base to check if the user input command matches any command in the commands base, and return its functionality
|
||||||
# If no match is found, we ignore it
|
# If no match is found, we ignore it
|
||||||
for command, functionality in self.commands_map:
|
for command, functionality in self.commands_map:
|
||||||
@@ -673,7 +674,7 @@ class Octosuite:
|
|||||||
|
|
||||||
# Update program
|
# Update program
|
||||||
def installUpdate(self):
|
def installUpdate(self):
|
||||||
files_to_update = ['core/main.py','utils/helper.py','utils/misc.py','utils/colors.py','utils/changelog.py','octosuite','.github/dependabot.yml','.github/ISSUE_TEMPLATE/bug_report.md','.github/ISSUE_TEMPLATE/feature_request.md','.github/ISSUE_TEMPLATE/config.yml','LICENSE','README.md','requirements.txt']
|
files_to_update = ['core/main.py','utilities/helper.py','utilities/misc.py','utilities/colors.py','octosuite','.github/dependabot.yml','.github/ISSUE_TEMPLATE/bug_report.md','.github/ISSUE_TEMPLATE/feature_request.md','.github/ISSUE_TEMPLATE/config.yml','LICENSE','README.md','requirements.txt']
|
||||||
logging.info(logMsg.installingUpdates)
|
logging.info(logMsg.installingUpdates)
|
||||||
for file in tqdm(files_to_update,desc = logMsg.installingUpdates):
|
for file in tqdm(files_to_update,desc = logMsg.installingUpdates):
|
||||||
data = requests.get(f'https://raw.githubusercontent.com/rly0nheart/octosuite/master/{file}')
|
data = requests.get(f'https://raw.githubusercontent.com/rly0nheart/octosuite/master/{file}')
|
||||||
@@ -700,25 +701,12 @@ class Octosuite:
|
|||||||
# It's actually frustrating having to change this everytime I publish a new release lol
|
# It's actually frustrating having to change this everytime I publish a new release lol
|
||||||
print(f'''
|
print(f'''
|
||||||
Tag: {Banner.versionTag}
|
Tag: {Banner.versionTag}
|
||||||
Released at: 2022-05-20 03:26AM
|
Released at: 2022-05-25 11:05AM
|
||||||
{'-'*31}
|
{'-'*31}
|
||||||
|
|
||||||
What's changed?
|
What's changed?
|
||||||
{'-'*15}
|
{'-'*15}
|
||||||
[✓] The PyPI package has been deprecated and will no longer receive any further updates
|
[✓] Fixed a bug in issue #2''')
|
||||||
[✓] Added a functionality for returning organizations belonging to a target user (user:orgs)
|
|
||||||
[✓] Added a functionality for returning a target user's subscriptions (user:subscriptions)
|
|
||||||
[✓] Added a functionality for returning a target user's events (user:events)
|
|
||||||
[✓] Added a functionality for returning a list of contributors of a repository (repo:contributors)
|
|
||||||
[✓] Added a functionality for returning languages of a repository (repo:languages)
|
|
||||||
[✓] Added a functionality for returning stargazers of a repository (repo:stargazers)
|
|
||||||
[✓] Added a functionality for returning forks of a repository (repo:forks)
|
|
||||||
[✓] Added a functionality for checking for latest releases of Octosuite (update:check)
|
|
||||||
[✓] Added the "clear" command for clearing the screen in the Octosuite command prompt
|
|
||||||
[✓] Moved the use of the 'update' comnand to 'update:install'
|
|
||||||
[✓] Will no longer show the "Press any key to continue" prompt, it will instead return its command prompt
|
|
||||||
[✓] Commands are no longer case sensitive
|
|
||||||
[✓] Major perfomance improvements''')
|
|
||||||
|
|
||||||
|
|
||||||
# Author info
|
# Author info
|
||||||
|
|||||||
1
downloads/.downloads
Normal file
1
downloads/.downloads
Normal file
@@ -0,0 +1 @@
|
|||||||
|
|
||||||
1
images/.images
Normal file
1
images/.images
Normal file
@@ -0,0 +1 @@
|
|||||||
|
|
||||||
|
Before Width: | Height: | Size: 34 KiB After Width: | Height: | Size: 34 KiB |
@@ -1,8 +1,8 @@
|
|||||||
#!/usr/bin/env python3
|
#!/usr/bin/env python3
|
||||||
|
|
||||||
import logging
|
import logging
|
||||||
from utils.colors import Color
|
from utilities.colors import Color
|
||||||
from utils.misc import Banner
|
from utilities.misc import Banner
|
||||||
from core.main import Octosuite, Attributes, logMsg
|
from core.main import Octosuite, Attributes, logMsg
|
||||||
|
|
||||||
print(Banner.nameLogo)
|
print(Banner.nameLogo)
|
||||||
@@ -16,4 +16,4 @@ if __name__ == '__main__':
|
|||||||
|
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
logging.error(logMsg.Error.format(e))
|
logging.error(logMsg.Error.format(e))
|
||||||
print(Attributes.error, logMsg.Exception.format(f'{Color.red}{e}{Color.reset}'))
|
print(Attributes.error, logMsg.Error.format(f'{Color.red}{e}{Color.reset}'))
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import os
|
|
||||||
import sys
|
import sys
|
||||||
|
import getpass
|
||||||
import platform
|
import platform
|
||||||
from datetime import datetime
|
from datetime import datetime
|
||||||
|
|
||||||
@@ -39,7 +39,7 @@ class Color:
|
|||||||
print("\n")
|
print("\n")
|
||||||
while True:
|
while True:
|
||||||
try:
|
try:
|
||||||
color_chooser = input(f"[ ? ] Welcome {os.getlogin()}, would you like to enable colors for this session? (y/n) ")
|
color_chooser = input(f"[ ? ] Welcome {getpass.getuser()}, would you like to enable colors for this session? (y/n) ")
|
||||||
if color_chooser.lower() == "y":
|
if color_chooser.lower() == "y":
|
||||||
white = "\033[97m"
|
white = "\033[97m"
|
||||||
red = "\033[91m"
|
red = "\033[91m"
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
from utils.colors import Color
|
from utilities.colors import Color
|
||||||
|
|
||||||
class Help:
|
class Help:
|
||||||
usageText = 'Use {} to get started'
|
usageText = 'Use {} to get started'
|
||||||
@@ -1,18 +1,18 @@
|
|||||||
import os
|
import getpass
|
||||||
from utils.colors import Color
|
from utilities.colors import Color
|
||||||
|
|
||||||
class Banner:
|
class Banner:
|
||||||
versionTag = '2.0.0-beta'
|
versionTag = '2.0.1-alpha'
|
||||||
nameLogo = f'''{Color.white}
|
nameLogo = f'''{Color.white}
|
||||||
_______ __ _______ __ __
|
_______ __ _______ __ __
|
||||||
| |.----.| |_.-----.| __|.--.--.|__| |_.-----.
|
| |.----.| |_.-----.| __|.--.--.|__| |_.-----.
|
||||||
| - || __|| _| _ ||__ || | || | _| -__|
|
| - || __|| _| _ ||__ || | || | _| -__|
|
||||||
|_______||____||____|_____||_______||_____||__|____|_____|
|
|_______||____||____|_____||_______||_____||__|____|_____|
|
||||||
v{versionTag}
|
v{versionTag}
|
||||||
{Color.white}— Advanced Github {Color.red}OSINT{Color.white} Framework{Color.reset}
|
{Color.white}— Advanced Github {Color.red}OSINT{Color.white} Framework{Color.reset}
|
||||||
|
|
||||||
|
|
||||||
.:{Color.white}{Color.green}{os.getlogin()}{Color.reset}:.
|
.:{Color.white}{Color.green}{getpass.getuser()}{Color.reset}:.
|
||||||
|
|
||||||
- {Color.white}Use {Color.green}help{Color.reset}{Color.white} command for usage{Color.reset}
|
- {Color.white}Use {Color.green}help{Color.reset}{Color.white} command for usage{Color.reset}
|
||||||
- {Color.white}Commands are case insensitive{Color.reset}
|
- {Color.white}Commands are case insensitive{Color.reset}
|
||||||
Reference in New Issue
Block a user