<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Online Vulnerability Scanners and Port Scans &#187; Tools</title>
	<atom:link href="http://hackertarget.com/category/tools/feed/" rel="self" type="application/rss+xml" />
	<link>http://hackertarget.com</link>
	<description>Security Vulnerability Scanners and Assessments</description>
	<lastBuildDate>Sun, 19 May 2013 04:24:40 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
		<item>
		<title>ngrep and tcpflow &#8211; packet capture on a shoestring</title>
		<link>http://hackertarget.com/ngrep-tcpflow-packet-capture-on-a-shoestring/</link>
		<comments>http://hackertarget.com/ngrep-tcpflow-packet-capture-on-a-shoestring/#comments</comments>
		<pubDate>Wed, 08 May 2013 14:38:55 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Tools]]></category>
		<category><![CDATA[ngrep]]></category>
		<category><![CDATA[packet capture]]></category>
		<category><![CDATA[tcpdump]]></category>
		<category><![CDATA[tcpflow]]></category>
		<category><![CDATA[wireshark]]></category>

		<guid isPermaLink="false">http://hackertarget.com/?p=4276</guid>
		<description><![CDATA[<p>The Ngrep and TCPflow packet capture tools are useful for fast access to packets on the wire. As you will see they make grabbing text out of the network stream a piece of cake. You may have heard of Wireshark (formerly Ethereal), a powerful network packet capture tool that enables a user to grab packets [...]</p><p>The post <a href="http://hackertarget.com/ngrep-tcpflow-packet-capture-on-a-shoestring/">ngrep and tcpflow &#8211; packet capture on a shoestring</a> appeared first on <a href="http://hackertarget.com">Online Vulnerability Scanners and Port Scans</a>.</p>]]></description>
				<content:encoded><![CDATA[<p>The <a href="http://ngrep.sourceforge.net/" title="ngrep project site">Ngrep</a> and <a href="http://sourceforge.net/projects/tcpflow/" title="tcpflow">TCPflow</a> packet capture tools are useful for fast access to packets on the wire. As you will see they make grabbing text out of the network stream a piece of cake.</p>
<p>You may have heard of <a href="http://www.wireshark.org" title="Wireshark the office suite of pcaps">Wireshark</a> (formerly Ethereal), a powerful network packet capture tool that enables a user to grab packets off the wire, load pcaps and analyse the data all in one GUI. While Wireshark is a must have tool for many IT pro&#8217;s there are times when a simple command line tool can get the job done faster.</p>
<h2>Ngrep &#8211; or Network Grep</h2>
<p>On your Ubuntu (or Debian based) system it is a simple matter of installing with apt-get. Under Fedora, Centos or RHEL if the package is not available in the repos, grab a copy of the rpm and install with a simple <code>rpm -ivh</code> (no dependencies required).</p>
<pre>testbox:~#apt-get install ngrep
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following NEW packages will be installed:
  ngrep
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 29.1 kB of archives.
After this operation, 92.2 kB of additional disk space will be used.
</pre>
<p>Wow, take a look at that &#8211; 29.1kB had to be downloaded and 92.2 kB of disk space has been used by this tool. Maybe I should get a bigger hard drive!!</p>
<p>A couple of basic examples to get you started with ngrep.</p>
<pre>testbox:~#ngrep -d wlan0 '^POST'
interface: wlan0 (192.168.1.0/255.255.255.0)
match: ^POST
</pre>
<p>The syntax is <code>-d wlan0</code> for the device you wish to capture from, followed by the expression to match. This example will match packets with POST at the start of the line, or HTTP POST requests in a simple text output format. The &#8216;#&#8217; marks indicate packets that did not match the expression. Further filtering can be done on ports and ip addresses.</p>
<p>Here is a more telling example to give you an idea of the possibilities.</p>
<pre>testbox:~#ngrep -t -d wlan0 'pwd'
interface: wlan0 (192.168.1.0/255.255.255.0)
match: pwd
#############
T 2013/05/08 23:30:46.559360 192.168.1.100:48187 -> 173.255.232.18:80 [AP]
  POST /wp-login.php HTTP/1.1..Host: hackertarget.com..User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:20.0) Gecko/20100101 Firefox/20.0..Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8..Accept-Language: en-US,en;q=0.5..Accept-Encoding: gzip, deflate..Referer: http://hackertarget.com/wp-login.php..Connection: keep-alive..Content-Type: application/x-www-form-urlencoded..Content-Length: 106....log=admin&#038;<span class="shortcode-highlight"></span><!--/.shortcode-highlight-->pwd=testpassword<span class="shortcode-highlight"></span><!--/.shortcode-highlight-->&#038;wp-submit=Log+In&#038;redirect_to=http%3A%2F%2Fhackertarget.com%2Fwp-adminF&#038;testcookie=1                                                                                                              
###############################################################################################################^Cexit
124 received, 0 dropped</pre>
<p>The addition of the <code>-t</code> will put a timestamp on the matching results. Notice what I have done here, a simple <code>grep</code> for the string &#8216;pwd&#8217; has shown the HTTP POST request with my login and password for the <a href="http://hackertarget.com/" title="Security Vulnerability Services">http://hackertarget.com/</a> login page. A quick example that demonstrates the importance of using the SSL version of the site (https://hackertarget.com/).</p>
<h2>tcpflow &#8211; logging all the datas</h2>
<p>With tcpflow the installation is similar to that of ngrep, at least under Ubuntu. </p>
<pre>apt-get install tcpflow</pre>
<p>tcpflow will log all the tcpflows &#8211; or TCP sessions into text files in the current directory where it runs. Use tcpdump command line switches for determining what to capture.</p>
<pre>tcpflow -i wlan0 'port 80'</pre>
<p>This example will capture all HTTP flows over port 80 and store them as text files. A great way to troubleshoot web applications, or network protocols.</p>
<h2>Tshark &#8211; another worthy command line packet capture tool</h2>
<p>tshark is part of the Wireshark package, and is basically a text or console based version of Wireshark. It has many options and can be used to perform much of what ngrep and tcpflow do. However, the advantage of ngrep and tcpflow is their simplicity and ease of use. It will often come down to what tools you have available on the system.</p>
<p>These examples just touch the surface whether troubleshooting or performing security analysis; any plain text protocol can be inspected, <code>POP3</code>, <code>SMTP</code>, <code>IRC</code>, <code>DNS</code> and <code>HTTP</code> are just a few possibilities. On a related note the excellent <a href="http://hackertarget.com/bro-ids-ubuntu/" title="Install Bro on Ubuntu">bro</a> (no longer <a href="http://www.bro.org/" title="Bro">bro-ids</a>) performs excellent flow analysis and is a tool worth investigating if you are performing security related packet captures.</p>
<div class="woo-sc-box alert   ">Keep in mind that as with any packet capture tool, when using ngrep, tcpflow, tshark or wireshark ensure you have permission from management or legal that you are allowed to be looking closely at those packets, especially if there are other peoples traffic traversing the system you are on.</div>
<p>The post <a href="http://hackertarget.com/ngrep-tcpflow-packet-capture-on-a-shoestring/">ngrep and tcpflow &#8211; packet capture on a shoestring</a> appeared first on <a href="http://hackertarget.com">Online Vulnerability Scanners and Port Scans</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://hackertarget.com/ngrep-tcpflow-packet-capture-on-a-shoestring/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Firewall Testing with a remote Port Scanner</title>
		<link>http://hackertarget.com/firewall-test/</link>
		<comments>http://hackertarget.com/firewall-test/#comments</comments>
		<pubDate>Wed, 06 Mar 2013 12:06:33 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Security Research]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[check ports]]></category>
		<category><![CDATA[firewall test]]></category>
		<category><![CDATA[open ports]]></category>
		<category><![CDATA[port scanner]]></category>

		<guid isPermaLink="false">http://hackertarget.com/?p=4157</guid>
		<description><![CDATA[<p>A Firewall Test conducted by an external port scanner will quickly identify open services and weakness in firewall configurations. In this post I will revisit some of the benefits of a remote firewall test and cover the basics of why a firewall is still an important part of any Internet connected system. Why you need [...]</p><p>The post <a href="http://hackertarget.com/firewall-test/">Firewall Testing with a remote Port Scanner</a> appeared first on <a href="http://hackertarget.com">Online Vulnerability Scanners and Port Scans</a>.</p>]]></description>
				<content:encoded><![CDATA[<p>A Firewall Test conducted by an external port scanner will quickly identify open services and weakness in firewall configurations. In this post I will revisit some of the benefits of a remote firewall test and cover the basics of why a firewall is still an important part of any Internet connected system.</p>
<div class="woo-sc-box download   "><a href="http://hackertarget.com">HackerTarget.com</a> provides a hosted <a href="http://hackertarget.com/nmap-online-port-scanner/" title="Online Port Scanner">Nmap port scanning service</a> as part of its suite of online open source security tools. By delivering accurate open port information to network and server owners, security awareness of infrastructure is increased and potential holes can be plugged.</div>
<h2>Why you need an external port scanner</h2>
<p>To understand how vulnerable your systems are to external attackers, you need to understand what they look like on the network from an external or Internet facing perspective. A port scan conducted from outside a network perimeter will map and identify vulnerable systems.</p>
<p>Technical operations staff need to know what their network perimeter looks like from the outside. The perimeter may be a single IP gateway, a hosted Internet server or a whole Class B network; it does not matter &#8211; you need to understand what services Internet based threats can see and what they are able to access.</p>
<p>If you are a systems administrator or a security analyst for an organisation having access to an external port scanner will provide a number of benefits; The most important being that you should <span class="shortcode-highlight">understand and know exactly what services are listening on your perimeter</span><!--/.shortcode-highlight-->. Testing should be performed at least monthly and ideally more often, to monitor for changes to the perimeter.</p>
<h2>Firewall Testing</h2>
<p>A <a href="http://en.wikipedia.org/wiki/Firewall_%28computing%29">firewall&#8217;s</a> primary function is to block unauthorised packets from being able to reach listening services. The firewall can be situated on the perimeter of an organisations network or it can be on an internal network. It can also be on the end point whether that is a client desktop or a Internet server such as a web server or mail server.</p>
<p>Multiple firewalls and filtering devices increases the complexity of assessing a network. Using a port scanner one is able to quickly assess what ports are being permitted through the various layers of defence and are able to reach services on the end point host.</p>
<p>To effectively test a firewall and network for external access points, it is necessary to perform the port scanning from a remote host. By using the <a href="http://hackertarget.com/">HackerTarget.com</a> hosted <a href="http://hackertarget.com/nmap-online-port-scanner" title="online port scanner">online port scanner service</a> you are able to quickly test a range of IP Addresses or a single IP address. All 65&#8217;535 ports can be tested at the click of a mouse, with the results delivered to your email address for review.</p>
<p>From the results of the port scan you are able to determine the state of a port:<br />
<div class="shortcode-unorderedlist bullet"></p>
<ul>
<li>Filtered &#8211; (Packet is Dropped) this indicates the port is being filtered by a Firewall or Router, this is recommended state for any port that does not have a listening service on it.</li>
<li>Closed &#8211; (Packet is Denied &#8211; response sent) this indicates traffic destined to this port is being allowed past any firewall / router devices and is arriving at the destination host (which has no listening service running on that port).</li>
<li>Open &#8211; (TCP Handshake Established) this indicates that a connection to a listening service has been made. This state should only be found on services that have a requirement to be externally facing (HTTP 80 and SMTP 25 are two examples of common external facing services).</li>
</ul>
<p></div>
</p>
<h3>Why ingress firewall filtering is required</h3>
<p>Restrict access to vulnerable services, reduce attack surface of Internet facing systems and reduce ability of an attacker to open back-doors on Internet facing ports.</p>
<h3>Why egress firewall filtering is required</h3>
<p>Data ex-filtration and outbound initiated remote access. Command shells and other remote access can be achieved by a system initiating an outbound connection. Limiting the available outbound ports can make this outbound communication more difficult for an attacker. Note &#8211; this does not entirely solve the problem as advanced tools and attackers are able to initiate communication through multiple means including over https proxy servers, STMP and even DNS queries.</p>
<h2>Troubleshooting Network Services</h2>
<p>When installing and configuring Internet facing services it will often be necessary to troubleshoot a network configuration in order to get a service up and running. For example you may have correctly setup the service on the server with everything operating correctly, however an external firewall may be blocking remote access to this service.</p>
<p>While the situations in which network troubleshooting is required are varied, it is a common methodology to perform an external port scan against the network port or system to quickly understand where the problem may lie. If you are able to connect to a service from the internal host but unable to connect from external, you can make a pretty good guess at where the problem might lie. By performing a port scan using an <a href="http://hackertarget.com/nmap-online-port-scanner/" title="external port scan">external online port scan</a> you are able to quickly confirm that all the required services are being filtered &#8211; hence your troubleshooting can move to looking at any external or host based firewalls that are blocking that port.</p>
<h2>Mapping Networks and Services</h2>
<p>In order to determine how vulnerable a network or host is to exploitation, it is necessary to know what services are running and whether they are externally facing (or accessible from the Internet). By performing a remote port scan against the network IP range or against a specific host it is possible to determine not only the open ports but also the types of services running on those ports. This is known as service detection and is a feature of most well known port scanners such as the <a href="http://nmap.org">nmap port scanning tool</a>.</p>
<p>Further more identification of the actual operating system is also possible, either from the service identification or through more low level analysis of the packets coming back from the host.</p>
<p>System and network administrators will also utilize <a href="http://hackertarget.com/port-scanner/" title="introduction to port scanners">port scanners</a> to map the external network of a host or organisation. Networks change over time and documentation is not always kept current, so a quick port scan of the services listening on a network will help a system administrator to understand the layout of the network.</p>
<p>The post <a href="http://hackertarget.com/firewall-test/">Firewall Testing with a remote Port Scanner</a> appeared first on <a href="http://hackertarget.com">Online Vulnerability Scanners and Port Scans</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://hackertarget.com/firewall-test/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Update GeoIP data for Splunk App</title>
		<link>http://hackertarget.com/update-geoip-data-for-splunk-app/</link>
		<comments>http://hackertarget.com/update-geoip-data-for-splunk-app/#comments</comments>
		<pubDate>Wed, 06 Feb 2013 07:04:50 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Security Research]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[geoip]]></category>
		<category><![CDATA[splunk]]></category>

		<guid isPermaLink="false">http://hackertarget.com/?p=4097</guid>
		<description><![CDATA[<p>If you are using the GeoIP app for Splunk you will find that it has not been updated recently. The last update was June 2011. Following my recent post regarding the installation of Splunk on an Ubuntu based system I started to dig into this app and found that it is a simple matter to [...]</p><p>The post <a href="http://hackertarget.com/update-geoip-data-for-splunk-app/">Update GeoIP data for Splunk App</a> appeared first on <a href="http://hackertarget.com">Online Vulnerability Scanners and Port Scans</a>.</p>]]></description>
				<content:encoded><![CDATA[<p><img src="http://cdn.hackertarget.com/splunk-logo.png" style="border: 0px; float: right;">If you are using the GeoIP app for Splunk you will find that it has not been updated recently. The last update was June 2011. Following my recent post regarding the <a href="https://hackertarget.com/install-splunk-ubuntu-in-5-mins/" title="Install Splunk on Ubuntu">installation of Splunk on an Ubuntu</a> based system I started to dig into this app and found that it is a simple matter to update the MaxMind GeoIP Lite database to the latest version.</p>
<p>Head over to the MaxMind website and grab the latest version of the GeoLiteCity.dat.gz file. </p>
<p>Download: <strong><a href="http://dev.maxmind.com/geoip/geolite" title="MaxMind Download">http://dev.maxmind.com/geoip/geolite</a></strong></p>
<p>Now uncompress the download with gzip.</p>
<pre class="brush: bash; title: ; notranslate">gzip -d GeoLiteCity.dat.gz</pre>
<p>If you take a look in <span class="shortcode-highlight">/opt/splunk/etc/apps/maps/bin/</span><!--/.shortcode-highlight--> of your Splunk install you will see the version of the GeoLiteCity.dat file is August 20, 2011. Time to update it to the latest version.</p>
<pre class="brush: bash; title: ; notranslate">cp GeoLiteCity.dat /opt/splunk/etc/apps/maps/bin/</pre>
<p>Start searching Splunk with the latest GeoIP data from <a href="http://www.maxmind.com" title="MaxMind GeoIP Information">MaxMind</a>. It really is that easy. <img src='http://cdn.hackertarget.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>The post <a href="http://hackertarget.com/update-geoip-data-for-splunk-app/">Update GeoIP data for Splunk App</a> appeared first on <a href="http://hackertarget.com">Online Vulnerability Scanners and Port Scans</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://hackertarget.com/update-geoip-data-for-splunk-app/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Install Splunk on Ubuntu in 5 mins</title>
		<link>http://hackertarget.com/install-splunk-ubuntu-in-5-mins/</link>
		<comments>http://hackertarget.com/install-splunk-ubuntu-in-5-mins/#comments</comments>
		<pubDate>Sat, 02 Feb 2013 04:37:14 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Tools]]></category>
		<category><![CDATA[log]]></category>
		<category><![CDATA[security analysis]]></category>
		<category><![CDATA[security event]]></category>
		<category><![CDATA[splunk]]></category>

		<guid isPermaLink="false">http://hackertarget.com/?p=4084</guid>
		<description><![CDATA[<p>Splunk is a powerful log database that can be used for analysis of any sort of log data through its easy to use search engine. Security logs, Syslog, Web server logs and Windows logs are just the beginning. One of the great features of Splunk is that you can feed pretty much any log into [...]</p><p>The post <a href="http://hackertarget.com/install-splunk-ubuntu-in-5-mins/">Install Splunk on Ubuntu in 5 mins</a> appeared first on <a href="http://hackertarget.com">Online Vulnerability Scanners and Port Scans</a>.</p>]]></description>
				<content:encoded><![CDATA[<p><img src="http://cdn.hackertarget.com/splunk-logo.png" title="Splunk Logo" style="float: right; border: 0px;"><a href="http://www.splunk.com">Splunk</a> is a powerful log database that can be used for analysis of any sort of log data through its easy to use search engine. Security logs, Syslog, Web server logs and Windows logs are just the beginning. One of the great features of Splunk is that you can feed pretty much any log into it and start searching. Here at <a href="http://hackertarget.com/">hackertarget.com</a> we usually focus on Open Source Security projects; Splunk is not open source, it is commercial however it does have a Free option that allows up to 500mb of data to be added into the system per day. For larger volume than 500mb per day the licensing costs start to add up. Splunk installation under Ubuntu is so easy, you can fire up an instance to do ad-hoc analysis of static log files.</p>
<h2>Open Source Splunk Alternative</h2>
<p>If you are interesting in a purely Open Source log search engine, take a look at <a href="http://code.google.com/p/enterprise-log-search-and-archive/">ELSA &#8211; Enterprise Log Search and Archive</a> this is a relatively new project that is making good progress. It has been included on the latest <a href="http://securityonion.blogspot.com.au/2012/09/security-onion-1204-beta-available-now.html">Security Onion release</a>.</p>
<p>Another Open Source log management option is <a href="http://graylog2.org/">Greylog2</a>. I am yet to test or explore this alternative to Splunk but I have read some good reviews and it looks promising.</p>
<h2>Download Splunk for Ubuntu</h2>
<p>Splunk runs on a wide range of computing platforms including Windows, Linux, FreeBSD, OSX, Solaris, AIX and even HPUX.</p>
<p><a href="http://www.splunk.com/download?r=header" title="Download Splunk for your Operating System" target="_blank">http://www.splunk.com/download?r=header</a></p>
<p>We are after the Linux download option, specifically the .deb file as Ubuntu uses the Debian based .deb package format for binary installs. It is a matter of selecting either 32bit or 64bit and then downloading the .deb file.</p>
<p><img src="http://cdn.hackertarget.com/ubuntu-splunk-install-options.png" title="Select the .deb install for Ubuntu"></p>
<p>Not sure whether your Ubuntu is 32bit or 64bit? The easiest way to check this is to use a Unix command <span class="shortcode-highlight">uname -a</span><!--/.shortcode-highlight--> in a terminal window. Bring up a terminal window and type in that command. x64 indicates 64bit while i686 i386 indicates a 32 bit install.</p>
<p>The 32 bit package is about 35.5mb, you will need to signup for a Splunk account to begin the download. It is worth creating an account you will remember as this same acocunt will be used to download additional plugins (apps) from the Splunk site.</p>
<p>Once the download is complete you can install it with the following <span class="shortcode-highlight">dpkg</span><!--/.shortcode-highlight--> command as seen in the output below:</p>
<pre class="brush: bash; title: ; notranslate">
fred@x-wing1:~$ sudo dpkg -i Downloads/splunk-5.0.1-143156-linux-2.6-intel.deb 
[sudo] password for fred: 
Selecting previously unselected package splunk.
(Reading database ... 239507 files and directories currently installed.)
Unpacking splunk (from .../splunk-5.0.1-143156-linux-2.6-intel.deb) ...
Setting up splunk (5.0.1-143156) ...
----------------------------------------------------------------------
Splunk has been installed in:
        /opt/splunk

To start Splunk, run the command:
        /opt/splunk/bin/splunk start


To use the Splunk Web interface, point your browser at:

http://x-wing1:8000

Complete documentation is at http://docs.splunk.com/Documentation/Splunk
----------------------------------------------------------------------
</pre>
<p>Yes it is that easy, no dependencies or mucking around. Now its time to start the Splunk server.</p>
<pre class="brush: bash; title: ; notranslate">
sudo /opt/splunk/bin/splunk start
</pre>
<p>After some initial setup, you should see:</p>
<pre class="brush: bash; title: ; notranslate">
The Splunk web interface is at http://x-wing1:8000
</pre>
<p>Login and change your password. You now have your very own Splunk server, just like the cool kids. <img src='http://cdn.hackertarget.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<h2>Feed Splunk Data and Search!</h2>
<p>Start getting data in the system and then you can search on that data. Data can be input from simple files for some one off analysis, it can read known log files or can listen on a port similar to a syslog server. It is very flexible, for example running it on a TCP port you could even use <em>netcat</em> to pipe a file over the network into Splunk server, or have a <em>syslog server</em> forward some of its logs to the Splunk instance. This would leave you with your existing syslog infrastructure intact for archival purposes but you also have the Splunk instance for easy analysis.</p>
<p>Now you are up to the point where it depends on your network and requirements, so think about how you are going to use it, feed it some data and start searching for <span class="shortcode-highlight">stuff</span><!--/.shortcode-highlight-->. The <em>stuff</em> could be configuration issues, errors, utilization trends or security events. If you want to do some easy testing, just grab a web server log file or other log and feed it in directly with the <span class="shortcode-highlight">a file or directory option</span><!--/.shortcode-highlight-->.</p>
<p>This video is a good introduction to performing Splunk log searches and pulling relevant information from your data.</p>
<p><iframe width="640" height="360" src="http://www.youtube.com/embed/5G0Pk9YCzjk?feature=player_embedded" frameborder="0" allowfullscreen></iframe></p>
<p>While I suspect most people will find value from the first day, as you explore the capabilities of the Splunk search engine you will find stuff &#8211; <strong>its a rabbit hole for systems administrators</strong>.</p>
<p>The post <a href="http://hackertarget.com/install-splunk-ubuntu-in-5-mins/">Install Splunk on Ubuntu in 5 mins</a> appeared first on <a href="http://hackertarget.com">Online Vulnerability Scanners and Port Scans</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://hackertarget.com/install-splunk-ubuntu-in-5-mins/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>11 Offensive Security Tools for SysAdmins</title>
		<link>http://hackertarget.com/11-offensive-security-tools/</link>
		<comments>http://hackertarget.com/11-offensive-security-tools/#comments</comments>
		<pubDate>Thu, 27 Sep 2012 11:44:32 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Security Research]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[offensive]]></category>
		<category><![CDATA[open source]]></category>
		<category><![CDATA[pentest]]></category>
		<category><![CDATA[security tools]]></category>

		<guid isPermaLink="false">http://hackertarget.com/?p=3796</guid>
		<description><![CDATA[<p>Offensive security tools are used by security professionals for testing and demonstrating security weakness. Systems Administrators and other IT professionals will benefit from having an understanding of at least the capabilities of these tools. Benefits include preparing systems to defend against these types of attacks and being able to identify the attacks in the case [...]</p><p>The post <a href="http://hackertarget.com/11-offensive-security-tools/">11 Offensive Security Tools for SysAdmins</a> appeared first on <a href="http://hackertarget.com">Online Vulnerability Scanners and Port Scans</a>.</p>]]></description>
				<content:encoded><![CDATA[<p>Offensive security tools are used by security professionals for testing and demonstrating security weakness. <b>Systems Administrators</b> and other IT professionals will benefit from having an understanding of at least the capabilities of these tools. Benefits include preparing systems to defend against these types of attacks and being able to identify the attacks in the case of an incident.</p>
<p>This selection of tools when utilized by a moderately skilled attacker has the potential to wreak havoc on an organizations network.</p>
<p>If you are interested in testing these tools they are all available to download and use for FREE. Most are open source with a couple of exceptions. <b>They should not be used against systems that you do not have permission to attack.</b> You could end up in jail.</p>
<div class="woo-sc-box info   ">The mitigations listed for each tool are high level pointers to techniques that a systems administrator should consider for defending against these powerful tools. Further information can be found at the project sites for each of the tools.</p>
<p>Note that while some of the recommendations may appear to be common sense; far too often the basics are overlooked.</div>
<p><b><span class="dropcap">1.</span><!--/.dropcap--><span style="font-size: 1.3em;"> <a href="http://www.metasploit.com">Metasploit Framework</a></b></span> &#8211; an open source tool for exploit development and penetration testing Metasploit is well known in the security community. Metasploit has exploits for both server and client based attacks; with feature packed communication modules <span class="shortcode-highlight">(meterpreter)</span><!--/.shortcode-highlight--> that make pwning systems fun! The framework now includes <a href="http://www.fastandeasyhacking.com/">Armitage</a> for point and click network exploitation. This is the go to tool if you want to break into a network or computer system.</p>
<p><span style="color: #333333; font-weight: bold; margin-left: 40px; line-height: 20px; margin-top: 12px;">Defending against Metasploit:</span> <div class="shortcode-unorderedlist tick"></p>
<ul>
<li>Keep all software updated with the latest security patches.</li>
<li>Use strong passwords on all systems.</li>
<li>Deploy network services with secure configurations.</li>
</ul>
<p></div>
</p>
<p><b><span class="dropcap">2.</span><!--/.dropcap--><span style="font-size: 1.3em;"> <a href="http://ettercap.sourceforge.net/">Ettercap</a></span></b> &#8211; a suite of tools for <span class="shortcode-highlight">man in the middle attacks (MITM)</span><!--/.shortcode-highlight-->. Once you have initiated a man in the middle attack with Ettercap use the modules and scripting capabilities to manipulate or inject traffic on the fly. Sniffing data and passwords are just the beginning; inject to exploit FTW!</p>
<p><span style="color: #333333; font-weight: bold; margin-left: 40px; line-height: 20px; margin-top: 12px;">Defending against Ettercap:</span> <div class="shortcode-unorderedlist tick"></p>
<ul>
<li>Understand that <a href="http://en.wikipedia.org/wiki/ARP_spoofing" title="ARP Spoofing - Wikipedia">ARP poisoning</a> is not difficult in a typical switched network.</li>
<li>Lock down network ports.</li>
<li>Use secure switch configurations and <a href="http://en.wikipedia.org/wiki/Network_Access_Control" title="Network Access Control">NAC</a> if risk is sufficient.</li>
</ul>
<p></div>
</p>
<p><b><span class="dropcap">3.</span><!--/.dropcap--><span style="font-size: 1.3em;"> <a href="http://www.thoughtcrime.org/software/sslstrip/">sslstrip</a></span></b> &#8211; using HTTPS makes people feel warm, fuzzy and secure. Using sslstrip this security can be attacked, reducing the connection to an unencrypted HTTP session, whereby all the traffic is readable. Banking details, passwords and emails from your boss all in the clear. Even includes a nifty feature where the favicon on the unencrypted connection is replaced with a padlock just to make the user keep that warm and fuzzy feeling.</p>
<p><span style="color: #333333; font-weight: bold; margin-left: 40px; line-height: 20px; margin-top: 12px;">Defending against sslstrip:</span> <div class="shortcode-unorderedlist tick"></p>
<ul>
<li>Be aware of the possibility of <a href="http://en.wikipedia.org/wiki/Man-in-the-middle_attack" title="Man in the Middle Attack">MITM</a> attacks (arp, proxies / gateway, wireless).</li>
<li>Look for sudden protocol changes in browser bar. <i>Not really a technical mitigation!</i></li>
</ul>
<p></div>
</p>
<p><b><span class="dropcap">4.</span><!--/.dropcap--><span style="font-size: 1.3em;"> <a href="http://blog.infobytesec.com/2010/10/evilgrade-20-update-explotation.html">evilgrade</a></span></b> &#8211; another man in the middle attack. Everyone knows that keeping software updated is the way to stay secure. This little utility fakes the upgrade and provides the user with a not so good update. Can exploit the upgrade functionality on around 63 pieces of software including Opera, Notepad++, VMware, Virtualbox, itunes, quicktime and <span class="shortcode-highlight">winamp!</span><!--/.shortcode-highlight--> <i>It really whips the llamas ass!</i></p>
<p><span style="color: #333333; font-weight: bold; margin-left: 40px; line-height: 20px; margin-top: 12px;">Defending against evilgrade:</span> <div class="shortcode-unorderedlist tick"></p>
<ul>
<li>Be aware of the possibility of <a href="http://en.wikipedia.org/wiki/Man-in-the-middle_attack" title="Man in the Middle Attack">MITM</a> attacks (arp attacks, proxy / gateway, wireless).</li>
<li>Only perform updates to your system or applications on a trusted network.</li>
</ul>
<p></div>
</p>
<p><b><span class="dropcap">5.</span><!--/.dropcap--><span style="font-size: 1.3em;"> <a href="https://www.trustedsec.com/downloads/social-engineer-toolkit/">Social Engineer Toolkit</a></span></b> &#8211; makes creating a social engineered client side attack way too easy. Creates the spear phish, sends the email and serves the malicious exploit. SET is the open source client side attack weapon of choice.</p>
<p><span style="color: #333333; font-weight: bold; margin-left: 40px; line-height: 20px; margin-top: 12px;">Defending against SET:</span> <div class="shortcode-unorderedlist tick"></p>
<ul>
<li>User awareness training around spear phishing attacks.</li>
<li>Strong Email and Web filtering controls.</li>
</ul>
<p></div>
</p>
<p><b><span class="dropcap">6.</span><!--/.dropcap--><span style="font-size: 1.3em;"> <a href="http://sqlmap.org/">sqlmap</a></span></b> &#8211; SQL Injection is an attack vector that has been around for over 10 years. Yet it is still the easiest way to get dumps of entire databases of information. Sqlmap is not only a highly accurate tool for detecting sql injection; but also has the capability to dump information from the database and to even launch attacks that can result in operating system shell access on the vulnerable system.</p>
<p><span style="color: #333333; font-weight: bold; margin-left: 40px; line-height: 20px; margin-top: 12px;">Defending against sqlmap:</span> <div class="shortcode-unorderedlist tick"></p>
<ul>
<li>Filter all input on dynamic websites (secure the web applications).</li>
<li>Use mod_proxy or other web based filtering controls to help block malicious injection attacks (not ideal as often able to bypass these web application firewalls (WAF).</li>
</ul>
<p></div>
</p>
<p><b><span class="dropcap">7.</span><!--/.dropcap--><span style="font-size: 1.3em;"> <a href="http://www.aircrack-ng.org/">aircrack-ng</a></span></b> &#8211; breaking holes in wireless networks for fun and profit. A suite of tools that enables all manner of wireless network attacks.</p>
<p><span style="color: #333333; font-weight: bold; margin-left: 40px; line-height: 20px; margin-top: 12px;">Defending against aircrack-ng:</span> <div class="shortcode-unorderedlist tick"></p>
<ul>
<li>Never use WEP</li>
<li>When using WPA2 with pre-shared keys, ensure passwords are strong (10+ characters non-dictionary based passwords).</li>
</ul>
<p></div>
</p>
<p><b><span class="dropcap">8.</span><!--/.dropcap--><span style="font-size: 1.3em;"> <a href="http://hashcat.net/oclhashcat-plus/">oclHashcat</a></span></b> &#8211; Need to get some passwords from the hashes you grabbed with sqlmap? Use this tool to bust them open. Over 48 different hashing algorithms supported. Will use the GPU (if supported) on your graphics card to find those hashes many times faster than your clunky old CPU.</p>
<p><span style="color: #333333; font-weight: bold; margin-left: 40px; line-height: 20px; margin-top: 12px;">Defending against oclHashcat:</span> <div class="shortcode-unorderedlist tick"></p>
<ul>
<li>Passwords are the weakest link. Enforce password complexity.</li>
<li>Protect the hashed passwords.</li>
<li>Salt the hashes.</li>
</ul>
<p></div>
</p>
<p><b><span class="dropcap">9.</span><!--/.dropcap--><span style="font-size: 1.3em;"> <a href="http://nmap.org/ncrack/">ncrack</a></span></b> &#8211; Brute force network passwords with this tool from Fyodor the creator of Nmap. Passwords are the weakest link and Ncrack makes it easy to brute force passwords for RDP, SSH, http(s), SMB, pop3(s), VNC, FTP, and telnet.</p>
<p><span style="color: #333333; font-weight: bold; margin-left: 40px; line-height: 20px; margin-top: 12px;">Defending against ncrack:</span> <div class="shortcode-unorderedlist tick"></p>
<ul>
<li>Use strong passwords everywhere.</li>
<li>Implement time based lockouts on network service password failures.</li>
</ul>
<p></div>
</p>
<p><b><span class="dropcap">10.</span><!--/.dropcap--><span style="font-size: 1.3em;"> <a href="http://www.oxid.it/">Cain and Abel</a></span></b> &#8211; Cracking passwords, sniffing VOIP and Man in the Middle (MITM) attacks against RDP are just a few examples of the many features of this Windows only tool.</p>
<p><span style="color: #333333; font-weight: bold; margin-left: 40px; line-height: 20px; margin-top: 12px;">Defending against Cain and Abel:</span> <div class="shortcode-unorderedlist tick"></p>
<ul>
<li>Be aware of the possibility of <a href="http://en.wikipedia.org/wiki/Man-in-the-middle_attack" title="Man in the Middle Attack">MITM</a> attacks (arp attacks, untrusted proxy / gateway, wireless).</li>
<li>Use strong passwords everywhere.</li>
</ul>
<p></div>
</p>
<p><b><span class="dropcap">11.</span><!--/.dropcap--><span style="font-size: 1.3em;"> <a href="http://www.torproject.org">Tor</a></span></b> &#8211; push your traffic through this <span class="shortcode-highlight">onion network</span><!--/.shortcode-highlight--> that is designed to provide anonymity to the user. Note your traffic from the exit node is not encrypted or secured. Make sure you understand what it does before using it, Tor provides anonymity not encrypted communication.</p>
<p><span style="color: #333333; font-weight: bold; margin-left: 40px; line-height: 20px; margin-top: 12px;">Defending against Tor:</span> <div class="shortcode-unorderedlist tick"></p>
<ul>
<li>It is possible to implement blocking of Tor exit nodes on your firewall, if Tor traffic is linked to a threat to your environment.</li>
</ul>
<p></div>
</p>
<p>If you are interested in testing these offensive security tools you should take a look at the <a href="http://www.backtrack-linux.org/">BackTrack Linux</a> distribution. It includes many of these and other tools pre-installed.</p>
<p>These tools are used by security professionals around the world to demonstrate security weakness.</p>
<div class="woo-sc-box alert   ">Only experiment on your local network where you have permission.<br /><b>Do not do anything stupid</b>. You could end up in jail.</div>
<p>The post <a href="http://hackertarget.com/11-offensive-security-tools/">11 Offensive Security Tools for SysAdmins</a> appeared first on <a href="http://hackertarget.com">Online Vulnerability Scanners and Port Scans</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://hackertarget.com/11-offensive-security-tools/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>10 Essential Open Source Security Tools</title>
		<link>http://hackertarget.com/10-open-source-security-tools/</link>
		<comments>http://hackertarget.com/10-open-source-security-tools/#comments</comments>
		<pubDate>Thu, 27 Sep 2012 11:30:15 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Security Research]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[open source]]></category>
		<category><![CDATA[security tools]]></category>

		<guid isPermaLink="false">http://hackertarget.com/?p=3793</guid>
		<description><![CDATA[<p>There are thousands of open source security tools with both defensive and offensive security capabilities. The following are 10 essential security tools that will help you to secure your systems and networks. These open source security tools have been given the essential rating due to the fact that they are effective, well supported and easy [...]</p><p>The post <a href="http://hackertarget.com/10-open-source-security-tools/">10 Essential Open Source Security Tools</a> appeared first on <a href="http://hackertarget.com">Online Vulnerability Scanners and Port Scans</a>.</p>]]></description>
				<content:encoded><![CDATA[<p>There are thousands of open source security tools with both defensive and offensive security capabilities.</p>
<p>The following are 10 essential security tools that will help you to secure your systems and networks. These open source security tools have been given the essential rating due to the fact that they are effective, well supported and easy to start getting value from.</p>
<p><b>1. <a href="http://nmap.org">Nmap</a></b> &#8211; map your network and ports with the number one <a href="http://hackertarget.com/nmap-online-port-scanner/">port scanning tool</a>. Nmap now features powerful NSE scripts that can detect vulnerabilities, misconfiguration and security related information around network services. After you have <a href="http://hackertarget.com/nmap-tutorial/">nmap installed</a> be sure to look at the features of the included ncat &#8211; its netcat on steroids.</p>
<p><b>2. <a href="http://openvas.org">OpenVAS</a></b> &#8211; open source vulnerability scanning suite that grew from a fork of the Nessus engine when it went commercial. Manage all aspects of a security vulnerability management system from web based dashboards. For a fast and easy external scan with OpenVAS try our <a href="http://hackertarget.com/openvas-scan/" title="OpenVAS scanner online">online OpenVAS scanner</a>.</p>
<p><b>3. <a href="http://ossec.net">OSSEC</a></b> &#8211; host based intrusion detection system or HIDS, easy to setup and configure. OSSEC has far reaching benefits for both security and operations staff.</p>
<p><b>4. <a href="http://securityonion.blogspot.com">Security Onion</a></b> &#8211; a network security monitoring distribution that can replace expensive commercial grey boxes with blinking lights. Security Onion is easy to setup and configure. With minimal effort you will start to detect security related events on your network. Detect everything from brute force scanning kids to those nasty APT&#8217;s.</p>
<p><b>5. <a href="http://www.metasploit.com">Metasploit Framework</a></b> &#8211; test all aspects of your security with an offensive focus. Primarily a penetration testing tool, Metasploit has modules that not only include exploits but also scanning and auditing.</p>
<p><b>6. <a href="http://www.openssh.org">OpenSSH</a></b> &#8211; secure all your traffic between two points by tunnelling insecure protocols through an SSH tunnel. Includes scp providing easy access to copy files securely. Can be used as poor mans VPN for Open Wireless Access points (airports, coffee shops). Tunnel back through your home computer and the traffic is then secured in transit. Access internal network services through SSH tunnels using only one point of access. From Windows, you will probably want to have putty as a client and winscp for copying files. Under Linux just use the command line ssh and scp.</p>
<p><b>7. <a href="http://www.wireshark.org">Wireshark</a></b> &#8211; view traffic in as much detail as you want. Use Wireshark to follow network streams and find problems. Tcpdump and Tshark are command line alternatives. Wireshark runs on Windows, Linux, FreeBSD or OSX based systems.</p>
<p><b>8. <a href="http://backtrack-linux.com">BackTrack</a></b> &#8211; an Ubuntu based Linux distribution that is configured with hundreds of security testing tools and scripts. Backtrack is well known with penetration testers and hobbyists alike.</p>
<p><b>9. <a href="http://www.cirt.net/nikto2/">Nikto</a></b> &#8211; a web server testing tool that has been kicking around for over 10 years. Nikto is great for firing at a web server to find known vulnerable scripts, configuration mistakes and related security problems. It won&#8217;t find your XSS and SQL web application bugs, but it does find many things that other tools miss. To get started try the Nikto Tutorial or the online hosted version.</p>
<p><b>10. <a href="http://www.truecrypt.org">Truecrypt</a></b> &#8211; encrypt all the things. Truecrypt is a strong encryption utility that can encrypt entire volumes or create an encrypted container within a file system. Use Truecrypt to protect your flash drives. If it gets lost, even the NSA will have trouble reading the data.</p>
<p>The post <a href="http://hackertarget.com/10-open-source-security-tools/">10 Essential Open Source Security Tools</a> appeared first on <a href="http://hackertarget.com">Online Vulnerability Scanners and Port Scans</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://hackertarget.com/10-open-source-security-tools/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Firewalling Ubuntu with UFW for IPv4 + IPv6</title>
		<link>http://hackertarget.com/firewalling-ubuntu-ufw-ipv4-ipv6/</link>
		<comments>http://hackertarget.com/firewalling-ubuntu-ufw-ipv4-ipv6/#comments</comments>
		<pubDate>Thu, 20 Sep 2012 10:14:53 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Security Research]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[firewall]]></category>
		<category><![CDATA[ipv4]]></category>
		<category><![CDATA[ipv6]]></category>
		<category><![CDATA[port scan]]></category>

		<guid isPermaLink="false">http://hackertarget.com/?p=3779</guid>
		<description><![CDATA[<p>Under Ubuntu you can quickly build an based firewall using the handy built in firewall configuration tool UFW. Network architectures will vary but if you are deploying Internet facing Servers you generally should be configuring a host based firewall. It can provide protection to listening services that don&#8217;t need to be Internet accessible, in addition [...]</p><p>The post <a href="http://hackertarget.com/firewalling-ubuntu-ufw-ipv4-ipv6/">Firewalling Ubuntu with UFW for IPv4 + IPv6</a> appeared first on <a href="http://hackertarget.com">Online Vulnerability Scanners and Port Scans</a>.</p>]]></description>
				<content:encoded><![CDATA[<p>Under Ubuntu you can quickly build an <span class="shortcode-highlight">iptables</span><!--/.shortcode-highlight--> based firewall using the handy built in firewall configuration tool UFW.</p>
<p>Network architectures will vary but if you are deploying Internet facing Servers you generally should be configuring a host based firewall. It can provide protection to listening services that don&#8217;t need to be Internet accessible, in addition a firewall can make life more difficult for an attacker who does gain a foothold. Making it more difficult to create a backdoor listener for example.</p>
<p>When deploying an Ubuntu host based firewall you should also consider using the excellent open source HIDS <a href="/ossec-introduction-and-installation-guide/" title="install ossec on ubuntu">software OSSEC</a>.</p>
<p>The Ubuntu documentation portal has a good run down on <a href="https://help.ubuntu.com/community/UFW">implementing UFW</a>.</p>
<h2>Here is my shorter summary of UFW and Ubuntu Firewalls</h2>
<p>Set the default rule, in case you are wondering this should be default DENY.</p>
<pre class="brush: bash; title: ; notranslate">sudo ufw default deny</pre>
<p>Logging is generally another good idea, lets enable it.</p>
<pre class="brush: bash; title: ; notranslate">sudo ufw logging on</pre>
<p>If you are connected over SSH then set your SSH allow rule <span class="shortcode-highlight">now</span><!--/.shortcode-highlight-->.</p>
<pre class="brush: bash; title: ; notranslate">sudo ufw allow 22/tcp</pre>
<p>HackerTarget.com runs SSH on 2222 to avoid brute forcing SSH bots. So the command is:</p>
<pre class="brush: bash; title: ; notranslate">sudo ufw allow 2222/tcp</pre>
<p>Now turn the firewall on (this applies the iptables commands).</p>
<pre class="brush: bash; title: ; notranslate">sudo ufw enable</pre>
<p>To turn the firewall off.</p>
<pre class="brush: bash; title: ; notranslate">sudo ufw disable</pre>
<p>Allow port 80 (for your webserver to server HTTP).</p>
<pre class="brush: bash; title: ; notranslate">sudo ufw allow 80/tcp</pre>
<p>Allow port 443 (as we have SSL enabled for our clients security).</p>
<pre class="brush: bash; title: ; notranslate">sudo ufw allow 443/tcp</pre>
<p>Allow port 25 (for your Email SMTP)</p>
<pre class="brush: bash; title: ; notranslate">sudo ufw allow 25/tcp</pre>
<p>You get the idea, it is also possible to enable rules that allow and block from specific IP addresses, after all it is just a script for iptables. See the <a href="https://help.ubuntu.com/community/UFW">Ubuntu Docs</a> for details on this.</p>
<pre class="brush: bash; title: ; notranslate">sudo ufw status</pre>
<p>This command shows that the firewall is running and configured, <b>now you should do a <a href="/nmap-online-port-scanner/" title="Online HackerTarget.com Port Scanner">port scan</a> and test it for real</b>.</p>
<p>Since we run VPS servers on <a href="http://www.linode.com/?r=798ba6bf0c7bf7abd54b5fddbeef8966f13113de">Linode</a> and have configured dual stack IPv4 and IPv6 addresses our web server is happily serving on both protocols. <span class="shortcode-highlight">iptables and ip6tables</span><!--/.shortcode-highlight--> are two separate commands for the configuration of IPv4 and IPv6 firewalls. The excellent thing about UFW is the above commands enables the firewall on both IP stacks.</p>
<div class="woo-sc-box note   ">Note that when configuring firewalls remotely (ie your remotely hosted webserver) it is a good idea to take care and have an out of band access method as backup in case you break your connection. Many a firewall administrator encounters a period of elevated heart beats while connected remotely to a device&#8230; You push the new firewall configuration and suddenly your RDP or SSH session pauses&#8230;&#8230; of course you don&#8217;t make mistakes and it was just a temporary hiccup with the session now restored. Right?</div>
<p>The post <a href="http://hackertarget.com/firewalling-ubuntu-ufw-ipv4-ipv6/">Firewalling Ubuntu with UFW for IPv4 + IPv6</a> appeared first on <a href="http://hackertarget.com">Online Vulnerability Scanners and Port Scans</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://hackertarget.com/firewalling-ubuntu-ufw-ipv4-ipv6/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Bro-IDS installation in Ubuntu 12.04</title>
		<link>http://hackertarget.com/bro-ids-ubuntu/</link>
		<comments>http://hackertarget.com/bro-ids-ubuntu/#comments</comments>
		<pubDate>Fri, 24 Aug 2012 12:49:07 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Security Research]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[bro]]></category>
		<category><![CDATA[ids]]></category>
		<category><![CDATA[intrusion detection]]></category>

		<guid isPermaLink="false">http://hackertarget.com/?p=3556</guid>
		<description><![CDATA[<p>Bro is a well regarded Intrusion Detection System (IDS) that I have always wanted to play with. In this guide I will install and get started with an install of Bro-IDS on Ubuntu. The detection focus of Bro IDS is more network flow rather than signature based and does not get the same attention as [...]</p><p>The post <a href="http://hackertarget.com/bro-ids-ubuntu/">Bro-IDS installation in Ubuntu 12.04</a> appeared first on <a href="http://hackertarget.com">Online Vulnerability Scanners and Port Scans</a>.</p>]]></description>
				<content:encoded><![CDATA[<p><a href="http://www.bro-ids.org/">Bro</a> is a well regarded Intrusion Detection System (IDS) that I have always wanted to play with. In this guide I will install and get started with an install of Bro-IDS on Ubuntu. </p>
<p>The detection focus of Bro IDS is more network flow rather than signature based and does not get the same attention as Snort or Suricata. In many installations where network defence is taken seriously Bro actually runs alongside Snort. Richard Bejtlich of <a href="http://taosecurity.blogspot.com.au/">TaoSecurity</a> is fan, here is a video introduction.</p>
<p><iframe width="560" height="315" src="http://www.youtube.com/embed/5qF0HtqKFns" frameborder="0" allowfullscreen></iframe></p>
<h2>Now lets get started on the Bro IDS Installation under Ubuntu 12.04</h2>
<p>Grab the required packages with apt-get.</p>
<pre class="brush: bash; title: ; notranslate">apt-get install libncurses5-dev g++ bison flex libmagic-dev libgeoip-dev libssl-dev build-essential python-dev libpcap-dev cmake swig2.0 libssl0.9.8</pre>
<p>Some of these packages I already had installed, but it does not hurt to list all the requirements; apt-get will grab the missing ones and install them for us.</p>
<p>Now we will download bro-ids, we will download and install from source; they have a stable version 2.0 available for Debian 64 bit however there is a dependency issue.</p>
<p>So grab the source tarball, extract and install.</p>
<pre class="brush: bash; title: ; notranslate">wget http://www.bro-ids.org/downloads/release/bro-2.0.tar.gz

tar zxvf bro-2.0.tar.gz
cd bro-2.0
./configure --prefix=/opt/bro2
make
make install</pre>
<p>No errors? Good now add bro to your PATH.</p>
<p>export PATH=/opt/bro2/bin:$PATH</p>
<p>You can also add PATH=/opt/bro2/bin:$PATH to your ~/.profile file in your home directory to make the change permanent.</p>
<p>Bro is a powerful tool, for the most basic of installation steps we will follow the <a href="http://www.bro-ids.org/documentation/quickstart.html">guide on the project page</a>.</p>
<p>Edit the following files before starting:</p>
<pre>$PREFIX/etc/node.cfg  -- configure network interface to monitor
$PREFIX/etc/networks.cfg -- configure local networks
$PREFIX/etc/broctl.cfg -- change MailTo address and the log rotation</pre>
<p>To start the program simply enter broctl at a shell.</p>
<p>You are now in the broctl shell, from where you can give bro commands.</p>
<pre class="brush: bash; title: ; notranslate">[BroControl] &gt;</pre>
<p>The first command to run, since this is a new installation is to run install. We will then run start.</p>
<pre class="brush: bash; title: ; notranslate">
[BroControl] &gt; install
warning: cannot read '/opt/bro2/spool/broctl.dat' (this is ok on first run)
creating policy directories ... done.
installing site policies ... done.
generating standalone-layout.bro ... done.
generating local-networks.bro ... done.
generating broctl-config.bro ... done.
updating nodes ... done.
[BroControl] &gt; start
starting bro ...
[BroControl] &gt; status
Name       Type       Host       Status        Pid    Peers  Started              
bro        standalone localhost  running       22165  0      22 Aug 12:31:55 
</pre>
<p>You now have Bro-IDS running on your system. Woo hoo. This is just the beginning, check out the <a href="http://www.bro-ids.org/documentation/quickstart.html">guide</a> and follow the white rabbit.</p>
<div class="woo-sc-box normal   ">The next part of this experiment in an effective open source security monitoring solution is to integrate Bro with <strong>Enterprise log search and archive</strong> or ELSA (a new Splunk like logging platform) and my preferred Host IDS client OSSEC.</div>
<p>The post <a href="http://hackertarget.com/bro-ids-ubuntu/">Bro-IDS installation in Ubuntu 12.04</a> appeared first on <a href="http://hackertarget.com">Online Vulnerability Scanners and Port Scans</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://hackertarget.com/bro-ids-ubuntu/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Nessus, OpenVAS and Nexpose VS Metasploitable</title>
		<link>http://hackertarget.com/nessus-openvas-nexpose-vs-metasploitable/</link>
		<comments>http://hackertarget.com/nessus-openvas-nexpose-vs-metasploitable/#comments</comments>
		<pubDate>Wed, 22 Aug 2012 12:16:43 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Security Research]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[metasploitable]]></category>
		<category><![CDATA[nessus]]></category>
		<category><![CDATA[nexpose]]></category>
		<category><![CDATA[nmap]]></category>
		<category><![CDATA[nse]]></category>
		<category><![CDATA[openvas]]></category>

		<guid isPermaLink="false">http://hackertarget.com/?p=3471</guid>
		<description><![CDATA[<p>In this high level comparison of Nessus, Nexpose and OpenVAS I have made no attempt to do a detailed metric based analysis. The primary reason for this is that it would be time consuming and difficult to get a conclusive result. This is due to the large differences in not only detection but also categorization [...]</p><p>The post <a href="http://hackertarget.com/nessus-openvas-nexpose-vs-metasploitable/">Nessus, OpenVAS and Nexpose VS Metasploitable</a> appeared first on <a href="http://hackertarget.com">Online Vulnerability Scanners and Port Scans</a>.</p>]]></description>
				<content:encoded><![CDATA[<p>In this high level comparison of <a href="http://hackertarget.com/nessus-5-on-ubuntu-12-04-install-and-mini-review/" title="Nessus 5 install on Ubuntu 12.04">Nessus</a>, <a href="http://hackertarget.com/install-rapid7s-nexpose-community-edition/" title="Install Nexpose on Ubuntu 12.04">Nexpose</a> and <a href="http://hackertarget.com/install-openvas-5-in-ubuntu-12-04/" title="Install OpenVAS 5 on Ubuntu 12.04">OpenVAS</a> I have made no attempt to do a detailed metric based analysis. The primary reason for this is that it would be time consuming and difficult to get a conclusive result. This is due to the large differences in not only detection but also categorization of vulnerabilities by the different solutions.</p>
<p>What I have done is targeted the 3 different vulnerability scanners in a &#8220;black box&#8221; test against a <a href="https://community.rapid7.com/community/metasploit/blog/2012/06/13/introducing-metasploitable-2">Metasploitable version 2</a> Virtualbox.</p>
<h2>Background Info</h2>
<p>In 2010 I planned on doing an OpenVAS vs Nessus review, well it seems time got away and now its the middle of 2012. There is now a new high profile vulnerability scanner on the block; Nexpose from Rapid 7 has gained attention in recent years due to the adoption of its rock star big brother <a href="http://www.metasploit.com/">Metasploit</a>.</p>
<p>In the testing I am deliberately focusing on the network vulnerability scanning capabilities rather than looking at the web application vulnerability detection in detail. It is my belief that a network vulnerability scanner should be capable of identifying poorly configured services, default services that have poor security and software with known security vulnerabilities.</p>
<h2>Notes on the Vulnerability Scanner Testing</h2>
<div class="shortcode-unorderedlist green-dot"></p>
<ul>
<li>External tools that OpenVAS can use have not been installed (apart from Nmap), these external tools being mostly web application vulnerability detection tools including wapiti, Arachni, Nikto and Dirb.</li>
<li>OpenVAS version 5 has been tested with the full scan profile (ports were all TCP ports scanned with Nmap and top 100 UDP ports).</li>
<li>Nessus version 5 was launched using the External network scan profile (also tested with Internal Network Scan however results were similar).</li>
<li>The Nexpose scanner was executed with the Full audit profile.</li>
<li>No tweaking of default scan profiles was undertaken.</li>
<li>No credentials were used during the scan, it was an external network service focused scan.</li>
</ul>
<p></div>

<p><b>These results are only a quick overview I have not followed up every discovered vulnerability to determine false positives and false negatives.</b><br />
<div class="woo-sc-hr"></div><br />
<span style="font-size: 0.8em;"><i>Edit 1st of September 2012 (clarification of scanner versions and plugins used)</i></span><br />
<b>Nessus :</b> The <a href="http://www.tenable.com/products/nessus/nessus-homefeed" title="Nessus Home Feed">home feed</a> was used for the Nessus testing. According to the Tenable website <i>The Nessus HomeFeed gives you the ability to scan your personal home network (up to 16 IP addresses) with the same high-speed, in-depth assessments and agentless scanning convenience that ProfessionalFeed subscribers enjoy.</i>. Note when using the Nessus scanner with the home feed it cannot be used in a professional or commercial environment.<br />
<b>OpenVAS :</b> The default OpenVAS 5 open source signatures and software was used. This is free to use under the GNU General Public License (GNU GPL).<br />
<b>Nexpose :</b> The <a href="http://www.rapid7.com/vulnerability-scanner.jsp" title="Nexpose Community Version">community version of Nexpose</a> was tested. According to the Rapid7 website  <i>&#8221; Nexpose Community Edition is powered by the same scan engine as award-winning Nexpose Enterprise Edition and offers many of the same features.&#8221;</i> With this <a href="http://www.rapid7.com/products/nexpose/compare-editions.jsp">version you can scan</a> up to 32 IP addresses.<br />
<div class="woo-sc-hr"></div><br />
<span style="font-size: 3em; line-height: 48px;">And now for the results&#8230;..</span><br />
<div class="woo-sc-box normal   "><div class="threecol-one"><span style="font-size: 1.8em;font-weight: bold;line-height: 40px">Nessus 5</span><br />
<span style="font-size: 0.9em;color: #666666">External Network Profile</span><br />
</div><div class="threecol-one">
<div style="margin-left: 40px;font-size: 1.2em;vertical-align: top">Critical    <strong>3</strong><br />
High        <strong>6</strong><br />
Medium      <strong>22</strong><br />
Low         <strong>8</strong><br />
Info        <strong>137</strong></div>
</div><div class="threecol-one last"><a href="/sample/nessus-metasploitable-test.pdf"><img src="http://cdn.hackertarget.com/pdf-sample.png" style="padding: 0px;border: 0px;vertical-align: middle"></a></div><br />
<div class="woo-sc-divider flat"></div><br />
</div><div class="threecol-one"><span style="font-size: 1.8em; font-weight: bold; line-height: 40px; margin-left: 12px;">OpenVAS 5</span><br />
<span style="font-size: 0.9em; color: #666666; margin-left: 12px;">Full Audit Scan Profile</span><br />
</div><div class="threecol-one">
<div style="margin-left: 40px; font-size: 1.2em; vertical-align: top;">
High        <strong>38</strong><br />
Medium      <strong>24</strong><br />
Low         <strong>36</strong><br />
Log         <strong>44</strong></div>
</div><div class="threecol-one last"><a href="/sample/openvas-metasploitable-test.html"><img src="http://cdn.hackertarget.com/html-sample.png" style="padding: 0px; border: 0px; vertical-align: middle;"></a></div><br />
<div class="woo-sc-divider flat"></div><div class="woo-sc-box normal   "><div class="threecol-one"><span style="font-size: 1.8em;font-weight: bold;line-height: 40px">Nexpose</span><br />
<span style="font-size: 0.9em;color: #666666">Full Audit Scan Profile</span><br />
</div><div class="threecol-one">
<div style="margin-left: 30px;font-size: 1.2em;vertical-align: top">
Critical <strong>49</strong><br />
Severe      <strong>103</strong><br />
Moderate    <strong>18</strong></div>
</div><div class="threecol-one last"><a href="/sample/nexpose-metasploitable-test.pdf"><img src="http://cdn.hackertarget.com/pdf-sample.png" style="padding: 0px;border: 0px;vertical-align: middle"></a></div><br />
<div class="woo-sc-divider flat"></div><br />
</div>These total numbers without any context around the categorization of findings or the accuracy of the results provides us little value, except to <span class="shortcode-highlight">highlight the wide variation in results</span><!--/.shortcode-highlight--> from the different scanners.</p>
<h2>Analysing a specific sample of Security Issues</h2>
<p>In order to look at some more meaningful results I have examined a sample set of exploitable and mis-configured services on the Metasploitable system.</p>
<div class="woo-sc-box note   ">This is only a sample of exploitable services on the target host. There are <strong>many more vulnerabilities present on the system</strong>; both network services and web application security holes.</div>
<p><a href="/sample/nmap-metasploitable-test.html"><img src="http://cdn.hackertarget.com/html-sample.png" style="padding: 0px; border: 0px; float: right;"></a>At the last minute I decided to include <a href="http://hackertarget.com/nmap-online-port-scanner/" title="Nmap Port Scanner Online">Nmap</a> with its <a href="http://nmap.org/book/nse.html">NSE scripts</a> against the Metasploitable host. The results were interesting to say the least, while not a full blown vulnerability scanner the development of the NSE scripting ability in Nmap makes this powerful tool even more capable.</p>
<p><span style="font-size: 2.6em; line-height: 40px;">the numbers get more interesting&#8230;</span></p>
<p>These are the numbers of vulnerabilities correctly discovered and rated by each vulnerability scanner; from the sample set of exploitable services.</p>
<table class="scanners" style="line-height: 34px; border: 1px; font-size: 1.8em;">
<tr class="odd">
<td>Nessus</td>
<td>OpenVAS</td>
<td>Nexpose</td>
<td>Nmap</td>
</tr>
<tr class="even" style="font-size: 2.0em; line-height: 40px; font-weight: bold;">
<td>7</td>
<td>7</td>
<td>7</td>
<td>6</td>
</tr>
</table>
<p><div class="woo-sc-divider flat"></div><br />
<span style="font-size: 1.6em; font-weight: bold; line-height: 40px; padding-left: 80px; margin-top: 10px; margin-bottom: 20px; color: #666666;">7 out of 15 <font style="color: #ff0000;">security holes</font> identified</span><br />
<div class="woo-sc-divider flat"></div></p>
<table class="scanners" style="line-height: 18px; border: 1px; font-size: 0.9em;">
<tr>
<th>Security Issue</th>
<th>Nessus</th>
<th>OpenVAS</th>
<th>Nexpose</th>
<th>Nmap</th>
</tr>
<tr>
<td style="vertical-align: middle;">FTP 21<br />Anonymous FTP Access</td>
<td><img src="http://cdn.hackertarget.com/24-tick.png" style="border: 0px; vertical-align: middle; align: center;"></td>
<td><img src="http://cdn.hackertarget.com/24-tick.png" style="border: 0px; vertical-align: middle; align: center;"></td>
<td><img src="http://cdn.hackertarget.com/24-tick.png" style="border: 0px; vertical-align: middle; align: center;"></td>
<td><img src="http://cdn.hackertarget.com/24-tick.png" style="border: 0px; vertical-align: middle; align: center;"></td>
</tr>
<tr>
<td style="vertical-align: middle;">FTP 21<br />VsFTPd Smiley Face Backdoor</td>
<td><img src="http://cdn.hackertarget.com/24-tick.png" style="border: 0px; vertical-align: middle;"></td>
<td><img src="http://cdn.hackertarget.com/24-tick.png" style="border: 0px; vertical-align: middle;"></td>
<td></td>
<td></td>
</tr>
<tr>
<td style="vertical-align: middle;">FTP 2121<br />ProFTPD Vulnerabilities</td>
<td></td>
<td><img src="http://cdn.hackertarget.com/24-tick.png" style="border: 0px; vertical-align: middle;"></td>
<td></td>
<td></td>
</tr>
<tr>
<td style="vertical-align: middle;">SSH 22<br />Weak Host Keys</td>
<td><img src="http://cdn.hackertarget.com/24-tick.png" style="border: 0px; vertical-align: middle;"></td>
<td><img src="http://cdn.hackertarget.com/information-gathering.png" style="border: 0px; vertical-align: middle;" id="vuln-1" title="This is detected with the Debian Local Checks Plugin, this requires a credential based scan"></td>
<td><img src="http://cdn.hackertarget.com/24-tick.png" style="border: 0px; vertical-align: middle;"></td>
<td></td>
</tr>
<tr>
<td style="vertical-align: middle;">PHP-CGI<br />Query String Parameter Injection</td>
<td><img src="http://cdn.hackertarget.com/24-tick.png" style="border: 0px; vertical-align: middle;"></td>
<td><img src="http://cdn.hackertarget.com/24-tick.png" style="border: 0px; vertical-align: middle;"></td>
<td><img src="http://cdn.hackertarget.com/24-tick.png" style="border: 0px; vertical-align: middle;"></td>
<td><img src="http://cdn.hackertarget.com/24-tick.png" style="border: 0px; vertical-align: middle;"></td>
</tr>
<tr>
<td style="vertical-align: middle;">CIFS<br />Null Sessions</td>
<td><img src="http://cdn.hackertarget.com/24-tick.png" style="border: 0px; vertical-align: middle;"></td>
<td><img src="http://cdn.hackertarget.com/24-tick.png" style="border: 0px; vertical-align: middle;"></td>
<td><img src="http://cdn.hackertarget.com/24-tick.png" style="border: 0px; vertical-align: middle;"></td>
<td><img src="http://cdn.hackertarget.com/24-tick.png" style="border: 0px; vertical-align: middle;"></td>
</tr>
<tr>
<td style="vertical-align: middle;">INGRESLOCK 1524<br />known backdoor drops to root shell</td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td style="vertical-align: middle;">NFS 2049<br />/* exported and writable</td>
<td><img src="http://cdn.hackertarget.com/information-gathering.png" style="border: 0px; vertical-align: middle;" id="vuln-2" title="Nessus classed this dangerous vulnerability as Medium level"></td>
<td><img src="http://cdn.hackertarget.com/24-tick.png" style="border: 0px; vertical-align: middle;"></td>
<td><img src="http://cdn.hackertarget.com/information-gathering.png" style="border: 0px; vertical-align: middle;" id="vuln-3" title="Nexpose classed this dangerous vulnerability as Severe (its lowest level)"></td>
<td></td>
</tr>
<tr>
<td style="vertical-align: middle;">MYSQL 3306<br />weak auth (root with no password)</td>
<td><img src="http://cdn.hackertarget.com/24-tick.png" style="border: 0px; vertical-align: middle;"></td>
<td><img src="http://cdn.hackertarget.com/24-tick.png" style="border: 0px; vertical-align: middle;"></td>
<td><img src="http://cdn.hackertarget.com/24-tick.png" style="border: 0px; vertical-align: middle;"></td>
<td><img src="http://cdn.hackertarget.com/24-tick.png" style="border: 0px; vertical-align: middle;"></td>
</tr>
<tr>
<td style="vertical-align: middle;">RMI REGISTRY 1099<br />Insecure Default Config</td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td style="vertical-align: middle;">DISTCCd 3632<br />distributed compiler</td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td style="vertical-align: middle;">POSTGRESQL 5432<br />weak auth (postgresql)</td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td style="vertical-align: middle;">VNC 5900<br />weak auth (password)</td>
<td></td>
<td></td>
<td><img src="http://cdn.hackertarget.com/24-tick.png" style="border: 0px; vertical-align: middle;"></td>
<td></td>
</tr>
<tr>
<td style="vertical-align: middle;">IRC 6667<br />Unreal IRCd Backdoor</td>
<td></td>
<td></td>
<td></td>
<td><img src="http://cdn.hackertarget.com/24-tick.png" style="border: 0px; vertical-align: middle;"></td>
</tr>
<tr>
<td style="vertical-align: middle;">Tomcat 8180<br />weak auth (tomcat/tomcat)</td>
<td><img src="http://cdn.hackertarget.com/24-tick.png" style="border: 0px; vertical-align: middle;"></td>
<td></td>
<td><img src="http://cdn.hackertarget.com/24-tick.png" style="border: 0px; vertical-align: middle;"></td>
<td><img src="http://cdn.hackertarget.com/24-tick.png" style="border: 0px; vertical-align: middle;"></td>
</tr>
</table>
<div class="woo-sc-divider"></div>
<h2>Notes about the sample set of tests</h2>
<div class="shortcode-unorderedlist green-dot"></p>
<ul>
<li>All of the above vulnerabilities and mis-configurations with the exception of Anonymous FTP can be exploited to gain <strong>shells on the system</strong> (in most cases with root privileges) using Metasploit or other methods.</li>
<li>There are a number of examples where the scanners do not detect weak or default credentials. While we were not specifically testing passwords, if MySQL is being checked for weak credentials why not other services?</li>
<li>Items such as the INGRESLOCK backdoor and the Unreal IRCd vulnerability are fairly obscure, however this makes them good examples for testing overall capability.</li>
<li>The <a href="https://community.rapid7.com/docs/DOC-1875">Metasploitable version 2</a> release page has good examples of exploiting many of the mis-configurations in this list. This highlights not only how a poorly configured service can lead to a root shell but also the fact that vulnerability scanners need to be able to detect these types of security related mis-configurations.</li>
</ul>
<p></div>

<div class="woo-sc-box info   ">These scans were conducted in a black box manner, when running internal scans it is recommended to perform credential supplied scanning. This means providing the vulnerability scanning tool with valid Windows domain, SSH or other valid authorisation so that it is able to perform checks against the local system. This is of most value when looking for missing patches in an operating system or third party software and detecting installed applications.</div>
<h2>Conclusion</h2>
<p>Vulnerability scanning is an important security control that should be implemented by any organisation wishing to secure their IT infrastructure. It is recommended by the <a href="http://www.sans.org/critical-security-controls/control.php?id=4" target="_blank">SANS Institute as a Critical Control</a> and by the US based <a href="http://web.nvd.nist.gov/view/800-53/control?controlName=RA-5" target="_blank">NIST as a Security Management Control</a>.</p>
<p>The results show significant variation in discovered security vulnerabilities by the different tools. It may be helpful to compare vulnerability scanners to anti-virus solutions; they are both an important security control that can enhance an organisations security posture. However as with anti-virus, a vulnerability scanner will not find all the bad things.</p>
<p>This will be common knowledge for most in the security industry who have performed network vulnerability testing. When performing vulnerability scanning, it is necessary to check the results for accuracy (false positives) and to actively look for things that were missed (false negatives).</p>
<p>My recommended approach to vulnerability scanning is to:<br />
<div class="shortcode-unorderedlist tick"></p>
<ul>
<li>tune the vulnerability scan profiles to suit your requirements</li>
<li>perform detailed analysis of the results</li>
<li>run secondary tools (nmap, a secondary vulnerability scanning solution and / or specialised tools). The use of multiple tools will provide a greater level of coverage and assist in confirming discovered vulnerabilities.</li>
</ul>
<p></div>
</p>
<p>Feedback and corrections are most welcome, drop me a mail &#8211; peter (at) hackertarget.com or use the comments below.</p>
<div class="woo-sc-box normal   "><span style="font-size: 1.1em;line-height: 24px">If you have not visited <a href="http://hackertarget.com/">HackerTarget.com</a> before take a look at our <strong>Online <a href="http://hackertarget.com/openvas-scan/" title="online openvas scanner">OpenVAS scanner</a> and other tools</strong>, it is my belief that performing internal focused testing in conjunction with external facing vulnerability scans adds value when working to secure Internet connected networks or servers.</span></div>
<p><code><script type='text/javascript'>
jQuery(document).ready(function ($) { 
   $('#vuln-1').tipsy({fade: true, gravity: 's', delayOut: 1000});
   $('#vuln-2').tipsy({fade: true, gravity: 's', delayOut: 1000});
   $('#vuln-3').tipsy({fade: true, gravity: 's', delayOut: 1000});
  });
</script></code></p>
<p>The post <a href="http://hackertarget.com/nessus-openvas-nexpose-vs-metasploitable/">Nessus, OpenVAS and Nexpose VS Metasploitable</a> appeared first on <a href="http://hackertarget.com">Online Vulnerability Scanners and Port Scans</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://hackertarget.com/nessus-openvas-nexpose-vs-metasploitable/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
		<item>
		<title>Bing Azure API with a simple Python script under Ubuntu</title>
		<link>http://hackertarget.com/bing-azure-api-python-ubuntu/</link>
		<comments>http://hackertarget.com/bing-azure-api-python-ubuntu/#comments</comments>
		<pubDate>Wed, 22 Aug 2012 11:44:26 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Tools]]></category>
		<category><![CDATA[api. python]]></category>
		<category><![CDATA[bing]]></category>
		<category><![CDATA[tools]]></category>

		<guid isPermaLink="false">http://hackertarget.com/?p=3532</guid>
		<description><![CDATA[<p>To use the Bing Azure Marketplace API from the command line in Ubuntu I used Python and the following method. No doubt there are many more ways to skin this cat but this got it working for me. With that I was able to integrate the results into my scans on HackerTarget.com. Background on the [...]</p><p>The post <a href="http://hackertarget.com/bing-azure-api-python-ubuntu/">Bing Azure API with a simple Python script under Ubuntu</a> appeared first on <a href="http://hackertarget.com">Online Vulnerability Scanners and Port Scans</a>.</p>]]></description>
				<content:encoded><![CDATA[<p>To use the Bing Azure Marketplace API from the command line in Ubuntu I used Python and the following method. No doubt there are many more ways to skin this cat but this got it working for me. With that I was able to integrate the results into my scans on <a href="http://hackertarget.com/">HackerTarget.com</a>.</p>
<h2>Background on the Bing Azure API</h2>
<p>A couple of months ago Microsoft released an update to the API they use for developer access to Bing Search. To summarise, anyone with a Microsoft account (live, outlook.com etc), can access the Bing search engine via an API. The only restriction for Free users is that it is limited to 5000 queries per month. If you want more than that you have to pay, wait a month or find another method&#8230;</p>
<h2>Getting Started in Ubuntu</h2>
<p>I attempted to find the most simple way to perform this task, the difference with the old API is that previously you put the KEY in the URL as a parameter and you could use whatever client you wanted to such as wget, curl or Firefox. Now you need to perform authentication with your KEY in a different manner.</p>
<p>First step is to get yourself a valid Key. Head to the Microsoft Azure Marketplace Website and get one now.</p>
<p>As I mentioned I used Python and the <a href="http://docs.python-requests.org/en/latest/user/install/#distribute-pip">Requests</a> HTTP library.</p>
<p>Under Ubuntu you will need to install the Requests library, to do that I did:</p>
<pre class="brush: bash; title: ; notranslate">apt-get install pipi
pip install requests</pre>
<p>Ok, now for the Python Code, this mini script takes an IP address at the command line and does a Bing IP Address search on it (ip:123.123.123.123). Change the search parameters to whatever you like. Take note that it must be HTML encoded for the API to parse it correctly (ie %27 = &#8216;):</p>
<pre class="brush: bash; title: ; notranslate">#!/usr/bin/python
import requests
import json
from sys import argv
ip = argv[1]
r = requests.get('https://api.datamarket.azure.com/Data.ashx/Bing/Search/v1/Web?Query=%27ip%3A' + ip + '%27&amp;$format=json', auth=(&quot;LhzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzoA=&quot;, &quot;LhzzzzzzzzzzzzzzzzzzzzzzzzzzXC/HBoA=&quot;)).json
for i in r['d']['results']:
   print str(i['DisplayUrl'].encode('ascii', 'ignore')) + '\\' + str(i['Title'].encode('ascii', 'ignore'))
</pre>
<p>This prints the Displayed URL&#8217;s and the Title of each page found, we have then put this in our <a href="http://hackertarget.com/">Domain Profiler</a> and <a href="http://hackertarget.com/">Server Info</a> information gathering tools.</p>
<p>In case you missed it the keys go in the auth parameter on the <strong>requests.get</strong> line above.</p>
<p>The post <a href="http://hackertarget.com/bing-azure-api-python-ubuntu/">Bing Azure API with a simple Python script under Ubuntu</a> appeared first on <a href="http://hackertarget.com">Online Vulnerability Scanners and Port Scans</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://hackertarget.com/bing-azure-api-python-ubuntu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using disk: basic
Content Delivery Network via cdn.hackertarget.com

 Served from: www.hackertarget.com @ 2013-05-21 12:46:05 by W3 Total Cache -->