Originally Posted by jim mcnamara
What exactly are you trying to do?
Thanks for answer, what I'm doing is a perl script that takes input from iptables ip_queue module (port 80) and then uses HTML::LinkExtor and parses all links from that traffic.
Then it matches those extracted links with different regexes that I have written/borrowed from different intrusion detection systems.
I show few pics, easier that way for me
It prints like this now:
I would like to print like this:
My problem is that those url's are different length so I cant use any kind of tabs or whitespaces.
print colored ("$url", $script_color);
print colored (" Rule:026", $rule_color);
print YELLOW, " ", get_time(), RESET, "\n";
That get_time() produces that timestamp that I would like to print to the right side of terminal.