rosetta-ce 1.2.5__py3.11.egg → 1.2.6__py3.11.egg
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of rosetta-ce might be problematic. Click here for more details.
- EGG-INFO/PKG-INFO +1 -1
- rosetta/__pycache__/rfaker.cpython-311.pyc +0 -0
- rosetta/rfaker.py +2 -2
EGG-INFO/PKG-INFO
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: rosetta-ce
|
|
3
|
-
Version: 1.2.
|
|
3
|
+
Version: 1.2.6
|
|
4
4
|
Summary: Rosetta is a Python package that can be used to fake security logs and alerts for testing different detection and response use cases.
|
|
5
5
|
Home-page: https://github.com/ayman-m/rosetta
|
|
6
6
|
Author: Ayman Mahmoud
|
|
Binary file
|
rosetta/rfaker.py
CHANGED
|
@@ -296,7 +296,7 @@ class Events:
|
|
|
296
296
|
else "sudo"
|
|
297
297
|
command = random.choice(observables.cmd) if observables and observables.cmd \
|
|
298
298
|
else random.choice(UNIX_CMD)
|
|
299
|
-
syslog_messages.append(f"{timestamp.strftime('%
|
|
299
|
+
syslog_messages.append(f"{timestamp.strftime('%Y-%m-%d %H:%M:%S')} {host} {process}[{pid}]: {user}"
|
|
300
300
|
f" : {action} ; {command}")
|
|
301
301
|
return syslog_messages
|
|
302
302
|
|
|
@@ -511,7 +511,7 @@ class Events:
|
|
|
511
511
|
timestamp += timedelta(seconds=faker.random_int(min=0, max=3599))
|
|
512
512
|
for i in range(count):
|
|
513
513
|
timestamp += timedelta(seconds=1)
|
|
514
|
-
system_time = timestamp.strftime('%
|
|
514
|
+
system_time = timestamp.strftime('%Y-%m-%d %H:%M:%S')
|
|
515
515
|
cve_id = random.choice(observables.cve) if observables and observables.cve \
|
|
516
516
|
else Observables.generator(observable_type=ObservableType.CVE, count=1)
|
|
517
517
|
host = random.choice(observables.src_host) if observables and observables.src_host \
|