Skip to main content

IPtables, SVN, and NMAP

I reviewed some material on IPtables, SVN, and NMAP just for the sake of keeping my mind busy. Here are some useful notes:

  1. IPtables - best resource found at HERE
  2. SVN - best, as in the quickest and simplest intro could be found HERE
  3. NMAP - I honestly don't see in using it for more than port-scanning in a few instances. Anyway, here are a few other options that might come in handy at some point.
nmap -sT/sS/sX/sF/...[-P0] IPADDRESS(range) == to check which ports are open
nmap -sP IPADDRESS(range) == a simple ping scan for availability
nmap -sO IPADDRESS(range) == check what IP protocols are available
nmap -sV IPADDRESS(range) == a scan with version detection
Other useful flags:
-O
== detects OS, part of -v (verbosity) flag as well
-A == detects OS and versions
-v == request high verbosity/detail
-F == performs a fast scan of only a few common ports

Installing Perl modules

Perl modules may be installed using the CPAN module or from source.
SOURCE

From CPAN

perl -MCPAN -e shell (to get an interactive CPAN shell)
perl -MCPAN -e 'install Time::JulianDay' (if you know the name of the module, you can install it directly without interacting with the CPAN shell)

Typing just perl -MCPAN -e 'install PerlMol', I managed to install the PerlMol module from scratch.

Manual installation

1. Download the Perl module from CPAN or other site.
2. Extract the tarball.
3. Run perl Makefile.PL
4. Run make
5. Run make test
6. Run make install

Checking for existence of a Perl module

perl -e 'use module' checks if the module is installed.

For example, I checked if I have the Trig module by typing this prompt:
perl -e 'use Math::Trig'

Comments

Popular posts from this blog

Distribution of Wealth in the US

The rich get richer and the poor get poorer. I heard this statement quite a bit lately particularly in light of the sub-prime mortgage and general housing crisis in the US. The country has enjoyed significant economic prosperity and both Clinton and Bush boasted economic growth under their reign. Unfortunately, the beneficiaries of the economic boom are not people from all economic backgrounds, but rather the top 10%. To make things worse, Bush gave tax cuts mainly targeting the top 10%. Being more of a numbers guy, I always wanted showing the validity of the-rich-get-richer-n-the-poor-get-poorer statement. Thanks to Wikipedia , I have finally found it!! Both the mean and median net worth of families for the bottom 50% of the population has remained absolutely flat while the 75th-90th percentile see a decent growth and the top 10% enjoy the most appreciation on their net worth. So, if you factor in inflation, the-rich-get-richer-n-the-poor-get-poorer probably holds true. The g...

Reasons to Vote for Barack Obama

Not that I am eligible to vote or anything ... but if I could, I would vote for Barack Obama for the following reasons. He listens to experts . He has assembled a group of smart and practical intellectuals to advise him on all sorts of topics. Hillary has her own agenda and ambition which appears to keep her from entertaining any "elitist" agenda. He is a good manager. The way he hired very intelligent people to run a nearly flawless campaign to beat an established and seemingly unbeatable opponent in Hillary Clinton is commendable. He really knows how to surround himself with a smart group of people who can get things done and that is exactly what this country needs. Hillary hired people on the basis of their loyalty and counted on friends of the Clintons to win her the nomination. Unfortunately, all that influence and political capital could not overcome the grassroots movement Obama initiated. He is not an ideologue . That allows him to make good decisions for this...

Politics of the Federal Minimum Wage

In my previous post, I tried to test my theory that democrats care about poor people than republicans by looking at the change in federal minimum wage under democratic and republican presidents. It is somewhat difficult to prove or disprove my theory graphically, so I prepared a little spreadsheet and calculated real numbers. While I was at it, I decided to factor in the role of Congress in determining the federal minimum wage. The results are as follows. It is important to get a general feel for the extent to which the two parties have controlled the executive (president) and legislative (Senate and House) branches of the government. As the pie chart below shows, Democrats have controlled Congress for a lot longer than the Republicans, while Republican presidents have ruled a little bit longer. SOURCE: http://uspolitics.about.com/od/usgovernment/l/bl_party_division_2.htm Next item to look at is government control by president, Senate and House majority. The Democrats have ruled t...