Skip to content

Magenaut

  • Home
  • Topics
    • Notes
    • Tutorial
    • Bug fixing
    • Extension
    • Server
  • Q&A
  • Privacy Policy
  • About

security

Securely Erasing Password in Memory (Python)

August 14, 2022 by Magenaut

How do you store a password entered by the user in memory and erase it securely after it is no longer need?

Categories Python, Q&A Tags passwords, python, security Leave a comment

Is this Python code vulnerable to SQL injection? (SQLite3)

August 12, 2022 by Magenaut

As the title suggests, I would like to know if this code is vulnerable to SQL Injection? And if so, is there a better, more secure, way of achieving the same thing?

Categories Python, Q&A Tags python, security, sql, sqlite Leave a comment

How to use associative arrays safely inside arithmetic expressions?

August 11, 2022 by Magenaut

A few Bourne-like shells support associative arrays: ksh93 (since 1993), zsh (since 1998), bash (since 2009), though with some differences in behaviour between the 3.

Categories Q&A, Unix & Linux Tags associative-array, bash, ksh, security, zsh Leave a comment

How does ping work on Fedora without setuid and capabilities?

August 11, 2022 by Magenaut

As far as I know, ping needs to create a raw socket (which needs either root access or cap_net_raw capabilities).

Categories Q&A, Unix & Linux Tags capabilities, security, setuid Leave a comment

Concern about logging in as root overrated?

August 11, 2022 by Magenaut

For personal linux on my personal notebooks, I’ve usually set my environment to autologin as root even under X or lower runlevels. I’ve found my workflow is very pleasant and fast, without any cumbersome need to type su or sudo or being asked by keyring or auth or something.

Categories Q&A, Unix & Linux Tags administration, login, root, security, users Leave a comment

Mutt: how to safely store password?

August 11, 2022 by Magenaut

My .muttrc file looks something like this one or see below a glimpse. I am hesitant with the password. How should I store my password to use it with mutt?

Categories Q&A, Unix & Linux Tags mutt, security Leave a comment

How does curl protect a password from appearing in ps output?

August 11, 2022 by Magenaut

I noticed some time ago that usernames and passwords given to curl as command line arguments don’t appear in ps output (although of course they may appear in your bash history).

Categories Q&A, Unix & Linux Tags arguments, curl, password, ps, security Leave a comment

How can you log every command typed

August 11, 2022 by Magenaut

How can you log every command someone has entered into the shell?

Categories Q&A, Unix & Linux Tags command-history, history, security, shell Leave a comment

How do I recursively shred an entire directory tree?

August 11, 2022 by Magenaut

I have a directory tree that I would like to shred with the Linux ‘shred’ utility. Unfortunately, shred has no -R option for recursive shredding.

Categories Q&A, Unix & Linux Tags data-destruction, rm, security Leave a comment

Log every invocation of every SUID program?

August 11, 2022 by Magenaut

I would like to have a log file that contains an entry for every time a user runs any suid program, containing the user name, the program and any command line arguments passed to it. Is there a standard way to achieve this on Linux?

Categories Q&A, Unix & Linux Tags linux, logs, security Leave a comment
Older posts
Newer posts
← Previous Page1 … Page12 Page13 Page14 … Page25 Next →
  1. michealSmith07 on Is there a way to dynamically refresh the less command?August 21, 2022

    That is a very nice post. I like this post.

  2. anonymous on Fix libwacom9 dependency issue when upgrade DebianJune 27, 2022

    saved my day!! Thanks for the help…

  3. sreedhar on Fix libwacom9 dependency issue when upgrade DebianMay 10, 2022

    Thanks its working

  4. saintnick on Fix libwacom9 dependency issue when upgrade DebianMay 10, 2022

    remove libwacom2 worked for me as well

  5. ranafoul on Fix libwacom9 dependency issue when upgrade DebianApril 22, 2022

    apt remove libwacom2 helped on kali 2022.01. gr8

.net ajax asp.net asp.net-core asp.net-mvc asp.net-mvc-3 asp.net-mvc-4 asp.net-web-api bash c# command-line css custom-post-types custom-taxonomy dataframe dictionary django entity-framework functions gridview html iis javascript jquery json linux list matplotlib numpy pandas php plugin-development plugins posts python python-2.7 python-3.x security shell shell-script sql string vb.net webforms wp-query

© 2026 Magenaut • Built with GeneratePress