<?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>Bohack</title>
	<atom:link href="http://www.bohack.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.bohack.com</link>
	<description>Check In and Tune Out!</description>
	<lastBuildDate>Wed, 11 Apr 2012 02:16:46 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
		<item>
		<title>How To Fix GoogleTV and Netflix Problem of We&#8217;re unable to connect you to Netflix</title>
		<link>http://www.bohack.com/2012/04/how-to-fix-googletv-and-netflix-problem-of-were-unable-to-connect-you-to-netflix/</link>
		<comments>http://www.bohack.com/2012/04/how-to-fix-googletv-and-netflix-problem-of-were-unable-to-connect-you-to-netflix/#comments</comments>
		<pubDate>Wed, 11 Apr 2012 02:15:45 +0000</pubDate>
		<dc:creator>Bohack</dc:creator>
				<category><![CDATA[Misc]]></category>
		<category><![CDATA[Error]]></category>
		<category><![CDATA[GoogleTV]]></category>
		<category><![CDATA[Netflix]]></category>

		<guid isPermaLink="false">http://www.bohack.com/?p=644</guid>
		<description><![CDATA[I have a Logitech Revue GoogleTV and recently for no reason at all Netflix stopped working on it. It launches and then gives the error below. It’s simple enough to fix, but will drive you crazy if you experience the problem, since the only options it gives it “Try Again” or “Exit”. This is usually [...]]]></description>
			<content:encoded><![CDATA[<p>I have a Logitech Revue GoogleTV and recently for no reason at all Netflix stopped working on it. It launches and then gives the error below. It’s simple enough to fix, but will drive you crazy if you experience the problem, since the only options it gives it “Try Again” or “Exit”. This is usually caused by conflicting login information caused by Netflix updating their security mechanisms.</p>
<p><span id="more-644"></span></p>
<pre>We're unable to connect you to Netflix. Please try again or visit www.netflix.com/tvhelp for guidance.</pre>
<p>The fix to this problem is:</p>
<p><strong>Option 1 – Clear Netflix Cache</strong></p>
<ol>
<li>Go to Google TV settings &gt; Applications &gt; Manage Applications &gt; Netflix &gt; Clear Cache. There are two listing and you have to do it to both of them.</li>
<li>Now reboot the Revue by pressing [Ctrl]+[Alt]+[Del] to reboot.</li>
<li>Launch Netflix and reenter your account information.</li>
</ol>
<p><strong>Option 2 – Deactivate and Reactivate Netflix</strong></p>
<ol>
<li>Open the Netflix application</li>
<li>Press Up, Up, Down, Down, Left, Right, Left, Right, Up, Up, Up, and Up</li>
<li>You should see the account information page click &#8220;Deactivate&#8221;.</li>
<li>Now reboot the Revue by pressing [Ctrl]+[Alt]+[Del].</li>
<li>Launch Netflix and reenter your account information.</li>
</ol>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bohack.com/2012/04/how-to-fix-googletv-and-netflix-problem-of-were-unable-to-connect-you-to-netflix/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How To Solve Common Problems with VOIP and Fire Alarm Systems Dialing Out – Part 3</title>
		<link>http://www.bohack.com/2012/04/how-to-solve-common-problems-with-voip-and-fire-alarm-systems-dialing-out-part-3/</link>
		<comments>http://www.bohack.com/2012/04/how-to-solve-common-problems-with-voip-and-fire-alarm-systems-dialing-out-part-3/#comments</comments>
		<pubDate>Sat, 07 Apr 2012 05:16:40 +0000</pubDate>
		<dc:creator>Bohack</dc:creator>
				<category><![CDATA[Telco]]></category>
		<category><![CDATA[VOIP]]></category>

		<guid isPermaLink="false">http://www.bohack.com/?p=634</guid>
		<description><![CDATA[In the part two I covered transmit and receive volume and DTMF Relay. In this last part we roll up our sleeves and look at some tcpdumps in Wireshark. This is how we can identify issues and remedy them with the past two articles. First we need to get the dump and if you have [...]]]></description>
			<content:encoded><![CDATA[<p>In the part two I covered transmit and receive volume and DTMF Relay. In this last part we roll up our sleeves and look at some tcpdumps in Wireshark. This is how we can identify issues and remedy them with the past two articles.</p>
<p><span id="more-634"></span>First we need to get the dump and if you have your ATA directly connected to a firewall, you may need to put a hub in and capture the old fashion way or span a port. If you are using a Linux based firewall you can always use the tcpdump command. I run all of my ATAs to a central Linux Asterisk box. So no matter how you get the dump, you need to capture the packets.</p>
<p>Assuming you are on a Linux box either spanned off a port or sniffing in promiscuous mode on a hub, you need the proper command to capture the traffic. Using the tcpdump command is the easiest, use the command below to capture a dump that you can view in Wireshark.</p>
<pre>tcpdump -i eth0 -s 1500 -w ~/dump.cap</pre>
<p>The preceding command will listen on interface eth0. To find your interface you will initiate an “ifconfig –a”, to list your interfaces. It will capture 1500 bytes of data rather than the 68 bytes by default. It will dump it to your home directory as the file named dump.cap. To get it over to a windows box I recommend using winscp.</p>
<p><strong>Voice Quality</strong></p>
<p>If you’re lucky enough to be working with an Adtran Total Access AOS ATA router then the command below will work for you. If not other manufacturers like Cisco have similar commands. After the call has been placed you need to analyze the quality, you can do so with the following command:</p>
<pre>Adtran #sh voice quality-stats
      Start                   Lost Discard Delay
ID Time From To Duration Codec Pkts Pkts Avg Max

--------------------------------------------------------------------------------

130 10:38 AM 4125551234 4125551212 5:43 G711u 0 0 50 50
131 10:45 AM 4125551234 4125551212 2:43 G711u 0 0 50 50
132 10:48 AM 4125551234 4125551212 8:16 G711u 5291 0 50 50
133 10:56 AM 4125551234 4125551212 4:49 G711u 27097 0 80 50
134 11:02 AM 4125551234 4125551212 1:03 G711u 0 0 50 50</pre>
<p>The output will not show all calls just the most recent in the buffer. There is plenty of information in the dump above on our calls. The first being the codec used for the placement of the call. If the particular call is data and is going over g729 it will fail. If this is the case then it is recommended to configure the “modem-passthrough” command from part 1 of this series. Because it will force data calls to switch to the g711u or ulaw codec.</p>
<p>Another great piece of information is the lost packets, which are not really lost. They just show up to the destination out of order and inject latency to the RTP protocol. Again the “modem-passthrough” will help with this, as well as putting on a newer version of AOS. Some of these problems have been solved in later releases that have tuned the DSP or Digital Signal Processor.</p>
<p>You can also see the delay of the packets which are directly attributed to the jitter buffer. Again the “modem-passthrough” will help with this, as well as putting on a newer version of AOS.</p>
<p>Wireshark can also give you an over view of problems. To get the important information out, use the tcpdump and load it into Wireshark. Once loaded in, click on “Telephony”, then “RTP”, then “Show All Steams”</p>
<a href="http://www.bohack.com/wp-content/uploads/2012/04/Wireshark-RTP-Streams.jpg"  rel="lightbox[634]"  class="lightbox"><img src="http://www.bohack.com/wp-content/uploads/photojar/cache/Wireshark-RTP-Streams-300x300-0-img635.jpg" alt="Wireshark RTP Streams Analysis" title="Wireshark-RTP-Streams" width="300" height="147" class="alignnone size-medium wp-image-635" /></a>
<p>This will show you direction of flow from source IP and port to destination IP and port. It will also display the codec used for the call of either g729 or g711 ulaw. Most importantly it will show you the quality of lost packets, that never showed up on the other side. Your max delta should always be about 20ms. Lastly and not least is the max jitter and mean or average jitter. The lower this is to 0ms the better the call quality. If these are off by too much the Internet connection might be too poor for VOIP let alone data over VOIP.</p>
<p><strong>TX and RX Gain</strong></p>
<p>Although we can use Wireshark and look down to the packet level, I cannot stress the importance of a line man’s butt set to listen to the call. Saying that… We can analyze the packet for improper or low volume. Looking at the VOIP call with Wireshark and playing the audio back will give us a comparison to what we heard. In conjunction with the “tx-gain” and “rx-gain” commands we can see an actual difference in amplitude. My recommendation is to save your dumps with dates and times for comparison. To decode the RTP streams click on “Telephony”, then on “VoIP Calls”, find the call you want to view and select it, then click “Player”, then “Decode”. This will show both sides of the call, so to listen to the converged call you will need to select both, then click “Play”.</p>
<a href="http://www.bohack.com/wp-content/uploads/2012/04/Wireshark-VOIP-Calls-Low.jpg"  rel="lightbox[634]"  class="lightbox"><img src="http://www.bohack.com/wp-content/uploads/photojar/cache/Wireshark-VOIP-Calls-Low-300x300-0-img636.jpg" alt="Wireshark VOIP Call with Low Gain" title="Wireshark-VOIP-Calls-Low-Gain" width="300" height="166" class="alignnone size-medium wp-image-636" /></a>
<a href="http://www.bohack.com/wp-content/uploads/2012/04/Wireshark-VOIP-Calls.jpg"  rel="lightbox[634]"  class="lightbox"><img src="http://www.bohack.com/wp-content/uploads/photojar/cache/Wireshark-VOIP-Calls-300x300-0-img637.jpg" alt="Wireshark VOIP Calls With High Gain" title="Wireshark-VOIP-Calls-High" width="300" height="166" class="alignnone size-medium wp-image-637" /></a>
<p>As you can see in the pictures above the pink capture has lower amplitude than the yellow capture. This is because these are two different units that I captured on, one having a higher RX and TX gain.</p>
<p><strong>DTMF Relay</strong></p>
<p>In the part two of this series I explain DTMF relay in detail. Since most alarm panels transmit data via DTMF tones, we can see the DTMF out of band in action here as well as the bleed over. The yellow Ws are wrong timestamps, which proves that the DTMF relay strips the DTMFs out leaving a jump in timestamps.</p>
<a href="http://www.bohack.com/wp-content/uploads/2012/04/Wireshark-VOIP-Calls-Out-Of-Band.jpg"  rel="lightbox[634]"  class="lightbox"><img src="http://www.bohack.com/wp-content/uploads/photojar/cache/Wireshark-VOIP-Calls-Out-Of-Band-300x300-0-img638.jpg" alt="Wireshark VOIP DTMF Out Of Band" title="Wireshark-VOIP-Calls-Out-Of-Band" width="300" height="166" class="alignnone size-medium wp-image-638" /></a>
<a href="http://www.bohack.com/wp-content/uploads/2012/04/Wireshark-VOIP-Calls-Inf-Band.jpg"  rel="lightbox[634]"  class="lightbox"><img src="http://www.bohack.com/wp-content/uploads/photojar/cache/Wireshark-VOIP-Calls-Inf-Band-300x300-0-img639.jpg" alt="Wireshark VOIP DTMF In Band" title="Wireshark-VOIP-calls-in-Band" width="300" height="166" class="alignnone size-medium wp-image-639" /></a>
<p>The pink capture shows the wrong timestamps and the bleed over of the DTMF tones. The yellow capture is after we initiate the “rtp dtmf-relay inband” command. We can now see the DTMF tones being sent in band of the RTP stream.</p>
<p>Wireshark is like any other tool, it will not fix the problem it will identify the problem. Ultimately you will need to fix the problem being the technician. However understanding what is going on at the packet level, helps us to ultimately fix the problem that can be seen.</p>
<p>As always if you found this article to be useful either donate or visit some of my sponsors so I can continue to create these articles.</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bohack.com/2012/04/how-to-solve-common-problems-with-voip-and-fire-alarm-systems-dialing-out-part-3/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How To Solve Common Problems with VOIP and Fire Alarm Systems Dialing Out – Part 2</title>
		<link>http://www.bohack.com/2012/04/how-to-solve-common-problems-with-voip-and-fire-alarm-systems-dialing-out-part-2/</link>
		<comments>http://www.bohack.com/2012/04/how-to-solve-common-problems-with-voip-and-fire-alarm-systems-dialing-out-part-2/#comments</comments>
		<pubDate>Sat, 07 Apr 2012 03:12:08 +0000</pubDate>
		<dc:creator>Bohack</dc:creator>
				<category><![CDATA[Telco]]></category>
		<category><![CDATA[VOIP]]></category>

		<guid isPermaLink="false">http://www.bohack.com/?p=625</guid>
		<description><![CDATA[This is part two of solving problems with VOIP and fire alarm system panels. The first part can be viewed here http://www.bohack.com/2012/04/how-to-solve-common-problems-with-voip-and-fire-alarm-systems-dialing-out-part-1/ I covered several common problems like POTS lines, on-hook voltage and VOIP quality settings. In this second part I will cover in depth transmit volume or gain, receive volume of gain and out [...]]]></description>
			<content:encoded><![CDATA[<p>This is part two of solving problems with VOIP and fire alarm system panels. The first part can be viewed here <a href="http://www.bohack.com/2012/04/how-to-solve-common-problems-with-voip-and-fire-alarm-systems-dialing-out-part-1/">http://www.bohack.com/2012/04/how-to-solve-common-problems-with-voip-and-fire-alarm-systems-dialing-out-part-1/</a> I covered several common problems like POTS lines, on-hook voltage and VOIP quality settings.</p>
<p><span id="more-625"></span>In this second part I will cover in depth transmit volume or gain, receive volume of gain and out of band handling of DTMFs for Contact ID. These are all common problems with VOIP and fire alarm systems. The system ATA or Analog Telephone Adapter I will focus on is an Adtran with AOS, but these principles can be applied to all ATA devices. I still recommend a backup line of a POTS circuit since nothing replaces a simple POTS line, when you are dealing with life safety equipment.</p>
<p><strong>TX Gain and RX Gain</strong></p>
<p>TX gain or transmit volume and RX gain or receive volume can be an issue with fire, alarm, call boxes and any other type of analog panel. These are simple the volumes at which the information is transmitted or received from your panel. The defaults for an Adtran are a TX gain of -6.0 and an RX gain of -3.0 and this should be fine for most voice applications. However when it comes to data, panels can be picky as to what they expect.</p>
<p>One way to identify a problem is to listen to the panel as it is dialing out and the conversation between the transmitter (you) and the receiver (monitoring station). You can achieve this with a simple line’s man butt set, across the terminals of the phone line on the panel. A better way to identify problems with TX and RX gain is to packet capture the conversation and decode it. This will be covered in depth in part 3 of this series.</p>
<p>To raise or lower the TX and RX gain on an Adtran Total Access 924 you can use these commands:</p>
<pre>Adtran #conf t
Adtran (config)#interface fxs 0/1
Adtran (config-fxs 0/1)#rx-gain 0
Adtran (config-fxs 0/1)#tx-gain -3.0</pre>
<p>Be careful not to turn the gain up too high, since you will over gain the transmitter or receiver. This will work opposite of what you are trying to accomplish, so do it in small increments. The defaults are an rx-gain of -3.0 and a tx-gain of -6.0, so it’s safe to increase it in +3.0 increments.</p>
<p><strong>DTMF and VOIP</strong></p>
<p>DTMF tones are Dual Tone Multi Frequency tones that dial numbers. To understand what the function of an ATA is we must understand the process of a phone. When you go off hook you receive a dial tone, where you use the 12 digit key pad of 0 thru 9 and special dial plan characters like star and pound. This series of tones are picked up by the ATA and turned into a phone number to dial.</p>
<p>With SIP calls there are two distinct communication channels. The SIP channel is a symmetrical port 5060 UDP conversation with your SIP trunk. The RTP channel is what transmits your voice and that is usually carried over port 10000-20000 UDP with a typical Asterisk server. The SIP control channel sets up the RTP channel, and the RTP channel uses this to its advantage to transmit data like DTMF digits.</p>
<p>Many fire alarm panels communicate with DTMF tones. So once the call is setup any digits that are sent to the ATA will be intercepted. The DTMF digits sent are then removed from the RTP stream and are pushed to the SIP channel. This operation is called out of band DTMF relay and is the default of many ATAs. Take notice that at time of dial the RTP channel has not yet been established, this is only after the RTP in established. Sometimes the interception and omission of DTMFs is not clean and tones bleed over on the RTP stream, which is the root of our problem.</p>
<p>The default behavior of an Adtran Total Access 924 is to send DTMFs out of band in the SIP channel. This means that the SIP provider recreate the DTMFs on their end to the upstream provider, from the digits provided over the SIP channel. This is process is often known as DTMF Relay and an Adtran by default is configured with the command “rtp dtmf-relay nte 101”. You can change this behavior with the following command:</p>
<pre>Adtran #conf t
Adtran (config)#voice user 4125551212
Adtran (config-4125551212)# rtp dtmf-relay inband</pre>
<p>This command will tell the TA-924 not to intercept the DTMFs and to send them over the RTP channel. However the DTMFs sent for initial call setup will still travel over the SIP channel, since an RTP is not yet established at this point.</p>
<p>If this article has helped you please either donate or visit some of my sponsors.</p>
<p>The next article in this series can be found here <a href="http://www.bohack.com/2012/04/how-to-solve-common-problems-with-voip-and-fire-alarm-systems-dialing-out-part-3/">http://www.bohack.com/2012/04/how-to-solve-common-problems-with-voip-and-fire-alarm-systems-dialing-out-part-3/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.bohack.com/2012/04/how-to-solve-common-problems-with-voip-and-fire-alarm-systems-dialing-out-part-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How To Solve Common Problems with VOIP and Fire Alarm Systems Dialing Out &#8211; Part 1</title>
		<link>http://www.bohack.com/2012/04/how-to-solve-common-problems-with-voip-and-fire-alarm-systems-dialing-out-part-1/</link>
		<comments>http://www.bohack.com/2012/04/how-to-solve-common-problems-with-voip-and-fire-alarm-systems-dialing-out-part-1/#comments</comments>
		<pubDate>Wed, 04 Apr 2012 03:13:45 +0000</pubDate>
		<dc:creator>Bohack</dc:creator>
				<category><![CDATA[Telco]]></category>
		<category><![CDATA[VOIP]]></category>

		<guid isPermaLink="false">http://www.bohack.com/?p=621</guid>
		<description><![CDATA[In this series I will cover common problems with VOIP and fire alarm panels that are connected to an Adtran ATA or Analog Telephone Adapters. Specifically panels that need to dial outbound, inbound requirements and adjustments are somewhat different. First let me state that nothing replaces a POTS or Plain Old Telephone System line when [...]]]></description>
			<content:encoded><![CDATA[<p>In this series I will cover common problems with VOIP and fire alarm panels that are connected to an Adtran ATA or Analog Telephone Adapters. Specifically panels that need to dial outbound, inbound requirements and adjustments are somewhat different.</p>
<p><span id="more-621"></span>First let me state that nothing replaces a POTS or Plain Old Telephone System line when it comes to life safety devices. So although you may save a ton of money on VOIP the life you save might be your own, if there is a fire or life safety event. You are responsible for keeping the equipment up and running for at least 4 hours in the case of a power outage.</p>
<p><strong>Cheap POTS Lines</strong></p>
<p>That being said it will work, but you will have problems along the way. One alternative is to purchase a low usage POTS line. These are landlines you can purchase from the phone company of your choice that are low usage lines. Low usage lines are used for the explicit purpose of emergency usage like elevators, fire alarm systems, emergency call boxes and burglar alarms. When ordering such a line explain to the sales representative what it will be used for. However VOIP is cheaper and if you are still stuck on converting them then you need to learn how they work and their requirements.</p>
<p><strong>Line Voltage</strong></p>
<p>Since most alarm panels are legacy devices, they could require a higher voltage than what the ATA supplies. The symptoms of low voltage are usually the panel not recognizing the phone line is there and causing a trouble code or false alarm. The simple precaution is to measure the voltage of the normal working panel before you disconnect it. On hook phone line voltage from the phone company is usually between 35 to 48 volts DC. A simple multimeter across the ring and tip can get you this reading, while the phone is on hook.</p>
<p>Since the 1990s most phones are digital and no longer require a battery voltage of 48 volts. So VOIP Analog Telephone Adapters usually only supply 24 to 33 volts of power, this includes PBX equipment with analog cards. If you have an Adtran device with AOS, you can step the voltage up by configuring the command below:</p>
<pre>
Adtran#conf t

Adtran (config)#interface fxs 0/22

Adtran (config-fxs 0/22)#battery-mode high</pre>
<p><strong>VOIP Quality Settings</strong></p>
<p>VOIP stand for Voice Over IP which means that you are sending voice over the Internet. When the RTP or Real Time Protocol packets travel over the Internet three problems get injected. The first being latency; every hop creates latency which is the time it takes to route the packet. Other factor to latency could be caused by congestion of the lines or transmission media like cable vs. fiber. The mechanisms that help voice quality, but work against us with modem and faxing is the jitter buffer. The jitter buffer stores UDP datagrams and puts them back in order, it also introduces latency.</p>
<p>The second is echo cancellation, another mechanism that works against us with data on phone lines. Echo cancellation queues the RTP conversation up or down by up to 100ms if an echo is detected. When modems send data it sometimes triggers this and throws the conversation off between transmitter and receiver.</p>
<p>The third is codec related, which applies to compression and decompression of the voice. If you use g729 it will compress audio using a compression algorithm that tends to lose quality of the audio channel, but use less bandwidth. So g711 ulaw should be used for modem lines. You can shut these three mechanisms off automatically by using the command bellow:</p>
<pre>
Adtran#conf t

Adtran (config)# voice user 4125551212

Adtran (config)# modem-passthrough</pre>
<p>Once configured, if the DSP or Digital Sound Processor hears a modem signal it will: set the jitter buffer to a fixed value of 50ms, it will turn off echo cancellation and most importantly it will force g711 ulaw (which takes more bandwidth, but does not loose quality of the voice channel).</p>
<p>So if your alarm panel dials up with a modem protocol, then this could be your problem. My recommendation is to listen with a phone or lineman’s butt set while it’s dialing out. If you hear the tell tale modem mating call, these adjustments could solve your problem.</p>
<p>As always if this article helped you please donate or visit some of my sponsors.</p>
<p>For part two follow this link <a href="http://www.bohack.com/2012/04/how-to-solve-common-problems-with-voip-and-fire-alarm-systems-dialing-out-part-2/">http://www.bohack.com/2012/04/how-to-solve-common-problems-with-voip-and-fire-alarm-systems-dialing-out-part-2/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.bohack.com/2012/04/how-to-solve-common-problems-with-voip-and-fire-alarm-systems-dialing-out-part-1/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>GHS or Google Host Services IPv4 CIDR Netblock of IP Addresses</title>
		<link>http://www.bohack.com/2012/03/ghs-or-google-host-services-ipv4-cidr-netblock-of-ip-addresses/</link>
		<comments>http://www.bohack.com/2012/03/ghs-or-google-host-services-ipv4-cidr-netblock-of-ip-addresses/#comments</comments>
		<pubDate>Wed, 28 Mar 2012 01:52:51 +0000</pubDate>
		<dc:creator>Bohack</dc:creator>
				<category><![CDATA[Linux / Unix]]></category>
		<category><![CDATA[Networking]]></category>
		<category><![CDATA[Firewall]]></category>
		<category><![CDATA[IPv4]]></category>
		<category><![CDATA[Routing]]></category>

		<guid isPermaLink="false">http://www.bohack.com/?p=619</guid>
		<description><![CDATA[Recently I needed to allow Google thru a firewall and started to track down all of Google’s IPs. GHS or Google Hosted Services is comprised of many IP blocks and they are all used for different purposes.]]></description>
			<content:encoded><![CDATA[<p>Recently I needed to allow Google thru a firewall and started to track down all of Google’s IPs. GHS or Google Hosted Services is comprised of many IP blocks and they are all used for different purposes. In the list below is only the IPv4 blocks and the ranges.</p>
<p><span id="more-619"></span>You can also use the command below to identify all of Google’s mail servers from the SPF record it displays:</p>
<pre>nslookup -q=TXT _netblocks.google.com 8.8.8.8
"v=spf1 ip4:216.239.32.0/19 ip4:64.233.160.0/19 ip4:66.249.80.0/20 ip4:72.14.192.0/18 ip4:209.85.128.0/17 ip4:66.102.0.0/20 ip4:74.125.0.0/16 ip4:64.18.0.0/20 ip4:207.126.144.0/20 ip4:173.194.0.0/16 ?all"</pre>
<p>&nbsp;</p>
<p><strong>Google’s IPv4 CIDR netblock and IP Ranges<br />
</strong></p>
<pre>64.18.0.0/20 – Range (64.18.0.1 to 64.18.15.254)

64.233.160.0/19 – Range (64.233.160.1 to 64.233.191.254)

66.102.0.0/20 – Range (66.102.0.1 to 66.102.15.254)

66.249.80.0/20 – Range (66.249.80.1 to 66.249.95.254)

72.14.192.0/18 – Range (72.14.192.1 to 72.14.255.254)

74.125.0.0/16 – Range (74.125.0.1 to 74.125.255.254)

173.194.0.0/16 – Range (173.194.0.1 to 173.194.255.254)

207.126.144.0/20 – Range (207.126.144.1 to 207.126.159.254)

209.85.128.0/17 – Range (209.85.128.1 to 209.85.255.254)

216.239.32.0/19 – Range (216.239.32.1 to 216.239.63.254)</pre>
<p>If you want to find the current netblocks that Google uses for firewall purposes, just run the nslookup command again. The list above is current as of March 2012.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bohack.com/2012/03/ghs-or-google-host-services-ipv4-cidr-netblock-of-ip-addresses/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How To Compile Asterisk 1.8 on Ubuntu 10.04 LTS x86</title>
		<link>http://www.bohack.com/2012/03/how-to-compile-asterisk-1-8-on-ubuntu-10-04-lts-x86/</link>
		<comments>http://www.bohack.com/2012/03/how-to-compile-asterisk-1-8-on-ubuntu-10-04-lts-x86/#comments</comments>
		<pubDate>Mon, 26 Mar 2012 02:36:08 +0000</pubDate>
		<dc:creator>Bohack</dc:creator>
				<category><![CDATA[Linux / Unix]]></category>
		<category><![CDATA[VOIP]]></category>
		<category><![CDATA[asterisk]]></category>
		<category><![CDATA[PBX]]></category>

		<guid isPermaLink="false">http://www.bohack.com/?p=614</guid>
		<description><![CDATA[During a recent project I found out; that Ubuntu does not have the latest package for Asterisk PBX server. So the only way to get Asterisk 1.8 is to compile it from scratch. So I am going to show you how to compile and install Asterisk 1.8 properly from source.]]></description>
			<content:encoded><![CDATA[<p>During a recent project I found out; that Ubuntu does not have the latest package for Asterisk PBX server. So the only way to get Asterisk 1.8 is to compile it from scratch. So I am going to show you how to compile and install Asterisk 1.8 properly from source.</p>
<p><span id="more-614"></span></p>
<p><strong>The following worked flawlessly on Ubuntu 10.04 LTS x86:</strong></p>
<p>The first step is to login as root or su as root, whichever you choose. You will need to install a few things before you install.</p>
<pre>apt-get install cvs build-essential automake autoconf bison flex libtool libncurses5-dev libssl-dev libgsm1 libgsm1-dev libxml2-dev build-essential linux-headers-`uname -r`</pre>
<p>Then you will need to download the Asterisk 1.8 tar.gz</p>
<pre>cd /usr/src
wget http://downloads.asterisk.org/pub/telephony/asterisk/releases/asterisk-1.8.10.0.tar.gz</pre>
<p>Unzip and untar it:</p>
<pre>tar -zxvf asterisk-1.8.10.0.tar.gz</pre>
<p>Let’s make something:</p>
<pre>cd asterisk-1.8.10.0
./configure</pre>
<p>Wait then:</p>
<pre>make all</pre>
<p>Wait more and then:</p>
<pre>make install
make config</pre>
<p>Start it up:</p>
<pre>/etc/init.d/asterisk start</pre>
<p>If you did it correctly everything should just work! You can confirm this by doing:</p>
<pre>
root@asterisk:/usr/src/asterisk-1.8.10.0# <strong>asterisk -r</strong>
asterisk*CLI&gt; <strong>sip show peers</strong>
Name/username              Host                                    Dyn Forcerport ACL Port     Status
0 sip peers [Monitored: 0 online, 0 offline Unmonitored: 0 online, 0 offline]
asterisk*CLI&gt;
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.bohack.com/2012/03/how-to-compile-asterisk-1-8-on-ubuntu-10-04-lts-x86/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How To Create Complex Passwords From Simple Passwords With Applied Cryptography</title>
		<link>http://www.bohack.com/2012/02/how-to-create-complex-passwords-from-simple-passwords-with-applied-cryptography/</link>
		<comments>http://www.bohack.com/2012/02/how-to-create-complex-passwords-from-simple-passwords-with-applied-cryptography/#comments</comments>
		<pubDate>Mon, 27 Feb 2012 04:26:17 +0000</pubDate>
		<dc:creator>Bohack</dc:creator>
				<category><![CDATA[Security]]></category>
		<category><![CDATA[Cyrptography]]></category>
		<category><![CDATA[Passwords]]></category>

		<guid isPermaLink="false">http://www.bohack.com/?p=610</guid>
		<description><![CDATA[All authentication systems break down to three simple things: something you know, something you have or something you are. Something that you know is a password, something you have is a key and something you are is your physical looks. Since most authentication systems require only your username and a password, a strong password that [...]]]></description>
			<content:encoded><![CDATA[<p>All authentication systems break down to three simple things: something you know, something you have or something you are. Something that you know is a password, something you have is a key and something you are is your physical looks.</p>
<p><span id="more-610"></span>Since most authentication systems require only your username and a password, a strong password that is complex is best. Coming up with good strong passwords that are complex is easy, remembering them is the tough part.<br />
Phonetic passwords contain characters like 2, b, r, i, m, a, 4, and 8 to sound words like to, be, are, I, am, a, for, ate. Using these characters to create a &#8216;leet speak&#8217; password is good, but weak because iterations of these are in ever dictionary attack out there.</p>
<p>An alternative is using salt to key cryptography. A salt is a random numeric number that alters the password to create a key; it is also known as a nonce. The key is irreversible, only the original salt and password can equal the key.</p>
<p><em>salt + password =</em> <strong>key</strong></p>
<p>Since we need to make this easy we will not be using md5 algorithms, instead we will use substitution; just like the Romans only with a twist. We need to first pick our salt, this salt will become yours and you will never disclose your salt ever. It’s like picking your totem from the movie Inception; it is only for you to know.</p>
<p>To pick your salt you will need non-pattered words at least 10 or more characters long, preferably with vowels. The first twelve letters &#8220;e t a o i n s r h l d c&#8221;, are found in around 80% of the words in the English language. You will need to find an isogram or non-pattered word, which means the word does not repeat any letters. I have a few below, none are mine (or maybe they are).</p>
<p>aftershock – artichokes – authorizes – bankruptcy</p>
<p><em>Note: To find more words like these Google the term Isogram.</em></p>
<p>We choose our salt let’s use aftershock. You will take the letters and place numbers above the word from left to right.</p>
<p>A F T E R S H O C K<br />
1 2 3 4 5 6 7  8 9 A</p>
<p>or A=1, F=2, T=3, E=4, R=5, S=6, H=7, O=8, C=9, and K=A</p>
<p>If we have a name like ‘Jonathan’ we want to encrypt we will substitute a letter for number so ‘Jonathan’ would look like this ‘<strong>J8n13h1n</strong>’ this is our encrypted password that we can encrypt over and over again. Knowing our salt is always ‘aftershock’.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bohack.com/2012/02/how-to-create-complex-passwords-from-simple-passwords-with-applied-cryptography/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Converting Active Directory Last Logon Time Integer to a Readable Date and Time</title>
		<link>http://www.bohack.com/2012/02/converting-active-directory-last-logon-time-integer-to-a-readable-date-and-time/</link>
		<comments>http://www.bohack.com/2012/02/converting-active-directory-last-logon-time-integer-to-a-readable-date-and-time/#comments</comments>
		<pubDate>Sat, 25 Feb 2012 21:17:34 +0000</pubDate>
		<dc:creator>Bohack</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Scripts]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[Windows 2008]]></category>
		<category><![CDATA[Active Directory]]></category>
		<category><![CDATA[AD]]></category>
		<category><![CDATA[CMD]]></category>
		<category><![CDATA[Excel]]></category>
		<category><![CDATA[PowerShell]]></category>
		<category><![CDATA[Script]]></category>

		<guid isPermaLink="false">http://www.bohack.com/?p=605</guid>
		<description><![CDATA[If you have every used CSVDE and exported Active Directory objects, you’ve noticed the integer that represents time. Last logon time is one such value that is represented as this integer. There is a way to convert it to time and date that is human readable.]]></description>
			<content:encoded><![CDATA[<p>If you have every used CSVDE and exported Active Directory objects, you’ve noticed the integer that represents time. Last logon time is one such value that is represented as this integer. There is a way to convert it to time and date that is human readable.</p>
<p><span id="more-605"></span><br />
Basically the Integer 8 data type is the large value that is seen on a typical Powershell get-aduser command or csvde from Active Directory. Windows NT and Active Directory store dates as nano ticks or 100-nano second intervals from the Windows NT time epoch; which is January 1st 1601. Please make a note that PowerShell’s epoch is January 1st 0001 which could screw you up if you assume all integers are like NT’s epoch.</p>
<p>So let’s use an integer of “128271382742968750”. There are several methods of converting this I will cover most of them:</p>
<p><strong>Command Line:</strong></p>
<p>Converting logontimestamp from command line:</p>
<pre>C:\&gt;w32tm.exe /ntte 128271382742968750

148462 05:57:54.2968750 - 6/24/2007 8:57:54 AM (local time)</pre>
<p><em>Note: that the results are in GMT and the offset of the computer’s local time is added UTC +3:00 in this example above.</em></p>
<p><strong>PowerShell:</strong></p>
<p>Converting logontimestamp from PowerShell:</p>
<pre>PS C:\&gt;$lastlogontimestamp = “128271382742968750”
PS C:\&gt;[DateTime]::FromFileTimeutc($lastlogontimestamp)

Sunday, June 24, 2007 5:57:54 AM</pre>
<p>To convert using the current computers offset use the code below (current computer offset UTC +3:00):</p>
<pre>PS C:\&gt;[DateTime]::FromFileTime($lastlogontimestamp)

Sunday, June 24, 2007 8:57:54 AM</pre>
<p><em>Note: If you experiment please be sure to open a new PowerShell after changes to the offset of the computer since it is read into the environment only once during powershell launch.</em></p>
<p><strong>Excel:</strong></p>
<p>Lastly converting in excel the integer to human read able time:</p>
<pre>=A1/(8.64*10^11) – 109205</pre>
<ul>
<li>(8.64*10^11) is the number of nanoseconds in a day divided by 100.</li>
<li>109205 is the number of days, including leap days, between 1601 and 1900.</li>
</ul>
<p>This formula would assume that A1 contains the integer of “128271382742968750” and the cell was formatted for date and time. If so it would return:</p>
<p>6/24/07 5:57:54 AM</p>
<p>To calculate offset:</p>
<pre>=A1/(8.64*10^11) - 109205 + time(3,0,0)</pre>
<p>Use the above to add UTC +3 to the time to display the below format:</p>
<p>6/24/07 8:57:54 AM</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bohack.com/2012/02/converting-active-directory-last-logon-time-integer-to-a-readable-date-and-time/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How To Fix A Code 27 Air Bag Code on A Ford Truck</title>
		<link>http://www.bohack.com/2012/01/how-to-fix-a-code-27-air-bag-code-on-a-ford-truck/</link>
		<comments>http://www.bohack.com/2012/01/how-to-fix-a-code-27-air-bag-code-on-a-ford-truck/#comments</comments>
		<pubDate>Sun, 08 Jan 2012 20:59:56 +0000</pubDate>
		<dc:creator>Bohack</dc:creator>
				<category><![CDATA[Mods]]></category>
		<category><![CDATA[Ford]]></category>
		<category><![CDATA[Repair]]></category>

		<guid isPermaLink="false">http://www.bohack.com/?p=595</guid>
		<description><![CDATA[Follow my instructions and for about $2 dollar you can save yourself the expense of changing the entire module. The module F81B-14B268-AD lists for about $80 dollars so it worth the effort.
]]></description>
			<content:encoded><![CDATA[<p>After installing a radio in my 2002 Ford F-250 I found that my air bag light came on. With the key in the ignition position; it flashes 2 times and then another 7 times, which was a code 27 for the air bag system. This code means that your passenger deactivation module is bad.</p>
<p><span id="more-595"></span>Since there is nothing that can really go wrong with this module, it’s actually the off lamp that has gone bad. A quick check can verify this, first the code flashing on your dash. The second is using your key to deactivate the passenger air bag should light the off lamp.<br />
If it doesn’t light then follow my instructions and for about $2 dollar you can save yourself the expense of changing the entire module. The module F81B-14B268-AD lists for about $80 dollars so it worth the effort.</p>
<p>The air bag system goes thru a check of everything and if one little thing light a lamp is out, it deactivates the entire system and set a code. Since the lamp is actually a bulb with a filament it is really common to go bad. You cannot replace it with an LED, because there needs to be continuity across the leads. I’m sure you can put a diode in to show forward voltage, but let’s just fix the bulb with a bulb.</p>
<p>I used a Radio Shack 272-1154 Bi-Pin Lamp bulb as the replacement which is a 12v 50mA bulb. At 12 volts and 50 milliamps it generates 12x.05=.6 watts of energy. You can use a little bigger bulb like 60mA or 70mA; you just don’t want a really bright light on your dashboard. I choose the bulb because it had solid leads; the 272-1099 has wire leads. It’s a little smaller than the original, but it will work just fine.<br />
<strong></strong></p>
<p><strong>Tools you&#8217;ll need:</strong></p>
<ul>
<li>5.5mm socket or 7/32” socket and ratchet</li>
<li>Large flat tip screw driver</li>
<li>Small flat tip jewelry screw driver</li>
<li>Radio Shack 272-1154</li>
<li>Soldering Iron and solder</li>
<li>De-soldering sucker or soldering wick with flux</li>
<li>Pair of small needle nose pliers</li>
<li>About 1 hour of time</li>
</ul>
<p>Step 1 – Removal of the dash board fascia – Use your flat tip screw driver to gently pry the dash board plastic from the dashboard. They use snap clips on mine, but you’re on your own as to how yours is held in place.</p>
<p>Step 2 – Removal of the module from the fascia – Unplug the module’s connector and put it to the side. Use your 7/32” socket or 5.5mm socket and remove the three bolts that hold it onto the dashboard fascia.</p>
<p>Step 3 – Disassembly of the module – Use your jewelry screw driver and pry the tabs on the front of the module; one by one. Then pry the tabs in the back of the module one by one. You will now have three pieces: the switch and body, the circuit board and the top of the module.</p>
<a href="http://www.bohack.com/wp-content/uploads/2012/01/disassembly-of-the-module.jpg"  rel="lightbox[595]"  class="lightbox"><img src="http://www.bohack.com/wp-content/uploads/photojar/cache/disassembly-of-the-module-300x300-0-img597.jpg" alt="Disassembly of the F81B-14B268-AD module" title="Disassembly of the F81B-14B268-AD module" width="300" height="144" class="alignnone size-medium wp-image-597" /></a>
<a href="http://www.bohack.com/wp-content/uploads/2012/01/three-main-module-pieces.jpg"  rel="lightbox[595]"  class="lightbox"><img src="http://www.bohack.com/wp-content/uploads/photojar/cache/three-main-module-pieces-300x300-0-img599.jpg" alt="Three pieces of Module F81B-14B268-AD" title="Three pieces of Module F81B-14B268-AD" width="300" height="179" class="alignnone size-medium wp-image-599" /></a>
<p>Step 4 – Desolder the bulb – You can either use your solder sucker or soldering wick with flux. I personally use desoldering wick, but there is a little talent to it. Remove the rubber yellow cover from the bulb, you will need to reinstall it on the new one.</p>
<a href="http://www.bohack.com/wp-content/uploads/2012/01/soldering-points.jpg"  rel="lightbox[595]"  class="lightbox"><img src="http://www.bohack.com/wp-content/uploads/photojar/cache/soldering-points-300x300-0-img600.jpg" alt="Soldering Point of the Lamp on Module F81B-14B268-AD" title="Soldering Point of the Lamp on Module F81B-14B268-AD" width="300" height="179" class="alignnone size-medium wp-image-600" /></a>
<a href="http://www.bohack.com/wp-content/uploads/2012/01/replacement-bulb.jpg"  rel="lightbox[595]"  class="lightbox"><img src="http://www.bohack.com/wp-content/uploads/photojar/cache/replacement-bulb-300x300-0-img601.jpg" alt="Replacement Lamp of 272-1154 for Module F81B-14B268-AD" title="Replacement Lamp of 272-1154 for Module F81B-14B268-AD" width="300" height="179" class="alignnone size-medium wp-image-601" /></a>
<p>Step 5 – Solder the new bulb in – Use your needle nose pliers and bend the leads (without breaking them) so they fit into the circuit board. The bulb should have a right angle to the leads. Since the bulb cover is bigger than the bulb, just bend the bulb over to clinch the rubber cover. It’s not perfect but it works.</p>
<a href="http://www.bohack.com/wp-content/uploads/2012/01/finished-circuit-board.jpg"  rel="lightbox[595]"  class="lightbox"><img src="http://www.bohack.com/wp-content/uploads/photojar/cache/finished-circuit-board-300x300-0-img602.jpg" alt="Finished Replacement Lamp of 272-1154 for Module F81B-14B268-AD" title="Finished Replacement Lamp of 272-1154 for Module F81B-14B268-AD" width="300" height="179" class="alignnone size-medium wp-image-602" /></a>
<p>Step 6 – Test it – before you reassemble the module take it to the vehicle and plug it in. Turn the key to the ignition position and observe the light; both on the dash and the module.</p>
<p>Step 7 – Reassembly &#8211; If it is all back to normal put the module back together and reinstall the module into the dash.</p>
<p>You’re done, and if you found this article to be of help… Donate or visit some of my sponsers.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bohack.com/2012/01/how-to-fix-a-code-27-air-bag-code-on-a-ford-truck/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>How To Use VLC and Register RTSP (RealMedia) for Internet Explorer</title>
		<link>http://www.bohack.com/2011/11/how-to-use-vlc-and-register-rtsp-realmedia-for-internet-explorer/</link>
		<comments>http://www.bohack.com/2011/11/how-to-use-vlc-and-register-rtsp-realmedia-for-internet-explorer/#comments</comments>
		<pubDate>Fri, 18 Nov 2011 22:16:07 +0000</pubDate>
		<dc:creator>Bohack</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[Windows 7]]></category>
		<category><![CDATA[Regedit]]></category>
		<category><![CDATA[Registry]]></category>

		<guid isPermaLink="false">http://www.bohack.com/?p=587</guid>
		<description><![CDATA[To register the RTSP protocol with Internet Explorer you need to register it with the operating system. This is easily achieved thru a registry edit. So once you register the RTSP with the .reg file below just close Internet Explorer and open it back up. ]]></description>
			<content:encoded><![CDATA[<p>Let me start off by saying I hate Real Player and discourage it&#8217;s use. Having said that an alternative is using VLC Media Player or Video LAN Player (same). It was once said that VLC could play a database file if you opened it up, so it definitely supports a simple RTSP Real Time Streaming Protocol URL. However for the end user it&#8217;s a little complicated, so to make it easier we can register RTSP:// with Internet Explorer and anytime the user comes across an RTSP link; it&#8217;ll just work!</p>
<p><span id="more-587"></span>To register the RTSP protocol with Internet Explorer you need to register it with the operating system. This is easily achieved thru a registry edit, however this article explains it all <a title="http://msdn.microsoft.com/en-us/library/Aa767914.aspx" href="http://msdn.microsoft.com/en-us/library/Aa767914.aspx" target="_blank">http://msdn.microsoft.com/en-us/library/Aa767914.aspx</a>. So once you register the RTSP with the .reg file below just close Internet Explorer and open it back up. VLC will prompt you with a warning, if at this point it doesn&#8217;t show video; open TCP port 554 in your firewall outbound. If you do not have outbound restrictions, like in the case of 99% of home users; it either a bad feed or upgrade your VLC to the latest version.</p>
<p>Firefox will also see the registry change and when a user clicks the link; Firefox will prompt them with an application dialog box then open it in VLC Player. Just check the box to always open without prompting and it&#8217;ll work every time!</p>
<p>This fix will be valid for all users of the computer. I&#8217;m pretty sure you can register it under HKEY_CURRENT_USER on XP and above; to make the change for only that users.</p>
<p>RTSP registry edit file:</p>
<pre>Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\RTSP]
@="URL:Real Time Streaming Protocol"
"URL Protocol"=""

[HKEY_CLASSES_ROOT\RTSP\shell]

[HKEY_CLASSES_ROOT\RTSP\shell\open]

[HKEY_CLASSES_ROOT\RTSP\shell\open\command]
@="C:\\Program Files (x86)\\VideoLAN\\VLC\\vlc.exe -vvv %1"</pre>
<p>Copy the text above into a file of RTSP.reg and double click it to merge it into the registry.</p>
<p><strong>Note: You may have to change the path where your VLC lives.</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://www.bohack.com/2011/11/how-to-use-vlc-and-register-rtsp-realmedia-for-internet-explorer/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

