Posts

Showing posts from August, 2021

Stoken: Alternative to RSA Secure ID Software to get random PIN

Image
Hello Team, Today Morning suddenly my Mac started giving trouble with RSA Secure ID software which we use to generate random OTP to connect with our secure VPNs.  I am getting an error as below while launching RSA Secure ID so I came across an alternative named stoken from my colleague.  I have installed stoken using brew  brew install stoken  and imported my RSA Token file into stoken, and thats it, we are back with a terminal based Secure ID software which gives the token. λ ~ ➤ stoken import -- file = "/Users/xxxxx.xxxxxx/Desktop/xxxxx.xxxxxx_xxxxxxxx.sdtid" Enter new password: Confirm new password: λ ~ ➤ stoken Enter password to decrypt token: xxxxxx     

My Security Learning: What Is Threat Modeling Process Explained

 Threat Modeling Process I have created Threat Modeling Process document and created it as PDF, you can view it from here

Docker: Networking Basics - Configure static and Dynamic IP Address to Container

Hello Everyone,            In this post, I will show you how to create a network in the docker and how to spin containers with static IP and Dynamic IP Address.    Step1: Create a new network for docker You can create a new network in the docker using below command   docker network create --subnet=172.18.0.0/16 mydockernetwork As network created just do docker inspect to make sure all good with it ➜ ~ docker network create --subnet=172.18.0.0/16 mydockernetwork a4d11712754b7d5bf3ba25e3c831c8512065ce77a66099948effc59d5bae968f ➜ ~ docker inspect mydockernetwork [ { "Name": "mydockernetwork", "Id": "a4d11712754b7d5bf3ba25e3c831c8512065ce77a66099948effc59d5bae968f", "Created": "2021-08-07T11:27:38.515202386+05:30", "Scope": "local", "Driver": "bridge", "EnableIPv6": false, "IPAM": { "Driver&q

How to take backup of your files regularly to external drive or to a new mount point ?

Hello Everyone, As I have mentioned in other posts, I am using Arch based Endeavour distro in my ThinkPad. No matter how stable the OS is, its always recommended to backup your important data. So by doing very small tasks I achieve something like regular backup and OnDemand backup in my Arch Linux. Step 1: Identify What folder you like to backup So just to avoid any crazy permission related issues I got, like mentioned here , I set myself to use my home folder only for learnings. So I have created a folder called `my_learning` and I am going to keep all my notes, code at that location. So if you want to create a folder you can simply do mkdir ~/my_learning Step 2: Install rsync ( If not installed ) If you dont know what rsync from Wikipedia rsync is a utility for efficiently transferring and synchronizing files between a computer and an external hard drive and across networked computers by comparing the modification times and sizes of files so what ever the distro

Vagrant: How to provide custom SSH key location to solve chmod 600 error ?

Hello Everyone, So today I am trying to spin a new vagrant instance from my Arch installation in a NTFS Partition. So during `vagrant up` command, I got an error stating that it cant execute `chmod 600` command in my NTFS parition as my Vagrantfile located at my NTFS mount. So on searching a bit, I came across custom SSH location config can be added to Vagrantfile as below config.ssh.insert_key = false config.ssh.private_key_path = "~/.vagrant.d/insecure_private_key" so my Vagrantfile config over looks like below # -*- mode: ruby -*- # vi: set ft=ruby : # All Vagrant configuration is done below. The "2" in Vagrant.configure # configures the configuration version (we support older styles for # backwards compatibility). Please don't change it unless you know what # you're doing. Vagrant.configure("2") do |config| config.vm.box = "centos/7" config.vm.network "private_network", ip: "192.168.33.10" con

What are the available Process Error Signals in Linux Kernel ?

As you all know like linux process uses error signals to communicate below is the list of errors  Error Signal Description {{key}} {{value}}