Compare commits
5 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
16be1c5ee4 | ||
|
|
7346a42227 | ||
|
|
85ed2e7227 | ||
|
|
f9f315da33 | ||
|
|
741aa78ff4 |
@@ -1189,7 +1189,7 @@ class MenuBar(QtWidgets.QMenuBar):
|
|||||||
if itemJSONNotes != '':
|
if itemJSONNotes != '':
|
||||||
itemPrimaryField = itemJSON[self.parent().RESOURCEHANDLER.getPrimaryFieldForEntityType(
|
itemPrimaryField = itemJSON[self.parent().RESOURCEHANDLER.getPrimaryFieldForEntityType(
|
||||||
itemJSON['Entity Type'])]
|
itemJSON['Entity Type'])]
|
||||||
fileName = itemPrimaryField + ' | ' + itemJSON.get('Date Last Edited', str(time.time_ns())) + '.txt'
|
fileName = itemPrimaryField + '_' + itemJSON.get('Date Last Edited', str(time.time_ns())) + '.txt'
|
||||||
fileName = fileName.replace('/', '+')
|
fileName = fileName.replace('/', '+')
|
||||||
fileName = fileName.replace('\\', '+')
|
fileName = fileName.replace('\\', '+')
|
||||||
with open(baseFilesPath / fileName, "w") as f:
|
with open(baseFilesPath / fileName, "w") as f:
|
||||||
|
|||||||
@@ -34,7 +34,7 @@ class ModulesManager:
|
|||||||
self.browsersBaseDirectoryPath.mkdir(exist_ok=True)
|
self.browsersBaseDirectoryPath.mkdir(exist_ok=True)
|
||||||
self.modulesRequirementsPath = self.modulesBaseDirectoryPath / "requirements.txt"
|
self.modulesRequirementsPath = self.modulesBaseDirectoryPath / "requirements.txt"
|
||||||
self.modulesRequirementsTempPath = self.modulesBaseDirectoryPath / "requirements.txt.tmp"
|
self.modulesRequirementsTempPath = self.modulesBaseDirectoryPath / "requirements.txt.tmp"
|
||||||
self.modulesPythonPath = self.modulesBaseDirectoryPath / 'bin' / 'python3.11' if self.system == "Linux" \
|
self.modulesPythonPath = self.modulesBaseDirectoryPath / 'bin' / 'python3.13' if self.system == "Linux" \
|
||||||
else self.modulesBaseDirectoryPath / 'Scripts' / 'python.exe'
|
else self.modulesBaseDirectoryPath / 'Scripts' / 'python.exe'
|
||||||
self.upgradeThread = None
|
self.upgradeThread = None
|
||||||
self.moduleReqsThread = None
|
self.moduleReqsThread = None
|
||||||
@@ -808,7 +808,7 @@ class InitialiseVenvThread(QtCore.QThread):
|
|||||||
if self.modulesManager.system == "Linux" \
|
if self.modulesManager.system == "Linux" \
|
||||||
else self.modulesManager.modulesBaseDirectoryPath / 'Scripts'
|
else self.modulesManager.modulesBaseDirectoryPath / 'Scripts'
|
||||||
if not binPath.exists():
|
if not binPath.exists():
|
||||||
pythonExecutable = "python3.11" if self.modulesManager.system == "Linux" else "python.exe"
|
pythonExecutable = "python3.13" if self.modulesManager.system == "Linux" else "python.exe"
|
||||||
cmdStr = (f'{pythonExecutable} -m venv --symlinks --clear --upgrade-deps '
|
cmdStr = (f'{pythonExecutable} -m venv --symlinks --clear --upgrade-deps '
|
||||||
f'"{self.modulesManager.modulesBaseDirectoryPath}"')
|
f'"{self.modulesManager.modulesBaseDirectoryPath}"')
|
||||||
subprocess.run(cmdStr, shell=True)
|
subprocess.run(cmdStr, shell=True)
|
||||||
|
|||||||
@@ -26,7 +26,6 @@ from Core.Interface.Entity import BaseNode
|
|||||||
from Core.GlobalVariables import avoid_parsing_fields
|
from Core.GlobalVariables import avoid_parsing_fields
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
class ReportWizard(QtWidgets.QWizard):
|
class ReportWizard(QtWidgets.QWizard):
|
||||||
def __init__(self, parent):
|
def __init__(self, parent):
|
||||||
super(ReportWizard, self).__init__(parent=parent)
|
super(ReportWizard, self).__init__(parent=parent)
|
||||||
@@ -332,17 +331,16 @@ class EntityPage(QtWidgets.QWizardPage):
|
|||||||
self.reportWizard.parent().LENTDB.getEntity(self.entityUID)['Entity Type'])
|
self.reportWizard.parent().LENTDB.getEntity(self.entityUID)['Entity Type'])
|
||||||
contents = bytearray(self.defaultpic)
|
contents = bytearray(self.defaultpic)
|
||||||
widthRegex = re.compile(b' width="\d*" ')
|
widthRegex = re.compile(b' width="\d*" ')
|
||||||
fileContents = ''
|
|
||||||
for widthMatches in widthRegex.findall(self.defaultpic):
|
for widthMatches in widthRegex.findall(self.defaultpic):
|
||||||
fileContents = contents.replace(widthMatches, b' ')
|
contents = contents.replace(widthMatches, b' ')
|
||||||
heightRegex = re.compile(b' height="\d*" ')
|
heightRegex = re.compile(b' height="\d*" ')
|
||||||
for heightMatches in heightRegex.findall(self.defaultpic):
|
for heightMatches in heightRegex.findall(self.defaultpic):
|
||||||
fileContents = contents.replace(heightMatches, b' ')
|
contents = contents.replace(heightMatches, b' ')
|
||||||
fileContents = fileContents.replace(b'<svg ', b'<svg height="150" width="150" ')
|
contents = contents.replace(b'<svg ', b'<svg height="150" width="150" ')
|
||||||
|
|
||||||
imagePath = Path(self.reportWizard.reportTempFolder) / f'{str(uuid4())}.svg'
|
imagePath = Path(self.reportWizard.reportTempFolder) / f'{str(uuid4())}.svg'
|
||||||
with open(imagePath, 'wb') as tempFile:
|
with open(imagePath, 'wb') as tempFile:
|
||||||
tempFile.write(bytearray(fileContents))
|
tempFile.write(contents)
|
||||||
|
|
||||||
image = svg2rlg(imagePath)
|
image = svg2rlg(imagePath)
|
||||||
data = {'EntityNotes': self.inputNotesEdit.toPlainText(), 'EntityImage': image}
|
data = {'EntityNotes': self.inputNotesEdit.toPlainText(), 'EntityImage': image}
|
||||||
@@ -385,7 +383,6 @@ class AppendixWidget(QtWidgets.QWidget):
|
|||||||
self.inputAppendixImageEdit.setText(str(Path(selectedPath).absolute()))
|
self.inputAppendixImageEdit.setText(str(Path(selectedPath).absolute()))
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
class MyDocTemplate(BaseDocTemplate):
|
class MyDocTemplate(BaseDocTemplate):
|
||||||
def __init__(self, filename, **kw):
|
def __init__(self, filename, **kw):
|
||||||
self.allowSplitting = 0
|
self.allowSplitting = 0
|
||||||
|
|||||||
@@ -114,9 +114,9 @@ class EmailExtractor:
|
|||||||
with contextlib.suppress(EmailNotValidError):
|
with contextlib.suppress(EmailNotValidError):
|
||||||
valid = validate_email(newLink[7:], dns_resolver=resolver,
|
valid = validate_email(newLink[7:], dns_resolver=resolver,
|
||||||
check_deliverability=verifyDomain)
|
check_deliverability=verifyDomain)
|
||||||
if valid.email not in allEmails:
|
if valid.normalized not in allEmails:
|
||||||
allEmails.add(valid.email)
|
allEmails.add(valid.normalized)
|
||||||
returnResults.append([{'Email Address': valid.email,
|
returnResults.append([{'Email Address': valid.normalized,
|
||||||
'Entity Type': 'Email Address'},
|
'Entity Type': 'Email Address'},
|
||||||
{currentUID: {'Resolution': 'Email Address Found',
|
{currentUID: {'Resolution': 'Email Address Found',
|
||||||
'Notes': ''}}])
|
'Notes': ''}}])
|
||||||
|
|||||||
@@ -118,7 +118,7 @@ class FileExtractor:
|
|||||||
'Notes': ''}}])
|
'Notes': ''}}])
|
||||||
|
|
||||||
docProperName = link.split('/')[-1]
|
docProperName = link.split('/')[-1]
|
||||||
docFileName = f'{md5(link.encode("UTF-8")).hexdigest()} | {docProperName}'
|
docFileName = f'{md5(link.encode("UTF-8")).hexdigest()}_{docProperName}'
|
||||||
docFullPath = Path(parameters['Project Files Directory']) / docFileName
|
docFullPath = Path(parameters['Project Files Directory']) / docFileName
|
||||||
|
|
||||||
with contextlib.suppress(Exception):
|
with contextlib.suppress(Exception):
|
||||||
@@ -157,7 +157,7 @@ class FileExtractor:
|
|||||||
{uid: {'Resolution': 'File URL',
|
{uid: {'Resolution': 'File URL',
|
||||||
'Notes': ''}}])
|
'Notes': ''}}])
|
||||||
docProperName = link.split('/')[-1]
|
docProperName = link.split('/')[-1]
|
||||||
docFileName = f'{md5(link.encode()).hexdigest()} | {docProperName}'
|
docFileName = f'{md5(link.encode()).hexdigest()}_{docProperName}'
|
||||||
docFullPath = Path(parameters['Project Files Directory']) / docFileName
|
docFullPath = Path(parameters['Project Files Directory']) / docFileName
|
||||||
|
|
||||||
with contextlib.suppress(Exception):
|
with contextlib.suppress(Exception):
|
||||||
|
|||||||
@@ -16,8 +16,7 @@ class HostnameToDomain:
|
|||||||
for entity in entityJsonList:
|
for entity in entityJsonList:
|
||||||
uid = entity['uid']
|
uid = entity['uid']
|
||||||
primary_field = entity[list(entity)[1]].strip()
|
primary_field = entity[list(entity)[1]].strip()
|
||||||
tsd, td, tsu = extract(primary_field)
|
domain = extract(primary_field).fqdn
|
||||||
domain = f'{td}.{tsu}'
|
|
||||||
if domain == primary_field:
|
if domain == primary_field:
|
||||||
continue
|
continue
|
||||||
return_result.append([{'Domain Name': domain,
|
return_result.append([{'Domain Name': domain,
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ class SettingsObject(dict):
|
|||||||
def __init__(self):
|
def __init__(self):
|
||||||
super().__init__()
|
super().__init__()
|
||||||
self.globalSettings = QSettings()
|
self.globalSettings = QSettings()
|
||||||
self.globalSettings.setValue("Program/Version", "v1.6.2")
|
self.globalSettings.setValue("Program/Version", "v1.6.5")
|
||||||
self.globalSettings.setValue("Program/TOR Profile Location",
|
self.globalSettings.setValue("Program/TOR Profile Location",
|
||||||
self.globalSettings.value("Program/TOR Profile Location", ""))
|
self.globalSettings.value("Program/TOR Profile Location", ""))
|
||||||
self.globalSettings.setValue("Program/BaseDir",
|
self.globalSettings.setValue("Program/BaseDir",
|
||||||
|
|||||||
@@ -90,7 +90,7 @@ class URLManager:
|
|||||||
projectFilesPath = Path(self.mainWindow.SETTINGS.value("Project/FilesDir"))
|
projectFilesPath = Path(self.mainWindow.SETTINGS.value("Project/FilesDir"))
|
||||||
# Create a unique path in Project Files
|
# Create a unique path in Project Files
|
||||||
saveHash = sha3_512(str(urlPath).encode()).hexdigest()[:16] # nosec
|
saveHash = sha3_512(str(urlPath).encode()).hexdigest()[:16] # nosec
|
||||||
savePath = projectFilesPath / f'{saveHash}|{urlPath.name}'
|
savePath = projectFilesPath / f'{saveHash}_{urlPath.name}'
|
||||||
|
|
||||||
if createSymlink:
|
if createSymlink:
|
||||||
symlink(urlPath, savePath)
|
symlink(urlPath, savePath)
|
||||||
|
|||||||
@@ -24,7 +24,7 @@ from PySide6 import QtCore, QtWidgets, QtGui
|
|||||||
python -m nuitka --follow-imports --onefile --noinclude-pytest-mode=nofollow --noinclude-setuptools-mode=nofollow ^
|
python -m nuitka --follow-imports --onefile --noinclude-pytest-mode=nofollow --noinclude-setuptools-mode=nofollow ^
|
||||||
--noinclude-custom-mode=setuptools:error --noinclude-IPython-mode=nofollow --enable-plugin=pyside6 ^
|
--noinclude-custom-mode=setuptools:error --noinclude-IPython-mode=nofollow --enable-plugin=pyside6 ^
|
||||||
--assume-yes-for-downloads --remove-output --windows-console-mode=disable --warn-unusual-code --show-modules ^
|
--assume-yes-for-downloads --remove-output --windows-console-mode=disable --warn-unusual-code --show-modules ^
|
||||||
--windows-company-name="AccentuSoft" --windows-product-name="LinkScope Installer" --windows-product-version=1.6.2.0 ^
|
--windows-company-name="AccentuSoft" --windows-product-name="LinkScope Installer" --windows-product-version=1.6.5.0 ^
|
||||||
--include-data-files="Icon.ico=Icon.ico" --windows-icon-from-ico=".\Icon.ico" ^
|
--include-data-files="Icon.ico=Icon.ico" --windows-icon-from-ico=".\Icon.ico" ^
|
||||||
--windows-file-description="LinkScope Installer" ^
|
--windows-file-description="LinkScope Installer" ^
|
||||||
Installer.py
|
Installer.py
|
||||||
@@ -779,8 +779,8 @@ def installGraphvizWindowsHelper():
|
|||||||
|
|
||||||
def installPythonLinuxHelper():
|
def installPythonLinuxHelper():
|
||||||
subprocess.run('echo "y" | add-apt-repository ppa:deadsnakes/ppa', shell=True)
|
subprocess.run('echo "y" | add-apt-repository ppa:deadsnakes/ppa', shell=True)
|
||||||
subprocess.run('apt-get update && apt-get install python3.11 python3.11-venv -y', shell=True)
|
subprocess.run('apt-get update && apt-get install python3.13 python3.13-venv -y', shell=True)
|
||||||
subprocess.run('wget -O - https://bootstrap.pypa.io/get-pip.py | python3.11', shell=True)
|
subprocess.run('wget -O - https://bootstrap.pypa.io/get-pip.py | python3.13', shell=True)
|
||||||
|
|
||||||
|
|
||||||
def installPythonWindowsHelper():
|
def installPythonWindowsHelper():
|
||||||
@@ -790,7 +790,7 @@ def installPythonWindowsHelper():
|
|||||||
return False
|
return False
|
||||||
|
|
||||||
latest_release_path = win_downloads.text.split(
|
latest_release_path = win_downloads.text.split(
|
||||||
'Latest Python 3 Release -', 1)[0].split('href="')[-1].split('"', 1)[0]
|
'Python 3.13.', 1)[0].split('href="')[-1].split('"', 1)[0]
|
||||||
|
|
||||||
latest_release_full_path = f'https://www.python.org{latest_release_path}'
|
latest_release_full_path = f'https://www.python.org{latest_release_path}'
|
||||||
|
|
||||||
@@ -1031,7 +1031,7 @@ class InstallWizard(QtWidgets.QWizard):
|
|||||||
|
|
||||||
if self.currentOS == 'Linux':
|
if self.currentOS == 'Linux':
|
||||||
try:
|
try:
|
||||||
if subprocess.run(["python3.11", "--version"],
|
if subprocess.run(["python3.13", "--version"],
|
||||||
stdout=subprocess.PIPE,
|
stdout=subprocess.PIPE,
|
||||||
stderr=subprocess.PIPE,
|
stderr=subprocess.PIPE,
|
||||||
text=True).returncode != 0:
|
text=True).returncode != 0:
|
||||||
|
|||||||
@@ -10,7 +10,6 @@ import itertools
|
|||||||
import threading
|
import threading
|
||||||
|
|
||||||
import networkx as nx
|
import networkx as nx
|
||||||
import qdarktheme
|
|
||||||
from ast import literal_eval
|
from ast import literal_eval
|
||||||
from uuid import uuid4
|
from uuid import uuid4
|
||||||
from shutil import move
|
from shutil import move
|
||||||
@@ -3251,6 +3250,6 @@ if __name__ == '__main__':
|
|||||||
application = QtWidgets.QApplication(sys.argv)
|
application = QtWidgets.QApplication(sys.argv)
|
||||||
application.setOrganizationName("AccentuSoft")
|
application.setOrganizationName("AccentuSoft")
|
||||||
application.setApplicationName("LinkScope Client")
|
application.setApplicationName("LinkScope Client")
|
||||||
qdarktheme.setup_theme()
|
application.setStyle('fusion')
|
||||||
mainWindow = MainWindow()
|
mainWindow = MainWindow()
|
||||||
sys.exit(application.exec())
|
sys.exit(application.exec())
|
||||||
|
|||||||
@@ -42,7 +42,7 @@ Note that the SFDP graph layout does not function on Windows, as an essential gr
|
|||||||
Since Version 1.0.0, installers are provided for Windows 11 and Linux (Ubuntu) platforms.
|
Since Version 1.0.0, installers are provided for Windows 11 and Linux (Ubuntu) platforms.
|
||||||
|
|
||||||
Download the latest installer for your platform from the Releases page, and run it to install the software:
|
Download the latest installer for your platform from the Releases page, and run it to install the software:
|
||||||
https://github.com/AccentuSoft/LinkScope_Client/releases/tag/v1.6.2
|
https://github.com/AccentuSoft/LinkScope_Client/releases/tag/v1.6.5
|
||||||
|
|
||||||
Note: On Ubuntu, you may need to mark the downloaded installer as executable before you can run it. To do this, right-click the installer, and from the drop-down menu, select 'properties'. On the dialog window that pops up, navigate to the 'Permissions' tab, and make sure that 'Allow executing file as program' is checked. You should at this point be able to run the installer by double-clicking it. If double-clicking the installer does not start it, you can also launch the installer through a terminal.
|
Note: On Ubuntu, you may need to mark the downloaded installer as executable before you can run it. To do this, right-click the installer, and from the drop-down menu, select 'properties'. On the dialog window that pops up, navigate to the 'Permissions' tab, and make sure that 'Allow executing file as program' is checked. You should at this point be able to run the installer by double-clicking it. If double-clicking the installer does not start it, you can also launch the installer through a terminal.
|
||||||
|
|
||||||
|
|||||||
4
build.sh
4
build.sh
@@ -4,7 +4,7 @@
|
|||||||
# to a new directory along with this file.
|
# to a new directory along with this file.
|
||||||
# Then, run the script.
|
# Then, run the script.
|
||||||
|
|
||||||
PYTHON_VER=3.11
|
PYTHON_VER=3.13
|
||||||
|
|
||||||
python${PYTHON_VER} -m venv buildEnv
|
python${PYTHON_VER} -m venv buildEnv
|
||||||
|
|
||||||
@@ -25,7 +25,7 @@ python${PYTHON_VER} -m nuitka --follow-imports --standalone --noinclude-pytest-m
|
|||||||
--include-data-dir="Core/Entities=Core/Entities" \
|
--include-data-dir="Core/Entities=Core/Entities" \
|
||||||
--warn-unusual-code --show-modules --include-data-files="Icon.ico=Icon.ico" \
|
--warn-unusual-code --show-modules --include-data-files="Icon.ico=Icon.ico" \
|
||||||
--linux-icon="Icon.ico" \
|
--linux-icon="Icon.ico" \
|
||||||
--include-package-data=playwright \
|
--include-package-data=requests \
|
||||||
--include-package-data=folium --include-package-data=branca \
|
--include-package-data=folium --include-package-data=branca \
|
||||||
--include-package=dns \
|
--include-package=dns \
|
||||||
--include-package-data=pycountry \
|
--include-package-data=pycountry \
|
||||||
|
|||||||
@@ -8,7 +8,7 @@
|
|||||||
:: UpdaterUtil.py and PatchMagicWin.py to a new directory along with this file.
|
:: UpdaterUtil.py and PatchMagicWin.py to a new directory along with this file.
|
||||||
:: Then, run the script.
|
:: Then, run the script.
|
||||||
|
|
||||||
SET PYTHON_VER=3.11
|
SET PYTHON_VER=3.13
|
||||||
|
|
||||||
python -m venv buildEnv
|
python -m venv buildEnv
|
||||||
|
|
||||||
@@ -31,9 +31,9 @@ python -m nuitka --follow-imports --standalone --noinclude-pytest-mode=nofollow
|
|||||||
--include-data-dir="Core\Entities=Core\Entities" ^
|
--include-data-dir="Core\Entities=Core\Entities" ^
|
||||||
--warn-unusual-code --show-modules --include-data-files="Icon.ico=Icon.ico" ^
|
--warn-unusual-code --show-modules --include-data-files="Icon.ico=Icon.ico" ^
|
||||||
--windows-icon-from-ico=".\Icon.ico" --include-data-dir="magic=magic" --windows-company-name=AccentuSoft ^
|
--windows-icon-from-ico=".\Icon.ico" --include-data-dir="magic=magic" --windows-company-name=AccentuSoft ^
|
||||||
--windows-product-name="LinkScope Client" --windows-product-version="1.6.2.0" ^
|
--windows-product-name="LinkScope Client" --windows-product-version="1.6.5.0" ^
|
||||||
--windows-file-description="LinkScope Client Software" ^
|
--windows-file-description="LinkScope Client Software" ^
|
||||||
--include-package-data=playwright ^
|
--include-package-data=requests ^
|
||||||
--include-package-data=folium --include-package-data=branca ^
|
--include-package-data=folium --include-package-data=branca ^
|
||||||
--include-package=dns ^
|
--include-package=dns ^
|
||||||
--include-package-data=pycountry ^
|
--include-package-data=pycountry ^
|
||||||
@@ -46,7 +46,7 @@ python -m nuitka --onefile --noinclude-pytest-mode=nofollow ^
|
|||||||
--noinclude-unittest-mode=nofollow --assume-yes-for-downloads --remove-output ^
|
--noinclude-unittest-mode=nofollow --assume-yes-for-downloads --remove-output ^
|
||||||
--nofollow-import-to=tkinter ^
|
--nofollow-import-to=tkinter ^
|
||||||
--warn-unusual-code ^
|
--warn-unusual-code ^
|
||||||
--windows-company-name=AccentuSoft --windows-product-version="1.6.2.0" ^
|
--windows-company-name=AccentuSoft --windows-product-version="1.6.5.0" ^
|
||||||
--windows-product-name="LinkScope Client Updater" --windows-file-description="LinkScope Client Updater" ^
|
--windows-product-name="LinkScope Client Updater" --windows-file-description="LinkScope Client Updater" ^
|
||||||
".\UpdaterUtil.py"
|
".\UpdaterUtil.py"
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
PySide6
|
PySide6
|
||||||
pyqtdarktheme
|
|
||||||
|
|
||||||
|
|
||||||
# For python-magic, the following packages may be required:
|
# For python-magic, the following packages may be required:
|
||||||
|
|||||||
Reference in New Issue
Block a user