dataDesk BLOG

Welcome to the blog of Mr.G


Blog 41: Human_needs.html | (Open) | (Share)

▲ Previous | Next ▼

/Notes

(Last modified: February 27 2025 05:48:12)
Human Needs

Human Needs

Physical Well Being

  • Clean Air
  • Food, Nutrition
  • Water, Hydration
  • Health, Healing
  • Movement
  • Rest, Sleep
  • Physical Safety
  • Shelter, Comfort

Significance

  • To Matter
  • To be seen, heard
  • Meaning
  • Wholeness
  • Unity
  • Beauty
  • Simplicity
  • Wisdom

Interdependence

  • Empathy
  • Trust
  • Support
  • Communication
  • Mutual Respect
  • Consideration
  • Feedback
  • Nurture, Care, Love

Vitality

  • Autonomy, Choice
  • Learning, Growth
  • Play, Fun, Laughter
  • Creativity
  • Stimulation, Challenge
  • Explore, Discover
  • Spontaneity
  • Competence

Self Awareness

  • Self-Connection
  • Self-Compassion
  • Self-Acceptance
  • Self-Responsibility
  • Reflection
  • Insight, Discernment

Community

  • Belonging
  • Inclusion
  • Harmony, Peace
  • Acceptance
  • Solidarity
  • Celebration
  • Mourning
  • Personal Space

Authenticity

  • Honesty
  • Integrity
  • Clarity
  • Humility
  • Transparency



Blog 42: Search Engines for Pentesters.md | (Open) | (Share)

▲ Previous | Next ▼

/

(Last modified: February 06 2025 00:34:28)

Search Engines for Pentesters

ID Name URL Category
1Shodanshodan.ioServer
2Googlegoogle.comDorks
3Wiglewigle.netWiFi Networks
4Grepgrep.appCodes Search
5BinaryEdgeapp.binaryedge.comThreat Intelligence
6Onypheonyphe.ioServer
7GreyNoiseviz.greynoise.ioThreat Intelligence
8Censyscensys.ioServer
9Hunterhunter.ioEmail Addresses
10Fofafofa.infoThreat Intelligence
11ZoomEyezoomeye.orgThreat Intelligence
12LeakIXleakix.netThreat Intelligence
13IntelXintelx.ioOSINT
14Netlasapp.netlas.ioAttack Surface
15SearchCodesearchcode.comCodes Search
16URLScanurlscan.ioThreat Intelligence
17PublicWWWpublicwww.comCodes Search
18FullHuntfullhunt.ioAttack Surface
19Socradarsocradar.ioAttack Surface
20BinaryEdgebinaryedge.ioAttack Surface
21IVREivre.rocksServer
22crt.shcrt.shCertificate Search
23Vulnersvulners.comVulnerabilities
24Pulsedivepulsedive.comThreat Intelligence



Blog 43: Saving_an_encryption_key_securely_on_a_Linux_Ubuntu_server.md | (Open) | (Share)

▲ Previous | Next ▼

/

Last modified: January 24 2025 05:46:26

Saving an encryption key securely on a Linux Ubuntu server

Saving an encryption key securely on a Linux Ubuntu server requires careful consideration of security best practices. Below are the best approaches depending on your requirements and infrastructure:


1. Use a Hardware Security Module (HSM)

  • What It Is: A physical device designed for secure key storage and cryptographic operations.
  • Why It's Secure: Keys are stored in tamper-proof hardware, and access is tightly controlled.
  • When to Use: For high-security environments or compliance with standards like PCI DSS or GDPR.
  • Setup: Consult the HSM's documentation for integration with your server.

2. Use a Key Management System (KMS)

  • Options:
    • AWS KMS: If you're using AWS infrastructure.
    • HashiCorp Vault: An open-source tool for secrets and key management.
  • Why It's Secure: Provides centralized and auditable key management with strong access controls.
  • How to Use: Install and configure the KMS on your server or integrate with a cloud provider's KMS.

3. Use Encrypted Storage

If you need to store the key on disk, ensure it is encrypted and access is strictly controlled:

  • Steps:
    1. Encrypt the File:
      echo "encryption_key_value" | openssl enc -aes-256-cbc -salt -out /path/to/keyfile.enc -pass pass:your_password
    2. Access the Key:
      openssl enc -d -aes-256-cbc -in /path/to/keyfile.enc -pass pass:your_password
    3. Restrict Permissions:
      chmod 600 /path/to/keyfile.enc
      chown root:root /path/to/keyfile.enc

4. Store in Environment Variables

  • Steps:
    1. Add the key to the .env file or as an environment variable:
      export ENCRYPTION_KEY="your_secure_key"
    2. Access the key in your application:
      $key = getenv('ENCRYPTION_KEY');
  • Security:
    • Restrict access to the .env file using chmod 600.
    • Use a process manager like systemd to set environment variables securely.

5. Use Ubuntu's Built-in Security Features

a. gnome-keyring

  • A secure key storage solution integrated with Ubuntu desktop environments.
  • Use tools like secret-tool to interact with it:
    secret-tool store --label="Encryption Key" encryption key_name
    secret-tool lookup encryption key_name

b. eCryptfs for Encrypted Directories

  • Encrypt a directory to store sensitive files (e.g., /secure_keys):
    sudo apt install ecryptfs-utils
    mkdir /secure_keys
    sudo mount -t ecryptfs /secure_keys /secure_keys

6. Use a TPM (Trusted Platform Module)

  • What It Is: A secure hardware module available on many modern systems.
  • How to Use:
    • Install tpm2-tools:
      sudo apt install tpm2-tools
    • Store and retrieve the key using TPM commands.

Best Practices for All Methods

  1. Access Control:

    • Restrict access to the key to only the processes and users that need it.
    • Use Linux file permissions and sudo policies effectively.
  2. Audit and Logging:

    • Enable logging to monitor access attempts.
    • Use tools like auditd.
  3. Regular Rotation:

    • Rotate encryption keys periodically to minimize exposure from a compromised key.
  4. Do Not Hardcode Keys in Code:

    • Store keys externally and securely, and inject them into your application at runtime.
  5. Use SELinux or AppArmor:

    • Add additional layers of security for key storage.

Recommended Approach:



Blog 44: whoIncludedMe.md | (Open) | (Share)

▲ Previous | Next ▼

/Dev/HowTo/PHP

(Last modified: January 20 2025 08:37:02)

whoIncludedMe


<?php
// functions.php

function whoIncludedMe() {
    return $_SERVER['SCRIPT_NAME']; // OR $_SERVER['PHP_SELF'];
}

echo 'This script was included by: ' . whoIncludedMe();



Blog 45: Search Engines for Pentesters.md | (Open) | (Share)

▲ Previous

/Unlisted

(Last modified: January 16 2025 08:05:14)

Search Engines for Pentesters

ID Name URL Category
1Shodanshodan.ioServer
2Googlegoogle.comDorks
3Wiglewigle.netWiFi Networks
4Grepgrep.appCodes Search
5BinaryEdgeapp.binaryedge.comThreat Intelligence
6Onypheonyphe.ioServer
7GreyNoiseviz.greynoise.ioThreat Intelligence
8Censyscensys.ioServer
9Hunterhunter.ioEmail Addresses
10Fofafofa.infoThreat Intelligence
11ZoomEyezoomeye.orgThreat Intelligence
12LeakIXleakix.netThreat Intelligence
13IntelXintelx.ioOSINT
14Netlasapp.netlas.ioAttack Surface
15SearchCodesearchcode.comCodes Search
16URLScanurlscan.ioThreat Intelligence
17PublicWWWpublicwww.comCodes Search
18FullHuntfullhunt.ioAttack Surface
19Socradarsocradar.ioAttack Surface
20BinaryEdgebinaryedge.ioAttack Surface
21IVREivre.rocksServer
22crt.shcrt.shCertificate Search
23Vulnersvulners.comVulnerabilities
24Pulsedivepulsedive.comThreat Intelligence


Who I am

"Just me, myself, and I, exploring the universe of unknownment, embracing the mystery of what lies beyond, one star at a time."

Share this page on Facebook | X.com | Reddit

Page Content

  • Image Human needs
    Published: 2025-02-27
    Read
  • Image Search Engines for Pentesters
    Published: 2025-02-06
    Read
  • Image Saving an encryption key securely on a Linux Ubuntu server
    Published: 2025-01-24
    Read
  • Image whoIncludedMe
    Published: 2025-01-20
    Read
  • Image Search Engines for Pentesters
    Published: 2025-01-16
    Read

Tags

WebDev New York London AI NORWAY DIY Ideas Life Family News Clothing Invest Sports Health