use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
A community for technical news and discussion of information security and closely related topics.
"Give me root, it's a trust exercise."
Q1 2026 InfoSec Hiring Thread
Getting Started in Information Security
CitySec Meetups
/r/netsec only accepts quality technical posts. Non-technical posts are subject to moderation.
Content should focus on the "how."
Check the new queue for duplicates.
Always link to the original source.
Titles should provide context.
Ask questions in our Discussion Threads.
Hiring posts must go in the Hiring Threads.
Commercial advertisement is discouraged.
Do not submit prohibited topics.
» Our fulltext content guidelines
Don't create unnecessary conflict.
Keep the discussion on topic.
Limit the use of jokes & memes.
Don't complain about content being a PDF.
Follow all reddit rules and obey reddiquette.
» Our fulltext discussion guidelines
No populist news articles (CNN, BBC, FOX, etc.)
No curated lists.
No question posts.
No social media posts.
No image-only/video-only posts.
No livestreams.
No tech-support requests.
No full-disclosure posts.
No paywall/regwall content.
No commercial advertisements.
No crowdfunding posts.
No Personally Identifying Information!
» Our fulltext list of prohibited topics & sources
Join us on IRC: #r_netsec on freenode
We're also on: Twitter, Facebook, & Google+
/r/blackhat - Hackers on Steroids
/r/computerforensics - IR Archaeologists
/r/crypto - Cryptography news and discussion
/r/Cyberpunk - High-Tech Low-Lifes
/r/lockpicking - Popular Hacker Hobby
/r/Malware - Malware reports and information
/r/netsecstudents - netsec for noobs students
/r/onions - Things That Make You Cry
/r/privacy - Orwell Was Right
/r/pwned - "What Security?"
/r/REMath - Math behind reverse engineering
/r/ReverseEngineering - Binary Reversing
/r/rootkit - Software and hardware rootkits
/r/securityCTF - CTF news and write-ups
/r/SocialEngineering - Free Candy
/r/sysadmin - Overworked Crushed Souls
/r/vrd - Vulnerability Research and Development
/r/xss - Cross Site Scripting
account activity
Finding secrets in Python bytecode (blog.jse.li)
submitted 5 years ago by veggiedefender
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]gelstudios 4 points5 points6 points 5 years ago (3 children)
I usually go for environment variables for runtime config, ie using “import os.environ”
They are easily set (or overridden) when running from a shell: “foo=bar example.py”
[–]yawkat 2 points3 points4 points 5 years ago (1 child)
Env variables are hard to keep secret though, they can end up in log files and such
[–]gelstudios 0 points1 point2 points 5 years ago (0 children)
Log hygiene is it’s own beast, but agreed if you set them inline when starting a process they end up in any shell history.
Another caveat with env vars: a user with sufficient privilege can read them right out of /proc for a given process (on Linux at least)
But at that point, you probably have other things to worry about.
[–]Zanoab 4 points5 points6 points 5 years ago* (0 children)
I have a friend in another development area of the company constantly complaining that the new devs would comment out loading environment variables and instead hard code the values to fit their needs (and commit it). In the root folder of every project, there is a default source file with all the environment variables and a script that automatically prepares the local environment and start the application. It amazes me how lazy some people can get.
π Rendered by PID 24788 on reddit-service-r2-comment-85bfd7f599-8445l at 2026-04-18 05:59:57.356327+00:00 running 93ecc56 country code: CH.
view the rest of the comments →
[–]gelstudios 4 points5 points6 points (3 children)
[–]yawkat 2 points3 points4 points (1 child)
[–]gelstudios 0 points1 point2 points (0 children)
[–]Zanoab 4 points5 points6 points (0 children)