Compare commits
144 Commits
eea9c87f0d
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| 2cd7cd545a | |||
| 5baba9ac08 | |||
| 47c55ccfdc | |||
| f2d02216a5 | |||
| 26aab46c59 | |||
| d7d0060e07 | |||
| d9145ec7db | |||
| 209dae74d8 | |||
| e92b88f121 | |||
| f050940b24 | |||
| 670eadac8c | |||
| 4515f4d52a | |||
| 342be255fa | |||
| 27163c721d | |||
| fa9eda35ae | |||
| ff3a1b1b37 | |||
| 1c0cc63ece | |||
| be1a8d60e8 | |||
| e9255998df | |||
| 036e0bd4a9 | |||
| efeb2d9938 | |||
| 4c16d446c8 | |||
| 582be1d2af | |||
| 9dd7d28371 | |||
| 0280924314 | |||
| 70a32201b7 | |||
| 09489b41c5 | |||
| da004f2934 | |||
| b62ab36543 | |||
| 458d5c2e91 | |||
| c0c3e65678 | |||
| b15c0110c6 | |||
| 79a12aeb4c | |||
| a29572d615 | |||
| 61b5edbbb9 | |||
| 4ab7057a5e | |||
| 95a879e753 | |||
| e7cd15ce2f | |||
| 3896d2d1b9 | |||
| 7b09d21ac3 | |||
| 32af4103da | |||
| e90f1fc5cd | |||
| 89cf998938 | |||
| 2f87885b12 | |||
| 7364963e15 | |||
| a66e6640cf | |||
| 4fbd32b3aa | |||
| 901917f524 | |||
| 8125deec3d | |||
| 728ab0fb2e | |||
| d556aa49d3 | |||
| 1455ec9782 | |||
| 9353bdeefb | |||
| c5e9d4df2c | |||
| 4a472139ac | |||
| 4e4725ba58 | |||
| 7647468c40 | |||
| a0ed0145ff | |||
| d2e69098c6 | |||
| f46dd44f80 | |||
| 80045776ba | |||
| a0d2599961 | |||
| dfd58acf27 | |||
| ac6c6dc794 | |||
| acd5fca551 | |||
| 7791426e6a | |||
| cfcf0b211f | |||
| 634a48f154 | |||
| 8379b3681f | |||
| 55467365f8 | |||
| f20369bfc3 | |||
| 67a4424e46 | |||
| e80578f674 | |||
| 67fd7beeeb | |||
| 82993a565a | |||
| 194c88b3e4 | |||
| 2f7d459f25 | |||
| 15f5b1c115 | |||
| 695fa67bb3 | |||
| 22141dc08a | |||
| a38558fb93 | |||
| 3e252799df | |||
| 10bbb2a507 | |||
| 571cd18b34 | |||
| e4fc4753e9 | |||
| 56ac3c7a11 | |||
| 53b8d365f1 | |||
| 33aabfa753 | |||
| d487f432e7 | |||
| cfc87ee4b8 | |||
| 59a48f21a4 | |||
| c5d1e997ea | |||
| 440fdeee7a | |||
| 6b6b1a318a | |||
| e8d16fcd53 | |||
| d6f0875fee | |||
| 0ebf152422 | |||
| afba016b09 | |||
| e144306efd | |||
| 0d669ce7ab | |||
| 191fecfd49 | |||
| f710af955c | |||
| c7d4737883 | |||
| ac250f92d3 | |||
| 3260c39c7d | |||
| aad6652dd2 | |||
| bcd0830afd | |||
| b0ccd8c1db | |||
| fd3f6697a4 | |||
| 2369c28d63 | |||
| e7a3a8bc48 | |||
| 476896bf30 | |||
| eb2ea0122c | |||
| 52f3b6bca4 | |||
| ef162b7a5c | |||
| 35995b3da8 | |||
| bd4cde0cd7 | |||
| 4fe1520fce | |||
| fa45afa837 | |||
| 4f673a71ce | |||
| e6d01700ce | |||
| afc87c7456 | |||
| 21c9086ff0 | |||
| 89d3b717e5 | |||
| 4dd7774b73 | |||
| 7390dee7c2 | |||
| bae7c0cb7b | |||
| e2ee7f88c0 | |||
| 7042e54538 | |||
| 59cc5e649c | |||
| b962c2fb13 | |||
| eb229959e9 | |||
| 6b804026c9 | |||
| 2f04e3a4c5 | |||
| 0f2bffe558 | |||
| d1c3347620 | |||
| f8e9a4d8bf | |||
| 24064fa83d | |||
| 9fbc518520 | |||
| 0c65fdea82 | |||
| 55cc229825 | |||
| f38d4d4dad | |||
| c98477e70a | |||
| 78128ca2ae |
@@ -0,0 +1,2 @@
|
||||
/build/
|
||||
*.spec
|
||||
Generated
+3
@@ -0,0 +1,3 @@
|
||||
# Default ignored files
|
||||
/shelf/
|
||||
/workspace.xml
|
||||
Generated
+6
@@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="Encoding">
|
||||
<file url="file://$PROJECT_DIR$/Controller/output.csv" charset="windows-1252" />
|
||||
</component>
|
||||
</project>
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
<component name="InspectionProjectProfileManager">
|
||||
<settings>
|
||||
<option name="USE_PROJECT_PROFILE" value="false" />
|
||||
<version value="1.0" />
|
||||
</settings>
|
||||
</component>
|
||||
Generated
+7
@@ -0,0 +1,7 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="Black">
|
||||
<option name="sdkName" value="Python 3.9 (server-info) (2)" />
|
||||
</component>
|
||||
<component name="ProjectRootManager" version="2" project-jdk-name="Python 3.9 (server-info) (2)" project-jdk-type="Python SDK" />
|
||||
</project>
|
||||
Generated
+8
@@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="ProjectModuleManager">
|
||||
<modules>
|
||||
<module fileurl="file://$PROJECT_DIR$/.idea/server-info.iml" filepath="$PROJECT_DIR$/.idea/server-info.iml" />
|
||||
</modules>
|
||||
</component>
|
||||
</project>
|
||||
Generated
+10
@@ -0,0 +1,10 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<module type="PYTHON_MODULE" version="4">
|
||||
<component name="NewModuleRootManager">
|
||||
<content url="file://$MODULE_DIR$">
|
||||
<excludeFolder url="file://$MODULE_DIR$/venv" />
|
||||
</content>
|
||||
<orderEntry type="inheritedJdk" />
|
||||
<orderEntry type="sourceFolder" forTests="false" />
|
||||
</component>
|
||||
</module>
|
||||
Generated
+16
@@ -0,0 +1,16 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="SourceSyncRemoteConfigurationsService"><![CDATA[{
|
||||
"connections": [
|
||||
{
|
||||
"type": "ssh_configuration",
|
||||
"name": "API-Server",
|
||||
"hostname": "172.17.1.239",
|
||||
"username": "root",
|
||||
"remote_workspace_path": "/root",
|
||||
"preserve_timestamps": true
|
||||
}
|
||||
],
|
||||
"mainConnection": "API-Server"
|
||||
}]]></component>
|
||||
</project>
|
||||
Generated
+6
@@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="VcsDirectoryMappings">
|
||||
<mapping directory="$PROJECT_DIR$" vcs="Git" />
|
||||
</component>
|
||||
</project>
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -1,27 +1,49 @@
|
||||
import mysql.connector
|
||||
import subprocess
|
||||
import csv
|
||||
from datetime import datetime
|
||||
import mysql_connect
|
||||
import requests
|
||||
from Controller import create_service
|
||||
import socket
|
||||
import random
|
||||
import time
|
||||
|
||||
|
||||
####
|
||||
####
|
||||
#### --- RUN AS SINGEL SERVICE --- ####
|
||||
####
|
||||
####
|
||||
|
||||
def request_post(function,variable):
|
||||
url = (f"http://api.stines.de:8001/{function}")
|
||||
response = requests.post(url,json = variable,headers={'access_token':'^YWUbG7yX*V!tV^KBSd*2c&vdN3wV9a2i7f3hfGFMBYFxi6#mMiJGiaA5KEHE%B*miK%qb7rQ67gmcYP@gqmux8'})
|
||||
return response
|
||||
|
||||
def request_get(function,variable):
|
||||
url = (f"http://api.stines.de:8001/{function}")
|
||||
response = requests.get(url,headers={'access_token':'^YWUbG7yX*V!tV^KBSd*2c&vdN3wV9a2i7f3hfGFMBYFxi6#mMiJGiaA5KEHE%B*miK%qb7rQ67gmcYP@gqmux8'})
|
||||
return response
|
||||
|
||||
create_service.addservice("REPORTS-AD")
|
||||
|
||||
def adcontroller (ip,name):
|
||||
command = ["powershell", "-Command",
|
||||
"Get-ADUser -Filter * -Properties * | Export-Csv -NoTypeInformation -Encoding UTF8 -Path 'users.csv'"]
|
||||
" Get-ADUser -Filter * -Properties * | Select-Object *, extensionAttribute1, extensionAttribute2 | Export-Csv -NoTypeInformation -Encoding UTF8 -Path 'users.csv'"]
|
||||
subprocess.run(command)
|
||||
|
||||
# CSV-Datei einlesen und Feldnamen auslesen
|
||||
with open("users.csv", "r", encoding='utf-8-sig') as file:
|
||||
reader = csv.DictReader(file)
|
||||
fieldnames = reader.fieldnames
|
||||
|
||||
#
|
||||
# unwanted_columns = ["PropertyNames", "AddedProperties","RemovedProperties","ModifiedProperties","PropertyCount"]
|
||||
# fieldnames = [col for col in fieldnames if col not in unwanted_columns]
|
||||
# Tabelle erstellen, falls sie noch nicht existiert
|
||||
table_name = "Active-Directory-User"
|
||||
create_table_query = f"CREATE TABLE IF NOT EXISTS `{table_name}` (id INT AUTO_INCREMENT PRIMARY KEY, importdate BIGINT(11), "
|
||||
for field in fieldnames:
|
||||
create_table_query += f"`{field}` TEXT, "
|
||||
create_table_query = create_table_query.rstrip(", ") + ")"
|
||||
mysql_connect.create_database(create_table_query,name)
|
||||
request_post("dbset", {"query": create_table_query, 'dbname': name})
|
||||
|
||||
# Daten aus der CSV-Datei in die Tabelle einfügen
|
||||
with open("users.csv", "r", encoding='utf-8-sig') as file:
|
||||
@@ -32,9 +54,9 @@ def adcontroller (ip,name):
|
||||
unix_time = int(datetime.now().timestamp())
|
||||
row = [unix_time] + row
|
||||
insert_query = f"INSERT INTO `{table_name}` (importdate, `{'`, `'.join(fieldnames)}`) VALUES (%s, {', '.join(['%s'] * len(fieldnames))})"
|
||||
mysql_connect.add_user(insert_query, name, row)
|
||||
|
||||
# Datenbankverbindung schließen
|
||||
# print(insert_query)
|
||||
request_post("ad/adduser", {"query": insert_query, 'dbname': name, 'entry': row})
|
||||
# mysql_connect.add_user(insert_query, name, row)
|
||||
|
||||
command = ["powershell", "-Command",
|
||||
"Get-ADGroupMember -Identity G-RDP-User | Export-Csv -NoTypeInformation -Encoding UTF8 -Path 'group.csv'"]
|
||||
@@ -49,7 +71,7 @@ def adcontroller (ip,name):
|
||||
for field in fieldnames:
|
||||
create_table_query += f"`{field}` TEXT, "
|
||||
create_table_query = create_table_query.rstrip(", ") + ")"
|
||||
mysql_connect.create_database(create_table_query,name)
|
||||
request_post("dbset", {"query": create_table_query, 'dbname': name})
|
||||
|
||||
# Daten aus der CSV-Datei in die Tabelle aktualisieren oder einfügen
|
||||
with open("group.csv", "r", encoding='utf-8-sig') as file:
|
||||
@@ -58,12 +80,13 @@ def adcontroller (ip,name):
|
||||
sam_account_name = row["SamAccountName"]
|
||||
|
||||
# Abfrage, um die ID für den Benutzernamen zu erhalten
|
||||
query_id = f"SELECT id FROM `{table_name}` WHERE SamAccountName = %s"
|
||||
result = mysql_connect.get_user(query_id,name, (sam_account_name,))
|
||||
print(result)
|
||||
query_id = f"SELECT id FROM `{table_name}` WHERE SamAccountName = '{sam_account_name}'"
|
||||
|
||||
if result:
|
||||
user_id = result[0]
|
||||
result = request_post("ad/getuserid", {"query": query_id, 'dbname': name}).text
|
||||
|
||||
if result != "false":
|
||||
user_id = result
|
||||
print(user_id)
|
||||
update_query = f"UPDATE `{table_name}` SET "
|
||||
for field in fieldnames:
|
||||
if field != "SamAccountName": # Spaltenname nicht in das UPDATE einbeziehen
|
||||
@@ -72,17 +95,53 @@ def adcontroller (ip,name):
|
||||
update_query += ", `importdate` = %s" # Importdate als Unix-Timestamp aktualisieren
|
||||
update_query += " WHERE id = %s"
|
||||
row_data = [row[field] for field in fieldnames if field != "SamAccountName"]
|
||||
row_data.append(int(datetime.now().timestamp())) # Aktuelle Zeit als Unix-Timestamp
|
||||
unix_time = int(datetime.now().timestamp())
|
||||
row_data = row_data + [unix_time]
|
||||
row_data.append(user_id)
|
||||
# cursor.execute(update_query, row_data)
|
||||
# connection.commit()
|
||||
print(request_post("ad/adduser",{"query": update_query, "dbname":name, "entry":row_data}).text)
|
||||
else:
|
||||
print("false in side else")
|
||||
insert_query = f"INSERT INTO `{table_name}` ("
|
||||
insert_query += ", ".join(fieldnames) # Spaltennamen in die INSERT-Abfrage einbeziehen
|
||||
insert_query += ", `importdate`) VALUES ("
|
||||
insert_query += ", ".join(["%s"] * (len(fieldnames) + 1)) # Zusätzliches %s für importdate
|
||||
insert_query += ")"
|
||||
row_data = [row[field] for field in fieldnames]
|
||||
row_data.append(int(datetime.now().timestamp())) # Aktuelle Zeit als Unix-Timestamp
|
||||
# cursor.execute(insert_query, row_data)
|
||||
# connection.commit()
|
||||
unix_time = int(datetime.now().timestamp())
|
||||
row_data = row_data + [unix_time]
|
||||
print(row_data)
|
||||
request_post("ad/adduser",{"query": insert_query, "dbname":name, "entry":row_data})
|
||||
|
||||
def get_local_ip():
|
||||
try:
|
||||
s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
|
||||
s.connect(("8.8.8.8", 80))
|
||||
local_ip = s.getsockname()[0]
|
||||
s.close()
|
||||
return local_ip
|
||||
except Exception as e:
|
||||
print(f"Fehler beim Abrufen der lokalen IP-Adresse: {e}")
|
||||
return None
|
||||
|
||||
service_time = f"23:{str(random.randint(1, 59)).zfill(2)}" ## ADD Random Time
|
||||
|
||||
while True:
|
||||
current_time = datetime.now().strftime("%H:%M")
|
||||
try:
|
||||
with open ("log.txt","a") as datei:
|
||||
datei.writelines(request_get("gettime",{}).text + "\n")
|
||||
except Exception as e:
|
||||
with open ("log.txt","a") as datei:
|
||||
datei.writelines(f"{current_time}No Connection to Server!" + "\n")
|
||||
if current_time == service_time:
|
||||
ip = get_local_ip()
|
||||
database = request_post("info/getdatabase",{"ip":ip}).text.replace('"',"")
|
||||
adcontroller(ip,database)
|
||||
with open ("log.txt","a") as datei:
|
||||
datei.writelines(f"{current_time} - Sleep for {22*3600}" + "\n")
|
||||
time.sleep(22*3600)
|
||||
time.sleep(60)
|
||||
|
||||
ip = get_local_ip()
|
||||
database = request_post("info/getdatabase",{"ip":ip}).text.replace('"',"")
|
||||
adcontroller(ip,database)
|
||||
@@ -0,0 +1,44 @@
|
||||
import mysql.connector.locales.eng
|
||||
import mysql.connector
|
||||
import os
|
||||
import time
|
||||
os.environ['TZ'] = 'Europe/Berlin'
|
||||
time.tzset()
|
||||
|
||||
def database(query,name,user):
|
||||
# server.start()
|
||||
|
||||
mydb = mysql.connector.connect(
|
||||
host="172.17.1.21",
|
||||
port=3306,
|
||||
user="root",
|
||||
password="N53yBCswuawzBzS445VNAhWVMs3N59Gb9szEsrzXRBzarDqpdETpQeyt5v5CGe",
|
||||
database="" + name,
|
||||
auth_plugin='mysql_native_password',
|
||||
)
|
||||
mydb.connect()
|
||||
cursor = mydb.cursor()
|
||||
if "SELECT" in query:
|
||||
if user:
|
||||
cursor.execute(query, user)
|
||||
return cursor.fetchone()
|
||||
else:
|
||||
cursor.execute(query, user)
|
||||
return cursor.fetchall()
|
||||
if "SHOW" in query:
|
||||
cursor.execute(query)
|
||||
return cursor.fetchall()
|
||||
if "INSERT" in query:
|
||||
cursor.execute(query,user)
|
||||
mydb.commit()
|
||||
if "UPDATE" in query:
|
||||
cursor.execute(query,user)
|
||||
mydb.commit()
|
||||
mydb.close()
|
||||
|
||||
# mysql_connect.database("SELECT * from `Ping-Server` WHERE NAME='TNPTS01' ORDER BY time DESC LIMIT 1;")
|
||||
server = database("SELECT DISTINCT NAME FROM `Ping-Server`","Stines-GmbH","")
|
||||
for i in server:
|
||||
print(i[0])
|
||||
time = database(f"SELECT * from `Ping-Server` WHERE NAME='{i[0]}' ORDER BY time DESC LIMIT 1;","Stines-GmbH","")
|
||||
print(time[0][0])
|
||||
@@ -0,0 +1,32 @@
|
||||
import os
|
||||
import shutil
|
||||
import requests
|
||||
import zipfile
|
||||
import time
|
||||
|
||||
def addservice(service):
|
||||
path = f"C:\Scripte\{service}"
|
||||
if not os.path.isfile(f"{path}\.{service}"):
|
||||
main_folder = f"{path}"
|
||||
try:
|
||||
os.mkdir("C:\Scripte")
|
||||
os.mkdir(main_folder)
|
||||
except:
|
||||
print("Folder exist")
|
||||
shutil.copy(f"{service}.exe",main_folder)
|
||||
response = requests.get("https://nssm.cc/release/nssm-2.24.zip", stream=True)
|
||||
with open('C:\Scripte\\nssm.zip', 'wb') as file:
|
||||
for chunk in response.iter_content(chunk_size=8192):
|
||||
file.write(chunk)
|
||||
|
||||
# Entpacken der ZIP-Datei
|
||||
with zipfile.ZipFile('C:\Scripte\\nssm.zip', 'r') as zip_ref:
|
||||
zip_ref.extractall('C:\Scripte\\nssm')
|
||||
|
||||
shutil.move("C:\Scripte\\nssm\\nssm-2.24\win64\\nssm.exe",f"{main_folder}\\Windows_Dienst_Builder.exe")
|
||||
os.system(f"{main_folder}\\Windows_Dienst_Builder.exe install STI-{service} {main_folder}\\{service}.exe")
|
||||
open(f"{main_folder}\.{service}", 'a').close()
|
||||
time.sleep(2)
|
||||
print("Remove not Used Files")
|
||||
shutil.rmtree('C:\Scripte\\nssm')
|
||||
os.remove('C:\Scripte\\nssm.zip')
|
||||
@@ -1,13 +1,27 @@
|
||||
import mysql.connector
|
||||
import subprocess
|
||||
import csv
|
||||
from datetime import datetime
|
||||
import mysql_connect
|
||||
from Controller import create_service
|
||||
import requests
|
||||
import socket
|
||||
import time
|
||||
import random
|
||||
|
||||
# create_service.addservice("REPORTS-EX")
|
||||
|
||||
def exchange (ip,name):
|
||||
def request_post(function,variable):
|
||||
url = (f"http://api.stines.de:8001/{function}")
|
||||
response = requests.post(url,json = variable,headers={'access_token':'^YWUbG7yX*V!tV^KBSd*2c&vdN3wV9a2i7f3hfGFMBYFxi6#mMiJGiaA5KEHE%B*miK%qb7rQ67gmcYP@gqmux8'})
|
||||
return response
|
||||
|
||||
exchange_commands = "Add-PSSnapin Microsoft.Exchange.Management.PowerShell.SnapIn; Get-Mailbox | Select-Object PSComputerName, RunspaceId, PSShowComputerName, Database, UseDatabaseRetentionDefaults, RetainDeletedItemsUntilBackup, IsHierarchyReady, IsHierarchySyncEnabled,RetentionPolicy, ExchangeGuid, AdminDisplayVersion, ExchangeUserAccountControl, IsMailboxEnabled,ProhibitSendQuota, ProhibitSendReceiveQuota, RecoverableItemsQuota, RecoverableItemsWarningQuota,CalendarLoggingQuota, IsResource, IsLinked, IsShared, IsRootPublicFolderMailbox, LinkedMasterAccount, ResetPasswordOnNextLogon,ResourceType, RoomMailboxAccountEnabled, SamAccountName, ServerLegacyDN, UseDatabaseQuotaDefaults,IssueWarningQuota, RulesQuota, UserPrincipalName, RoleAssignmentPolicy, EffectivePublicFolderMailbox, SharingPolicy,ArchiveQuota, ArchiveWarningQuota, DisabledMailboxLocations, CalendarVersionStoreDisabled, AuditEnabled,AuditLogAgeLimit, WhenMailboxCreated, AccountDisabled, Alias, OrganizationalUnit, DisplayName,LegacyExchangeDN, MaxSendSize, MaxReceiveSize, EmailAddressPolicyEnabled, PrimarySmtpAddress,RecipientType, RecipientTypeDetails, WindowsEmailAddress, Identity, IsValid, ExchangeVersion,DistinguishedName, Guid, ObjectCategory, WhenChanged, WhenCreated, WhenChangedUTC, WhenCreatedUTC,OrganizationId, Id, OriginatingServer | Export-Csv -Path 'exuser.csv' -NoTypeInformation -Encoding UTF8"
|
||||
def request_get(function,variable):
|
||||
url = (f"http://api.stines.de:8001/{function}")
|
||||
response = requests.get(url,headers={'access_token':'^YWUbG7yX*V!tV^KBSd*2c&vdN3wV9a2i7f3hfGFMBYFxi6#mMiJGiaA5KEHE%B*miK%qb7rQ67gmcYP@gqmux8'})
|
||||
return response
|
||||
|
||||
def exchange(ip,name):
|
||||
|
||||
exchange_commands = "Add-PSSnapin Microsoft.Exchange.Management.PowerShell.SnapIn; Get-Mailbox | Select-Object PSComputerName, RunspaceId, PSShowComputerName, Database, UseDatabaseRetentionDefaults, RetainDeletedItemsUntilBackup, IsHierarchyReady, IsHierarchySyncEnabled,RetentionPolicy, ExchangeGuid, AdminDisplayVersion, ExchangeUserAccountControl, IsMailboxEnabled,ProhibitSendQuota, ProhibitSendReceiveQuota, RecoverableItemsQuota, RecoverableItemsWarningQuota,CalendarLoggingQuota, IsResource, IsLinked, IsShared, IsRootPublicFolderMailbox, LinkedMasterAccount, ResetPasswordOnNextLogon,ResourceType, RoomMailboxAccountEnabled, SamAccountName, ServerLegacyDN, UseDatabaseQuotaDefaults,IssueWarningQuota, RulesQuota, UserPrincipalName, RoleAssignmentPolicy, EffectivePublicFolderMailbox, SharingPolicy,ArchiveQuota, ArchiveWarningQuota, DisabledMailboxLocations, CalendarVersionStoreDisabled, AuditEnabled,AuditLogAgeLimit, WhenMailboxCreated, AccountDisabled, Alias, OrganizationalUnit, DisplayName,LegacyExchangeDN, MaxSendSize, MaxReceiveSize, EmailAddressPolicyEnabled, PrimarySmtpAddress,RecipientType, RecipientTypeDetails, WindowsEmailAddress, Identity, IsValid, ExchangeVersion,DistinguishedName, Guid, ObjectCategory, WhenChanged, WhenCreated, WhenChangedUTC, WhenCreatedUTC,OrganizationId, Id, OriginatingServer,CustomAttribute2 | Export-Csv -Path 'exuser.csv' -NoTypeInformation -Encoding UTF8"
|
||||
|
||||
# PowerShell als Subprozess ausführen
|
||||
process = subprocess.Popen(["powershell", "-Command", exchange_commands], stdout=subprocess.PIPE, shell=True)
|
||||
@@ -30,9 +44,7 @@ def exchange (ip,name):
|
||||
create_table_query = create_table_query.rstrip(", ") + ")"
|
||||
create_table_query += " ROW_FORMAT=DYNAMIC"
|
||||
row_length = len(create_table_query)
|
||||
print(row_length)
|
||||
print(create_table_query)
|
||||
mysql_connect.create_database(create_table_query,name)
|
||||
request_post("dbset",{"query":create_table_query, "dbname":name})
|
||||
|
||||
with open("exuser.csv", "r", encoding='utf-8-sig') as file:
|
||||
reader = csv.reader(file)
|
||||
@@ -48,4 +60,37 @@ def exchange (ip,name):
|
||||
|
||||
# Führe das Einfüge-Query aus
|
||||
insert_query = f"INSERT INTO `{table_name}` (importdate, `{'`, `'.join(fieldnames)}`) VALUES (%s, {', '.join(['%s'] * len(fieldnames))})"
|
||||
mysql_connect.add_user(insert_query, name, row)
|
||||
request_post("ex/adduser",{"query":insert_query, "dbname":name, "entry":row})
|
||||
|
||||
def get_local_ip():
|
||||
try:
|
||||
s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
|
||||
s.connect(("8.8.8.8", 80))
|
||||
local_ip = s.getsockname()[0]
|
||||
s.close()
|
||||
return local_ip
|
||||
except Exception as e:
|
||||
print(f"Fehler beim Abrufen der lokalen IP-Adresse: {e}")
|
||||
return None
|
||||
|
||||
service_time = f"23:{str(random.randint(1, 59)).zfill(2)}" ## ADD Random Time
|
||||
|
||||
ip = get_local_ip()
|
||||
exchange(ip,"tnp-Invest-GmbH")
|
||||
|
||||
while True:
|
||||
current_time = datetime.now().strftime("%H:%M")
|
||||
try:
|
||||
with open ("log.txt","a") as datei:
|
||||
datei.writelines(request_get("gettime",{}).text + "\n")
|
||||
except Exception as e:
|
||||
with open ("log.txt","a") as datei:
|
||||
datei.writelines(f"{current_time}No Connection to Server!" + "\n")
|
||||
if current_time == service_time:
|
||||
ip = get_local_ip()
|
||||
database = request_post("info/getdatabase",{"ip":ip}).text.replace('"',"")
|
||||
exchange(ip,database)
|
||||
with open ("log.txt","a") as datei:
|
||||
datei.writelines(f"{current_time} - Sleep for {22*3600}" + "\n")
|
||||
time.sleep(22*3600)
|
||||
time.sleep(60)
|
||||
@@ -0,0 +1,35 @@
|
||||
"PSComputerName","RunspaceId","PSShowComputerName","Database","UseDatabaseRetentionDefaults","RetainDeletedItemsUntilBackup","IsHierarchyReady","IsHierarchySyncEnabled","RetentionPolicy","ExchangeGuid","AdminDisplayVersion","ExchangeUserAccountControl","IsMailboxEnabled","ProhibitSendQuota","ProhibitSendReceiveQuota","RecoverableItemsQuota","RecoverableItemsWarningQuota","CalendarLoggingQuota","IsResource","IsLinked","IsShared","IsRootPublicFolderMailbox","LinkedMasterAccount","ResetPasswordOnNextLogon","ResourceType","RoomMailboxAccountEnabled","SamAccountName","ServerLegacyDN","UseDatabaseQuotaDefaults","IssueWarningQuota","RulesQuota","UserPrincipalName","RoleAssignmentPolicy","EffectivePublicFolderMailbox","SharingPolicy","ArchiveQuota","ArchiveWarningQuota","DisabledMailboxLocations","CalendarVersionStoreDisabled","AuditEnabled","AuditLogAgeLimit","WhenMailboxCreated","AccountDisabled","Alias","OrganizationalUnit","DisplayName","LegacyExchangeDN","MaxSendSize","MaxReceiveSize","EmailAddressPolicyEnabled","PrimarySmtpAddress","RecipientType","RecipientTypeDetails","WindowsEmailAddress","Identity","IsValid","ExchangeVersion","DistinguishedName","Guid","ObjectCategory","WhenChanged","WhenCreated","WhenChangedUTC","WhenCreatedUTC","OrganizationId","Id","OriginatingServer"
|
||||
,,,"EXDB02","False","True","True","True",,"c6ce82ee-675f-4bb0-9861-5b584858beaf","Version 15.2 (Build 1118.7)","None","True","Unlimited","Unlimited","30 GB (32,212,254,720 bytes)","20 GB (21,474,836,480 bytes)","6 GB (6,442,450,944 bytes)","False","False","False","False","","False",,,"Islambouli","/o=TNP Gruppe/ou=Exchange Administrative Group (FYDIBOHF23SPDLT)/cn=Configuration/cn=Servers/cn=TNPEX01","True","Unlimited","256 KB (262,144 bytes)","abdalrahman.Islambouli@tnp-gruppe.de","Default Role Assignment Policy","tnp-gruppe.de/Exchange-Öffentliche-Postfächer/tnp AG","Standardfreigaberichtlinie","100 GB (107,374,182,400 bytes)","90 GB (96,636,764,160 bytes)","False","False","False","90.00:00:00","16.12.2021 13:45:20","False","abdalrahman.Islambouli","tnp-gruppe.de/TNP Benutzer","Abdalrahman Islambouli","/o=TNP Gruppe/ou=Exchange Administrative Group (FYDIBOHF23SPDLT)/cn=Recipients/cn=c31ac76d971342ca9d580b06642a3a88-Abdalrahman I","Unlimited","Unlimited","True","abdalrahman.Islambouli@tnp-gruppe.de","UserMailbox","UserMailbox","abdalrahman.Islambouli@tnp-gruppe.de","tnp-gruppe.de/TNP Benutzer/Abdalrahman Islambouli","True","0.20 (15.0.0.0)","CN=Abdalrahman Islambouli,OU=TNP Benutzer,DC=tnp-gruppe,DC=de","c3e294c2-ae05-43ee-9bd0-9b9a227fe65c","tnp-gruppe.de/Configuration/Schema/Person","21.08.2023 08:25:44","16.12.2021 10:32:03","21.08.2023 06:25:44","16.12.2021 09:32:03","","tnp-gruppe.de/TNP Benutzer/Abdalrahman Islambouli","TNPAD01.tnp-gruppe.de"
|
||||
,,,"EXDB03","True","False","True","True",,"55c64923-1d4c-4c34-a3f4-e4b8044a5267","Version 15.2 (Build 1118.7)","None","True","Unlimited","Unlimited","30 GB (32,212,254,720 bytes)","20 GB (21,474,836,480 bytes)","6 GB (6,442,450,944 bytes)","False","False","False","False","","False",,,"abrechnung","/o=TNP Gruppe/ou=Exchange Administrative Group (FYDIBOHF23SPDLT)/cn=Configuration/cn=Servers/cn=TNPEX01","True","Unlimited","256 KB (262,144 bytes)","abrechnung@tnp-gruppe.de","Default Role Assignment Policy","tnp-gruppe.de/Exchange-Öffentliche-Postfächer/tnp AG","Standardfreigaberichtlinie","100 GB (107,374,182,400 bytes)","90 GB (96,636,764,160 bytes)","False","False","False","90.00:00:00","01.07.2023 10:32:00","False","abrechnung","tnp-gruppe.de/TNP Benutzer","Abrechnung Cura Saale","/o=TNP Gruppe/ou=Exchange Administrative Group (FYDIBOHF23SPDLT)/cn=Recipients/cn=ac17e441735c4a76b7dcd088a491c7bc-Abrechnung C","Unlimited","Unlimited","False","abrechnung@cura-saale.de","UserMailbox","UserMailbox","abrechnung@cura-saale.de","tnp-gruppe.de/TNP Benutzer/Abrechnung Cura Saale","True","0.20 (15.0.0.0)","CN=Abrechnung Cura Saale,OU=TNP Benutzer,DC=tnp-gruppe,DC=de","5722c4c2-4bb0-4d4c-bc0e-6c4029d891cc","tnp-gruppe.de/Configuration/Schema/Person","21.08.2023 12:40:52","01.07.2023 10:32:00","21.08.2023 10:40:52","01.07.2023 08:32:00","","tnp-gruppe.de/TNP Benutzer/Abrechnung Cura Saale","TNPAD01.tnp-gruppe.de"
|
||||
,,,"EXDB03","True","False","True","True",,"d7793575-0997-415e-8b01-76bb2cce9caa","Version 15.2 (Build 1118.7)","None","True","Unlimited","Unlimited","30 GB (32,212,254,720 bytes)","20 GB (21,474,836,480 bytes)","6 GB (6,442,450,944 bytes)","False","False","False","False","","False",,,"ad-test-user","/o=TNP Gruppe/ou=Exchange Administrative Group (FYDIBOHF23SPDLT)/cn=Configuration/cn=Servers/cn=TNPEX01","True","Unlimited","256 KB (262,144 bytes)","ad-test-user@tnp-gruppe.de","Default Role Assignment Policy","tnp-gruppe.de/Exchange-Öffentliche-Postfächer/tnp AG","Standardfreigaberichtlinie","100 GB (107,374,182,400 bytes)","90 GB (96,636,764,160 bytes)","False","False","False","90.00:00:00","05.01.2022 11:41:24","False","ad-test-user","tnp-gruppe.de/TNP Benutzer","Admin-Test-User (Service-Account)","/o=TNP Gruppe/ou=Exchange Administrative Group (FYDIBOHF23SPDLT)/cn=Recipients/cn=abe4b44607544519a7cd7e2115b0dfc2-Admin-Test-Us","Unlimited","Unlimited","True","ad-test-user@tnp-gruppe.de","UserMailbox","UserMailbox","ad-test-user@tnp-gruppe.de","tnp-gruppe.de/TNP Benutzer/Admin-Test-User","True","0.20 (15.0.0.0)","CN=Admin-Test-User,OU=TNP Benutzer,DC=tnp-gruppe,DC=de","f48f294d-f644-46e1-b701-f843985e0251","tnp-gruppe.de/Configuration/Schema/Person","21.08.2023 11:38:36","29.12.2021 09:45:19","21.08.2023 09:38:36","29.12.2021 08:45:19","","tnp-gruppe.de/TNP Benutzer/Admin-Test-User","TNPAD01.tnp-gruppe.de"
|
||||
,,,"EXDB02","False","True","True","True",,"4ef853ab-55fb-46ca-87e9-3829e0ced9ef","Version 15.2 (Build 1118.7)","None","True","Unlimited","Unlimited","30 GB (32,212,254,720 bytes)","20 GB (21,474,836,480 bytes)","6 GB (6,442,450,944 bytes)","False","False","True","False","NT-AUTORITÄT\SELBST","False",,,"alarmaufschaltungen","/o=TNP Gruppe/ou=Exchange Administrative Group (FYDIBOHF23SPDLT)/cn=Configuration/cn=Servers/cn=TNPEX01","True","Unlimited","256 KB (262,144 bytes)","alarmaufschaltungen@tnp-gruppe.de","Default Role Assignment Policy","tnp-gruppe.de/Exchange-Öffentliche-Postfächer/tnp AG","Standardfreigaberichtlinie","100 GB (107,374,182,400 bytes)","90 GB (96,636,764,160 bytes)","False","False","False","90.00:00:00","19.12.2021 18:49:36","False","alarmaufschaltungen","tnp-gruppe.de/TNP Benutzer","Alarmaufschaltungen","/o=TNP Gruppe/ou=Exchange Administrative Group (FYDIBOHF23SPDLT)/cn=Recipients/cn=c377925340ee4e3e8fc8720ed9a826de-Alarmaufschal","Unlimited","Unlimited","True","alarmaufschaltungen@tnp-gruppe.de","UserMailbox","SharedMailbox","alarmaufschaltungen@tnp-gruppe.de","tnp-gruppe.de/TNP Benutzer/Alarmaufschaltungen","True","0.20 (15.0.0.0)","CN=Alarmaufschaltungen,OU=TNP Benutzer,DC=tnp-gruppe,DC=de","bc1839fa-1ec9-41ed-a899-d69f70b7ef9b","tnp-gruppe.de/Configuration/Schema/Person","18.07.2023 11:45:24","19.12.2021 18:49:36","18.07.2023 09:45:24","19.12.2021 17:49:36","","tnp-gruppe.de/TNP Benutzer/Alarmaufschaltungen","TNPAD01.tnp-gruppe.de"
|
||||
,,,"EXDB02","False","True","True","True",,"ac510090-51e0-472e-939f-58db3b3472b2","Version 15.2 (Build 1118.7)","AccountDisabled","True","Unlimited","Unlimited","30 GB (32,212,254,720 bytes)","20 GB (21,474,836,480 bytes)","6 GB (6,442,450,944 bytes)","True","False","False","False","NT-AUTORITÄT\SELBST","False","Room","False","Besprechungsraum.Gro","/o=TNP Gruppe/ou=Exchange Administrative Group (FYDIBOHF23SPDLT)/cn=Configuration/cn=Servers/cn=TNPEX01","True","Unlimited","256 KB (262,144 bytes)","Besprechungsraum.Gross@tnp-gruppe.de","Default Role Assignment Policy","tnp-gruppe.de/Exchange-Öffentliche-Postfächer/tnp AG","Standardfreigaberichtlinie","100 GB (107,374,182,400 bytes)","90 GB (96,636,764,160 bytes)","False","False","False","90.00:00:00","17.12.2021 08:51:16","True","Besprechungsraum.Gross","tnp-gruppe.de/Exchange-Öffentliche-Postfächer","Besprechungsraum Gross","/o=TNP Gruppe/ou=Exchange Administrative Group (FYDIBOHF23SPDLT)/cn=Recipients/cn=ae6ee20090cf427bafae3db9a233f74d-Besprechungsr","Unlimited","Unlimited","True","Besprechungsraum.Gross@tnp-gruppe.de","UserMailbox","RoomMailbox","Besprechungsraum.Gross@tnp-gruppe.de","tnp-gruppe.de/Exchange-Öffentliche-Postfächer/Besprechungsraum Gross","True","0.20 (15.0.0.0)","CN=Besprechungsraum Gross,OU=Exchange-Öffentliche-Postfächer,DC=tnp-gruppe,DC=de","aee56efa-c39d-4a6d-9b7b-55e8642569f8","tnp-gruppe.de/Configuration/Schema/Person","27.01.2023 07:08:11","17.12.2021 08:51:16","27.01.2023 06:08:11","17.12.2021 07:51:16","","tnp-gruppe.de/Exchange-Öffentliche-Postfächer/Besprechungsraum Gross","TNPAD01.tnp-gruppe.de"
|
||||
,,,"EXDB02","False","True","True","True",,"2c106f15-e9cc-4667-b54b-e035a9e33d46","Version 15.2 (Build 1118.7)","AccountDisabled","True","Unlimited","Unlimited","30 GB (32,212,254,720 bytes)","20 GB (21,474,836,480 bytes)","6 GB (6,442,450,944 bytes)","True","False","False","False","NT-AUTORITÄT\SELBST","False","Room","False","Besprechungsraum.Kle","/o=TNP Gruppe/ou=Exchange Administrative Group (FYDIBOHF23SPDLT)/cn=Configuration/cn=Servers/cn=TNPEX01","True","Unlimited","256 KB (262,144 bytes)","Besprechungsraum.Klein@tnp-gruppe.de","Default Role Assignment Policy","tnp-gruppe.de/Exchange-Öffentliche-Postfächer/tnp AG","Standardfreigaberichtlinie","100 GB (107,374,182,400 bytes)","90 GB (96,636,764,160 bytes)","False","False","False","90.00:00:00","17.12.2021 08:50:11","True","Besprechungsraum.Klein","tnp-gruppe.de/Exchange-Öffentliche-Postfächer","Besprechungsraum Klein","/o=TNP Gruppe/ou=Exchange Administrative Group (FYDIBOHF23SPDLT)/cn=Recipients/cn=3e427550ddb44c6e9f4c8b1d5e87df4d-Besprechungsr","Unlimited","Unlimited","True","Besprechungsraum.Klein@tnp-gruppe.de","UserMailbox","RoomMailbox","Besprechungsraum.Klein@tnp-gruppe.de","tnp-gruppe.de/Exchange-Öffentliche-Postfächer/Besprechungsraum Klein","True","0.20 (15.0.0.0)","CN=Besprechungsraum Klein,OU=Exchange-Öffentliche-Postfächer,DC=tnp-gruppe,DC=de","56bb0fc8-13ea-4697-b72d-d45c22c7126a","tnp-gruppe.de/Configuration/Schema/Person","27.01.2023 07:08:11","17.12.2021 08:50:12","27.01.2023 06:08:11","17.12.2021 07:50:12","","tnp-gruppe.de/Exchange-Öffentliche-Postfächer/Besprechungsraum Klein","TNPAD01.tnp-gruppe.de"
|
||||
,,,"EXDB02","False","True","True","True",,"c0d0702c-a92e-4481-a6e6-04fef5aa83e4","Version 15.2 (Build 1118.7)","None","True","Unlimited","Unlimited","30 GB (32,212,254,720 bytes)","20 GB (21,474,836,480 bytes)","6 GB (6,442,450,944 bytes)","False","False","True","False","NT-AUTORITÄT\SELBST","False",,,"bewerbung","/o=TNP Gruppe/ou=Exchange Administrative Group (FYDIBOHF23SPDLT)/cn=Configuration/cn=Servers/cn=TNPEX01","True","Unlimited","256 KB (262,144 bytes)","bewerbung@tnp-gruppe.de","Default Role Assignment Policy","tnp-gruppe.de/Exchange-Öffentliche-Postfächer/tnp AG","Standardfreigaberichtlinie","100 GB (107,374,182,400 bytes)","90 GB (96,636,764,160 bytes)","False","False","False","90.00:00:00","19.12.2021 18:50:19","False","bewerbung","tnp-gruppe.de/TNP Benutzer","Bewerbung","/o=TNP Gruppe/ou=Exchange Administrative Group (FYDIBOHF23SPDLT)/cn=Recipients/cn=833330aa0c4a43b0a692ea7a6f8af98b-Bewerbung","Unlimited","Unlimited","True","bewerbung@tnp-gruppe.de","UserMailbox","SharedMailbox","bewerbung@tnp-gruppe.de","tnp-gruppe.de/TNP Benutzer/Bewerbung","True","0.20 (15.0.0.0)","CN=Bewerbung,OU=TNP Benutzer,DC=tnp-gruppe,DC=de","474bd513-c4fe-4069-afa3-8ce6e0ee4cb4","tnp-gruppe.de/Configuration/Schema/Person","18.07.2023 11:45:32","19.12.2021 18:50:19","18.07.2023 09:45:32","19.12.2021 17:50:19","","tnp-gruppe.de/TNP Benutzer/Bewerbung","TNPAD01.tnp-gruppe.de"
|
||||
,,,"EXDB02","False","True","True","True",,"f7e48f99-558c-4c01-b077-d262a89de986","Version 15.2 (Build 1118.7)","AccountDisabled","True","50 GB (53,687,091,200 bytes)","50 GB (53,687,091,200 bytes)","30 GB (32,212,254,720 bytes)","20 GB (21,474,836,480 bytes)","6 GB (6,442,450,944 bytes)","False","False","True","False","NT-AUTORITÄT\SELBST","True",,,"SM_c1c534425b4249cfb","/o=TNP Gruppe/ou=Exchange Administrative Group (FYDIBOHF23SPDLT)/cn=Configuration/cn=Servers/cn=TNPEX01","False","Unlimited","256 KB (262,144 bytes)","DiscoverySearchMailbox {D919BA05-46A6-415f-80AD-7E09334BB852}@tnp-gruppe.de","Default Role Assignment Policy","tnp-gruppe.de/Exchange-Öffentliche-Postfächer/tnp AG","Standardfreigaberichtlinie","100 GB (107,374,182,400 bytes)","90 GB (96,636,764,160 bytes)","False","True","False","90.00:00:00","02.09.2021 13:28:50","True","DiscoverySearchMailbox{D919BA05-46A6-415f-80AD-7E09334BB852}","tnp-gruppe.de/Users","Discoverysuchpostfach","/o=TNP Gruppe/ou=Exchange Administrative Group (FYDIBOHF23SPDLT)/cn=Recipients/cn=6ca4161e4fdf4359a7e03131009cdc8d-DiscoverySear","100 MB (104,857,600 bytes)","100 MB (104,857,600 bytes)","True","DiscoverySearchMailbox{D919BA05-46A6-415f-80AD-7E09334BB852}@tnp-gruppe.de","UserMailbox","DiscoveryMailbox","DiscoverySearchMailbox{D919BA05-46A6-415f-80AD-7E09334BB852}@tnp-gruppe.de","tnp-gruppe.de/Users/DiscoverySearchMailbox {D919BA05-46A6-415f-80AD-7E09334BB852}","True","0.20 (15.0.0.0)","CN=DiscoverySearchMailbox {D919BA05-46A6-415f-80AD-7E09334BB852},CN=Users,DC=tnp-gruppe,DC=de","db5cd41e-6ea5-4784-9a88-d5e17c02c7b8","tnp-gruppe.de/Configuration/Schema/Person","27.01.2023 07:08:12","02.09.2021 12:44:00","27.01.2023 06:08:12","02.09.2021 10:44:00","","tnp-gruppe.de/Users/DiscoverySearchMailbox {D919BA05-46A6-415f-80AD-7E09334BB852}","TNPAD01.tnp-gruppe.de"
|
||||
,,,"EXDB02","False","True","True","True",,"4cae2de7-7fbf-4107-b223-917858884660","Version 15.2 (Build 1118.7)","None","True","Unlimited","Unlimited","30 GB (32,212,254,720 bytes)","20 GB (21,474,836,480 bytes)","6 GB (6,442,450,944 bytes)","False","False","False","False","","False",,,"eva-maria.lehmann","/o=TNP Gruppe/ou=Exchange Administrative Group (FYDIBOHF23SPDLT)/cn=Configuration/cn=Servers/cn=TNPEX01","True","Unlimited","256 KB (262,144 bytes)","eva-maria.lehmann@tnp-gruppe.de","Default Role Assignment Policy","tnp-gruppe.de/Exchange-Öffentliche-Postfächer/tnp AG","Standardfreigaberichtlinie","100 GB (107,374,182,400 bytes)","90 GB (96,636,764,160 bytes)","False","False","False","90.00:00:00","16.12.2021 13:46:33","False","eva-maria.lehmann","tnp-gruppe.de/TNP Benutzer","Eva-Maria Lehmann","/o=TNP Gruppe/ou=Exchange Administrative Group (FYDIBOHF23SPDLT)/cn=Recipients/cn=73d87fcca2c945ce99ad376fbaf22d80-Eva-Maria Leh","Unlimited","Unlimited","True","eva-maria.lehmann@tnp-gruppe.de","UserMailbox","UserMailbox","eva-maria.lehmann@tnp-gruppe.de","tnp-gruppe.de/TNP Benutzer/Eva-Maria Lehmann","True","0.20 (15.0.0.0)","CN=Eva-Maria Lehmann,OU=TNP Benutzer,DC=tnp-gruppe,DC=de","bf7c0205-b0c9-48e5-97f6-bbc009758560","tnp-gruppe.de/Configuration/Schema/Person","20.08.2023 12:46:22","16.12.2021 10:21:40","20.08.2023 10:46:22","16.12.2021 09:21:40","","tnp-gruppe.de/TNP Benutzer/Eva-Maria Lehmann","TNPAD01.tnp-gruppe.de"
|
||||
,,,"EXDB02","False","True","True","True",,"e6aad670-a194-47cf-ae8c-5b9dcf7e13b8","Version 15.2 (Build 1118.7)","None","True","Unlimited","Unlimited","30 GB (32,212,254,720 bytes)","20 GB (21,474,836,480 bytes)","6 GB (6,442,450,944 bytes)","False","False","False","False","","False",,,"exadmin","/o=TNP Gruppe/ou=Exchange Administrative Group (FYDIBOHF23SPDLT)/cn=Configuration/cn=Servers/cn=TNPEX01","True","Unlimited","256 KB (262,144 bytes)","exadmin@tnp-gruppe.de","Default Role Assignment Policy","tnp-gruppe.de/Exchange-Öffentliche-Postfächer/tnp AG","Standardfreigaberichtlinie","100 GB (107,374,182,400 bytes)","90 GB (96,636,764,160 bytes)","False","False","False","90.00:00:00","02.09.2021 13:28:29","False","exadmin","tnp-gruppe.de/TNP Admins","Exchange Admin (Service-Account)","/o=TNP Gruppe/ou=Exchange Administrative Group (FYDIBOHF23SPDLT)/cn=Recipients/cn=eb91f54c1ad34eaca235f9497704cc75-Exchange Admi","Unlimited","Unlimited","True","exadmin@tnp-gruppe.de","UserMailbox","UserMailbox","exadmin@tnp-gruppe.de","tnp-gruppe.de/TNP Admins/Exchange Admin","True","0.20 (15.0.0.0)","CN=Exchange Admin,OU=TNP Admins,DC=tnp-gruppe,DC=de","15664eee-b2b8-4477-b301-b7b02e254fcd","tnp-gruppe.de/Configuration/Schema/Person","21.08.2023 11:39:13","02.09.2021 11:54:38","21.08.2023 09:39:13","02.09.2021 09:54:38","","tnp-gruppe.de/TNP Admins/Exchange Admin","TNPAD01.tnp-gruppe.de"
|
||||
,,,"EXDB02","False","True","True","True",,"30ce8d8a-4734-4f11-a158-99639fb1e55d","Version 15.2 (Build 1118.7)","None","True","Unlimited","Unlimited","30 GB (32,212,254,720 bytes)","20 GB (21,474,836,480 bytes)","6 GB (6,442,450,944 bytes)","False","False","True","False","NT-AUTORITÄT\SELBST","False",,,"info","/o=TNP Gruppe/ou=Exchange Administrative Group (FYDIBOHF23SPDLT)/cn=Configuration/cn=Servers/cn=TNPEX01","True","Unlimited","256 KB (262,144 bytes)","info@tnp-gruppe.de","Default Role Assignment Policy","tnp-gruppe.de/Exchange-Öffentliche-Postfächer/tnp AG","Standardfreigaberichtlinie","100 GB (107,374,182,400 bytes)","90 GB (96,636,764,160 bytes)","False","False","False","90.00:00:00","19.12.2021 18:50:55","False","info","tnp-gruppe.de/TNP Benutzer","Info","/o=TNP Gruppe/ou=Exchange Administrative Group (FYDIBOHF23SPDLT)/cn=Recipients/cn=07a34de9fdc54635af23f05ecdbe1e19-Info","Unlimited","Unlimited","True","info@tnp-gruppe.de","UserMailbox","SharedMailbox","info@tnp-gruppe.de","tnp-gruppe.de/TNP Benutzer/Info","True","0.20 (15.0.0.0)","CN=Info,OU=TNP Benutzer,DC=tnp-gruppe,DC=de","5d46e10a-38cf-46ef-8673-bf7d4c0b4c9f","tnp-gruppe.de/Configuration/Schema/Person","18.07.2023 11:45:36","19.12.2021 18:50:55","18.07.2023 09:45:36","19.12.2021 17:50:55","","tnp-gruppe.de/TNP Benutzer/Info","TNPAD01.tnp-gruppe.de"
|
||||
,,,"Journal","True","False","True","True",,"2f71af03-7112-48ed-b94e-95a3cbd597a8","Version 15.2 (Build 1118.7)","AccountDisabled","True","Unlimited","Unlimited","30 GB (32,212,254,720 bytes)","20 GB (21,474,836,480 bytes)","6 GB (6,442,450,944 bytes)","False","False","True","False","NT-AUTORITÄT\SELBST","False",,,"Info1","/o=TNP Gruppe/ou=Exchange Administrative Group (FYDIBOHF23SPDLT)/cn=Configuration/cn=Servers/cn=TNPEX01","True","Unlimited","256 KB (262,144 bytes)","Info1@tnp-gruppe.de","Default Role Assignment Policy","tnp-gruppe.de/Exchange-Öffentliche-Postfächer/tnp AG","Standardfreigaberichtlinie","100 GB (107,374,182,400 bytes)","90 GB (96,636,764,160 bytes)","False","False","False","90.00:00:00","25.04.2023 12:36:59","True","Info","tnp-gruppe.de/Exchange-Öffentliche-Postfächer","Info Cura-Saale","/o=TNP Gruppe/ou=Exchange Administrative Group (FYDIBOHF23SPDLT)/cn=Recipients/cn=66fe84c085c644fd902aa4a9619f7da2-Info Cura-Saa","Unlimited","Unlimited","False","info@cura-saale.de","UserMailbox","SharedMailbox","info@cura-saale.de","tnp-gruppe.de/Exchange-Öffentliche-Postfächer/Info Cura-Saale","True","0.20 (15.0.0.0)","CN=Info Cura-Saale,OU=Exchange-Öffentliche-Postfächer,DC=tnp-gruppe,DC=de","238165cc-0ebd-49f0-a3c3-8045fda6cf3c","tnp-gruppe.de/Configuration/Schema/Person","23.08.2023 09:52:19","25.04.2023 12:36:59","23.08.2023 07:52:19","25.04.2023 10:36:59","","tnp-gruppe.de/Exchange-Öffentliche-Postfächer/Info Cura-Saale","TNPAD01.tnp-gruppe.de"
|
||||
,,,"Treu","True","False","True","True",,"404a6e24-0f4a-4d30-aa69-5cec5135e8b1","Version 15.2 (Build 1118.7)","None","True","Unlimited","Unlimited","30 GB (32,212,254,720 bytes)","20 GB (21,474,836,480 bytes)","6 GB (6,442,450,944 bytes)","False","False","False","False","","False",,,"jan.treu","/o=TNP Gruppe/ou=Exchange Administrative Group (FYDIBOHF23SPDLT)/cn=Configuration/cn=Servers/cn=TNPEX01","False","Unlimited","256 KB (262,144 bytes)","jan.treu@tnp-gruppe.de","Default Role Assignment Policy","tnp-gruppe.de/Exchange-Öffentliche-Postfächer/tnp AG","Standardfreigaberichtlinie","100 GB (107,374,182,400 bytes)","90 GB (96,636,764,160 bytes)","False","False","False","90.00:00:00","29.11.2021 10:40:45","False","jan.treu","tnp-gruppe.de/TNP Benutzer","Jan Treu","/o=TNP Gruppe/ou=Exchange Administrative Group (FYDIBOHF23SPDLT)/cn=Recipients/cn=f1891a5ff36b45849d8a521425f13e7f-Jan Treu","Unlimited","Unlimited","True","jan.treu@tnp-gruppe.de","UserMailbox","UserMailbox","jan.treu@tnp-gruppe.de","tnp-gruppe.de/TNP Benutzer/Jan Treu","True","0.20 (15.0.0.0)","CN=Jan Treu,OU=TNP Benutzer,DC=tnp-gruppe,DC=de","079ec7f2-a3b1-4182-a862-953bcd3c0c0a","tnp-gruppe.de/Configuration/Schema/Person","16.08.2023 05:42:47","01.09.2021 13:15:06","16.08.2023 03:42:47","01.09.2021 11:15:06","","tnp-gruppe.de/TNP Benutzer/Jan Treu","TNPAD01.tnp-gruppe.de"
|
||||
,,,"Journal","True","False","True","True","Journal","60f4ea76-2969-4b0e-a114-4cc1f6a67658","Version 15.2 (Build 1118.7)","None","True","Unlimited","Unlimited","30 GB (32,212,254,720 bytes)","20 GB (21,474,836,480 bytes)","6 GB (6,442,450,944 bytes)","False","False","False","False","","False",,,"Journal","/o=TNP Gruppe/ou=Exchange Administrative Group (FYDIBOHF23SPDLT)/cn=Configuration/cn=Servers/cn=TNPEX01","False","Unlimited","256 KB (262,144 bytes)","Journal@tnp-gruppe.de","Default Role Assignment Policy","tnp-gruppe.de/Exchange-Öffentliche-Postfächer/tnp AG","Standardfreigaberichtlinie","100 GB (107,374,182,400 bytes)","90 GB (96,636,764,160 bytes)","False","False","False","90.00:00:00","28.12.2021 08:21:04","False","Journal","tnp-gruppe.de/TNP Benutzer","Journal (Service-Account)","/o=TNP Gruppe/ou=Exchange Administrative Group (FYDIBOHF23SPDLT)/cn=Recipients/cn=9cc4b159ddd741bbb8ceca2870f96e95-Journal","Unlimited","Unlimited","True","Journal@tnp-gruppe.de","UserMailbox","UserMailbox","Journal@tnp-gruppe.de","tnp-gruppe.de/TNP Benutzer/Journal","True","0.20 (15.0.0.0)","CN=Journal,OU=TNP Benutzer,DC=tnp-gruppe,DC=de","4ef34f53-8822-47e0-899b-9146fc182d00","tnp-gruppe.de/Configuration/Schema/Person","16.08.2023 13:43:06","28.12.2021 08:21:04","16.08.2023 11:43:06","28.12.2021 07:21:04","","tnp-gruppe.de/TNP Benutzer/Journal","TNPAD01.tnp-gruppe.de"
|
||||
,,,"EXDB02","False","True","True","True",,"8d8ebfc5-d28f-468d-8689-152b4ebd41f7","Version 15.2 (Build 1118.7)","None","True","Unlimited","Unlimited","30 GB (32,212,254,720 bytes)","20 GB (21,474,836,480 bytes)","6 GB (6,442,450,944 bytes)","False","False","False","False","","False",,,"julia.weiske","/o=TNP Gruppe/ou=Exchange Administrative Group (FYDIBOHF23SPDLT)/cn=Configuration/cn=Servers/cn=TNPEX01","True","Unlimited","256 KB (262,144 bytes)","julia.weiske@tnp-gruppe.de","Default Role Assignment Policy","tnp-gruppe.de/Exchange-Öffentliche-Postfächer/tnp AG","Standardfreigaberichtlinie","100 GB (107,374,182,400 bytes)","90 GB (96,636,764,160 bytes)","False","False","False","90.00:00:00","29.11.2021 10:40:46","False","julia.weiske","tnp-gruppe.de/TNP Benutzer","Julia Weiske","/o=TNP Gruppe/ou=Exchange Administrative Group (FYDIBOHF23SPDLT)/cn=Recipients/cn=0ada655ec9df4da3b648ce3521566784-Julia Weiske","Unlimited","Unlimited","True","julia.weiske@tnp-gruppe.de","UserMailbox","UserMailbox","julia.weiske@tnp-gruppe.de","tnp-gruppe.de/TNP Benutzer/Julia Weiske","True","0.20 (15.0.0.0)","CN=Julia Weiske,OU=TNP Benutzer,DC=tnp-gruppe,DC=de","f4dc59c5-f55d-47ce-b24d-909a998af89b","tnp-gruppe.de/Configuration/Schema/Person","21.08.2023 09:54:59","01.09.2021 13:18:14","21.08.2023 07:54:59","01.09.2021 11:18:14","","tnp-gruppe.de/TNP Benutzer/Julia Weiske","TNPAD01.tnp-gruppe.de"
|
||||
,,,"EXDB02","False","True","True","True",,"0d7924ad-e8a9-460b-8ab3-b200ea0d7f0b","Version 15.2 (Build 1118.7)","None","True","Unlimited","Unlimited","30 GB (32,212,254,720 bytes)","20 GB (21,474,836,480 bytes)","6 GB (6,442,450,944 bytes)","False","False","False","False","","False",,,"kati.guckel","/o=TNP Gruppe/ou=Exchange Administrative Group (FYDIBOHF23SPDLT)/cn=Configuration/cn=Servers/cn=TNPEX01","True","Unlimited","256 KB (262,144 bytes)","kati.guckel@tnp-gruppe.de","Default Role Assignment Policy","tnp-gruppe.de/Exchange-Öffentliche-Postfächer/tnp AG","Standardfreigaberichtlinie","100 GB (107,374,182,400 bytes)","90 GB (96,636,764,160 bytes)","False","False","False","90.00:00:00","29.11.2021 10:40:46","False","kati.guckel","tnp-gruppe.de/TNP Benutzer","Kati Guckel","/o=TNP Gruppe/ou=Exchange Administrative Group (FYDIBOHF23SPDLT)/cn=Recipients/cn=f7d1ad6207ca41689bb1694583ab5eec-Kati Guckel","Unlimited","Unlimited","True","kati.guckel@tnp-gruppe.de","UserMailbox","UserMailbox","kati.guckel@tnp-gruppe.de","tnp-gruppe.de/TNP Benutzer/Kati Guckel","True","0.20 (15.0.0.0)","CN=Kati Guckel,OU=TNP Benutzer,DC=tnp-gruppe,DC=de","590757b8-d4e8-45ba-9094-a965a7be7008","tnp-gruppe.de/Configuration/Schema/Person","17.08.2023 06:27:45","01.09.2021 13:18:30","17.08.2023 04:27:45","01.09.2021 11:18:30","","tnp-gruppe.de/TNP Benutzer/Kati Guckel","TNPAD01.tnp-gruppe.de"
|
||||
,,,"EXDB02","False","True","True","True",,"5869fdd0-be28-4022-b7cd-29d273fc33c5","Version 15.2 (Build 1118.7)","AccountDisabled","True","Unlimited","Unlimited","30 GB (32,212,254,720 bytes)","20 GB (21,474,836,480 bytes)","6 GB (6,442,450,944 bytes)","True","False","False","False","NT-AUTORITÄT\SELBST","False","Equipment",,"Laptop.Lenovo.weiß","/o=TNP Gruppe/ou=Exchange Administrative Group (FYDIBOHF23SPDLT)/cn=Configuration/cn=Servers/cn=TNPEX01","True","Unlimited","256 KB (262,144 bytes)","Laptop.Lenovo.weiß@tnp-gruppe.de","Default Role Assignment Policy","tnp-gruppe.de/Exchange-Öffentliche-Postfächer/tnp AG","Standardfreigaberichtlinie","100 GB (107,374,182,400 bytes)","90 GB (96,636,764,160 bytes)","False","False","False","90.00:00:00","17.12.2021 08:52:23","True","Laptop.Lenovo.weiß","tnp-gruppe.de/Exchange-Öffentliche-Postfächer","Laptop Lenovo weiß","/o=TNP Gruppe/ou=Exchange Administrative Group (FYDIBOHF23SPDLT)/cn=Recipients/cn=user0d1c0d0f","Unlimited","Unlimited","True","Laptop.Lenovo.weiss@tnp-gruppe.de","UserMailbox","EquipmentMailbox","Laptop.Lenovo.weiss@tnp-gruppe.de","tnp-gruppe.de/Exchange-Öffentliche-Postfächer/Laptop Lenovo weiß","True","0.20 (15.0.0.0)","CN=Laptop Lenovo weiß,OU=Exchange-Öffentliche-Postfächer,DC=tnp-gruppe,DC=de","801cee3c-7b25-4c04-9176-157ac8c2bac3","tnp-gruppe.de/Configuration/Schema/Person","27.01.2023 07:08:12","17.12.2021 08:52:23","27.01.2023 06:08:12","17.12.2021 07:52:23","","tnp-gruppe.de/Exchange-Öffentliche-Postfächer/Laptop Lenovo weiß","TNPAD01.tnp-gruppe.de"
|
||||
,,,"EXDB02","False","True","True","True",,"45b144f0-c0ea-4abf-9a22-3202c252cb1c","Version 15.2 (Build 1118.7)","None","True","Unlimited","Unlimited","30 GB (32,212,254,720 bytes)","20 GB (21,474,836,480 bytes)","6 GB (6,442,450,944 bytes)","False","False","True","False","NT-AUTORITÄT\SELBST","False",,,"lizenzen","/o=TNP Gruppe/ou=Exchange Administrative Group (FYDIBOHF23SPDLT)/cn=Configuration/cn=Servers/cn=TNPEX01","True","Unlimited","256 KB (262,144 bytes)","lizenzen@tnp-gruppe.de","Default Role Assignment Policy","tnp-gruppe.de/Exchange-Öffentliche-Postfächer/tnp AG","Standardfreigaberichtlinie","100 GB (107,374,182,400 bytes)","90 GB (96,636,764,160 bytes)","False","False","False","90.00:00:00","19.12.2021 18:51:32","False","lizenzen","tnp-gruppe.de/TNP Benutzer","Lizenzen","/o=TNP Gruppe/ou=Exchange Administrative Group (FYDIBOHF23SPDLT)/cn=Recipients/cn=786866eb912640cfa860b15f6c3ae267-Lizenzen","Unlimited","Unlimited","True","lizenzen@tnp-gruppe.de","UserMailbox","SharedMailbox","lizenzen@tnp-gruppe.de","tnp-gruppe.de/TNP Benutzer/Lizenzen","True","0.20 (15.0.0.0)","CN=Lizenzen,OU=TNP Benutzer,DC=tnp-gruppe,DC=de","5e3692fe-5629-49d9-9df0-fc38f81cf1c6","tnp-gruppe.de/Configuration/Schema/Person","18.07.2023 11:45:48","19.12.2021 18:51:32","18.07.2023 09:45:48","19.12.2021 17:51:32","","tnp-gruppe.de/TNP Benutzer/Lizenzen","TNPAD01.tnp-gruppe.de"
|
||||
,,,"EXDB02","False","True","True","True",,"61e67392-c36a-4528-afdd-9d542f8b0689","Version 15.2 (Build 1118.7)","None","True","5 GB (5,368,709,120 bytes)","5 GB (5,368,709,120 bytes)","30 GB (32,212,254,720 bytes)","20 GB (21,474,836,480 bytes)","6 GB (6,442,450,944 bytes)","False","False","False","False","","False",,,"maike.hinrichs","/o=TNP Gruppe/ou=Exchange Administrative Group (FYDIBOHF23SPDLT)/cn=Configuration/cn=Servers/cn=TNPEX01","False","4 GB (4,294,967,296 bytes)","256 KB (262,144 bytes)","maike.hinrichs@tnp-gruppe.de","Default Role Assignment Policy","tnp-gruppe.de/Exchange-Öffentliche-Postfächer/tnp AG","Standardfreigaberichtlinie","100 GB (107,374,182,400 bytes)","90 GB (96,636,764,160 bytes)","False","False","False","90.00:00:00","16.12.2021 13:46:41","False","maike.hinrichs","tnp-gruppe.de/TNP Benutzer","Maike Hinrichs","/o=TNP Gruppe/ou=Exchange Administrative Group (FYDIBOHF23SPDLT)/cn=Recipients/cn=5d13043c3ae041abb9050a0e66f3d860-Maike Hinrich","Unlimited","Unlimited","True","Maike.Hinrichs@tnp-gruppe.de","UserMailbox","UserMailbox","Maike.Hinrichs@tnp-gruppe.de","tnp-gruppe.de/TNP Benutzer/Maike Hinrichs","True","0.20 (15.0.0.0)","CN=Maike Hinrichs,OU=TNP Benutzer,DC=tnp-gruppe,DC=de","cfe67a05-06d0-443b-8bbd-73d0d81aadf5","tnp-gruppe.de/Configuration/Schema/Person","21.08.2023 06:55:16","16.12.2021 10:33:26","21.08.2023 04:55:16","16.12.2021 09:33:26","","tnp-gruppe.de/TNP Benutzer/Maike Hinrichs","TNPAD01.tnp-gruppe.de"
|
||||
,,,"EXDB02","False","True","True","True",,"a5b6be53-aca1-4ed7-b9b2-9f46ee3f53e1","Version 15.2 (Build 1118.7)","None","True","Unlimited","Unlimited","30 GB (32,212,254,720 bytes)","20 GB (21,474,836,480 bytes)","6 GB (6,442,450,944 bytes)","False","False","False","False","","False",,,"manuela.blecha","/o=TNP Gruppe/ou=Exchange Administrative Group (FYDIBOHF23SPDLT)/cn=Configuration/cn=Servers/cn=TNPEX01","True","Unlimited","256 KB (262,144 bytes)","manuela.blecha@tnp-gruppe.de","Default Role Assignment Policy","tnp-gruppe.de/Exchange-Öffentliche-Postfächer/tnp AG","Standardfreigaberichtlinie","100 GB (107,374,182,400 bytes)","90 GB (96,636,764,160 bytes)","False","False","False","90.00:00:00","17.10.2022 10:39:41","False","manuela.blecha","tnp-gruppe.de/TNP Benutzer","Manuela Blecha","/o=TNP Gruppe/ou=Exchange Administrative Group (FYDIBOHF23SPDLT)/cn=Recipients/cn=14f6d13688ee4836b19be8ec52574c8a-Manuela Blech","Unlimited","Unlimited","True","manuela.blecha@tnp-gruppe.de","UserMailbox","UserMailbox","manuela.blecha@tnp-gruppe.de","tnp-gruppe.de/TNP Benutzer/Manuela Blecha","True","0.20 (15.0.0.0)","CN=Manuela Blecha,OU=TNP Benutzer,DC=tnp-gruppe,DC=de","2ddbc19a-42b7-48ed-bb9d-5a7eb503cfe6","tnp-gruppe.de/Configuration/Schema/Person","14.08.2023 08:19:50","17.10.2022 10:30:04","14.08.2023 06:19:50","17.10.2022 08:30:04","","tnp-gruppe.de/TNP Benutzer/Manuela Blecha","TNPAD01.tnp-gruppe.de"
|
||||
,,,"EXDB02","False","True","True","True",,"2f40b591-d88c-4911-b53a-0d8a64dfacd4","Version 15.2 (Build 1118.7)","None","True","Unlimited","Unlimited","30 GB (32,212,254,720 bytes)","20 GB (21,474,836,480 bytes)","6 GB (6,442,450,944 bytes)","False","False","False","False","","False",,,"batura","/o=TNP Gruppe/ou=Exchange Administrative Group (FYDIBOHF23SPDLT)/cn=Configuration/cn=Servers/cn=TNPEX01","True","Unlimited","256 KB (262,144 bytes)","nathalie.batura-senebier@tnp-gruppe.de","Default Role Assignment Policy","tnp-gruppe.de/Exchange-Öffentliche-Postfächer/tnp AG","Standardfreigaberichtlinie","100 GB (107,374,182,400 bytes)","90 GB (96,636,764,160 bytes)","False","False","False","90.00:00:00","29.11.2021 10:40:47","False","nathalie.batura-senebier","tnp-gruppe.de/TNP Benutzer","Nathalie Batura-Senebier","/o=TNP Gruppe/ou=Exchange Administrative Group (FYDIBOHF23SPDLT)/cn=Recipients/cn=ffe0a972e28d4ee390fdf0eb7e0d2ce1-Nathalie Batu","Unlimited","Unlimited","True","nathalie.batura-senebier@tnp-gruppe.de","UserMailbox","UserMailbox","nathalie.batura-senebier@tnp-gruppe.de","tnp-gruppe.de/TNP Benutzer/Nathalie Batura-Senebier","True","0.20 (15.0.0.0)","CN=Nathalie Batura-Senebier,OU=TNP Benutzer,DC=tnp-gruppe,DC=de","e021d98f-aa51-4b3f-8db4-c5b790ca2b8c","tnp-gruppe.de/Configuration/Schema/Person","18.08.2023 05:41:19","01.09.2021 13:18:49","18.08.2023 03:41:19","01.09.2021 11:18:49","","tnp-gruppe.de/TNP Benutzer/Nathalie Batura-Senebier","TNPAD01.tnp-gruppe.de"
|
||||
,,,"Journal","True","False","True","True",,"465204b7-e369-43a6-a43b-ca7c234384fc","Version 15.2 (Build 1118.7)","None","True","Unlimited","Unlimited","30 GB (32,212,254,720 bytes)","20 GB (21,474,836,480 bytes)","6 GB (6,442,450,944 bytes)","False","False","False","False","","False",,,"oliver.klöcker","/o=TNP Gruppe/ou=Exchange Administrative Group (FYDIBOHF23SPDLT)/cn=Configuration/cn=Servers/cn=TNPEX01","True","Unlimited","256 KB (262,144 bytes)","oliver.klöcker@tnp-gruppe.de","Default Role Assignment Policy","tnp-gruppe.de/Exchange-Öffentliche-Postfächer/tnp AG","Standardfreigaberichtlinie","100 GB (107,374,182,400 bytes)","90 GB (96,636,764,160 bytes)","False","False","False","90.00:00:00","25.04.2023 12:35:30","False","oliver.klöcker","tnp-gruppe.de/TNP Benutzer","Oliver Klöcker","/o=TNP Gruppe/ou=Exchange Administrative Group (FYDIBOHF23SPDLT)/cn=Recipients/cn=userecf48e41","Unlimited","Unlimited","False","verwaltung@cura-saale.de","UserMailbox","UserMailbox","verwaltung@cura-saale.de","tnp-gruppe.de/TNP Benutzer/Oliver Klöcker","True","0.20 (15.0.0.0)","CN=Oliver Klöcker,OU=TNP Benutzer,DC=tnp-gruppe,DC=de","232094a2-831a-4ad2-8836-e59a8546fb82","tnp-gruppe.de/Configuration/Schema/Person","17.08.2023 03:11:11","25.04.2023 12:35:05","17.08.2023 01:11:11","25.04.2023 10:35:05","","tnp-gruppe.de/TNP Benutzer/Oliver Klöcker","TNPAD01.tnp-gruppe.de"
|
||||
,,,"EXDB03","True","False","True","True",,"9439fc82-18fc-4277-be94-e0356d1263b2","Version 15.2 (Build 1118.7)","None","True","Unlimited","Unlimited","30 GB (32,212,254,720 bytes)","20 GB (21,474,836,480 bytes)","6 GB (6,442,450,944 bytes)","False","False","False","False","","False",,,"paula.wagner","/o=TNP Gruppe/ou=Exchange Administrative Group (FYDIBOHF23SPDLT)/cn=Configuration/cn=Servers/cn=TNPEX01","True","Unlimited","256 KB (262,144 bytes)","paula.wagner@tnp-gruppe.de","Default Role Assignment Policy","tnp-gruppe.de/Exchange-Öffentliche-Postfächer/tnp AG","Standardfreigaberichtlinie","100 GB (107,374,182,400 bytes)","90 GB (96,636,764,160 bytes)","False","False","False","90.00:00:00","30.03.2023 12:37:40","False","paula.wagner","tnp-gruppe.de/TNP Benutzer","Paula Wagner","/o=TNP Gruppe/ou=Exchange Administrative Group (FYDIBOHF23SPDLT)/cn=Recipients/cn=8a8c5675a7c44a21a36236647161153a-Paula Wagner","Unlimited","Unlimited","True","paula.wagner@tnp-gruppe.de","UserMailbox","UserMailbox","paula.wagner@tnp-gruppe.de","tnp-gruppe.de/TNP Benutzer/Paula Wagner","True","0.20 (15.0.0.0)","CN=Paula Wagner,OU=TNP Benutzer,DC=tnp-gruppe,DC=de","2a75206d-facc-48d4-9f96-62a767afdf40","tnp-gruppe.de/Configuration/Schema/Person","17.08.2023 13:48:06","30.03.2023 12:16:56","17.08.2023 11:48:06","30.03.2023 10:16:56","","tnp-gruppe.de/TNP Benutzer/Paula Wagner","TNPAD01.tnp-gruppe.de"
|
||||
,,,"EXDB03","True","False","True","True",,"5944045f-4d5b-484e-82af-f8f0f14118a7","Version 15.2 (Build 1118.7)","None","True","Unlimited","Unlimited","30 GB (32,212,254,720 bytes)","20 GB (21,474,836,480 bytes)","6 GB (6,442,450,944 bytes)","False","False","False","False","","False",,,"pdl","/o=TNP Gruppe/ou=Exchange Administrative Group (FYDIBOHF23SPDLT)/cn=Configuration/cn=Servers/cn=TNPEX01","True","Unlimited","256 KB (262,144 bytes)","pdl@tnp-gruppe.de","Default Role Assignment Policy","tnp-gruppe.de/Exchange-Öffentliche-Postfächer/tnp AG","Standardfreigaberichtlinie","100 GB (107,374,182,400 bytes)","90 GB (96,636,764,160 bytes)","False","False","False","90.00:00:00","27.06.2023 22:46:54","False","pdl","tnp-gruppe.de/TNP Benutzer","PDL Cura-Saale","/o=TNP Gruppe/ou=Exchange Administrative Group (FYDIBOHF23SPDLT)/cn=Recipients/cn=2f593dac669442079d730962e91f867d-PDL Cura-Saal","Unlimited","Unlimited","False","pdl@cura-saale.de","UserMailbox","UserMailbox","pdl@cura-saale.de","tnp-gruppe.de/TNP Benutzer/PDL Cura-Saale","True","0.20 (15.0.0.0)","CN=PDL Cura-Saale,OU=TNP Benutzer,DC=tnp-gruppe,DC=de","ced1504e-99c8-4b30-bc5b-994cd702659e","tnp-gruppe.de/Configuration/Schema/Person","23.08.2023 09:52:55","27.06.2023 22:46:54","23.08.2023 07:52:55","27.06.2023 20:46:54","","tnp-gruppe.de/TNP Benutzer/PDL Cura-Saale","TNPAD01.tnp-gruppe.de"
|
||||
,,,"Eisel-Schubert","True","False","True","True",,"78e16c1e-fd8b-4cb9-9cc9-9ba7a769cb76","Version 15.2 (Build 1118.7)","None","True","Unlimited","Unlimited","30 GB (32,212,254,720 bytes)","20 GB (21,474,836,480 bytes)","6 GB (6,442,450,944 bytes)","False","False","False","False","","False",,,"petra.schubert","/o=TNP Gruppe/ou=Exchange Administrative Group (FYDIBOHF23SPDLT)/cn=Configuration/cn=Servers/cn=TNPEX01","True","Unlimited","256 KB (262,144 bytes)","petra.schubert@tnp-gruppe.de","Default Role Assignment Policy","tnp-gruppe.de/Exchange-Öffentliche-Postfächer/tnp AG","Standardfreigaberichtlinie","100 GB (107,374,182,400 bytes)","90 GB (96,636,764,160 bytes)","False","False","False","90.00:00:00","29.11.2021 10:40:47","False","petra.schubert","tnp-gruppe.de/TNP Benutzer","Petra Schubert","/o=TNP Gruppe/ou=Exchange Administrative Group (FYDIBOHF23SPDLT)/cn=Recipients/cn=5d541de98b504e0181b0e3a1a9f0df1f-Petra Schuber","Unlimited","Unlimited","True","petra.schubert@tnp-gruppe.de","UserMailbox","UserMailbox","petra.schubert@tnp-gruppe.de","tnp-gruppe.de/TNP Benutzer/Petra Schubert","True","0.20 (15.0.0.0)","CN=Petra Schubert,OU=TNP Benutzer,DC=tnp-gruppe,DC=de","c037b750-44d5-4137-a2f1-3a5fd3e29308","tnp-gruppe.de/Configuration/Schema/Person","17.08.2023 09:06:50","01.09.2021 13:19:05","17.08.2023 07:06:50","01.09.2021 11:19:05","","tnp-gruppe.de/TNP Benutzer/Petra Schubert","TNPAD01.tnp-gruppe.de"
|
||||
,,,"EXDB02","False","True","True","True",,"01f8c4c2-3532-4463-ada3-c2da85f2f896","Version 15.2 (Build 1118.7)","None","True","Unlimited","Unlimited","30 GB (32,212,254,720 bytes)","20 GB (21,474,836,480 bytes)","6 GB (6,442,450,944 bytes)","False","False","True","False","NT-AUTORITÄT\SELBST","False",,,"rechnungen","/o=TNP Gruppe/ou=Exchange Administrative Group (FYDIBOHF23SPDLT)/cn=Configuration/cn=Servers/cn=TNPEX01","True","Unlimited","256 KB (262,144 bytes)","rechnungen@tnp-gruppe.de","Default Role Assignment Policy","tnp-gruppe.de/Exchange-Öffentliche-Postfächer/tnp AG","Standardfreigaberichtlinie","100 GB (107,374,182,400 bytes)","90 GB (96,636,764,160 bytes)","False","False","False","90.00:00:00","19.12.2021 18:52:11","False","rechnungen","tnp-gruppe.de/TNP Benutzer","Rechnungen","/o=TNP Gruppe/ou=Exchange Administrative Group (FYDIBOHF23SPDLT)/cn=Recipients/cn=2248503457c142708328479dbd203ef1-Rechnungen","Unlimited","Unlimited","True","rechnungen@tnp-gruppe.de","UserMailbox","SharedMailbox","rechnungen@tnp-gruppe.de","tnp-gruppe.de/TNP Benutzer/Rechnungen","True","0.20 (15.0.0.0)","CN=Rechnungen,OU=TNP Benutzer,DC=tnp-gruppe,DC=de","839ef884-61b4-4281-9804-f487d13308aa","tnp-gruppe.de/Configuration/Schema/Person","18.07.2023 11:45:48","19.12.2021 18:52:11","18.07.2023 09:45:48","19.12.2021 17:52:11","","tnp-gruppe.de/TNP Benutzer/Rechnungen","TNPAD01.tnp-gruppe.de"
|
||||
,,,"EXDB02","False","True","True","True",,"2d3713d6-36c2-4a73-8712-e0c0380ea72e","Version 15.2 (Build 1118.7)","AccountDisabled","True","Unlimited","Unlimited","30 GB (32,212,254,720 bytes)","20 GB (21,474,836,480 bytes)","6 GB (6,442,450,944 bytes)","False","False","True","False","NT-AUTORITÄT\SELBST","False",,,"sekretariat","/o=TNP Gruppe/ou=Exchange Administrative Group (FYDIBOHF23SPDLT)/cn=Configuration/cn=Servers/cn=TNPEX01","True","Unlimited","256 KB (262,144 bytes)","sekretariat@tnp-gruppe.de","Default Role Assignment Policy","tnp-gruppe.de/Exchange-Öffentliche-Postfächer/tnp AG","Standardfreigaberichtlinie","100 GB (107,374,182,400 bytes)","90 GB (96,636,764,160 bytes)","False","False","False","90.00:00:00","19.12.2021 18:52:51","True","sekretariat","tnp-gruppe.de/Exchange-Öffentliche-Postfächer","Sekretariat TNP AG","/o=TNP Gruppe/ou=Exchange Administrative Group (FYDIBOHF23SPDLT)/cn=Recipients/cn=a2ac4698674142d7afcd0b12046ca7b7-Sekretariat T","Unlimited","Unlimited","True","sekretariat@tnp-gruppe.de","UserMailbox","SharedMailbox","sekretariat@tnp-gruppe.de","tnp-gruppe.de/Exchange-Öffentliche-Postfächer/Sekretariat TNP AG","True","0.20 (15.0.0.0)","CN=Sekretariat TNP AG,OU=Exchange-Öffentliche-Postfächer,DC=tnp-gruppe,DC=de","d6f84d3f-119e-4ea7-8163-6989a66b63ad","tnp-gruppe.de/Configuration/Schema/Person","01.02.2023 15:43:32","19.12.2021 18:52:51","01.02.2023 14:43:32","19.12.2021 17:52:51","","tnp-gruppe.de/Exchange-Öffentliche-Postfächer/Sekretariat TNP AG","TNPAD01.tnp-gruppe.de"
|
||||
,,,"EXDB02","False","True","True","True",,"abc7d4e3-7988-4e20-a7f5-1b89e31c3390","Version 15.2 (Build 1118.7)","AccountDisabled","True","Unlimited","Unlimited","30 GB (32,212,254,720 bytes)","20 GB (21,474,836,480 bytes)","6 GB (6,442,450,944 bytes)","True","False","False","False","NT-AUTORITÄT\SELBST","False","Equipment",,"Surface.Book.3","/o=TNP Gruppe/ou=Exchange Administrative Group (FYDIBOHF23SPDLT)/cn=Configuration/cn=Servers/cn=TNPEX01","True","Unlimited","256 KB (262,144 bytes)","Surface.Book.3@tnp-gruppe.de","Default Role Assignment Policy","tnp-gruppe.de/Exchange-Öffentliche-Postfächer/tnp AG","Standardfreigaberichtlinie","100 GB (107,374,182,400 bytes)","90 GB (96,636,764,160 bytes)","False","False","False","90.00:00:00","17.12.2021 08:53:01","True","Surface.Book.3","tnp-gruppe.de/Exchange-Öffentliche-Postfächer","Surface Book 3","/o=TNP Gruppe/ou=Exchange Administrative Group (FYDIBOHF23SPDLT)/cn=Recipients/cn=507de11682d947a2a301c79069bf6a57-Surface Book","Unlimited","Unlimited","True","Surface.Book.3@tnp-gruppe.de","UserMailbox","EquipmentMailbox","Surface.Book.3@tnp-gruppe.de","tnp-gruppe.de/Exchange-Öffentliche-Postfächer/Surface Book 3","True","0.20 (15.0.0.0)","CN=Surface Book 3,OU=Exchange-Öffentliche-Postfächer,DC=tnp-gruppe,DC=de","f54e484c-177d-49bc-9594-5e6c3dd05c86","tnp-gruppe.de/Configuration/Schema/Person","01.02.2023 11:45:48","17.12.2021 08:53:01","01.02.2023 10:45:48","17.12.2021 07:53:01","","tnp-gruppe.de/Exchange-Öffentliche-Postfächer/Surface Book 3","TNPAD01.tnp-gruppe.de"
|
||||
,,,"Eisel-Schubert","True","False","True","True",,"6539d723-2471-4118-8097-1d056348e0ba","Version 15.2 (Build 1118.7)","None","True","Unlimited","Unlimited","30 GB (32,212,254,720 bytes)","20 GB (21,474,836,480 bytes)","6 GB (6,442,450,944 bytes)","False","False","False","False","","False",,,"susanne.eisel","/o=TNP Gruppe/ou=Exchange Administrative Group (FYDIBOHF23SPDLT)/cn=Configuration/cn=Servers/cn=TNPEX01","True","Unlimited","256 KB (262,144 bytes)","susanne.eisel@tnp-gruppe.de","Default Role Assignment Policy","tnp-gruppe.de/Exchange-Öffentliche-Postfächer/tnp AG","Standardfreigaberichtlinie","100 GB (107,374,182,400 bytes)","90 GB (96,636,764,160 bytes)","False","False","False","90.00:00:00","29.11.2021 10:40:47","False","susanne.eisel","tnp-gruppe.de/TNP Benutzer","Susanne Eisel","/o=TNP Gruppe/ou=Exchange Administrative Group (FYDIBOHF23SPDLT)/cn=Recipients/cn=407d2bab0a89436f90d8437d8236e171-Susanne Eisel","Unlimited","Unlimited","True","susanne.eisel@tnp-gruppe.de","UserMailbox","UserMailbox","susanne.eisel@tnp-gruppe.de","tnp-gruppe.de/TNP Benutzer/Susanne Eisel","True","0.20 (15.0.0.0)","CN=Susanne Eisel,OU=TNP Benutzer,DC=tnp-gruppe,DC=de","2e7c23fa-da52-463d-8bf2-914b95abeabf","tnp-gruppe.de/Configuration/Schema/Person","21.08.2023 07:36:33","01.09.2021 13:19:38","21.08.2023 05:36:33","01.09.2021 11:19:38","","tnp-gruppe.de/TNP Benutzer/Susanne Eisel","TNPAD01.tnp-gruppe.de"
|
||||
,,,"EXDB02","False","True","True","True",,"1a2db4c4-6ed2-4ef8-9669-bff4b6b54b49","Version 15.2 (Build 1118.7)","AccountDisabled","True","Unlimited","Unlimited","30 GB (32,212,254,720 bytes)","20 GB (21,474,836,480 bytes)","6 GB (6,442,450,944 bytes)","False","False","True","False","NT-AUTORITÄT\SELBST","False",,,"TermineundFristen","/o=TNP Gruppe/ou=Exchange Administrative Group (FYDIBOHF23SPDLT)/cn=Configuration/cn=Servers/cn=TNPEX01","True","Unlimited","256 KB (262,144 bytes)","TermineundFristen@tnp-gruppe.de","Default Role Assignment Policy","tnp-gruppe.de/Exchange-Öffentliche-Postfächer/tnp AG","Standardfreigaberichtlinie","100 GB (107,374,182,400 bytes)","90 GB (96,636,764,160 bytes)","False","False","False","90.00:00:00","19.12.2021 18:53:38","True","TermineundFristen","tnp-gruppe.de/Exchange-Öffentliche-Postfächer","Termine & Fristen","/o=TNP Gruppe/ou=Exchange Administrative Group (FYDIBOHF23SPDLT)/cn=Recipients/cn=f81257f838d745e1afbb6b2190385279-Termine & Fri","Unlimited","Unlimited","True","TermineundFristen@tnp-gruppe.de","UserMailbox","SharedMailbox","TermineundFristen@tnp-gruppe.de","tnp-gruppe.de/Exchange-Öffentliche-Postfächer/Termine & Fristen","True","0.20 (15.0.0.0)","CN=Termine & Fristen,OU=Exchange-Öffentliche-Postfächer,DC=tnp-gruppe,DC=de","fc13d333-2adb-43a1-b7c1-b18a8d27984f","tnp-gruppe.de/Configuration/Schema/Person","01.02.2023 11:45:48","19.12.2021 18:53:38","01.02.2023 10:45:48","19.12.2021 17:53:38","","tnp-gruppe.de/Exchange-Öffentliche-Postfächer/Termine & Fristen","TNPAD01.tnp-gruppe.de"
|
||||
,,,"EXDB02","False","True","True","True",,"8b671d00-4bdf-43fc-859a-ffc7c2fe4b35","Version 15.2 (Build 1118.7)","None","True","Unlimited","Unlimited","30 GB (32,212,254,720 bytes)","20 GB (21,474,836,480 bytes)","6 GB (6,442,450,944 bytes)","False","False","False","False","","False",,,"rdpadmin","/o=TNP Gruppe/ou=Exchange Administrative Group (FYDIBOHF23SPDLT)/cn=Configuration/cn=Servers/cn=TNPEX01","True","Unlimited","256 KB (262,144 bytes)","rdpadmin@tnp-gruppe.de","Default Role Assignment Policy","tnp-gruppe.de/Exchange-Öffentliche-Postfächer/tnp AG","Standardfreigaberichtlinie","100 GB (107,374,182,400 bytes)","90 GB (96,636,764,160 bytes)","False","False","False","90.00:00:00","29.11.2021 10:42:06","False","test","tnp-gruppe.de/TNP Admins","RDP Admin (Service-Account)","/o=TNP Gruppe/ou=Exchange Administrative Group (FYDIBOHF23SPDLT)/cn=Recipients/cn=183210daf0c94cf6a8390fe12b73a9b6-RDP Admin","Unlimited","Unlimited","True","test@tnp-gruppe.de","UserMailbox","UserMailbox","test@tnp-gruppe.de","tnp-gruppe.de/TNP Admins/RDP Admin","True","0.20 (15.0.0.0)","CN=RDP Admin,OU=TNP Admins,DC=tnp-gruppe,DC=de","c0eec35e-923d-4d2c-b7e6-8d56720355bc","tnp-gruppe.de/Configuration/Schema/Person","23.08.2023 14:00:03","03.09.2021 11:35:43","23.08.2023 12:00:03","03.09.2021 09:35:43","","tnp-gruppe.de/TNP Admins/RDP Admin","TNPAD01.tnp-gruppe.de"
|
||||
,,,"EXDB02","False","True","True","True",,"7f451b10-e19c-4598-b5f9-ad3c3bdcfc31","Version 15.2 (Build 1118.7)","None","True","Unlimited","Unlimited","30 GB (32,212,254,720 bytes)","20 GB (21,474,836,480 bytes)","6 GB (6,442,450,944 bytes)","False","False","False","False","","False",,,"tobias.zander","/o=TNP Gruppe/ou=Exchange Administrative Group (FYDIBOHF23SPDLT)/cn=Configuration/cn=Servers/cn=TNPEX01","True","Unlimited","256 KB (262,144 bytes)","tobias.zander@tnp-gruppe.de","Default Role Assignment Policy","tnp-gruppe.de/Exchange-Öffentliche-Postfächer/tnp AG","Standardfreigaberichtlinie","100 GB (107,374,182,400 bytes)","90 GB (96,636,764,160 bytes)","False","False","False","90.00:00:00","29.11.2021 10:40:48","False","tobias.zander","tnp-gruppe.de/TNP Benutzer","Tobias Zander","/o=TNP Gruppe/ou=Exchange Administrative Group (FYDIBOHF23SPDLT)/cn=Recipients/cn=48eeb3c7f6e34ef49137e251a2ca33f8-Tobias Zander","Unlimited","Unlimited","True","tobias.zander@tnp-gruppe.de","UserMailbox","UserMailbox","tobias.zander@tnp-gruppe.de","tnp-gruppe.de/TNP Benutzer/Tobias Zander","True","0.20 (15.0.0.0)","CN=Tobias Zander,OU=TNP Benutzer,DC=tnp-gruppe,DC=de","2e05a40a-6fb7-44be-9516-b5c151c415ee","tnp-gruppe.de/Configuration/Schema/Person","22.08.2023 18:55:19","01.09.2021 13:19:56","22.08.2023 16:55:19","01.09.2021 11:19:56","","tnp-gruppe.de/TNP Benutzer/Tobias Zander","TNPAD01.tnp-gruppe.de"
|
||||
,,,"EXDB02","False","True","True","True",,"f69b6cf2-03bd-42f9-a49d-0845d18f6fc7","Version 15.2 (Build 1118.7)","None","True","Unlimited","Unlimited","30 GB (32,212,254,720 bytes)","20 GB (21,474,836,480 bytes)","6 GB (6,442,450,944 bytes)","False","False","False","False","","False",,,"volker.neumann","/o=TNP Gruppe/ou=Exchange Administrative Group (FYDIBOHF23SPDLT)/cn=Configuration/cn=Servers/cn=TNPEX01","True","Unlimited","256 KB (262,144 bytes)","volker.neumann@tnp-gruppe.de","Default Role Assignment Policy","tnp-gruppe.de/Exchange-Öffentliche-Postfächer/tnp AG","Standardfreigaberichtlinie","100 GB (107,374,182,400 bytes)","90 GB (96,636,764,160 bytes)","False","False","False","90.00:00:00","29.11.2021 10:38:33","False","volker.neumann","tnp-gruppe.de/TNP Benutzer","Volker Neumann","/o=TNP Gruppe/ou=Exchange Administrative Group (FYDIBOHF23SPDLT)/cn=Recipients/cn=295efc762fad43729e4347355c4f6b14-Volker Neuman","Unlimited","Unlimited","True","volker.neumann@tnp-gruppe.de","UserMailbox","UserMailbox","volker.neumann@tnp-gruppe.de","tnp-gruppe.de/TNP Benutzer/Volker Neumann","True","0.20 (15.0.0.0)","CN=Volker Neumann,OU=TNP Benutzer,DC=tnp-gruppe,DC=de","891e1491-0eac-4006-9fd8-960dec8d5266","tnp-gruppe.de/Configuration/Schema/Person","14.08.2023 14:09:26","01.09.2021 13:08:32","14.08.2023 12:09:26","01.09.2021 11:08:32","","tnp-gruppe.de/TNP Benutzer/Volker Neumann","TNPAD01.tnp-gruppe.de"
|
||||
,,,"EXDB02","False","True","True","True",,"4710ff94-5864-4bb6-9248-be788734a17f","Version 15.2 (Build 1118.7)","None","True","Unlimited","Unlimited","30 GB (32,212,254,720 bytes)","20 GB (21,474,836,480 bytes)","6 GB (6,442,450,944 bytes)","False","False","True","False","NT-AUTORITÄT\SELBST","False",,,"zahlungsverkehr","/o=TNP Gruppe/ou=Exchange Administrative Group (FYDIBOHF23SPDLT)/cn=Configuration/cn=Servers/cn=TNPEX01","True","Unlimited","256 KB (262,144 bytes)","zahlungsverkehr@tnp-gruppe.de","Default Role Assignment Policy","tnp-gruppe.de/Exchange-Öffentliche-Postfächer/tnp AG","Standardfreigaberichtlinie","100 GB (107,374,182,400 bytes)","90 GB (96,636,764,160 bytes)","False","False","False","90.00:00:00","19.12.2021 18:54:08","False","zahlungsverkehr","tnp-gruppe.de/TNP Benutzer","Zahlungsverkehr","/o=TNP Gruppe/ou=Exchange Administrative Group (FYDIBOHF23SPDLT)/cn=Recipients/cn=e131de09b6014968b153e21c8d2c498e-Zahlungsverke","Unlimited","Unlimited","True","zahlungsverkehr@tnp-gruppe.de","UserMailbox","SharedMailbox","zahlungsverkehr@tnp-gruppe.de","tnp-gruppe.de/TNP Benutzer/Zahlungsverkehr","True","0.20 (15.0.0.0)","CN=Zahlungsverkehr,OU=TNP Benutzer,DC=tnp-gruppe,DC=de","9c85b960-24cb-41e4-bf34-595762ffd60d","tnp-gruppe.de/Configuration/Schema/Person","18.07.2023 11:45:48","19.12.2021 18:54:08","18.07.2023 09:45:48","19.12.2021 17:54:08","","tnp-gruppe.de/TNP Benutzer/Zahlungsverkehr","TNPAD01.tnp-gruppe.de"
|
||||
|
@@ -0,0 +1,2 @@
|
||||
"Current Time from API-Server http://api.stines.de is 2023-08-24 09:16:51.100681"
|
||||
"Current Time from API-Server http://api.stines.de is 2023-08-24 09:17:22.116785"
|
||||
@@ -0,0 +1,73 @@
|
||||
import mysql.connector.locales.eng
|
||||
import mysql.connector
|
||||
import os
|
||||
import Controller.ssh_tunnel as ssh_tunnel
|
||||
|
||||
filename = os.path.basename(__file__)
|
||||
|
||||
def database(query,name,user):
|
||||
# server.start()
|
||||
print(f"{filename}-SSH Server start Port:{ssh_tunnel.server_port()}")
|
||||
|
||||
mydb = mysql.connector.connect(
|
||||
host="127.0.0.1",
|
||||
port=ssh_tunnel.server_port(),
|
||||
user="root",
|
||||
password="N53yBCswuawzBzS445VNAhWVMs3N59Gb9szEsrzXRBzarDqpdETpQeyt5v5CGe",
|
||||
database="" + name,
|
||||
auth_plugin='mysql_native_password',
|
||||
)
|
||||
mydb.connect()
|
||||
print(f"{filename}-SQL Server Connect")
|
||||
print(f"{filename}-{query}")
|
||||
cursor = mydb.cursor()
|
||||
if "SELECT" in query:
|
||||
if user:
|
||||
cursor.execute(query, user)
|
||||
return cursor.fetchone()
|
||||
else:
|
||||
cursor.execute(query, user)
|
||||
print(f"{filename}- Inside SELECT ALL")
|
||||
return cursor.fetchall()
|
||||
if "SHOW" in query:
|
||||
cursor.execute(query)
|
||||
return cursor.fetchall()
|
||||
if "INSERT" in query:
|
||||
cursor.execute(query,user)
|
||||
mydb.commit()
|
||||
if "UPDATE" in query:
|
||||
cursor.execute(query,user)
|
||||
mydb.commit()
|
||||
mydb.close()
|
||||
# server.stop()
|
||||
def get_ip(query):
|
||||
print(f"{filename}-GetIP")
|
||||
user = ""
|
||||
name = ""
|
||||
return database(query, name, user)
|
||||
def get_database():
|
||||
name = ""
|
||||
user = ""
|
||||
query = 'SHOW DATABASES'
|
||||
return database(query,name,user)
|
||||
def create_database(query,name):
|
||||
try:
|
||||
user = ""
|
||||
database(query,name,user)
|
||||
except Exception as e:
|
||||
print(f"{filename}-Ein Fehler ist aufgetreten:", str(e))
|
||||
def add_user(query,name,user):
|
||||
try:
|
||||
database(query, name, user)
|
||||
return print(f"{filename}-User Added")
|
||||
except Exception as e:
|
||||
print(f"{filename}-Ein Fehler ist aufgetreten:", str(e))
|
||||
|
||||
def get_user(query,name,user):
|
||||
return database(query,name,user)
|
||||
|
||||
def get_cpu(query,name,cpu):
|
||||
return database(query,name,cpu)
|
||||
|
||||
def update_cpu(query,name):
|
||||
return database(query,name,"")
|
||||
@@ -1,13 +1,16 @@
|
||||
import subprocess
|
||||
from datetime import datetime
|
||||
import mysql_connect
|
||||
|
||||
from Controller import mysql_connect
|
||||
import os
|
||||
filename = os.path.basename(__file__)
|
||||
def rds (ip,name):
|
||||
print(f"INSIDE-{filename}")
|
||||
powershell_command = "quser | Select-String -Pattern 'Aktiv'"
|
||||
result = subprocess.run(["powershell", "-Command", powershell_command], capture_output=True, text=True)
|
||||
fieldname = ["Benutzername","Anmeldezeit","Anmeldedatum"]
|
||||
# Die Ausgabe des Befehls aufteilen und die Benutzernamen und Anmeldezeiten extrahieren
|
||||
output_lines = result.stdout.strip().split('\n')[1:]
|
||||
print(f"{filename}-{output_lines}")
|
||||
logged_in_users = []
|
||||
|
||||
# Tabelle erstellen, falls sie noch nicht existiert
|
||||
@@ -18,7 +21,8 @@ def rds (ip,name):
|
||||
create_table_query = create_table_query.rstrip(", ") + ")"
|
||||
create_table_query += " ROW_FORMAT=DYNAMIC"
|
||||
user = ""
|
||||
mysql_connect.create_database(create_table_query,name)
|
||||
mysql_connect.create_database(create_table_query, name)
|
||||
print(f"{filename}-{create_table_query}")
|
||||
|
||||
for line in output_lines:
|
||||
parts = line.split()
|
||||
@@ -26,10 +30,12 @@ def rds (ip,name):
|
||||
login_time = parts[5]
|
||||
login_date = parts[6]
|
||||
logged_in_users.append((username,login_date, login_time))
|
||||
print(f"{filename}-{logged_in_users}")
|
||||
|
||||
for user in logged_in_users:
|
||||
user = [cell if cell.strip() else "-" for cell in user]
|
||||
unix_time = int(datetime.now().timestamp())
|
||||
user = [unix_time] + user
|
||||
insert_query = f"INSERT INTO `{table_name}` (importdate, `{'`, `'.join(fieldname)}`) VALUES (%s, {', '.join(['%s'] * len(fieldname))})"
|
||||
mysql_connect.add_user(insert_query,name, user)
|
||||
mysql_connect.add_user(insert_query, name, user)
|
||||
print(f"{filename}-{insert_query}")
|
||||
@@ -1,6 +1,6 @@
|
||||
import requests
|
||||
from datetime import datetime
|
||||
import mysql_connect
|
||||
from Controller import mysql_connect
|
||||
|
||||
|
||||
def smtp(ip,name,mailcow_token):
|
||||
@@ -47,7 +47,7 @@ def smtp(ip,name,mailcow_token):
|
||||
field = 'User-ID'
|
||||
create_table_query += f"`{field}` TEXT, "
|
||||
create_table_query = create_table_query.rstrip(", ") + ")"
|
||||
mysql_connect.create_database(create_table_query,name)
|
||||
mysql_connect.create_database(create_table_query, name)
|
||||
|
||||
print(len(fields))
|
||||
columns = ", ".join(json_data[0].keys())
|
||||
@@ -62,4 +62,4 @@ def smtp(ip,name,mailcow_token):
|
||||
for entry in json_data:
|
||||
values = tuple(
|
||||
cell if isinstance(cell, int) else cell.strip() if cell.strip() else "-" for cell in entry.values())
|
||||
mysql_connect.add_user(insert_query,name, (unix_time,) + values)
|
||||
mysql_connect.add_user(insert_query, name, (unix_time,) + values)
|
||||
@@ -0,0 +1,33 @@
|
||||
from sshtunnel import SSHTunnelForwarder
|
||||
import os
|
||||
|
||||
filename = os.path.basename(__file__)
|
||||
|
||||
def ping(host):
|
||||
# Führe den Ping-Befehl aus und erfasse die Ausgabe
|
||||
result = os.system("ping -c 1 " + host)
|
||||
if result == 0:
|
||||
hostname = "172.17.1.21", 22
|
||||
else:
|
||||
hostname = "forward.stines.de", 2223
|
||||
return hostname
|
||||
|
||||
server = SSHTunnelForwarder(
|
||||
(ping("forward.stines.de")),
|
||||
ssh_username="root",
|
||||
ssh_password="adm.3dfx12",
|
||||
remote_bind_address=('127.0.0.1', 3306)
|
||||
)
|
||||
|
||||
def server_start():
|
||||
server.start()
|
||||
return print(f"{filename}-Server started")
|
||||
|
||||
def server_stop():
|
||||
server.stop()
|
||||
return print(f"{filename}-Server stoped")
|
||||
|
||||
def server_port():
|
||||
return server.local_bind_port
|
||||
|
||||
|
||||
@@ -0,0 +1,141 @@
|
||||
import datetime
|
||||
import subprocess
|
||||
import socket
|
||||
import os
|
||||
import psutil
|
||||
import math
|
||||
import cpuinfo
|
||||
from multiprocessing import freeze_support
|
||||
import requests
|
||||
import platform
|
||||
import wmi
|
||||
import win32serviceutil
|
||||
|
||||
def request(function,variable):
|
||||
url = (f"http://api.stines.de:8001/{function}")
|
||||
response = requests.post(url,json = variable,headers={'access_token':'^YWUbG7yX*V!tV^KBSd*2c&vdN3wV9a2i7f3hfGFMBYFxi6#mMiJGiaA5KEHE%B*miK%qb7rQ67gmcYP@gqmux8'})
|
||||
return response
|
||||
|
||||
def getdabase():
|
||||
return request("getdatabase",{'ipadress':get_local_ip()})
|
||||
|
||||
def server_exist(hostname):
|
||||
return request("info/getserver",{'name': hostname, 'dbase': getdabase()})
|
||||
|
||||
def get_cpu_brand():
|
||||
freeze_support()
|
||||
return cpuinfo.get_cpu_info()['brand_raw']
|
||||
|
||||
def splacores(cpu):
|
||||
freeze_support()
|
||||
requests = request("cpu_info",{'name':cpu})
|
||||
return requests.json()[0][0]
|
||||
|
||||
def get_cpu_core():
|
||||
freeze_support()
|
||||
return os.cpu_count()
|
||||
|
||||
def get_ram_info():
|
||||
freeze_support()
|
||||
ram_info = psutil.virtual_memory()
|
||||
total_ram = ram_info.total / (1024 ** 3) # In Gigabytes
|
||||
return math.ceil(total_ram)
|
||||
|
||||
def get_total_hdd(function):
|
||||
freeze_support()
|
||||
space = 0
|
||||
disk_partitions = psutil.disk_partitions()
|
||||
for partition in disk_partitions:
|
||||
partition_info = psutil.disk_usage(partition.mountpoint)
|
||||
if function == "free":
|
||||
space += round(partition_info.free / (1024 ** 3), 2)
|
||||
elif function == "used":
|
||||
space += round(partition_info.used / (1024 ** 3), 2)
|
||||
elif function == "total":
|
||||
space += round(partition_info.total / (1024 ** 3), 2)
|
||||
return math.ceil(space)
|
||||
|
||||
def get_winver():
|
||||
freeze_support()
|
||||
return platform.platform()
|
||||
|
||||
|
||||
def get_total_hdd(function):
|
||||
freeze_support()
|
||||
space = 0
|
||||
disk_partitions = psutil.disk_partitions()
|
||||
for partition in disk_partitions:
|
||||
partition_info = psutil.disk_usage(partition.mountpoint)
|
||||
if function == "free":
|
||||
space += round(partition_info.free / (1024 ** 3), 2)
|
||||
elif function == "used":
|
||||
space += round(partition_info.used / (1024 ** 3), 2)
|
||||
elif function == "total":
|
||||
space += round(partition_info.total / (1024 ** 3), 2)
|
||||
return math.ceil(space)
|
||||
|
||||
|
||||
def get_local_ip():
|
||||
try:
|
||||
s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
|
||||
s.connect(("8.8.8.8", 80))
|
||||
local_ip = s.getsockname()[0]
|
||||
s.close()
|
||||
return local_ip
|
||||
except Exception as e:
|
||||
print(f"Fehler beim Abrufen der lokalen IP-Adresse: {e}")
|
||||
return None
|
||||
|
||||
def get_mainboard_info():
|
||||
c = wmi.WMI()
|
||||
for board in c.Win32_BaseBoard():
|
||||
return board.Product
|
||||
|
||||
def lastboot():
|
||||
lastboot = psutil.boot_time()
|
||||
lastboot = datetime.datetime.fromtimestamp(lastboot).strftime("%d.%m.%Y %H:%M ")
|
||||
return lastboot
|
||||
|
||||
|
||||
def find_service():
|
||||
services = ["MSExchangeTransport","NTDS","RDMS"]
|
||||
service_len = len(services)
|
||||
for index, i in enumerate(services):
|
||||
try:
|
||||
services = win32serviceutil.QueryServiceStatus(i)
|
||||
return True
|
||||
except:
|
||||
if index == service_len - 1:
|
||||
return "Software"
|
||||
else:
|
||||
continue
|
||||
|
||||
def get_windows_updates():
|
||||
c = wmi.WMI()
|
||||
updates = c.Win32_QuickFixEngineering()
|
||||
update_string = []
|
||||
for update in updates:
|
||||
update_string.append(f"KB-Artikel: {update.HotFixID} - Beschreibung: {update.Description}")
|
||||
return update_string
|
||||
|
||||
## GET HOSTNAME
|
||||
hostname = socket.gethostname()
|
||||
|
||||
## GET CURRENT DATE
|
||||
date = datetime.datetime.now()
|
||||
|
||||
## GET CPU BRAND (only 1 run)
|
||||
cpu = get_cpu_brand()
|
||||
|
||||
## GET VOLUME SPACE
|
||||
spacefree = str(get_total_hdd("free")).replace("['","").replace("]","").replace("'","")
|
||||
spaceused = str(get_total_hdd("used")).replace("['","").replace("]","").replace("'","")
|
||||
spacetotal = str(get_total_hdd("total")).replace("['","").replace("]","").replace("'","")
|
||||
|
||||
|
||||
request('systeminfo_add', {'createdate':date,'updatedate': date, 'lastboot': lastboot(), 'hostname': hostname,
|
||||
'ipaddress': get_local_ip(), 'winver': get_winver(), 'services': find_service(),
|
||||
'mainboard': get_mainboard_info(), 'cpu': splacores(cpu), 'realcores': get_cpu_core(),
|
||||
'splacores': splacores(cpu), 'ram': str(get_ram_info())
|
||||
, 'spacetotal': spacetotal, 'spaceused': spaceused,
|
||||
'spacefree': spacefree, 'winupdate': get_windows_updates()})
|
||||
@@ -0,0 +1,19 @@
|
||||
import os
|
||||
from multiprocessing import freeze_support
|
||||
import cpuinfo
|
||||
import psutil
|
||||
import math
|
||||
import platform
|
||||
import socket
|
||||
|
||||
|
||||
def get_local_ip():
|
||||
try:
|
||||
s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
|
||||
s.connect(("8.8.8.8", 80))
|
||||
local_ip = s.getsockname()[0]
|
||||
s.close()
|
||||
return local_ip
|
||||
except Exception as e:
|
||||
print(f"Fehler beim Abrufen der lokalen IP-Adresse: {e}")
|
||||
return None
|
||||
@@ -0,0 +1,85 @@
|
||||
import psycopg2
|
||||
from datetime import datetime, timedelta
|
||||
from Controller import mysql_connect
|
||||
import socket
|
||||
|
||||
def tickets(ip,name):
|
||||
# Verbindungsinformationen zur PostgreSQL-Datenbank
|
||||
db_host = "172.17.1.5"
|
||||
db_name = "zammad_production"
|
||||
db_user = "zammad"
|
||||
db_password = "zammad"
|
||||
|
||||
print("Inside")
|
||||
|
||||
table_name = "Tickets"
|
||||
|
||||
# Verbindung zur Datenbank herstellen
|
||||
connection = psycopg2.connect(
|
||||
host=db_host,
|
||||
database=db_name,
|
||||
user=db_user,
|
||||
password=db_password
|
||||
)
|
||||
## Abfrage der Daten mit SL / ZL
|
||||
cursor = connection.cursor()
|
||||
query = "SELECT tickets.*, tag_items.name AS SLA FROM tickets LEFT JOIN tags ON tickets.id = tags.o_id LEFT JOIN tag_items ON tags.tag_item_id = tag_items.id;"
|
||||
cursor.execute(query)
|
||||
|
||||
## Header auslesen
|
||||
headers = [desc[0] for desc in cursor.description]
|
||||
|
||||
## Orga Auslesen per API-Server
|
||||
group = f"SELECT id FROM groups WHERE name = '{name.replace('ae','ä').replace('ue','ü').replace('oe','ö').replace('-',' ')}'"
|
||||
cursor.execute(group)
|
||||
query = f"SELECT tickets.*, tag_items.name AS SLA FROM tickets LEFT JOIN tags ON tickets.id = tags.o_id LEFT JOIN tag_items ON tags.tag_item_id = tag_items.id WHERE group_id = {cursor.fetchone()[0]}"
|
||||
cursor.execute(query)
|
||||
results = cursor.fetchall()
|
||||
|
||||
column_type = f"SELECT column_name, data_type FROM information_schema.columns WHERE table_name = 'tickets' order by column_name ASC;"
|
||||
cursor.execute(column_type)
|
||||
column_type = cursor.fetchall()
|
||||
|
||||
columns = ""
|
||||
## Cretae Tabelle with column_type
|
||||
create_table_query = f"CREATE TABLE IF NOT EXISTS `{table_name}` (importdate BIGINT(11), "
|
||||
for i in column_type:
|
||||
columns += f"{i[0]},"
|
||||
if i[1] == "timestamp without time zone":
|
||||
create_table_query += f"`{i[0]}` DATETIME, "
|
||||
elif i[1] == "character varying":
|
||||
create_table_query += f"`{i[0]}` TEXT, "
|
||||
else:
|
||||
create_table_query += f"`{i[0]}` {i[1]}, "
|
||||
create_table_query = create_table_query.rstrip(",") + "sla TEXT)"
|
||||
mysql_connect.create_database(create_table_query, name)
|
||||
|
||||
for row in results:
|
||||
unix_time = int(datetime.now().timestamp())
|
||||
id = mysql_connect.get_user(f"SELECT id FROM `{table_name}` where id = '%s'", name,(row[0],))
|
||||
given_date = datetime.strptime(str(row[36]), "%Y-%m-%d %H:%M:%S.%f")
|
||||
yesterday = datetime.now() - timedelta(days=1)
|
||||
if id is None:
|
||||
insert_query = f"INSERT INTO `{table_name}` (importdate, `{'`, `'.join(headers)}`) VALUES (%s, {', '.join(['%s'] * len(headers))})"
|
||||
mysql_connect.add_user(insert_query, name, (unix_time,) + row)
|
||||
else:
|
||||
if given_date > yesterday:
|
||||
update_query = f"UPDATE `{table_name}` SET "
|
||||
for field in headers:
|
||||
update_query += f" `{field}` = %s, "
|
||||
update_query = update_query.rstrip(", ")
|
||||
update_query += f" WHERE id = {row[0]}"
|
||||
mysql_connect.add_user(update_query,name, row)
|
||||
|
||||
def get_local_ip():
|
||||
try:
|
||||
s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
|
||||
s.connect(("8.8.8.8", 80))
|
||||
local_ip = s.getsockname()[0]
|
||||
s.close()
|
||||
return local_ip
|
||||
except Exception as e:
|
||||
print(f"Fehler beim Abrufen der lokalen IP-Adresse: {e}")
|
||||
return None
|
||||
|
||||
tickets(get_local_ip(),"Jaehler-GmbH")
|
||||
@@ -1 +1,34 @@
|
||||
### Python Script für REPORTS
|
||||
# Python Script Sammlung für REPORTS
|
||||
|
||||
---
|
||||
|
||||
## Funktion
|
||||
|
||||
---
|
||||
Die Scripte sind für das Abrufen von Reports von Server-Systemen.<br>
|
||||
Folgende Scripte sind vorhanden
|
||||
|
||||
- AD-Controller für Active-Direcotory User und Gruppen
|
||||
- Exchange-Server für alle User vom Exchange Server
|
||||
- Terminal-Server für alle User eines RDS-Servers
|
||||
- E-Mail Server für alle SMTP User
|
||||
- Ticket Server für das Abrufen aller Tickets in einem System
|
||||
- Bitwarden Server für das Abrufen aller Aktiven Bitwarden User
|
||||
|
||||
### AD-Controller
|
||||
|
||||
---
|
||||
#### Aufbau:
|
||||
|
||||
Ruft die User und Gruppen über Powershell als CSV ab und sendet diese an den API-Server.<br>
|
||||
|
||||
Funktion für das Abrufen der User
|
||||
> powershell", "-Command",
|
||||
"Get-ADUser -Filter * -Properties * | Export-Csv -NoTypeInformation -Encoding UTF8 -Path 'users.csv"
|
||||
|
||||
Funktion für das Abrufen der Gruppen
|
||||
>"powershell", "-Command",
|
||||
"Get-ADGroupMember -Identity G-RDP-User | Export-Csv -NoTypeInformation -Encoding UTF8 -Path 'group.csv'"
|
||||
|
||||
Über den API "POST" werden die Daten an den MYSQL-Server gesendet.
|
||||
> request_post("dbset", {"query": create_table_query, 'dbname': name})<br>
|
||||
|
||||
@@ -0,0 +1,50 @@
|
||||
import time
|
||||
import os
|
||||
import requests
|
||||
import socket
|
||||
import shutil
|
||||
import zipfile
|
||||
import subprocess
|
||||
def request(function,variable):
|
||||
url = (f"http://api.stines.de:8001/{function}")
|
||||
response = requests.post(url,json = variable,headers={'access_token':'^YWUbG7yX*V!tV^KBSd*2c&vdN3wV9a2i7f3hfGFMBYFxi6#mMiJGiaA5KEHE%B*miK%qb7rQ67gmcYP@gqmux8'})
|
||||
return response
|
||||
|
||||
def get_local_ip():
|
||||
try:
|
||||
s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
|
||||
s.connect(("8.8.8.8", 80))
|
||||
local_ip = s.getsockname()[0]
|
||||
s.close()
|
||||
return local_ip
|
||||
except Exception as e:
|
||||
print(f"Fehler beim Abrufen der lokalen IP-Adresse: {e}")
|
||||
return None
|
||||
|
||||
if not os.path.isfile("C:\Scripte\Alive-Check\.alive"):
|
||||
main_folder = "C:\Scripte\Alive-Check\\"
|
||||
try:
|
||||
os.mkdir(main_folder)
|
||||
except:
|
||||
print("Folder exist")
|
||||
shutil.copy("alive_check.exe",main_folder)
|
||||
response = requests.get("https://nssm.cc/release/nssm-2.24.zip", stream=True)
|
||||
with open('C:\Scripte\\nssm.zip', 'wb') as file:
|
||||
for chunk in response.iter_content(chunk_size=8192):
|
||||
file.write(chunk)
|
||||
|
||||
# Entpacken der ZIP-Datei
|
||||
with zipfile.ZipFile('C:\Scripte\\nssm.zip', 'r') as zip_ref:
|
||||
zip_ref.extractall('C:\Scripte\\nssm')
|
||||
|
||||
shutil.move("C:\Scripte\\nssm\\nssm-2.24\win64\\nssm.exe",f"{main_folder}Windows_Dienst_Builder.exe")
|
||||
os.system(f"{main_folder}Windows_Dienst_Builder.exe install STI-Alive-Check {main_folder}alive_check.exe")
|
||||
open(f"{main_folder}.alive", 'a').close()
|
||||
time.sleep(2)
|
||||
print("Remove not Used Files")
|
||||
shutil.rmtree('C:\Scripte\\nssm')
|
||||
os.remove('C:\Scripte\\nssm.zip')
|
||||
|
||||
while True:
|
||||
print(request("ping",{'name':str(socket.gethostname()),'ipaddress':get_local_ip()}).text)
|
||||
time.sleep(60)
|
||||
@@ -2,14 +2,8 @@ import requests
|
||||
import subprocess
|
||||
import os
|
||||
import shutil
|
||||
import random
|
||||
|
||||
def create_windows_task(task_name, command, schedule):
|
||||
try:
|
||||
command_line = f'schtasks /F /create /tn "{task_name}" /tr "{command}" /sc {schedule}'
|
||||
subprocess.run(command_line, shell=True, check=True)
|
||||
print(f"Windows task '{task_name}' created successfully.")
|
||||
except subprocess.CalledProcessError as e:
|
||||
print(f"Failed to create Windows task. Error: {e}")
|
||||
|
||||
def download_and_run_file(url, filename):
|
||||
response = requests.get(url)
|
||||
@@ -37,24 +31,22 @@ def add_windows_defender_exception(path):
|
||||
print(f"Failed to add Windows Defender exception. Error: {e}")
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
try:
|
||||
print("################################# Start.py #############################")
|
||||
|
||||
try:
|
||||
os.mkdir("C:\\Scripte")
|
||||
except:
|
||||
print("Exist")
|
||||
path_to_exclude = "C:\\Scripte"
|
||||
add_windows_defender_exception(path_to_exclude)
|
||||
url_to_file = "https://gitlab.stines.de/sebastian.serfling/REPORTS/raw/branch/main/dist/main.exe"
|
||||
file_name = "C:\\Scripte\\Reports.exe"
|
||||
download_and_run_file(url_to_file, file_name)
|
||||
try:
|
||||
except:
|
||||
print("Folder Exist")
|
||||
path_to_exclude = "C:\\Scripte"
|
||||
add_windows_defender_exception(path_to_exclude)
|
||||
url_to_file = "https://gitlab.stines.de/sebastian.serfling/REPORTS/raw/branch/main/dist/main.exe"
|
||||
file_name = "C:\\Scripte\\Reports.exe"
|
||||
download_and_run_file(url_to_file, file_name)
|
||||
try:
|
||||
shutil.move("Start.exe","C:\\Scripte\\Start.exe")
|
||||
except:
|
||||
except:
|
||||
print("File was moved!")
|
||||
task_name = "Reports"
|
||||
command_to_execute = "C:\\Scripte\\Start.exe"
|
||||
schedule = "daily /st 23:30" # You can customize the schedule here
|
||||
|
||||
create_windows_task(task_name, command_to_execute, schedule)
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,32 @@
|
||||
#!/bin/bash
|
||||
## Ordner anlegen
|
||||
mkdir /root/REPORTS
|
||||
cd /root/REPORTS
|
||||
|
||||
## APT UPDATE
|
||||
apt update
|
||||
apt install python3-pip git -y
|
||||
|
||||
## Add Crontab
|
||||
if [ -f ".crontab" ]; then
|
||||
echo "Gibt es"
|
||||
next
|
||||
else
|
||||
crontab -l | { cat; echo "30 0 * * * /root/REPORTS/setup-info.sh"; } | crontab -
|
||||
echo "Gibt es nicht"
|
||||
touch ".crontab"
|
||||
fi
|
||||
|
||||
## Add GIT
|
||||
git init
|
||||
git remote add orgin https://gitlab.stines.de/sebastian.serfling/REPORTS.git
|
||||
git fetch
|
||||
git pull orgin main
|
||||
|
||||
## Install Python
|
||||
python3 -m pip install virtualenv
|
||||
python3 -m virtualenv venv
|
||||
source venv/bin/activate
|
||||
python3 -m pip install requests
|
||||
python3 Service/alive_check.py
|
||||
deactivate
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
File diff suppressed because it is too large
Load Diff
@@ -1,225 +0,0 @@
|
||||
('C:\\Users\\Sebastian Serfling\\PycharmProjects\\server-info\\dist\\main.exe',
|
||||
True,
|
||||
False,
|
||||
False,
|
||||
'C:\\Users\\Sebastian '
|
||||
'Serfling\\PycharmProjects\\server-info\\venv\\lib\\site-packages\\PyInstaller\\bootloader\\images\\icon-console.ico',
|
||||
None,
|
||||
False,
|
||||
False,
|
||||
'<?xml version="1.0" encoding="UTF-8" standalone="yes"?><assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0"><assemblyIdentity type="win32" name="main" processorArchitecture="amd64" version="1.0.0.0"/><trustInfo xmlns="urn:schemas-microsoft-com:asm.v3"><security><requestedPrivileges><requestedExecutionLevel level="asInvoker" uiAccess="false"/></requestedPrivileges></security></trustInfo><dependency><dependentAssembly><assemblyIdentity type="win32" name="Microsoft.Windows.Common-Controls" language="*" processorArchitecture="*" version="6.0.0.0" publicKeyToken="6595b64144ccf1df"/></dependentAssembly></dependency><compatibility xmlns="urn:schemas-microsoft-com:compatibility.v1"><application><supportedOS Id="{e2011457-1546-43c5-a5fe-008deee3d3f0}"/><supportedOS Id="{35138b9a-5d96-4fbd-8e2d-a2440225f93a}"/><supportedOS Id="{4a2f28e3-53b9-4441-ba9c-d69d4a4a6e38}"/><supportedOS Id="{1f676c76-80e1-4239-95bb-83d0f6d0da78}"/><supportedOS Id="{8e0f7a12-bfb3-4fe8-b9a5-48fd50a15a9a}"/></application></compatibility><application xmlns="urn:schemas-microsoft-com:asm.v3"><windowsSettings><longPathAware xmlns="http://schemas.microsoft.com/SMI/2016/WindowsSettings">true</longPathAware></windowsSettings></application></assembly>',
|
||||
True,
|
||||
True,
|
||||
False,
|
||||
None,
|
||||
None,
|
||||
None,
|
||||
'C:\\Users\\Sebastian '
|
||||
'Serfling\\PycharmProjects\\server-info\\build\\main\\main.pkg',
|
||||
[('PYZ-00.pyz',
|
||||
'C:\\Users\\Sebastian '
|
||||
'Serfling\\PycharmProjects\\server-info\\build\\main\\PYZ-00.pyz',
|
||||
'PYZ'),
|
||||
('struct',
|
||||
'C:\\Users\\Sebastian '
|
||||
'Serfling\\PycharmProjects\\server-info\\build\\main\\localpycs\\struct.pyc',
|
||||
'PYMODULE'),
|
||||
('pyimod01_archive',
|
||||
'C:\\Users\\Sebastian '
|
||||
'Serfling\\PycharmProjects\\server-info\\build\\main\\localpycs\\pyimod01_archive.pyc',
|
||||
'PYMODULE'),
|
||||
('pyimod02_importers',
|
||||
'C:\\Users\\Sebastian '
|
||||
'Serfling\\PycharmProjects\\server-info\\build\\main\\localpycs\\pyimod02_importers.pyc',
|
||||
'PYMODULE'),
|
||||
('pyimod03_ctypes',
|
||||
'C:\\Users\\Sebastian '
|
||||
'Serfling\\PycharmProjects\\server-info\\build\\main\\localpycs\\pyimod03_ctypes.pyc',
|
||||
'PYMODULE'),
|
||||
('pyimod04_pywin32',
|
||||
'C:\\Users\\Sebastian '
|
||||
'Serfling\\PycharmProjects\\server-info\\build\\main\\localpycs\\pyimod04_pywin32.pyc',
|
||||
'PYMODULE'),
|
||||
('pyiboot01_bootstrap',
|
||||
'C:\\Users\\Sebastian '
|
||||
'Serfling\\PycharmProjects\\server-info\\venv\\lib\\site-packages\\PyInstaller\\loader\\pyiboot01_bootstrap.py',
|
||||
'PYSOURCE'),
|
||||
('pyi_rth_inspect',
|
||||
'C:\\Users\\Sebastian '
|
||||
'Serfling\\PycharmProjects\\server-info\\venv\\Lib\\site-packages\\PyInstaller\\hooks\\rthooks\\pyi_rth_inspect.py',
|
||||
'PYSOURCE'),
|
||||
('pyi_rth_pywintypes',
|
||||
'C:\\Users\\Sebastian '
|
||||
'Serfling\\PycharmProjects\\server-info\\venv\\Lib\\site-packages\\_pyinstaller_hooks_contrib\\hooks\\rthooks\\pyi_rth_pywintypes.py',
|
||||
'PYSOURCE'),
|
||||
('main',
|
||||
'C:\\Users\\Sebastian Serfling\\PycharmProjects\\server-info\\main.py',
|
||||
'PYSOURCE'),
|
||||
('VCRUNTIME140.dll',
|
||||
'C:\\Users\\Sebastian '
|
||||
'Serfling\\AppData\\Local\\Programs\\Python\\Python39\\VCRUNTIME140.dll',
|
||||
'BINARY'),
|
||||
('python39.dll',
|
||||
'C:\\Users\\Sebastian '
|
||||
'Serfling\\AppData\\Local\\Programs\\Python\\Python39\\python39.dll',
|
||||
'BINARY'),
|
||||
('pywin32_system32\\pywintypes39.dll',
|
||||
'C:\\Users\\Sebastian '
|
||||
'Serfling\\PycharmProjects\\server-info\\venv\\lib\\site-packages\\pywin32_system32\\pywintypes39.dll',
|
||||
'BINARY'),
|
||||
('_decimal.pyd',
|
||||
'C:\\Users\\Sebastian '
|
||||
'Serfling\\AppData\\Local\\Programs\\Python\\Python39\\DLLs\\_decimal.pyd',
|
||||
'EXTENSION'),
|
||||
('_hashlib.pyd',
|
||||
'C:\\Users\\Sebastian '
|
||||
'Serfling\\AppData\\Local\\Programs\\Python\\Python39\\DLLs\\_hashlib.pyd',
|
||||
'EXTENSION'),
|
||||
('_lzma.pyd',
|
||||
'C:\\Users\\Sebastian '
|
||||
'Serfling\\AppData\\Local\\Programs\\Python\\Python39\\DLLs\\_lzma.pyd',
|
||||
'EXTENSION'),
|
||||
('_bz2.pyd',
|
||||
'C:\\Users\\Sebastian '
|
||||
'Serfling\\AppData\\Local\\Programs\\Python\\Python39\\DLLs\\_bz2.pyd',
|
||||
'EXTENSION'),
|
||||
('_ssl.pyd',
|
||||
'C:\\Users\\Sebastian '
|
||||
'Serfling\\AppData\\Local\\Programs\\Python\\Python39\\DLLs\\_ssl.pyd',
|
||||
'EXTENSION'),
|
||||
('unicodedata.pyd',
|
||||
'C:\\Users\\Sebastian '
|
||||
'Serfling\\AppData\\Local\\Programs\\Python\\Python39\\DLLs\\unicodedata.pyd',
|
||||
'EXTENSION'),
|
||||
('select.pyd',
|
||||
'C:\\Users\\Sebastian '
|
||||
'Serfling\\AppData\\Local\\Programs\\Python\\Python39\\DLLs\\select.pyd',
|
||||
'EXTENSION'),
|
||||
('_queue.pyd',
|
||||
'C:\\Users\\Sebastian '
|
||||
'Serfling\\AppData\\Local\\Programs\\Python\\Python39\\DLLs\\_queue.pyd',
|
||||
'EXTENSION'),
|
||||
('cryptography\\hazmat\\bindings\\_rust.pyd',
|
||||
'C:\\Users\\Sebastian '
|
||||
'Serfling\\PycharmProjects\\server-info\\venv\\lib\\site-packages\\cryptography\\hazmat\\bindings\\_rust.pyd',
|
||||
'EXTENSION'),
|
||||
('_cffi_backend.cp39-win_amd64.pyd',
|
||||
'C:\\Users\\Sebastian '
|
||||
'Serfling\\PycharmProjects\\server-info\\venv\\lib\\site-packages\\_cffi_backend.cp39-win_amd64.pyd',
|
||||
'EXTENSION'),
|
||||
('bcrypt\\_bcrypt.pyd',
|
||||
'C:\\Users\\Sebastian '
|
||||
'Serfling\\PycharmProjects\\server-info\\venv\\lib\\site-packages\\bcrypt\\_bcrypt.pyd',
|
||||
'EXTENSION'),
|
||||
('nacl\\_sodium.pyd',
|
||||
'C:\\Users\\Sebastian '
|
||||
'Serfling\\PycharmProjects\\server-info\\venv\\lib\\site-packages\\nacl\\_sodium.pyd',
|
||||
'EXTENSION'),
|
||||
('win32\\win32security.pyd',
|
||||
'C:\\Users\\Sebastian '
|
||||
'Serfling\\PycharmProjects\\server-info\\venv\\lib\\site-packages\\win32\\win32security.pyd',
|
||||
'EXTENSION'),
|
||||
('win32\\_win32sysloader.pyd',
|
||||
'C:\\Users\\Sebastian '
|
||||
'Serfling\\PycharmProjects\\server-info\\venv\\lib\\site-packages\\win32\\_win32sysloader.pyd',
|
||||
'EXTENSION'),
|
||||
('_ctypes.pyd',
|
||||
'C:\\Users\\Sebastian '
|
||||
'Serfling\\AppData\\Local\\Programs\\Python\\Python39\\DLLs\\_ctypes.pyd',
|
||||
'EXTENSION'),
|
||||
('pyexpat.pyd',
|
||||
'C:\\Users\\Sebastian '
|
||||
'Serfling\\AppData\\Local\\Programs\\Python\\Python39\\DLLs\\pyexpat.pyd',
|
||||
'EXTENSION'),
|
||||
('_uuid.pyd',
|
||||
'C:\\Users\\Sebastian '
|
||||
'Serfling\\AppData\\Local\\Programs\\Python\\Python39\\DLLs\\_uuid.pyd',
|
||||
'EXTENSION'),
|
||||
('charset_normalizer\\md__mypyc.cp39-win_amd64.pyd',
|
||||
'C:\\Users\\Sebastian '
|
||||
'Serfling\\PycharmProjects\\server-info\\venv\\lib\\site-packages\\charset_normalizer\\md__mypyc.cp39-win_amd64.pyd',
|
||||
'EXTENSION'),
|
||||
('charset_normalizer\\md.cp39-win_amd64.pyd',
|
||||
'C:\\Users\\Sebastian '
|
||||
'Serfling\\PycharmProjects\\server-info\\venv\\lib\\site-packages\\charset_normalizer\\md.cp39-win_amd64.pyd',
|
||||
'EXTENSION'),
|
||||
('_socket.pyd',
|
||||
'C:\\Users\\Sebastian '
|
||||
'Serfling\\AppData\\Local\\Programs\\Python\\Python39\\DLLs\\_socket.pyd',
|
||||
'EXTENSION'),
|
||||
('VCRUNTIME140_1.dll',
|
||||
'C:\\Users\\Sebastian '
|
||||
'Serfling\\AppData\\Local\\Programs\\Python\\Python39\\VCRUNTIME140_1.dll',
|
||||
'BINARY'),
|
||||
('libcrypto-1_1.dll',
|
||||
'C:\\Users\\Sebastian '
|
||||
'Serfling\\AppData\\Local\\Programs\\Python\\Python39\\DLLs\\libcrypto-1_1.dll',
|
||||
'BINARY'),
|
||||
('libssl-1_1.dll',
|
||||
'C:\\Users\\Sebastian '
|
||||
'Serfling\\AppData\\Local\\Programs\\Python\\Python39\\DLLs\\libssl-1_1.dll',
|
||||
'BINARY'),
|
||||
('python3.dll',
|
||||
'C:\\Users\\Sebastian '
|
||||
'Serfling\\AppData\\Local\\Programs\\Python\\Python39\\python3.dll',
|
||||
'BINARY'),
|
||||
('libffi-7.dll',
|
||||
'C:\\Users\\Sebastian '
|
||||
'Serfling\\AppData\\Local\\Programs\\Python\\Python39\\DLLs\\libffi-7.dll',
|
||||
'BINARY'),
|
||||
('base_library.zip',
|
||||
'C:\\Users\\Sebastian '
|
||||
'Serfling\\PycharmProjects\\server-info\\build\\main\\base_library.zip',
|
||||
'DATA'),
|
||||
('nacl\\py.typed',
|
||||
'C:\\Users\\Sebastian '
|
||||
'Serfling\\PycharmProjects\\server-info\\venv\\lib\\site-packages\\nacl\\py.typed',
|
||||
'DATA'),
|
||||
('cryptography-41.0.2.dist-info\\LICENSE.BSD',
|
||||
'c:\\users\\sebastian '
|
||||
'serfling\\pycharmprojects\\server-info\\venv\\lib\\site-packages\\cryptography-41.0.2.dist-info\\LICENSE.BSD',
|
||||
'DATA'),
|
||||
('cryptography-41.0.2.dist-info\\INSTALLER',
|
||||
'c:\\users\\sebastian '
|
||||
'serfling\\pycharmprojects\\server-info\\venv\\lib\\site-packages\\cryptography-41.0.2.dist-info\\INSTALLER',
|
||||
'DATA'),
|
||||
('certifi\\cacert.pem',
|
||||
'C:\\Users\\Sebastian '
|
||||
'Serfling\\PycharmProjects\\server-info\\venv\\lib\\site-packages\\certifi\\cacert.pem',
|
||||
'DATA'),
|
||||
('cryptography-41.0.2.dist-info\\LICENSE.APACHE',
|
||||
'c:\\users\\sebastian '
|
||||
'serfling\\pycharmprojects\\server-info\\venv\\lib\\site-packages\\cryptography-41.0.2.dist-info\\LICENSE.APACHE',
|
||||
'DATA'),
|
||||
('cryptography-41.0.2.dist-info\\WHEEL',
|
||||
'c:\\users\\sebastian '
|
||||
'serfling\\pycharmprojects\\server-info\\venv\\lib\\site-packages\\cryptography-41.0.2.dist-info\\WHEEL',
|
||||
'DATA'),
|
||||
('cryptography-41.0.2.dist-info\\RECORD',
|
||||
'c:\\users\\sebastian '
|
||||
'serfling\\pycharmprojects\\server-info\\venv\\lib\\site-packages\\cryptography-41.0.2.dist-info\\RECORD',
|
||||
'DATA'),
|
||||
('cryptography-41.0.2.dist-info\\METADATA',
|
||||
'c:\\users\\sebastian '
|
||||
'serfling\\pycharmprojects\\server-info\\venv\\lib\\site-packages\\cryptography-41.0.2.dist-info\\METADATA',
|
||||
'DATA'),
|
||||
('cryptography-41.0.2.dist-info\\top_level.txt',
|
||||
'c:\\users\\sebastian '
|
||||
'serfling\\pycharmprojects\\server-info\\venv\\lib\\site-packages\\cryptography-41.0.2.dist-info\\top_level.txt',
|
||||
'DATA'),
|
||||
('cryptography-41.0.2.dist-info\\LICENSE',
|
||||
'c:\\users\\sebastian '
|
||||
'serfling\\pycharmprojects\\server-info\\venv\\lib\\site-packages\\cryptography-41.0.2.dist-info\\LICENSE',
|
||||
'DATA'),
|
||||
('certifi\\py.typed',
|
||||
'C:\\Users\\Sebastian '
|
||||
'Serfling\\PycharmProjects\\server-info\\venv\\lib\\site-packages\\certifi\\py.typed',
|
||||
'DATA')],
|
||||
[],
|
||||
False,
|
||||
False,
|
||||
1690287166,
|
||||
[('run.exe',
|
||||
'C:\\Users\\Sebastian '
|
||||
'Serfling\\PycharmProjects\\server-info\\venv\\lib\\site-packages\\PyInstaller\\bootloader\\Windows-64bit-intel\\run.exe',
|
||||
'EXECUTABLE')])
|
||||
@@ -1,216 +0,0 @@
|
||||
('C:\\Users\\Sebastian '
|
||||
'Serfling\\PycharmProjects\\server-info\\build\\main\\main.pkg',
|
||||
{'BINARY': True,
|
||||
'DATA': True,
|
||||
'EXECUTABLE': True,
|
||||
'EXTENSION': True,
|
||||
'PYMODULE': True,
|
||||
'PYSOURCE': True,
|
||||
'PYZ': False,
|
||||
'SPLASH': True},
|
||||
[('PYZ-00.pyz',
|
||||
'C:\\Users\\Sebastian '
|
||||
'Serfling\\PycharmProjects\\server-info\\build\\main\\PYZ-00.pyz',
|
||||
'PYZ'),
|
||||
('struct',
|
||||
'C:\\Users\\Sebastian '
|
||||
'Serfling\\PycharmProjects\\server-info\\build\\main\\localpycs\\struct.pyc',
|
||||
'PYMODULE'),
|
||||
('pyimod01_archive',
|
||||
'C:\\Users\\Sebastian '
|
||||
'Serfling\\PycharmProjects\\server-info\\build\\main\\localpycs\\pyimod01_archive.pyc',
|
||||
'PYMODULE'),
|
||||
('pyimod02_importers',
|
||||
'C:\\Users\\Sebastian '
|
||||
'Serfling\\PycharmProjects\\server-info\\build\\main\\localpycs\\pyimod02_importers.pyc',
|
||||
'PYMODULE'),
|
||||
('pyimod03_ctypes',
|
||||
'C:\\Users\\Sebastian '
|
||||
'Serfling\\PycharmProjects\\server-info\\build\\main\\localpycs\\pyimod03_ctypes.pyc',
|
||||
'PYMODULE'),
|
||||
('pyimod04_pywin32',
|
||||
'C:\\Users\\Sebastian '
|
||||
'Serfling\\PycharmProjects\\server-info\\build\\main\\localpycs\\pyimod04_pywin32.pyc',
|
||||
'PYMODULE'),
|
||||
('pyiboot01_bootstrap',
|
||||
'C:\\Users\\Sebastian '
|
||||
'Serfling\\PycharmProjects\\server-info\\venv\\lib\\site-packages\\PyInstaller\\loader\\pyiboot01_bootstrap.py',
|
||||
'PYSOURCE'),
|
||||
('pyi_rth_inspect',
|
||||
'C:\\Users\\Sebastian '
|
||||
'Serfling\\PycharmProjects\\server-info\\venv\\Lib\\site-packages\\PyInstaller\\hooks\\rthooks\\pyi_rth_inspect.py',
|
||||
'PYSOURCE'),
|
||||
('pyi_rth_pywintypes',
|
||||
'C:\\Users\\Sebastian '
|
||||
'Serfling\\PycharmProjects\\server-info\\venv\\Lib\\site-packages\\_pyinstaller_hooks_contrib\\hooks\\rthooks\\pyi_rth_pywintypes.py',
|
||||
'PYSOURCE'),
|
||||
('main',
|
||||
'C:\\Users\\Sebastian Serfling\\PycharmProjects\\server-info\\main.py',
|
||||
'PYSOURCE'),
|
||||
('VCRUNTIME140.dll',
|
||||
'C:\\Users\\Sebastian '
|
||||
'Serfling\\AppData\\Local\\Programs\\Python\\Python39\\VCRUNTIME140.dll',
|
||||
'BINARY'),
|
||||
('python39.dll',
|
||||
'C:\\Users\\Sebastian '
|
||||
'Serfling\\AppData\\Local\\Programs\\Python\\Python39\\python39.dll',
|
||||
'BINARY'),
|
||||
('pywin32_system32\\pywintypes39.dll',
|
||||
'C:\\Users\\Sebastian '
|
||||
'Serfling\\PycharmProjects\\server-info\\venv\\lib\\site-packages\\pywin32_system32\\pywintypes39.dll',
|
||||
'BINARY'),
|
||||
('_decimal.pyd',
|
||||
'C:\\Users\\Sebastian '
|
||||
'Serfling\\AppData\\Local\\Programs\\Python\\Python39\\DLLs\\_decimal.pyd',
|
||||
'EXTENSION'),
|
||||
('_hashlib.pyd',
|
||||
'C:\\Users\\Sebastian '
|
||||
'Serfling\\AppData\\Local\\Programs\\Python\\Python39\\DLLs\\_hashlib.pyd',
|
||||
'EXTENSION'),
|
||||
('_lzma.pyd',
|
||||
'C:\\Users\\Sebastian '
|
||||
'Serfling\\AppData\\Local\\Programs\\Python\\Python39\\DLLs\\_lzma.pyd',
|
||||
'EXTENSION'),
|
||||
('_bz2.pyd',
|
||||
'C:\\Users\\Sebastian '
|
||||
'Serfling\\AppData\\Local\\Programs\\Python\\Python39\\DLLs\\_bz2.pyd',
|
||||
'EXTENSION'),
|
||||
('_ssl.pyd',
|
||||
'C:\\Users\\Sebastian '
|
||||
'Serfling\\AppData\\Local\\Programs\\Python\\Python39\\DLLs\\_ssl.pyd',
|
||||
'EXTENSION'),
|
||||
('unicodedata.pyd',
|
||||
'C:\\Users\\Sebastian '
|
||||
'Serfling\\AppData\\Local\\Programs\\Python\\Python39\\DLLs\\unicodedata.pyd',
|
||||
'EXTENSION'),
|
||||
('select.pyd',
|
||||
'C:\\Users\\Sebastian '
|
||||
'Serfling\\AppData\\Local\\Programs\\Python\\Python39\\DLLs\\select.pyd',
|
||||
'EXTENSION'),
|
||||
('_queue.pyd',
|
||||
'C:\\Users\\Sebastian '
|
||||
'Serfling\\AppData\\Local\\Programs\\Python\\Python39\\DLLs\\_queue.pyd',
|
||||
'EXTENSION'),
|
||||
('cryptography\\hazmat\\bindings\\_rust.pyd',
|
||||
'C:\\Users\\Sebastian '
|
||||
'Serfling\\PycharmProjects\\server-info\\venv\\lib\\site-packages\\cryptography\\hazmat\\bindings\\_rust.pyd',
|
||||
'EXTENSION'),
|
||||
('_cffi_backend.cp39-win_amd64.pyd',
|
||||
'C:\\Users\\Sebastian '
|
||||
'Serfling\\PycharmProjects\\server-info\\venv\\lib\\site-packages\\_cffi_backend.cp39-win_amd64.pyd',
|
||||
'EXTENSION'),
|
||||
('bcrypt\\_bcrypt.pyd',
|
||||
'C:\\Users\\Sebastian '
|
||||
'Serfling\\PycharmProjects\\server-info\\venv\\lib\\site-packages\\bcrypt\\_bcrypt.pyd',
|
||||
'EXTENSION'),
|
||||
('nacl\\_sodium.pyd',
|
||||
'C:\\Users\\Sebastian '
|
||||
'Serfling\\PycharmProjects\\server-info\\venv\\lib\\site-packages\\nacl\\_sodium.pyd',
|
||||
'EXTENSION'),
|
||||
('win32\\win32security.pyd',
|
||||
'C:\\Users\\Sebastian '
|
||||
'Serfling\\PycharmProjects\\server-info\\venv\\lib\\site-packages\\win32\\win32security.pyd',
|
||||
'EXTENSION'),
|
||||
('win32\\_win32sysloader.pyd',
|
||||
'C:\\Users\\Sebastian '
|
||||
'Serfling\\PycharmProjects\\server-info\\venv\\lib\\site-packages\\win32\\_win32sysloader.pyd',
|
||||
'EXTENSION'),
|
||||
('_ctypes.pyd',
|
||||
'C:\\Users\\Sebastian '
|
||||
'Serfling\\AppData\\Local\\Programs\\Python\\Python39\\DLLs\\_ctypes.pyd',
|
||||
'EXTENSION'),
|
||||
('pyexpat.pyd',
|
||||
'C:\\Users\\Sebastian '
|
||||
'Serfling\\AppData\\Local\\Programs\\Python\\Python39\\DLLs\\pyexpat.pyd',
|
||||
'EXTENSION'),
|
||||
('_uuid.pyd',
|
||||
'C:\\Users\\Sebastian '
|
||||
'Serfling\\AppData\\Local\\Programs\\Python\\Python39\\DLLs\\_uuid.pyd',
|
||||
'EXTENSION'),
|
||||
('charset_normalizer\\md__mypyc.cp39-win_amd64.pyd',
|
||||
'C:\\Users\\Sebastian '
|
||||
'Serfling\\PycharmProjects\\server-info\\venv\\lib\\site-packages\\charset_normalizer\\md__mypyc.cp39-win_amd64.pyd',
|
||||
'EXTENSION'),
|
||||
('charset_normalizer\\md.cp39-win_amd64.pyd',
|
||||
'C:\\Users\\Sebastian '
|
||||
'Serfling\\PycharmProjects\\server-info\\venv\\lib\\site-packages\\charset_normalizer\\md.cp39-win_amd64.pyd',
|
||||
'EXTENSION'),
|
||||
('_socket.pyd',
|
||||
'C:\\Users\\Sebastian '
|
||||
'Serfling\\AppData\\Local\\Programs\\Python\\Python39\\DLLs\\_socket.pyd',
|
||||
'EXTENSION'),
|
||||
('VCRUNTIME140_1.dll',
|
||||
'C:\\Users\\Sebastian '
|
||||
'Serfling\\AppData\\Local\\Programs\\Python\\Python39\\VCRUNTIME140_1.dll',
|
||||
'BINARY'),
|
||||
('libcrypto-1_1.dll',
|
||||
'C:\\Users\\Sebastian '
|
||||
'Serfling\\AppData\\Local\\Programs\\Python\\Python39\\DLLs\\libcrypto-1_1.dll',
|
||||
'BINARY'),
|
||||
('libssl-1_1.dll',
|
||||
'C:\\Users\\Sebastian '
|
||||
'Serfling\\AppData\\Local\\Programs\\Python\\Python39\\DLLs\\libssl-1_1.dll',
|
||||
'BINARY'),
|
||||
('python3.dll',
|
||||
'C:\\Users\\Sebastian '
|
||||
'Serfling\\AppData\\Local\\Programs\\Python\\Python39\\python3.dll',
|
||||
'BINARY'),
|
||||
('libffi-7.dll',
|
||||
'C:\\Users\\Sebastian '
|
||||
'Serfling\\AppData\\Local\\Programs\\Python\\Python39\\DLLs\\libffi-7.dll',
|
||||
'BINARY'),
|
||||
('base_library.zip',
|
||||
'C:\\Users\\Sebastian '
|
||||
'Serfling\\PycharmProjects\\server-info\\build\\main\\base_library.zip',
|
||||
'DATA'),
|
||||
('nacl\\py.typed',
|
||||
'C:\\Users\\Sebastian '
|
||||
'Serfling\\PycharmProjects\\server-info\\venv\\lib\\site-packages\\nacl\\py.typed',
|
||||
'DATA'),
|
||||
('cryptography-41.0.2.dist-info\\LICENSE.BSD',
|
||||
'c:\\users\\sebastian '
|
||||
'serfling\\pycharmprojects\\server-info\\venv\\lib\\site-packages\\cryptography-41.0.2.dist-info\\LICENSE.BSD',
|
||||
'DATA'),
|
||||
('cryptography-41.0.2.dist-info\\INSTALLER',
|
||||
'c:\\users\\sebastian '
|
||||
'serfling\\pycharmprojects\\server-info\\venv\\lib\\site-packages\\cryptography-41.0.2.dist-info\\INSTALLER',
|
||||
'DATA'),
|
||||
('certifi\\cacert.pem',
|
||||
'C:\\Users\\Sebastian '
|
||||
'Serfling\\PycharmProjects\\server-info\\venv\\lib\\site-packages\\certifi\\cacert.pem',
|
||||
'DATA'),
|
||||
('cryptography-41.0.2.dist-info\\LICENSE.APACHE',
|
||||
'c:\\users\\sebastian '
|
||||
'serfling\\pycharmprojects\\server-info\\venv\\lib\\site-packages\\cryptography-41.0.2.dist-info\\LICENSE.APACHE',
|
||||
'DATA'),
|
||||
('cryptography-41.0.2.dist-info\\WHEEL',
|
||||
'c:\\users\\sebastian '
|
||||
'serfling\\pycharmprojects\\server-info\\venv\\lib\\site-packages\\cryptography-41.0.2.dist-info\\WHEEL',
|
||||
'DATA'),
|
||||
('cryptography-41.0.2.dist-info\\RECORD',
|
||||
'c:\\users\\sebastian '
|
||||
'serfling\\pycharmprojects\\server-info\\venv\\lib\\site-packages\\cryptography-41.0.2.dist-info\\RECORD',
|
||||
'DATA'),
|
||||
('cryptography-41.0.2.dist-info\\METADATA',
|
||||
'c:\\users\\sebastian '
|
||||
'serfling\\pycharmprojects\\server-info\\venv\\lib\\site-packages\\cryptography-41.0.2.dist-info\\METADATA',
|
||||
'DATA'),
|
||||
('cryptography-41.0.2.dist-info\\top_level.txt',
|
||||
'c:\\users\\sebastian '
|
||||
'serfling\\pycharmprojects\\server-info\\venv\\lib\\site-packages\\cryptography-41.0.2.dist-info\\top_level.txt',
|
||||
'DATA'),
|
||||
('cryptography-41.0.2.dist-info\\LICENSE',
|
||||
'c:\\users\\sebastian '
|
||||
'serfling\\pycharmprojects\\server-info\\venv\\lib\\site-packages\\cryptography-41.0.2.dist-info\\LICENSE',
|
||||
'DATA'),
|
||||
('certifi\\py.typed',
|
||||
'C:\\Users\\Sebastian '
|
||||
'Serfling\\PycharmProjects\\server-info\\venv\\lib\\site-packages\\certifi\\py.typed',
|
||||
'DATA')],
|
||||
False,
|
||||
False,
|
||||
False,
|
||||
[],
|
||||
None,
|
||||
None,
|
||||
None)
|
||||
Binary file not shown.
File diff suppressed because it is too large
Load Diff
Binary file not shown.
Binary file not shown.
@@ -1,30 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
||||
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
|
||||
<assemblyIdentity type="win32" name="main" processorArchitecture="amd64" version="1.0.0.0"/>
|
||||
<trustInfo xmlns="urn:schemas-microsoft-com:asm.v3">
|
||||
<security>
|
||||
<requestedPrivileges>
|
||||
<requestedExecutionLevel level="asInvoker" uiAccess="false"/>
|
||||
</requestedPrivileges>
|
||||
</security>
|
||||
</trustInfo>
|
||||
<dependency>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity type="win32" name="Microsoft.Windows.Common-Controls" language="*" processorArchitecture="*" version="6.0.0.0" publicKeyToken="6595b64144ccf1df"/>
|
||||
</dependentAssembly>
|
||||
</dependency>
|
||||
<compatibility xmlns="urn:schemas-microsoft-com:compatibility.v1">
|
||||
<application>
|
||||
<supportedOS Id="{e2011457-1546-43c5-a5fe-008deee3d3f0}"/>
|
||||
<supportedOS Id="{35138b9a-5d96-4fbd-8e2d-a2440225f93a}"/>
|
||||
<supportedOS Id="{4a2f28e3-53b9-4441-ba9c-d69d4a4a6e38}"/>
|
||||
<supportedOS Id="{1f676c76-80e1-4239-95bb-83d0f6d0da78}"/>
|
||||
<supportedOS Id="{8e0f7a12-bfb3-4fe8-b9a5-48fd50a15a9a}"/>
|
||||
</application>
|
||||
</compatibility>
|
||||
<application xmlns="urn:schemas-microsoft-com:asm.v3">
|
||||
<windowsSettings>
|
||||
<longPathAware xmlns="http://schemas.microsoft.com/SMI/2016/WindowsSettings">true</longPathAware>
|
||||
</windowsSettings>
|
||||
</application>
|
||||
</assembly>
|
||||
@@ -1,57 +0,0 @@
|
||||
|
||||
This file lists modules PyInstaller was not able to find. This does not
|
||||
necessarily mean this module is required for running your program. Python and
|
||||
Python 3rd-party packages include a lot of conditional or optional modules. For
|
||||
example the module 'ntpath' only exists on Windows, whereas the module
|
||||
'posixpath' only exists on Posix systems.
|
||||
|
||||
Types if import:
|
||||
* top-level: imported at the top-level - look at these first
|
||||
* conditional: imported within an if-statement
|
||||
* delayed: imported within a function
|
||||
* optional: imported within a try-except-statement
|
||||
|
||||
IMPORTANT: Do NOT post this list to the issue-tracker. Use it as a basis for
|
||||
tracking down the missing module yourself. Thanks!
|
||||
|
||||
missing module named org - imported by pickle (optional)
|
||||
missing module named 'org.python' - imported by copy (optional), xml.sax (delayed, conditional)
|
||||
missing module named posix - imported by os (conditional, optional), shutil (conditional), importlib._bootstrap_external (conditional)
|
||||
missing module named resource - imported by posix (top-level)
|
||||
missing module named grp - imported by shutil (optional), tarfile (optional), pathlib (delayed, optional), subprocess (optional)
|
||||
missing module named pwd - imported by posixpath (delayed, conditional), shutil (optional), tarfile (optional), pathlib (delayed, conditional, optional), subprocess (optional), netrc (delayed, conditional), getpass (delayed)
|
||||
missing module named pep517 - imported by importlib.metadata (delayed)
|
||||
missing module named _frozen_importlib_external - imported by importlib._bootstrap (delayed), importlib (optional), importlib.abc (optional)
|
||||
excluded module named _frozen_importlib - imported by importlib (optional), importlib.abc (optional)
|
||||
missing module named _scproxy - imported by urllib.request (conditional)
|
||||
missing module named termios - imported by getpass (optional)
|
||||
missing module named _posixsubprocess - imported by subprocess (optional)
|
||||
missing module named SocketServer - imported by sshtunnel (conditional)
|
||||
missing module named Queue - imported by mysql.connector.pooling (optional), sshtunnel (conditional)
|
||||
missing module named invoke - imported by paramiko.config (optional)
|
||||
missing module named cryptography.x509.UnsupportedExtension - imported by cryptography.x509 (optional), urllib3.contrib.pyopenssl (optional)
|
||||
missing module named fcntl - imported by paramiko.agent (delayed)
|
||||
missing module named 'pyasn1.codec' - imported by paramiko.ssh_gss (delayed)
|
||||
missing module named pyasn1 - imported by paramiko.ssh_gss (delayed)
|
||||
missing module named gssapi - imported by paramiko.ssh_gss (optional)
|
||||
missing module named vms_lib - imported by platform (delayed, optional)
|
||||
missing module named 'java.lang' - imported by platform (delayed, optional), xml.sax._exceptions (conditional)
|
||||
missing module named java - imported by platform (delayed)
|
||||
missing module named _winreg - imported by platform (delayed, optional)
|
||||
missing module named httplib - imported by mysql.connector.fabric.connection (conditional, optional)
|
||||
missing module named urllib2 - imported by mysql.connector.fabric.connection (optional)
|
||||
missing module named xmlrpclib - imported by mysql.connector.fabric.connection (optional)
|
||||
missing module named ConfigParser - imported by mysql.connector.optionfiles (conditional)
|
||||
missing module named _mysql_connector - imported by mysql.connector (optional), mysql.connector.connection_cext (optional), mysql.connector.cursor_cext (top-level)
|
||||
missing module named simplejson - imported by requests.compat (conditional, optional)
|
||||
missing module named dummy_threading - imported by requests.cookies (optional)
|
||||
missing module named typing_extensions - imported by urllib3.connection (conditional), urllib3.util.timeout (conditional), urllib3._base_connection (conditional), urllib3.util.request (conditional), urllib3._collections (conditional), urllib3.util.ssl_ (conditional), urllib3.util.ssltransport (conditional), urllib3.connectionpool (conditional), urllib3.response (conditional), urllib3.poolmanager (conditional)
|
||||
missing module named zstandard - imported by urllib3.response (optional), urllib3.util.request (optional)
|
||||
missing module named brotli - imported by urllib3.response (optional), urllib3.util.request (optional)
|
||||
missing module named brotlicffi - imported by urllib3.response (optional), urllib3.util.request (optional)
|
||||
missing module named socks - imported by urllib3.contrib.socks (optional)
|
||||
missing module named 'typing.io' - imported by importlib.resources (top-level)
|
||||
missing module named 'OpenSSL.crypto' - imported by urllib3.contrib.pyopenssl (delayed, conditional)
|
||||
missing module named OpenSSL - imported by urllib3.contrib.pyopenssl (top-level)
|
||||
missing module named chardet - imported by requests.compat (optional), requests (optional), requests.packages (optional)
|
||||
missing module named urllib3_secure_extra - imported by urllib3 (optional)
|
||||
File diff suppressed because it is too large
Load Diff
Vendored
BIN
Binary file not shown.
Vendored
BIN
Binary file not shown.
Vendored
BIN
Binary file not shown.
Vendored
BIN
Binary file not shown.
Vendored
BIN
Binary file not shown.
Vendored
BIN
Binary file not shown.
@@ -1,38 +1,102 @@
|
||||
from Controller import adcontroller_export, exchange_export, rds_export, smtp_export, zammad
|
||||
import random
|
||||
import subprocess
|
||||
import socket
|
||||
import adcontroller_export
|
||||
import exchange_export
|
||||
import smtp_export
|
||||
import rds_export
|
||||
import mysql_connect
|
||||
import os
|
||||
import psutil
|
||||
import math
|
||||
import cpuinfo
|
||||
from multiprocessing import freeze_support
|
||||
import requests
|
||||
|
||||
## Gibt Name der Datei zum Debugen aus
|
||||
filename = os.path.basename(__file__)
|
||||
|
||||
def request(function,variable):
|
||||
url = (f"http://127.0.0.1:8000/{function}")
|
||||
response = requests.post(url,json = variable)
|
||||
return response
|
||||
|
||||
|
||||
def get_cpu_sql(cpu):
|
||||
freeze_support()
|
||||
requests = request("cpu_info",{'name':cpu})
|
||||
return requests.json()[0][0]
|
||||
|
||||
def get_ram_info():
|
||||
freeze_support()
|
||||
ram_info = psutil.virtual_memory()
|
||||
total_ram = ram_info.total / (1024 ** 3) # In Gigabytes
|
||||
return math.ceil(total_ram)
|
||||
|
||||
def get_single_hdd(function):
|
||||
freeze_support()
|
||||
used_disk_size = 0
|
||||
disk_partitions = psutil.disk_partitions()
|
||||
print(disk_partitions)
|
||||
partition_return = []
|
||||
for partition in disk_partitions:
|
||||
partition_info = psutil.disk_usage(partition.mountpoint)
|
||||
print(partition.mountpoint.replace("\\",""))
|
||||
if function == "free":
|
||||
space = round(partition_info.free / (1024 ** 3), 2)
|
||||
elif function == "used":
|
||||
space = round(partition_info.used / (1024 ** 3), 2)
|
||||
elif function == "total":
|
||||
space = round(partition_info.total / (1024 ** 3), 2)
|
||||
partition_name = partition.mountpoint.replace(':\\',"")
|
||||
partition_return.append(f"{partition_name}: {space}GB")
|
||||
return partition_return
|
||||
|
||||
def get_total_hdd(function):
|
||||
freeze_support()
|
||||
space = 0
|
||||
disk_partitions = psutil.disk_partitions()
|
||||
for partition in disk_partitions:
|
||||
partition_info = psutil.disk_usage(partition.mountpoint)
|
||||
if function == "free":
|
||||
space += round(partition_info.free / (1024 ** 3), 2)
|
||||
elif function == "used":
|
||||
space += round(partition_info.used / (1024 ** 3), 2)
|
||||
elif function == "total":
|
||||
space += round(partition_info.total / (1024 ** 3), 2)
|
||||
return math.ceil(space)
|
||||
|
||||
def set_system_info(ipadress):
|
||||
freeze_support()
|
||||
cpu = ()
|
||||
cpu = cpuinfo.get_cpu_info()['brand_raw']
|
||||
# print('systeminfo_set',{'ram':get_ram_info(),'prozessor':get_cpu_sql(cpu),'cpu':cpu,'ipaddress':ipadress})
|
||||
single_free_hdd = str(get_single_hdd("free")).replace("['","").replace("]","").replace("'","")
|
||||
single_used_hdd = str(get_single_hdd("used")).replace("['","").replace("]","").replace("'","")
|
||||
single_total_hdd = str(get_single_hdd("total")).replace("['","").replace("]","").replace("'","")
|
||||
print(single_free_hdd)
|
||||
requests = request('systeminfo_set',{'ram':str(get_ram_info()),'prozessor':get_cpu_sql(cpu),'cpu':cpu,'ipaddress':ipadress,'single_free_hdd':single_free_hdd,'single_used_hdd':single_used_hdd,'single_total_hdd':single_total_hdd,'total_free_hdd':get_total_hdd("free"),'total_used_hdd':get_total_hdd("used"),'total_total_hdd':get_total_hdd("total")})
|
||||
print(requests.text)
|
||||
return print("Fin")
|
||||
|
||||
def get_local_ip():
|
||||
try:
|
||||
# Socket erstellen, um die lokale IP-Adresse zu ermitteln
|
||||
s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
|
||||
s.connect(("8.8.8.8", 80)) # Eine temporäre Verbindung zu einem externen Server herstellen
|
||||
|
||||
# Die lokale IP-Adresse aus den Socketeigenschaften abrufen
|
||||
s.connect(("8.8.8.8", 80))
|
||||
local_ip = s.getsockname()[0]
|
||||
|
||||
# Den Socket schließen
|
||||
s.close()
|
||||
|
||||
return local_ip
|
||||
except Exception as e:
|
||||
print(f"Fehler beim Abrufen der lokalen IP-Adresse: {e}")
|
||||
return None
|
||||
|
||||
def adcontroller(ip,name):
|
||||
adcontroller_export.adcontroller(ip,name)
|
||||
adcontroller_export.adcontroller(ip, name)
|
||||
|
||||
def exchange(ip,name):
|
||||
exchange_export.exchange(ip,name)
|
||||
exchange_export.exchange(ip, name)
|
||||
|
||||
def smtp(ip,name,token):
|
||||
smtp_export.smtp(ip,name,token)
|
||||
smtp_export.smtp(ip, name, token)
|
||||
|
||||
def rds(ip, name):
|
||||
rds_export.rds(ip,name)
|
||||
rds_export.rds(ip, name)
|
||||
|
||||
def cms(ip, servername):
|
||||
## Import User als RAW
|
||||
@@ -54,9 +118,8 @@ def nginx(ip,servername):
|
||||
## Import Letsencrypt Time als RAW
|
||||
print("" + ip + servername)
|
||||
|
||||
def zammad(ip,servername):
|
||||
## Import Tickets Time als RAW
|
||||
print("" + ip + servername)
|
||||
def tickets(ip,name):
|
||||
zammad.tickets(ip,name)
|
||||
|
||||
def data(ip,servername):
|
||||
## Import Space Used als RAW
|
||||
@@ -74,44 +137,85 @@ def gucamole(ip,servername):
|
||||
## Import User + Maschinen als RAW
|
||||
print("" + ip + servername)
|
||||
|
||||
def create_windows_task(task_name, command, schedule):
|
||||
try:
|
||||
command_line = f'schtasks /F /create /ru "SYSTEM" /tn "{task_name}" /tr "{command}" /sc {schedule}'
|
||||
subprocess.run(command_line, shell=True, check=True)
|
||||
print(f"{filename}-Windows task '{task_name}' created successfully.")
|
||||
except subprocess.CalledProcessError as e:
|
||||
print(f"{filename}-Failed to create Windows task. Error: {e}")
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
freeze_support()
|
||||
try:
|
||||
print(get_local_ip())
|
||||
set_system_info(get_local_ip())
|
||||
except:
|
||||
print("Failed")
|
||||
|
||||
query = "SELECT * FROM `Stines-GmbH`.`Kunden-Server` WHERE `IP-Adresse` = ""'{}'""".format(get_local_ip())
|
||||
name = "Stines-GmbH"
|
||||
list = mysql_connect.get_ip(query,name)
|
||||
|
||||
# Ergebnisse durchlaufen und ausgeben
|
||||
for row in list:
|
||||
print(row)
|
||||
name = row[1]
|
||||
ipadress = row[3]
|
||||
lastchange = row[5]
|
||||
funktion = row[6]
|
||||
token = row[7]
|
||||
# query = "SELECT * FROM `Stines-GmbH`.`Kunden-Server` WHERE `IP-Adresse` = ""'{}'""".format("172.19.1.5")
|
||||
|
||||
cursor = mysql_connect.get_database()
|
||||
print(f"{filename}-Before Get List")
|
||||
list = request("systeminfo_get",{'ipaddress':get_local_ip()})
|
||||
print(f"{filename}-Atfer Get IP")
|
||||
#
|
||||
# if list == []:
|
||||
# freeze_support()
|
||||
# query_insert = f"INSERT INTO `Kunden-Server` (Name,`Server-Name`,`IP-Adresse`,Funktion,CPU,RAM,Speicher) VALUES ('unkown','{socket.gethostname()}','{get_local_ip()}','-','','{get_ram_info()}','{get_hdd_info()}')"
|
||||
# print(f"{filename}-List is Empty")
|
||||
# mysql_connect.add_user(query_insert,"Stines-GmbH","")
|
||||
|
||||
# Überprüfen, ob die Datenbank bereits existiert
|
||||
|
||||
database_exists = False
|
||||
for (db_name,) in cursor:
|
||||
if db_name == name:
|
||||
database_exists = True
|
||||
break
|
||||
|
||||
# Datenbank erstellen, wenn sie noch nicht existiert
|
||||
if not database_exists:
|
||||
create_database_query = f"CREATE DATABASE {name}"
|
||||
mysql_connect.create_database(create_database_query)
|
||||
print(f"Die Datenbank '{name}' wurde erfolgreich erstellt.")
|
||||
else:
|
||||
print(f"Die Datenbank '{name}' existiert bereits.")
|
||||
|
||||
try:
|
||||
if token is not None:
|
||||
eval(funktion + '("' + ipadress + '","' + name + '","' + token + '")')
|
||||
else:
|
||||
eval(funktion + '("' + ipadress + '","' + name + '")')
|
||||
except NameError:
|
||||
print("Die Funktion existiert nicht.")
|
||||
print(list.text)
|
||||
#
|
||||
# set_ipaddress = []
|
||||
# print(f"{filename}-Before Row")
|
||||
# # Ergebnisse durchlaufen und ausgeben
|
||||
# for row in list:
|
||||
# name = row[2]
|
||||
# ipadress = row[4]
|
||||
# set_ipaddress = row[4]
|
||||
# lastchange = row[6]
|
||||
# funktion = row[7]
|
||||
# token = row[8]
|
||||
# print(f"{filename}-Inside Row {name}-{funktion}")
|
||||
#
|
||||
# cursor = mysql_connect.get_database()
|
||||
#
|
||||
# # Überprüfen, ob die Datenbank bereits existiert
|
||||
#
|
||||
# database_exists = False
|
||||
# for (db_name,) in cursor:
|
||||
# if name in str(db_name):
|
||||
# database_exists = True
|
||||
# if "-" in str(db_name):
|
||||
# database_exists = True
|
||||
#
|
||||
# # Datenbank erstellen, wenn sie noch nicht existiert
|
||||
# print(f"{filename}-{database_exists}")
|
||||
# if not database_exists:
|
||||
# create_database_query = f"CREATE DATABASE `{name}`"
|
||||
# mysql_connect.create_database(create_database_query,name)
|
||||
# print(f"{filename}-Die Datenbank '`{name}`' wurde erfolgreich erstellt.")
|
||||
# else:
|
||||
# print(f"{filename}-Die Datenbank '`{name}`' existiert bereits.")
|
||||
#
|
||||
# if token is not None:
|
||||
# eval(funktion + '("' + ipadress + '","' + name + '","' + token + '")')
|
||||
# else:
|
||||
# if funktion == "-":
|
||||
# break
|
||||
# else:
|
||||
# eval(funktion + '("' + ipadress + '","' + name + '")')
|
||||
#
|
||||
# # print(f"{filename}-FOR system_info_get: {set_ipaddress}")
|
||||
#
|
||||
#
|
||||
#
|
||||
# print(f"{filename}-FOR schedule: {ipadress}")
|
||||
# task_name = "Reports"
|
||||
# command_to_execute = "C:\\Scripte\\Start.exe"
|
||||
# schedule = f"daily /st 23:{random.randint(0, 59)}" # You can customize the schedule here
|
||||
#
|
||||
# create_windows_task(task_name, command_to_execute, schedule)
|
||||
@@ -1,44 +0,0 @@
|
||||
# -*- mode: python ; coding: utf-8 -*-
|
||||
|
||||
|
||||
block_cipher = None
|
||||
|
||||
|
||||
a = Analysis(
|
||||
['main.py'],
|
||||
pathex=[],
|
||||
binaries=[],
|
||||
datas=[],
|
||||
hiddenimports=[],
|
||||
hookspath=[],
|
||||
hooksconfig={},
|
||||
runtime_hooks=[],
|
||||
excludes=[],
|
||||
win_no_prefer_redirects=False,
|
||||
win_private_assemblies=False,
|
||||
cipher=block_cipher,
|
||||
noarchive=False,
|
||||
)
|
||||
pyz = PYZ(a.pure, a.zipped_data, cipher=block_cipher)
|
||||
|
||||
exe = EXE(
|
||||
pyz,
|
||||
a.scripts,
|
||||
a.binaries,
|
||||
a.zipfiles,
|
||||
a.datas,
|
||||
[],
|
||||
name='main',
|
||||
debug=False,
|
||||
bootloader_ignore_signals=False,
|
||||
strip=False,
|
||||
upx=True,
|
||||
upx_exclude=[],
|
||||
runtime_tmpdir=None,
|
||||
console=True,
|
||||
disable_windowed_traceback=False,
|
||||
argv_emulation=False,
|
||||
target_arch=None,
|
||||
codesign_identity=None,
|
||||
entitlements_file=None,
|
||||
)
|
||||
@@ -1,63 +0,0 @@
|
||||
import mysql.connector
|
||||
import mysql.connector.locales.eng.client_error
|
||||
from sshtunnel import SSHTunnelForwarder
|
||||
|
||||
server = SSHTunnelForwarder(
|
||||
('forward.stines.de', 2223),
|
||||
ssh_username="root",
|
||||
ssh_password="adm.3dfx12",
|
||||
remote_bind_address=('127.0.0.1', 3306)
|
||||
)
|
||||
def database(query,name,user):
|
||||
server.start()
|
||||
mydb = mysql.connector.connect(
|
||||
host="127.0.0.1",
|
||||
port=server.local_bind_port,
|
||||
user="root",
|
||||
password="N53yBCswuawzBzS445VNAhWVMs3N59Gb9szEsrzXRBzarDqpdETpQeyt5v5CGe",
|
||||
database="" + name
|
||||
)
|
||||
mydb.connect()
|
||||
cursor = mydb.cursor()
|
||||
if user:
|
||||
cursor.execute(query,user)
|
||||
else:
|
||||
cursor.execute(query)
|
||||
if "INSERT" in query:
|
||||
mydb.commit()
|
||||
if "SELECT" in query:
|
||||
return cursor.fetchall()
|
||||
if "SHOW" in query:
|
||||
return cursor.fetchall()
|
||||
mydb.close()
|
||||
server.stop()
|
||||
def get_ip(query,name):
|
||||
print("GetIP")
|
||||
user = ""
|
||||
return database(query, name,user)
|
||||
def get_database():
|
||||
name = ""
|
||||
user = ""
|
||||
query = 'SHOW DATABASES'
|
||||
print(database(query,name,user))
|
||||
return database(query,name,user)
|
||||
def create_database(query,name):
|
||||
try:
|
||||
user = ""
|
||||
database(query,name,user)
|
||||
return ("Database Created")
|
||||
except Exception as e:
|
||||
print("Ein Fehler ist aufgetreten:", str(e))
|
||||
def add_user(query,name,user):
|
||||
try:
|
||||
database(query,name,user)
|
||||
return ("User addet")
|
||||
except Exception as e:
|
||||
print("Ein Fehler ist aufgetreten:", str(e))
|
||||
|
||||
def get_user(query,name,user):
|
||||
try:
|
||||
database(query,name,user)
|
||||
return (user)
|
||||
except Exception as e:
|
||||
print("Ein Fehler ist aufgetreten:", str(e))
|
||||
Binary file not shown.
@@ -0,0 +1,34 @@
|
||||
#!/bin/bash
|
||||
## Ordner anlegen
|
||||
mkdir /root/REPORTS
|
||||
cd /root/REPORTS
|
||||
|
||||
## APT UPDATE
|
||||
apt update
|
||||
apt install python3-pip git -y
|
||||
|
||||
## Add Crontab
|
||||
if [ -f ".crontab" ]; then
|
||||
echo "Gibt es"
|
||||
next
|
||||
else
|
||||
crontab -l | { cat; echo "30 0 * * * /root/REPORTS/setup-info.sh"; } | crontab -
|
||||
echo "Gibt es nicht"
|
||||
touch ".crontab"
|
||||
fi
|
||||
|
||||
## Add GIT
|
||||
git init
|
||||
git remote add orgin https://gitlab.stines.de/sebastian.serfling/REPORTS.git
|
||||
git fetch
|
||||
git pull orgin main
|
||||
|
||||
## Install Python
|
||||
python3 -m pip install virtualenv
|
||||
python3 -m virtualenv venv
|
||||
source venv/bin/activate
|
||||
python3 -m pip install -r packages.txt
|
||||
python3 -m pip uninstall mysql-connector -y ## Fix for Connection Issue
|
||||
python3 -m pip install mysql-connector ## Fix for Connection Issue
|
||||
python3 main.py
|
||||
deactivate
|
||||
@@ -1,12 +0,0 @@
|
||||
from setuptools import setup
|
||||
|
||||
setup(
|
||||
name='server-info',
|
||||
version='',
|
||||
packages=[''],
|
||||
url='',
|
||||
license='',
|
||||
author='Sebastian Serfling',
|
||||
author_email='',
|
||||
description=''
|
||||
)
|
||||
Reference in New Issue
Block a user