Sitemap
Aardvark Infinity

Welcome to Aardvark Infinity Embark on a journey to the future with cutting-edge technology. AI, SCRIPTING, CYBERSECURITY

Bliss

--

Description: A laid-back Python script designed for logging user activities and providing insightful analytics on usage patterns. Bliss helps monitor user behavior in a fun and relaxed manner, identifying potential security risks while maintaining a friendly vibe.

Purpose: This tool enables red team operators to track user activities without causing alarm, providing a relaxed approach to gathering insights on how a system is being used or misused.

Warning: This tool should only be used in controlled environments and with user consent, as it can track sensitive information.

Get Aardvark Infinity’s stories in your inbox

Join Medium for free to get updates from this writer.

Hashtags: #UserActivity #PythonScripting #RedTeam #Analytics #SecurityInsights

Press enter or click to view image in full size
python
Copy code
# BLISS: User Activity Logging and Analytics Script
import time
import os
# Task: Log User Activity
def log_activity(log_file):
print("[+] Logging user activity...")
with open(log_file, 'a') as file:
while True:
activity = os.popen('whoami').read().strip()
timestamp = time.strftime("%Y-%m-%d %H:%M:%S", time.localtime())
file.write(f"{timestamp} - Activity: {activity}\n")
print(f"[*] Logged activity: {activity} at {timestamp}")
time.sleep(5) # Log activity every 5 seconds
# Task: Analyze User Activity
def analyze_activity(log_file):
print("[+] Analyzing user activity from log...")
activities = {}
with open(log_file, 'r') as file:
for line in file:
user = line.split("Activity:")[1].strip()
if user in activities:
activities[user] += 1
else:
activities[user] = 1
for user, count in activities.items():
print(f"[*] User {user} activity count: {count}")
# Main Execution
log_file = "user_activity.log" # Replace with the path to your log file
log_activity(log_file) # Uncomment to start logging
# analyze_activity(log_file) # Uncomment to analyze logged data
print("Bliss script executed successfully.")

This Python script represents the “Bliss” tool, automating user activity logging and providing a relaxed approach to security insights for red team operations.

--

--

Aardvark Infinity
Aardvark Infinity

Written by Aardvark Infinity

Welcome to Aardvark Infinity Embark on a journey to the future with cutting-edge technology.

Aardvark Infinity
Aardvark Infinity

Published in Aardvark Infinity

Welcome to Aardvark Infinity Embark on a journey to the future with cutting-edge technology. AI, SCRIPTING, CYBERSECURITY