Split pcap to multiple files based on number of packets

2019-06-03 1 min read bash Learning Linux
Here is a script that can use tshark to split a large pcap to multiple small pcaps inpcap="test.pcap" max=$(tshark -r $inpcap -n -T fields -e frame.number|tail -1) # This is the number of packets in each split pcap c=1 # Save all new pcaps to out, if it does not exist, create it. [[ ! -d out ]] && mkdir out for i in $(seq 1 $max $c) do tshark -r $inpcap -n -c $c " Continue reading

libvirt- Create virtual machine with text console only interface

2019-05-27 1 min read Linux Vurtualization
virt-install is an amazing tool to create VMs. If you have created a config file (Kickstart file – ks.cfg), then its only one line un-attended install. If you are using this on remote host with ssh and unluckily cannot export display – what do you do. Do a non-graphical install. There are only minor changes in the command to tell the installer that there is no graphics available and it is amazing, is it not 🙂 Continue reading

IT Trends That Will Boost Global Economic Growth

2019-05-06 2 min read Uncategorized
IT has been known to have a great impact on the global economy and has been linked to marketplace transformation, better standards of living, and international trade, among other things. <p dir="ltr"> Here are some <a href="https://techjury.net/blog/information-technology-trends/">IT trends</a> that are expected to further boost the economy in the near future. </p> <p dir="ltr"> IT Trends That Will Boost Economic Growth </p> <p dir="ltr"> Artificial Intelligence </p> <p dir="ltr"> This is the use of robots and artificial intelligence to carry out task previously done by humans. Continue reading

GREP_COLORS – change the colors in the GREP output.

2019-04-22 4 min read bash Linux
Today we will look at the variable GREP_COLORS. This variable determines the colour that is used with the grep command. You can look at the man page of the grep command to see what the various options mean. Here is the excerpt from the man command: GREP_COLORS Specifies the colors and other attributes used to highlight various parts of the output. Its value is a colon-separated list of capabilities that defaults to ms=01;31:mc=01;31:sl=:cx=:fn=35:ln=32:bn=32:se=36 with the rv and ne boolean capabilities omitted (i. Continue reading
Older posts Newer posts