Show Local IP

2023-12-23 1 min read Linux Networking
Show local IP You can see the local IP of the machine with the command - ip a. However if you have to use the address in some variable in a scrit. It becomes little tricky, something like Show the interfaces in one line with ‘-o’ Show only IPv4 address’s with ‘-4’ and the command looks like 1 ip -4 -o a show dev eth0|awk '{gsub(/\/.*/,"",$4);print $4}' Replace eth0 with then correct interface name. Continue reading

Openvpn files to nmcli connection

2022-11-12 1 min read Linux Networking
Openvpn files to nmcli connection Many times you get openvpn file and when you want to connect to the VPN server, you have to start the vpn client from the cli. How you wish that this was added to NetworkManager so that you could connect to it with one click. If this is the case, then you can use these commands to do the same ane enjoy :) 1 2 nmcli connection import type openvpn file test. Continue reading

VMWare workstation - ova import not working

2022-07-06 1 min read Virtualization VMWare Workstation
VMWare workstation - ova import not working When importing ova and/or ovf files, if Workstation does not give any error but does not import the file as well, try importing the file in VMWare Player. When you do that, you will see that if the import fails, player will show a dialogue with log file name similar to /tmp/vmaware-<amitag>/. From there, I was able to find out that, it was running ovftool. Continue reading

Firefox addons for hacking

2022-04-23 1 min read Learning Hacking Firefox
#Firefox addons Here are some good and useful addons for hacking. I have mentioned some old addons which are quire good but not to be found on firefox addon site :( Foxy Proxy Cookie Editor WappAlyzer Cliget User Agent Switcher NoScript Firefox Relay Tracking Token Stripper Hack Resources Permission to Hack Hackbar v2 AntiBrowserSpy TrackingBlocker GreaseMonkey FireBug Does not exist anymore Live HTTP headers Tamper Data WebSecurity Does not exist Penetration Tester Kit Built With Hack Tools Link Goher Copy Framer or Page URL Multi Account Containers retire. Continue reading

Creating and using ackrc

2022-04-02 1 min read Learning ack grep Fedora
ack is a fantastic replacement for grep and probably much more than grep. Here is what the dnf info has to say about ack 1 2 3 4 5 6 Name : ack Architecture : noarch Summary : Grep-like text finder URL : http://beyondgrep.com/ License : Artistic 2.0 Description : Ack is designed as a replacement for grep. And their websites says - Designed for programmers with large heterogeneous trees of source code, ack is written in portable Perl 5 and takes advantage of the power of Perl’s regular expressions. Continue reading

mussh-run-commands-on-multiple-hosts

2022-03-06 1 min read Learning bash Fedora SSH
mussh allows you to run command/commands on multiple hosts at the same time. If you have farm of server setup with passwordless ssh or with same password (which is generally the case), then using mussh you can either check all the servers for some output or fix something or maybe update all the packages. How cool is that :) Here is description of this package from dnf repo 1 2 3 4 5 6 7 8 9 10 11 12 13 14 Name : mussh Version : 1. Continue reading

virt-install with cloud-init

2022-02-09 2 min read Learning bash Virtualization Qemu libvirtd
If you have not heard about cloud-init then you should definately search for it and learn about cloud-config as well. You can find the documentation for cloud-config here. It is used for configuring VMs when running in cloud environments. Specially useful to inject the ssh keys or set the root password but you can do anything in the cloud-config as there is a section where you can run bash commands. While this is useful for cloud instances, you can make use of this feature when running your vm with qemu or libvirtd. Continue reading
Older posts