security
Understanding Login Types in Windows
2024/11/03
Windows operating systems offer various login types that define how users authenticate themselves and gain access to the system. Understanding these login types is crucial for both users and system …
HTTPSorHTTP
2024/09/08
Alex was a bright developer. Fresh out of college and eager to make a mark, he landed a job at a promising tech startup. His first major project: build a new web application for the company’s …
ssh trick – ssh to remote host with bastion host
2019/09/16
Lot of times, you have to ssh to a server with bastion host. If you dont know what is bastion host then see this: […] Now, in such cases, either you add an entry in “~/.ssh/config” to route the …
https site available now with cert from cacert.org
2015/05/30
More about cacert.org : […] CAcert.org is a community-driven Certificate Authority that issues certificates to the public at large for free. CAcert’s goal is to promote awareness and education …
ssh authorized keys – limit ssh session to custom command
2015/03/04
If you want a ssh key to be able to run a custom command only and nothing beyond that, then you can use the “command” option in the authorized_keys file of ssh. For example, to limit user to run only …
shell script for some quick tests on Linux
2015/01/22
Head over to the link and grab the script. Just run it and make yourself a little bit more safe 🙂 https://github.com/rebootuser/LinEnum
Search CVE – web interface with php
2014/11/03
So, last few weeks have been very busy with lot of security issues, so I thought of having a local CVE Search app. But all I could find on google and github.com were on python and nothing that I could …
Sandbox apache (httpd) for better security.
2014/03/26
Apache/httpd is something which you would like to have contained. And now fedora provides a native way/mechanism to to so with virt-sandbox-service. With this, you can create a virtualized sanbox …
Sandbox Firefox – First step to security
2014/03/19
First we will setup cgroup to limit cpu and memory usage, so here we go: Add the configuration in /etc/cgconfig.conf #------start cgconfig---------------- #new group group firefox { perm { task { …
configure firewall – the easy way.
2013/04/24
It is good practice to keep iptables/firewall enabled. But configuring it is difficult, do you agree. Not any more 🙂 Install firewall-config sudo yum install firewall-config This will install a GUI …
Allow incoming/outgoing ports on iptables
2012/11/27
Last couple of years, I just used to disable iptables on my system, this time I decided not to disable it and keep it enabled. So far so good, now comes the tricky part, I have http server enabled on …
mysql output to an array for easy parsing.
2011/05/11
Today I was looking for some way to put the output of the mysql output in an array in a bash script. Quick google search yeilded to results something like this: […] <td> <div …