<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss xmlns:atom="http://www.w3.org/2005/Atom" xmlns:openSearch="http://a9.com/-/spec/opensearch/1.1/" xmlns:georss="http://www.georss.org/georss" xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr="http://purl.org/syndication/thread/1.0" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0"><channel><atom:id>tag:blogger.com,1999:blog-5554915078212081470</atom:id><lastBuildDate>Tue, 08 May 2012 20:00:37 +0000</lastBuildDate><category>Steganography</category><category>cyberraid</category><category>clustering</category><category>mediawiki</category><category>BlackHat2008</category><category>usb thumb drive hardware hack mod artistic</category><category>tools</category><category>sysadmin</category><category>steampunk book review fiction rant</category><category>assessment</category><category>news</category><category>Old School</category><category>movies</category><category>reconfigure</category><category>vulnerability</category><category>certifications</category><category>scifi</category><category>malware</category><category>brightkite</category><category>end-user</category><category>privacy</category><category>ozymandns</category><category>brainstorm</category><category>lvm</category><category>Windows</category><category>Apple</category><category>openvas</category><category>spreadsheets</category><category>safety</category><category>socialengineering</category><category>mainframe</category><category>xampp</category><category>make</category><category>caffeine</category><category>awk</category><category>backtrack</category><category>locks</category><category>xkcd</category><category>CCTV</category><category>2600</category><category>EFS</category><category>thinclient</category><category>email</category><category>DefCon16</category><category>solaris</category><category>z80</category><category>chdk</category><category>hackersforcharity</category><category>dc16badge</category><category>rant</category><category>kids</category><category>patch</category><category>IBM</category><category>facebook</category><category>drama</category><category>attack</category><category>retro</category><category>handhelds</category><category>CAD</category><category>unixtips</category><category>intro</category><category>cheaters</category><category>DefCon17</category><category>screensaver</category><category>metasploit</category><category>memory</category><category>chroot</category><category>OSX</category><category>networking</category><category>dc17badge</category><category>OpenSolaris</category><category>HiD</category><category>heatsink</category><category>ftpd</category><category>desktop</category><category>fire</category><category>flickr</category><category>hackerspace</category><category>worm</category><category>buffer overflow</category><category>QPST</category><category>defense</category><category>meetings</category><category>ubuntu</category><category>jornada</category><category>pfsense</category><category>ccckc</category><category>AIX</category><category>BONJOUR</category><category>svn</category><category>subversion</category><category>google</category><category>RIM</category><category>space</category><category>poe</category><category>virtualization</category><category>Eugene Rabinowitch</category><category>mail</category><category>baz</category><category>education</category><category>Vista</category><category>DefCon18</category><category>dnstunnel</category><category>support</category><category>skills</category><category>contests</category><category>perl</category><category>1U rackmount</category><category>tunneling</category><category>diagnostics</category><category>computer hacker</category><category>newlisp</category><category>risk</category><category>tracing</category><category>leadership</category><category>mechanical</category><category>sleep</category><category>physicalsecurity</category><category>opensource</category><category>charity</category><category>shell</category><category>potty-humor</category><category>frogman</category><category>spyware</category><category>bc</category><category>InfoSec</category><category>clickjacking</category><category>physics</category><category>DIYLockpickSeries</category><category>firewall</category><category>ham</category><category>tether</category><category>hardware</category><category>readingroom</category><category>ethernet</category><category>hack</category><category>recovery</category><category>knowledge</category><category>aesthetic</category><category>explosives</category><category>radio</category><category>threat</category><category>heat</category><category>boot</category><category>ZCN</category><category>robotics</category><category>netbook design evolution</category><category>photography</category><category>Surveillance</category><category>ZendFramework</category><category>ssh</category><category>music</category><category>socialnetworking</category><category>RENDEVOUS</category><category>hackers</category><category>pranks</category><category>linksys</category><category>awareness</category><category>seo</category><category>literature</category><category>phishing</category><category>sudo</category><category>blackberry</category><category>epoch</category><category>wireless</category><category>ipod</category><category>outdoors</category><category>identity</category><category>unix</category><category>netbook</category><category>twitter</category><category>log</category><category>compliance</category><category>coffee</category><category>career</category><category>jasager</category><category>conventions</category><category>package management</category><category>transportation</category><category>install</category><category>mobile</category><category>cable</category><category>Magazines</category><category>rsync</category><category>Websecurity</category><category>Bitblocker</category><category>evasion</category><category>hackerfuel</category><category>storage</category><category>vx8550</category><category>droid2global</category><category>fiction sf literature</category><category>wtf</category><category>application security</category><category>presentation</category><category>holywar</category><category>hamster</category><category>encryption</category><category>base64</category><category>RSS</category><category>sun</category><category>IP</category><category>fon</category><category>web filter</category><category>repair</category><category>insider</category><category>lockpicking</category><category>DumpsterDiving</category><category>cron</category><category>blogs</category><category>laptop</category><category>backup</category><category>humor</category><category>overview</category><category>virtualbox</category><category>terror</category><category>openbsd</category><category>reviews</category><category>mysql</category><category>x11</category><category>LOAD OF CRAP</category><category>FreeBSD</category><category>cloud</category><category>timex sinclair</category><category>foo</category><category>links</category><category>Geek100</category><category>forensics</category><category>bsideskc</category><category>craft</category><category>x10</category><category>software</category><category>scanning</category><category>CPAP</category><category>ssl</category><category>web browser</category><category>stories</category><category>redundancy</category><category>ferret</category><category>oamp</category><category>FreeStuff</category><category>scam</category><category>kansascity</category><category>exploit</category><category>Polls</category><category>e815</category><category>computing</category><category>motion</category><category>mind</category><category>secret</category><category>proxy</category><category>rickroll</category><category>build cheap</category><category>postfix</category><category>sidejacking</category><category>MAC</category><category>googlehacks</category><category>proximity card</category><category>find</category><category>Electronics</category><category>BitPIM</category><category>tech economy cheap</category><category>rumors</category><category>chat</category><category>script</category><category>debian</category><category>LG</category><category>the end</category><category>netbook design evolution technology</category><category>workbench</category><category>motorola</category><category>netbsd</category><category>science</category><category>linux</category><category>apache</category><category>key</category><category>CLI</category><category>wrong</category><category>emacs</category><category>office</category><category>fud</category><category>breach</category><category>kubuntu</category><category>php</category><category>ReactOS</category><category>conspiracy</category><category>programming</category><category>bsd</category><category>syslog</category><category>Gadgets</category><category>games</category><category>audit</category><category>biometric</category><category>nessus</category><category>Search</category><category>television</category><category>isync</category><category>toys</category><category>amp</category><category>guestposts</category><category>xorg</category><category>Stallman</category><category>bluetooth</category><category>antivirus</category><category>evilwifi</category><category>Operatingsystems</category><category>jobs</category><category>3D</category><category>hacks</category><category>RBAC</category><category>history</category><category>microsoft</category><category>white list</category><category>fail</category><category>HiR Info</category><category>fiction</category><category>password</category><category>accounting</category><category>Books</category><title>HiR Information Report</title><description>Covering security, programming, systems administration and other interesting topics.</description><link>http://www.h-i-r.net/</link><managingEditor>noreply@blogger.com (Ax0n)</managingEditor><generator>Blogger</generator><openSearch:totalResults>520</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/HiR" /><feedburner:info uri="hir" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><item><guid isPermaLink="false">tag:blogger.com,1999:blog-5554915078212081470.post-4241225768315315224</guid><pubDate>Tue, 08 May 2012 04:02:00 +0000</pubDate><atom:updated>2012-05-07T23:02:41.881-05:00</atom:updated><title>OpenBSD 5.1 Released: OAMP Updated</title><description>&lt;a href="http://openbsd.org/51.html"&gt;OpenBSD 5.1&lt;/a&gt; was released last week, so the update is a bit overdue. &lt;a href="http://www.h-i-r.net/p/hirs-secure-openbsd-apache-mysql-and.html"&gt;HiR's Secure OpenBSD + AMP&lt;/a&gt; guide has been updated. OpenBSD 4.x is officially unsupported now, so we've dropped the 4.x parts from the guide and refined the rest.

Since we've started covering the setup of an AMP stack on OpenBSD, the process has gotten considerably easier. OpenBSD is a completely viable and stable environment for running almost any PHP/MySQL web app, with a little extra consideration given to the chroot environment and Suhosin hardening patches while you're setting up your applications or programming new ones.&lt;div class="blogger-post-footer"&gt;&lt;P&gt;We are proud members of the &lt;A HREF="http://securitybloggers.net/"&gt;Security Bloggers Network&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;This content originally posted on &lt;A HREF="http://www.h-i-r.net/"&gt;HiR Information Report&lt;/A&gt;. Copyright © 1997-2010, HiR&lt;/P&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5554915078212081470-4241225768315315224?l=www.h-i-r.net' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/pn9HanstUqKh4fD_90j_lDzaSjY/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/pn9HanstUqKh4fD_90j_lDzaSjY/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/pn9HanstUqKh4fD_90j_lDzaSjY/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/pn9HanstUqKh4fD_90j_lDzaSjY/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/HiR?a=2udaSDvu_4U:JiObERpTN_g:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/HiR?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/HiR?a=2udaSDvu_4U:JiObERpTN_g:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/HiR?i=2udaSDvu_4U:JiObERpTN_g:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/HiR?a=2udaSDvu_4U:JiObERpTN_g:F7zBnMyn0Lo"&gt;&lt;img src="http://feeds.feedburner.com/~ff/HiR?i=2udaSDvu_4U:JiObERpTN_g:F7zBnMyn0Lo" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/HiR/~4/2udaSDvu_4U" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/HiR/~3/2udaSDvu_4U/openbsd-51-released-oamp-updated.html</link><author>noreply@blogger.com (Ax0n)</author><thr:total>0</thr:total><feedburner:origLink>http://www.h-i-r.net/2012/05/openbsd-51-released-oamp-updated.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-5554915078212081470.post-8330559213628270947</guid><pubDate>Sun, 04 Mar 2012 04:53:00 +0000</pubDate><atom:updated>2012-03-03T23:15:04.699-06:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">mobile</category><category domain="http://www.blogger.com/atom/ns#">tether</category><category domain="http://www.blogger.com/atom/ns#">motorola</category><category domain="http://www.blogger.com/atom/ns#">droid2global</category><category domain="http://www.blogger.com/atom/ns#">links</category><title>Links: Root, Patch and Tether a Droid 2 Global</title><description>My wife and I have identical phones. She actually got hers before I got mine. Occasionally, I have to tether for troubleshooting, and I set hers up tonight to do the same.&lt;br /&gt;&lt;br /&gt;I encountered a number of stumbling blocks the first time around. Fortunately, other people did all the hard work.  Here are links I found helpful. &lt;br /&gt;&lt;br /&gt;Download the latest SuperOneClick package. You'll have to root your phone. There's no easier way than this: &lt;a href="http://shortfuse.org/"&gt;SuperOneClick - Shortfuse&lt;/a&gt; &lt;br /&gt;&lt;br /&gt;Get the &lt;a href="http://code.google.com/p/android-wifi-tether/"&gt;Android WiFi Tether&lt;/a&gt; APK from Google Code.&lt;br /&gt;&lt;br /&gt;At this point, if you try to tether, you'll run into a similar issue as I've described in previous tethering posts: the authentication string will cause tethered traffic to bounce up against Verizon's wrath warning page.&lt;br /&gt;&lt;br /&gt;You'll need to download RadioComm, and the best way to find that is Google. You'll probably find fresh links to recent versions on XDA Devs or MotorolaFans. Caveat Emptor and all that. Shady download links galore, so be on your guard with good backups and malware protection.  &lt;a href="http://rootzwiki.com/topic/3136-wireless-tether-issues-with-d2g-gingerbread-tether-fix-instructions-updated-102/"&gt;Here are the instructions&lt;/a&gt; to patch your phone's baseband configuration for tethery goodness.&lt;br /&gt;&lt;br /&gt;After that, all should work well.&lt;div class="blogger-post-footer"&gt;&lt;P&gt;We are proud members of the &lt;A HREF="http://securitybloggers.net/"&gt;Security Bloggers Network&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;This content originally posted on &lt;A HREF="http://www.h-i-r.net/"&gt;HiR Information Report&lt;/A&gt;. Copyright © 1997-2010, HiR&lt;/P&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5554915078212081470-8330559213628270947?l=www.h-i-r.net' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/uuS_ydNdLF4O764U_3ydQJoapLY/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/uuS_ydNdLF4O764U_3ydQJoapLY/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/uuS_ydNdLF4O764U_3ydQJoapLY/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/uuS_ydNdLF4O764U_3ydQJoapLY/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/HiR?a=MwktCdN0PIs:rMPF0HBYk6c:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/HiR?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/HiR?a=MwktCdN0PIs:rMPF0HBYk6c:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/HiR?i=MwktCdN0PIs:rMPF0HBYk6c:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/HiR?a=MwktCdN0PIs:rMPF0HBYk6c:F7zBnMyn0Lo"&gt;&lt;img src="http://feeds.feedburner.com/~ff/HiR?i=MwktCdN0PIs:rMPF0HBYk6c:F7zBnMyn0Lo" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/HiR/~4/MwktCdN0PIs" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/HiR/~3/MwktCdN0PIs/links-root-patch-and-tether-droid-2.html</link><author>noreply@blogger.com (Ax0n)</author><thr:total>0</thr:total><feedburner:origLink>http://www.h-i-r.net/2012/03/links-root-patch-and-tether-droid-2.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-5554915078212081470.post-1093779537859216347</guid><pubDate>Wed, 08 Feb 2012 02:38:00 +0000</pubDate><atom:updated>2012-02-07T22:23:30.333-06:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Electronics</category><category domain="http://www.blogger.com/atom/ns#">hardware</category><category domain="http://www.blogger.com/atom/ns#">ham</category><title>Alinco DJ-C1 Hack: Internal Speaker</title><description>&lt;a title="Tiny ham radio transceiver by KC-Bike, on Flickr" href="http://www.flickr.com/photos/kc-bike/6834040193/"&gt;&lt;img src="http://farm8.staticflickr.com/7003/6834040193_85645cdd84_z.jpg" width="359" height="640" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;The Alinco DJ-C1 was made in the 1990s and was a groundbreaking ham radio micro-transceiver about the thickness of an iPhone 4 and with a smaller footprint nearly identical to that of a credit card. It was designed to work on the 2m FM Voice band at 300mW. It featured an integrated microphone, but had no internal speaker from the factory; One had to rely on an earphone or an external speaker/microphone unit such as the one shown above.&lt;br /&gt;&lt;br /&gt;Over time, these micro radios evolved. The DJ-C4 came out at the same time as the C1, and was made for 440 MHz (70cm FM Voice). The DJ-C5 was a bit thicker and was the first to have an integrated speaker and work on both of the above bands. The latest one, the DJ-C7, lacks resemblance to these tiny relics of the late 90s aside from being smallish.&lt;br /&gt;&lt;br /&gt;You can still find these micro-handheld transcievers at hamfests, swap meets and online auctions. I got mine from a friend that's happened upon two C1s and a C4 in the past year. I was immediately somewhat frustrated by the lack of a built-in speaker. I opened it up and found plenty of room in the back for a piezoelectric element, similar to what you find as the alarm speaker in digital wrist watches.&lt;br /&gt;&lt;br /&gt;I couldn't find anything to salvage a piezo speaker out of, so I coughed up a couple of bucks at Radio Shack for one. I used a tiny screwdriver to pry the back cover off and to pry the element out of the case.&lt;br /&gt;&lt;a title="2012-02-07_18-18-27_381.jpg by KC-Bike, on Flickr" href="http://www.flickr.com/photos/kc-bike/6838679299/"&gt;&lt;img src="http://farm8.staticflickr.com/7025/6838679299_2805eac553_z.jpg" width="359" height="640" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Disassembly of the DJ-C1 initially looks pretty straight-forward. There are three small philips screws on the back which give you access to the battery and the back of the circuit board. You'll have to open the back up and you'll want to disconnect the battery before proceeding. Unfortunately, most of the stuff we need access to is on the other side of the circuit board. You can't get the board out from the back, so leave the screws through the circuitboard attached. To remove the front plate, carefully peel the sticker and membrane buttons off, then remove the three screws found underneath.&lt;br /&gt;&lt;a title="Untitled by KC-Bike, on Flickr" href="http://www.flickr.com/photos/kc-bike/6838713127/"&gt;&lt;img alt="" src="http://farm8.staticflickr.com/7007/6838713127_27d31564ac_z.jpg" width="359" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;There aren't many places to pass wires from the back of the radio where the speaker will be to the front of the radio where they can attach to the solder pads for the audio jack, so I ran them between the legs of the transmit LED. With the front and back removed, you can slide the circuit board out of the rectangular plastic frame enough to get access to the solder pads with almost any kind of soldering iron. You can see the red and black wires here:&lt;br /&gt;&lt;a title="2012-02-07_18-51-44_500.jpg by KC-Bike, on Flickr" href="http://www.flickr.com/photos/kc-bike/6838680075/"&gt;&lt;img src="http://farm8.staticflickr.com/7146/6838680075_0d045482ea_z.jpg" width="500" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;I taped the piezo element to the back case toward the bottom. The copper shield in the middle of the circuit board seen below will sit flush against the back case, so keep the speaker and wires clear of it. The piezo speaker is actually louder when it's taped to the back case than it is when it's hooked up to the audio jack by itself.&lt;br /&gt;&lt;a href="http://www.flickr.com/photos/kc-bike/6838680449/" title="2012-02-07_19-03-37_258.jpg by KC-Bike, on Flickr"&gt;&lt;img src="http://farm8.staticflickr.com/7164/6838680449_c5d3c4100f_z.jpg" width="640" height="359"&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Gently re-assemble everything, making sure everything fits neatly inside. Re-position the speaker and wires as needed. I ended up placing a bit of tape inside to keep the speaker wires from getting in the way. Re-connect the battery, screw the front plate back on, re-attach the membrane buttons to the front, and test it before you button the thing back up.&lt;br /&gt;&lt;br /&gt;The resulting speaker works, but isn't terribly loud. It's loud enough to get your attention from the office desk, and if you hold it up next to your ear, you can make out what's being said. This is all I expected from this hack. You'll want to hold on to that earphone or external speaker, though.&lt;br /&gt;&lt;br /&gt;Here's some crappy cell phone video of it in action. &lt;br /&gt;&lt;iframe width="420" height="315" src="http://www.youtube.com/embed/tf_lIx3uXl0" frameborder="0" allowfullscreen&gt;&lt;/iframe&gt;&lt;div class="blogger-post-footer"&gt;&lt;P&gt;We are proud members of the &lt;A HREF="http://securitybloggers.net/"&gt;Security Bloggers Network&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;This content originally posted on &lt;A HREF="http://www.h-i-r.net/"&gt;HiR Information Report&lt;/A&gt;. Copyright © 1997-2010, HiR&lt;/P&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5554915078212081470-1093779537859216347?l=www.h-i-r.net' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/4JjSwGn-bmobeujGtcLYe9XsWhc/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/4JjSwGn-bmobeujGtcLYe9XsWhc/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/4JjSwGn-bmobeujGtcLYe9XsWhc/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/4JjSwGn-bmobeujGtcLYe9XsWhc/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/HiR?a=jPRjIjaAl68:dqIni1J5KU0:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/HiR?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/HiR?a=jPRjIjaAl68:dqIni1J5KU0:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/HiR?i=jPRjIjaAl68:dqIni1J5KU0:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/HiR?a=jPRjIjaAl68:dqIni1J5KU0:F7zBnMyn0Lo"&gt;&lt;img src="http://feeds.feedburner.com/~ff/HiR?i=jPRjIjaAl68:dqIni1J5KU0:F7zBnMyn0Lo" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/HiR/~4/jPRjIjaAl68" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/HiR/~3/jPRjIjaAl68/alinco-dj-c1-hack-internal-speaker.html</link><author>noreply@blogger.com (Ax0n)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://img.youtube.com/vi/tf_lIx3uXl0/default.jpg" height="72" width="72" /><thr:total>0</thr:total><feedburner:origLink>http://www.h-i-r.net/2012/02/alinco-dj-c1-hack-internal-speaker.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-5554915078212081470.post-8350958351784049879</guid><pubDate>Fri, 03 Feb 2012 21:19:00 +0000</pubDate><atom:updated>2012-02-03T15:23:48.776-06:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">2600</category><category domain="http://www.blogger.com/atom/ns#">meetings</category><category domain="http://www.blogger.com/atom/ns#">lockpicking</category><title>February 2012 KC2600 Meeting</title><description>It's that time again! Bring your questions, projects, interesting topics of discussion, war stories and conspiracy theories. As a reminder, the official 2600 meeting start time is 5:00 PM local time, but the Greater Kansas City folks tend to start trickling in at 5:30 or so.&lt;br /&gt;&lt;br /&gt;If people are interested, I'll go over some of the common complaints of &lt;a href="http://www.h-i-r.net/2010/01/review-master-1500id-speed-dial-lock.html"&gt;this lock&lt;/a&gt; and how so many people manage to lock themselves out of it forever. I might live stream it on uStream. I might actually lock myself out of this lock forever, too, but hopefully not.&lt;br /&gt;&lt;br /&gt;(Crossposted from &lt;a href="http://www.kc2600.com/"&gt;KC2600&lt;/a&gt;)&lt;div class="blogger-post-footer"&gt;&lt;P&gt;We are proud members of the &lt;A HREF="http://securitybloggers.net/"&gt;Security Bloggers Network&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;This content originally posted on &lt;A HREF="http://www.h-i-r.net/"&gt;HiR Information Report&lt;/A&gt;. Copyright © 1997-2010, HiR&lt;/P&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5554915078212081470-8350958351784049879?l=www.h-i-r.net' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/QSnmGjLYZvk8TfN-WiAfYVoSYCY/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/QSnmGjLYZvk8TfN-WiAfYVoSYCY/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/QSnmGjLYZvk8TfN-WiAfYVoSYCY/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/QSnmGjLYZvk8TfN-WiAfYVoSYCY/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/HiR?a=9PhX3r3W9Vk:eHmGm76hQ2w:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/HiR?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/HiR?a=9PhX3r3W9Vk:eHmGm76hQ2w:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/HiR?i=9PhX3r3W9Vk:eHmGm76hQ2w:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/HiR?a=9PhX3r3W9Vk:eHmGm76hQ2w:F7zBnMyn0Lo"&gt;&lt;img src="http://feeds.feedburner.com/~ff/HiR?i=9PhX3r3W9Vk:eHmGm76hQ2w:F7zBnMyn0Lo" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/HiR/~4/9PhX3r3W9Vk" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/HiR/~3/9PhX3r3W9Vk/february-2012-meeting.html</link><author>noreply@blogger.com (Ax0n)</author><thr:total>0</thr:total><feedburner:origLink>http://www.h-i-r.net/2012/02/february-2012-meeting.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-5554915078212081470.post-2185891290094122701</guid><pubDate>Sat, 14 Jan 2012 20:08:00 +0000</pubDate><atom:updated>2012-01-14T14:10:41.067-06:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">locks</category><category domain="http://www.blogger.com/atom/ns#">fail</category><category domain="http://www.blogger.com/atom/ns#">lockpicking</category><title>Lock Fail 2.0</title><description>&lt;a href="http://4.bp.blogspot.com/-rOiMwvr7fpE/TxHhD3A1sVI/AAAAAAAAAZk/PsO221U4EXU/s1600/396617_748709708405_82400770_35567758_1319200265_n.jpg"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 320px; height: 179px;" src="http://4.bp.blogspot.com/-rOiMwvr7fpE/TxHhD3A1sVI/AAAAAAAAAZk/PsO221U4EXU/s320/396617_748709708405_82400770_35567758_1319200265_n.jpg" border="0" alt="" id="BLOGGER_PHOTO_ID_5697582460023714130" /&gt;&lt;/a&gt;&lt;br /&gt;I wonder what the combination is.&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;a href="http://www.h-i-r.net/2011/07/lock-fail.html"&gt;Previously&lt;/a&gt;.&lt;br /&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;P&gt;We are proud members of the &lt;A HREF="http://securitybloggers.net/"&gt;Security Bloggers Network&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;This content originally posted on &lt;A HREF="http://www.h-i-r.net/"&gt;HiR Information Report&lt;/A&gt;. Copyright © 1997-2010, HiR&lt;/P&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5554915078212081470-2185891290094122701?l=www.h-i-r.net' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/BR98R_Oz8DZXHpftY_hY8HtPA5c/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/BR98R_Oz8DZXHpftY_hY8HtPA5c/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/BR98R_Oz8DZXHpftY_hY8HtPA5c/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/BR98R_Oz8DZXHpftY_hY8HtPA5c/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/HiR?a=s9vcYpT9KyA:zyBlogfbKFc:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/HiR?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/HiR?a=s9vcYpT9KyA:zyBlogfbKFc:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/HiR?i=s9vcYpT9KyA:zyBlogfbKFc:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/HiR?a=s9vcYpT9KyA:zyBlogfbKFc:F7zBnMyn0Lo"&gt;&lt;img src="http://feeds.feedburner.com/~ff/HiR?i=s9vcYpT9KyA:zyBlogfbKFc:F7zBnMyn0Lo" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/HiR/~4/s9vcYpT9KyA" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/HiR/~3/s9vcYpT9KyA/lock-fail-20.html</link><author>noreply@blogger.com (Ax0n)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://4.bp.blogspot.com/-rOiMwvr7fpE/TxHhD3A1sVI/AAAAAAAAAZk/PsO221U4EXU/s72-c/396617_748709708405_82400770_35567758_1319200265_n.jpg" height="72" width="72" /><thr:total>0</thr:total><feedburner:origLink>http://www.h-i-r.net/2012/01/lock-fail-20.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-5554915078212081470.post-486104283110339932</guid><pubDate>Sun, 08 Jan 2012 15:28:00 +0000</pubDate><atom:updated>2012-01-08T11:05:27.150-06:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">seo</category><category domain="http://www.blogger.com/atom/ns#">mysql</category><category domain="http://www.blogger.com/atom/ns#">programming</category><category domain="http://www.blogger.com/atom/ns#">php</category><title>PHP Programming: Clean URLs</title><description>I've spent the past two weekends re-writing old, horrible, ugly code that I wrote as a kid. I still have a lot of work ahead of me, and there's still no guarantee that the code I'm writing now will be great, but it'll be better than the stuff I wrote before. I'm not a web developer by any means, but it won't keep me from having some nerdy fun on the weekend. I've learned some tricks, and figured I'd share them here in a few short entries. Today, it's so-called "Clean" URLs.&lt;br /&gt;&lt;br /&gt;In most dynamic web scripting languages such as PHP, dynamic pages can be accessed by passing parameters through a query string. As an example: http://foo.somesite.com/article.php?p=42&lt;br /&gt;&lt;br /&gt;You've undoubtedly seen dynamic websites that don't pass query strings, but instead generate nice, friendly URLs that look more like this: http://foo.somesite.com/article/Hello_World&lt;br /&gt;&lt;br /&gt;Clean URLs are easier to link to, they're better for search engine optimization, and with proper implementation provide a few security features as well. The project I'm working on is a custom CMS that was my very first Apache/PHP/MySQL project. It ended up getting kind of popular among a niche crowd, so I left it online in all its ugly glory. I have an article list script that can filter articles by category, and another script to display the articles. I'll just call them list.php and article.php here for the sake of discussion.&lt;br /&gt;&lt;br /&gt;&lt;span&gt;&lt;b&gt;Removing .php from the URL&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;div&gt;The first part of the problem is the fact that I'd rather not have ".php" show up in the URL, so that "article" and "list" would appear to be sub-directories of my site. &lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;After playing around with a bunch of promising hacks that tended to work fine, including mod_rewrite, I decided that the most elegant way to tackle this was to rely on Apache's "FilesMatch" directive. I created symbolic links from list.php and article.php to strip the .php extension. You could just as easily rename them, though.  Then I added the FilesMatch directive to .htaccess for "article" and "list" as shown below.  Make sure "AllowOverride All" is set in your Apache configuration, too.&lt;br /&gt;&lt;br /&gt;&lt;img src="http://farm8.staticflickr.com/7013/6660143755_8185fae0dd_o.png" /&gt;&lt;br /&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;At this point, pulling up http://foo.somesite.com/list will try to run "list" as a PHP script. In my case, it shows a list of articles.&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span&gt;&lt;b&gt;Parsing URI parameters with PHP&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;The next part is mostly easy. As far as I know, any PHP script will let you add a bunch of parameters to it with slashes like this: http://foo.somesite.com/index.php/testing/1/2/3/4/5. It may not render well, but it doesn't keep it from executing. Above, we got list to show a list of articles, so now it's time to set up filtering. As you can see below, the last element of the URL (split by /) is considered to be the category. The following URL would show a category of "Widgets": http://foo.somesite.com/list/Widgets&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;To avoid the problem of getting a category of "list" or "list.php" (remember, I chose to symlink my .php files), I included logic to check to see if the category matches the script name. If so, it assumes that it should instead display the Table Of Contents. You'll also see I am setting the title based on what happens here. As the category types are stored in the database and displayed with spaces, I am using str_replace to replace underscores in the URI with spaces. This means that I have to ensure spaces are turned into underscores elsewhere in the code and in all links to my site. That's beyond the scope of this article, though.  What matters is that a URL of http://foo.somesite.com/list/Arts_and_Crafts would pull up a category of "Arts and Crafts". &lt;/div&gt;&lt;blockquote&gt;&lt;code&gt;&lt;span&gt;&lt;span style="color: rgb(0, 0, 187); "&gt;$category&lt;/span&gt;&lt;span style="color: rgb(0, 119, 0); "&gt;=(&lt;/span&gt;&lt;span style="color: rgb(0, 0, 187); "&gt;end&lt;/span&gt;&lt;span style="color: rgb(0, 119, 0); "&gt;(&lt;/span&gt;&lt;span style="color: rgb(0, 0, 187); "&gt;explode&lt;/span&gt;&lt;span style="color: rgb(0, 119, 0); "&gt;(&lt;/span&gt;&lt;span style="color: rgb(221, 0, 0); "&gt;'/'&lt;/span&gt;&lt;span style="color: rgb(0, 119, 0); "&gt;, &lt;/span&gt;&lt;span style="color: rgb(0, 0, 187); "&gt;urldecode&lt;/span&gt;&lt;span style="color: rgb(0, 119, 0); "&gt;(&lt;/span&gt;&lt;span style="color: rgb(0, 0, 187); "&gt;$_SERVER&lt;/span&gt;&lt;span style="color: rgb(0, 119, 0); "&gt;[&lt;/span&gt;&lt;span style="color: rgb(221, 0, 0); "&gt;'REQUEST_URI'&lt;/span&gt;&lt;span style="color: rgb(0, 119, 0); "&gt;]))));&lt;br /&gt;if((&lt;/span&gt;&lt;span style="color: rgb(0, 0, 187); "&gt;$category&lt;/span&gt;&lt;span style="color: rgb(0, 119, 0); "&gt;) &amp;amp;&amp;amp; (&lt;/span&gt;&lt;span style="color: rgb(0, 0, 187); "&gt;$category &lt;/span&gt;&lt;span style="color: rgb(0, 119, 0); "&gt;!= &lt;/span&gt;&lt;span style="color: rgb(221, 0, 0); "&gt;'list.php' &lt;/span&gt;&lt;span style="color: rgb(0, 119, 0); "&gt;&amp;amp;&amp;amp; &lt;/span&gt;&lt;span style="color: rgb(0, 0, 187); "&gt;$type &lt;/span&gt;&lt;span style="color: rgb(0, 119, 0); "&gt;!= &lt;/span&gt;&lt;span style="color: rgb(221, 0, 0); "&gt;'list'&lt;/span&gt;&lt;span style="color: rgb(0, 119, 0); "&gt;))&lt;br /&gt;{&lt;br /&gt; &lt;/span&gt;&lt;span style="color: rgb(0, 0, 187); "&gt;$rawcat&lt;/span&gt;&lt;span style="color: rgb(0, 119, 0); "&gt;=&lt;/span&gt;&lt;span style="color: rgb(0, 0, 187); "&gt;str_replace&lt;/span&gt;&lt;span style="color: rgb(0, 119, 0); "&gt;(&lt;/span&gt;&lt;span style="color: rgb(221, 0, 0); "&gt;'_'&lt;/span&gt;&lt;span style="color: rgb(0, 119, 0); "&gt;, &lt;/span&gt;&lt;span style="color: rgb(221, 0, 0); "&gt;' '&lt;/span&gt;&lt;span style="color: rgb(0, 119, 0); "&gt;, &lt;/span&gt;&lt;span style="color: rgb(0, 0, 187); "&gt;$category&lt;/span&gt;&lt;span style="color: rgb(0, 119, 0); "&gt;);&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 119, 0); "&gt;    &lt;/span&gt;&lt;span style="color: rgb(0, 0, 187); "&gt;$list&lt;/span&gt;&lt;span style="color: rgb(0, 119, 0); "&gt;=&lt;/span&gt;&lt;span style="color: rgb(0, 0, 187); "&gt;getlist&lt;/span&gt;&lt;span style="color: rgb(0, 119, 0); "&gt;(&lt;/span&gt;&lt;span style="color: rgb(0, 0, 187); "&gt;$rawcat&lt;/span&gt;&lt;span style="color: rgb(0, 119, 0); "&gt;);&lt;br /&gt; &lt;/span&gt;&lt;span style="color: rgb(0, 0, 187); "&gt;$title&lt;/span&gt;&lt;span style="color: rgb(0, 119, 0); "&gt;=&lt;/span&gt;&lt;span style="color: rgb(0, 0, 187); "&gt;$rawcat&lt;/span&gt;&lt;span style="color: rgb(0, 119, 0); "&gt;.&lt;/span&gt;&lt;span style="color: rgb(221, 0, 0); "&gt;" Articles"&lt;/span&gt;&lt;span style="color: rgb(0, 119, 0); "&gt;;&lt;br /&gt;}&lt;br /&gt;else&lt;br /&gt;{&lt;br /&gt; &lt;/span&gt;&lt;span style="color: rgb(0, 0, 187); "&gt;$toc&lt;/span&gt;&lt;span style="color: rgb(0, 119, 0); "&gt;=&lt;/span&gt;&lt;span style="color: rgb(0, 0, 187); "&gt;TRUE&lt;/span&gt;&lt;span style="color: rgb(0, 119, 0); "&gt;;&lt;br /&gt; &lt;/span&gt;&lt;span style="color: rgb(0, 0, 187); "&gt;$list&lt;/span&gt;&lt;span style="color: rgb(0, 119, 0); "&gt;=&lt;/span&gt;&lt;span style="color: rgb(0, 0, 187); "&gt;getlist&lt;/span&gt;&lt;span style="color: rgb(0, 119, 0); "&gt;();&lt;br /&gt; &lt;/span&gt;&lt;span style="color: rgb(0, 0, 187); "&gt;$title&lt;/span&gt;&lt;span style="color: rgb(0, 119, 0); "&gt;=&lt;/span&gt;&lt;span style="color: rgb(221, 0, 0); "&gt;"Table of Contents"&lt;/span&gt;&lt;span&gt;&lt;span&gt;;&lt;/span&gt;&lt;br /&gt;&lt;span&gt;}&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/blockquote&gt;&lt;div&gt;From here, the rest of my PHP code can query the database for articles.  getlist() is a function that I wrote. If its parameter is null, it gets all of them, otherwise it (safely!) queries the database for a category. &lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;I used similar code in the article php script, which queries the database for the title of an article, so I get nice-looking URLs for individual articles as well, such as:&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;http://foo.somesite.com/article/How_to_narfle_the_Garthok&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;P&gt;We are proud members of the &lt;A HREF="http://securitybloggers.net/"&gt;Security Bloggers Network&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;This content originally posted on &lt;A HREF="http://www.h-i-r.net/"&gt;HiR Information Report&lt;/A&gt;. Copyright © 1997-2010, HiR&lt;/P&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5554915078212081470-486104283110339932?l=www.h-i-r.net' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/hBf4H5wPKHbl0ScPUhWIFGZyKWE/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/hBf4H5wPKHbl0ScPUhWIFGZyKWE/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/hBf4H5wPKHbl0ScPUhWIFGZyKWE/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/hBf4H5wPKHbl0ScPUhWIFGZyKWE/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/HiR?a=zyJ_WVzfK00:bOcNTFWZLeM:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/HiR?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/HiR?a=zyJ_WVzfK00:bOcNTFWZLeM:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/HiR?i=zyJ_WVzfK00:bOcNTFWZLeM:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/HiR?a=zyJ_WVzfK00:bOcNTFWZLeM:F7zBnMyn0Lo"&gt;&lt;img src="http://feeds.feedburner.com/~ff/HiR?i=zyJ_WVzfK00:bOcNTFWZLeM:F7zBnMyn0Lo" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/HiR/~4/zyJ_WVzfK00" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/HiR/~3/zyJ_WVzfK00/php-programming-clean-urls.html</link><author>noreply@blogger.com (Ax0n)</author><thr:total>0</thr:total><feedburner:origLink>http://www.h-i-r.net/2012/01/php-programming-clean-urls.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-5554915078212081470.post-3759155264889735850</guid><pubDate>Tue, 03 Jan 2012 16:26:00 +0000</pubDate><atom:updated>2012-01-03T21:32:46.188-06:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">radio</category><category domain="http://www.blogger.com/atom/ns#">ham</category><title>Why Ham?</title><description>Amateur radio is called "ham radio" by many. Ham isn't an acronym, but the origin of the sobriquet is a topic of debate. The most plausible explanation I heard is that professional telegraph operators considered amateur radio operators to be inferior, ham-fisted tinkerers. In this case, "ham" is actually a derogatory remark. Despite the fact, it's been adopted by the community now and is synonymous with "amateur radio." Amateur doesn't mean neophyte, however. It is the antonym of "professional radio," in that amateur stations are not commercial, and hams cannot recieve compensation for operating their equipment.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.flickr.com/photos/n0ssc/6589188555/" title="W0EEE Shack in Contest Mode by N0SSC, on Flickr"&gt;&lt;img src="http://farm8.staticflickr.com/7015/6589188555_23af1a1719.jpg" width="400" alt="W0EEE Shack in Contest Mode"&gt;&lt;/a&gt;&lt;br /&gt;(The ham shack at &lt;a href="http://mst.edu/"&gt;MST's&lt;/a&gt; Amateur Radio Club, &lt;a href="http://w0eee.mst.edu/new/HOME.html"&gt;W0EEE&lt;/a&gt;)&lt;br /&gt;&lt;br /&gt;Several co-workers and friends flaunted their amateur radio gear and goaded me into joining their ranks last year. Many hackers carry a ham license, or are getting interested in the hobby. Still, some people occasionally ask me "what's the point? We have smartphones and the Internet now." It's true. The telephone as we know it has indeed enjoyed evolution at a breakneck pace. My co-worker's Nexus LTE sucked 20 megabits per second out of thin air the day he got it. I don't even get that kind of pipe to my home. Still, to me, there's always been something about amateur radio that can't quite be compared with the Internet or mobile phones. I'll explain just a few of those things, from my own novice perspective.&lt;br /&gt;&lt;br /&gt;In 1987, I saw an amateur radio demonstration that was given to my scout troop in the middle of Nebraska. With a brick-like walkie-talkie weighing more than a pound and about the size of two Wiimotes side by side (not counting the big rubber antenna on top of it), the presenter was able to communicate with others several counties away, and even place telephone calls. He said that with a bigger antenna and more powerful radio at home, he could talk to people all over the world, all without relying on telephones or even the power grid, because much his radio equipment could be powered by car batteries.&lt;br /&gt;&lt;br /&gt;This blew my 8-year-old mind. It was nothing like my little walkie talkies at home. I wanted to be a ham, and even put in some work toward it, but I simply wasn't ready. The urge hit me in waves on occasion. In high school, I experimented with CB. In college, I took some interest in those FRS walkie-talkies that are now ubiquitous in every department store. A few classmates were amateur radio operators, and I got the itch again, but never really got the motivation to get licensed. It would go on like this for many years. For me, it took a friend in California selling me some of his used radios for cheap. At that point, I had the equipment in my hot little hands, but I didn't have a license to use them for anything other than listening. That lit a fire under me.&lt;br /&gt;&lt;br /&gt;Aside from their size (owing to advances in surface-mount electronics and battery performance), the most basic hand-held ham radios haven't changed a whole lot in the last 20 years. For reference, &lt;a href="http://www.flickr.com/photos/kc-bike/6629268651/in/photostream"&gt;my smallest radio&lt;/a&gt; is about the size of a closed &lt;a href="http://en.wikipedia.org/wiki/Motorola_StarTAC"&gt;Motorola StarTAC&lt;/a&gt;, but packs nearly as powerful a transmitter as &lt;a href="http://www.eham.net/articles/11750"&gt;the giant brick radio&lt;/a&gt; that had me awestruck more than 20 years ago. Most hand-helds work on the FM Voice part of the VHF band (~144 MHz) or the UHF band (~440 MHz), or both. Some operate on other bands as well. Transmit power from 300mW to 5W is common. Although these smaller radios are most often used to contact a high-power repeater, they can also be used directly between licensed amateurs over shorter distances with some rules and restrictions noted. They have more power and better antennae than FRS radios, and can be connected to an externally-mounted antenna if desired. They're great for highway convoys and outdoor activities. Many hand-held transceivers are capable of tuning in a very wide range of frequencies, so they can be used somewhat like analog non-trunking scanners and frequency counters for finding and listening to public safety, railroad, airport or rent-a-cop chatter. More on that in a separate article.&lt;br /&gt;&lt;br /&gt;Repeaters are usually mounted on radio towers, tall buildings or up in mountains. They recieve on one frequency (an input frequency), then transmit what's received in real-time on the output frequency, allowing one-to-many conversations over a relatively large region within a 20-50 mile radius. Radios designed to be used with repeaters are able to automatically switch to a repeater's input frequency when transmitting. Repeaters are often linked together via high-power point-to-point radio links, telephone lines or digitally over the Internet. Some repeaters are actually built into satellites in space, covering extremely wide areas, but those can be a challenge to use as they traverse the sky. Many repeaters have redundant power, via battery and generator backup. And yes, a lot of this stuff is very similar to what existed 30 or more years ago, save for the Internet-connected repeaters.&lt;br /&gt;&lt;br /&gt;Hams are often called upon to help where efficient communications are desired. You're likely to find amateur radio operators volunteering behind the scenes helping marathon or charity bicycle ride officials locate event participants in need of assistance, providing the National Weather Service with critical storm data from the ground, or establishing point-to-point radio links with nearby hospitals and participating in relief efforts in communities whose infrastructure has been crippled by floods, tornadoes, hurricanes or earthquakes. All of this is made possible because hams know how to communicate efficiently in groups, and their equipment isn't completely disabled by disruptions of complex infrastructure (although, as noted, infrastructure such as the power grid and telecom is often used when available.)&lt;br /&gt;&lt;br /&gt;Many people think of morse code when they think of ham radio. Morse code is still in use, but you no longer need to know it to get licensed by the FCC. Morse code is essentially a human-comprehensible binary mode of communication. There are several other digital modes available, allowing you to blend technologies, and some common modes rely on AX.25 packet data. You can run a packet radio BBS over the air if you like, or transmit your GPS coordinates while hiking through the woods or helping disaster relief efforts. Some of these digital modes are extremely efficient, use very little bandwidth, and can be easily received from long distances, even if they aren't transmitted with much power. Conversely, hams can also enjoy many parts of the amateur bands, including parts of the 2.4 GHz spectrum (with some overlap on WiFi channels) with up to 1500 watts.&lt;br /&gt;&lt;br /&gt;Although some hams might seem like retro-grouches with their morse code conversations, technology doesn't stand still with amateur radio! There's a very hearty "do it yourself" spirit here. Many participants might very well be considered radio hackers. They build their own transmitters, recievers and repeaters, and most of them are -- by nature -- gifted problem solvers.&lt;br /&gt;&lt;br /&gt;Check out this video from ARRL for some more info.&lt;br /&gt;&lt;br /&gt;&lt;iframe height="254" src="http://www.youtube.com/embed/vlDwVhx7miQ" frameborder="0" width="500"&gt;&lt;/iframe&gt;&lt;br /&gt;&lt;br /&gt;What's it take to get licensed? There are three classes of amateur radio licenses in the US. In order from lowest to highest, they are Technician, General and Extra class. The exams are multiple-choice quizzes, each coming from a pool of several hundred possible questions. The Technician and General exams have 35 questions each, while the Extra exam is 50 more challenging questions covering material that's ostensibly arcane. The test to get each license requires progressively more depth of knowledge in safety (RF exposure, antenna towers, grounding), electronics, FCC rules, transciever and antenna designs and other information that proves the licensee understands the craft well enough to safely operate their own station. Each higher license class grants access to transmit on more frequencies, usually in the lower frequency bands that are more useful for reliable long-distance communication.&lt;br /&gt;&lt;br /&gt;Since the &lt;a href="http://www.arrl.org/question-pools"&gt;question pools&lt;/a&gt; and study materials for licensing are publicly available, I studied the Technician material on my own for a few weeks before acing the technician exam. Most major metro areas have groups that give frequent classes, and all metro areas have volunteer examiners who will administer the test to those who have studied on their own.&lt;br /&gt;&lt;br /&gt;I may upgrade to the General class license this year, but I'm honestly a lot more interested in the merge of digital technology with amateur radio. The Technician class license allows me to operate digital and "sideband" voice on the 10 meter band, but there's a lot of digital stuff in the higher frequencies that Technicians are allowed to use.&lt;br /&gt;&lt;br /&gt;If you are interested in learning more about amateur radio but can't seem to find anything in your area, post away in the comments and I'll see if I can help you out.&lt;div class="blogger-post-footer"&gt;&lt;P&gt;We are proud members of the &lt;A HREF="http://securitybloggers.net/"&gt;Security Bloggers Network&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;This content originally posted on &lt;A HREF="http://www.h-i-r.net/"&gt;HiR Information Report&lt;/A&gt;. Copyright © 1997-2010, HiR&lt;/P&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5554915078212081470-3759155264889735850?l=www.h-i-r.net' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/HEDl2GtdQLP4DWNXh3bycZNKJvg/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/HEDl2GtdQLP4DWNXh3bycZNKJvg/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/HEDl2GtdQLP4DWNXh3bycZNKJvg/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/HEDl2GtdQLP4DWNXh3bycZNKJvg/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/HiR/~4/Xsmy_2q-lmA" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/HiR/~3/Xsmy_2q-lmA/amateur-radio-is-called-ham-radio-by.html</link><author>noreply@blogger.com (Ax0n)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://img.youtube.com/vi/vlDwVhx7miQ/default.jpg" height="72" width="72" /><thr:total>0</thr:total><feedburner:origLink>http://www.h-i-r.net/2012/01/amateur-radio-is-called-ham-radio-by.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-5554915078212081470.post-8900299368906307408</guid><pubDate>Sat, 17 Dec 2011 00:54:00 +0000</pubDate><atom:updated>2011-12-19T18:16:16.177-06:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">malware</category><title>Intro to javascript malware analysis</title><description>I am by no means an expert on this stuff. A few weeks ago, I ran across some suspicious links in spam and decided to see where they led. Some of them claimed to be from financial institutions that I have absolutely no connection to, and claimed that some transaction had failed to occur. Others were variants of shipping confirmation scams, pharmacy junk, etc. I wish I could say that I have no idea how people fall for these, but the fact is that some people will literally click on anything that shows up in their inbox, open any attachment and follow any link, no matter how blatantly fake we professionals think these scams are.&lt;br /&gt;&lt;br /&gt;What lay at the tail end of all the script="http://some-site/whatever.js" includes and document.location redirects? A webpage that'd been owned, filled with a huge pile of nonsensical jibberish that could barely pass as javascript, which happened to be part of the &lt;a href="http://threatpost.com/en_us/blogs/carberp-and-black-hole-exploit-kit-wreaking-havoc-120511"&gt;Blackhole Exploit Kit&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;I've done my share of picking apart obfuscated javascript before, but it had been a while. I gave a presentation of this same thing at &lt;a href="http://www.kc2600.com/2011/12/great-turn-out.html"&gt;KC2600&lt;/a&gt; a few weeks ago. Then, this week, &lt;a href="http://blog.l-lacker.com/"&gt;a colleague of mine&lt;/a&gt; who missed the meeting ran into the same thing in the wild. I passed on what I'd learned, and decided it might be time to write it up with a little more detail than I did a few weeks back. He made this quick video that covers how he was able to de-obfuscate this particular sample:&lt;br /&gt;&lt;br /&gt;&lt;iframe height="350" src="http://www.youtube.com/embed/HPnEF3TVlu8" frameborder="0" width="400"&gt;&lt;/iframe&gt;&lt;br /&gt;&lt;br /&gt;By now, I've seen several different obfuscation schemes for BlackHole, but once it's decoded, it all looks about the same.&lt;br /&gt;&lt;br /&gt;The introductory basics are simple. Minimize the potential of infection by using a non-privileged account (and perhaps an OS other than Windows) and/or minimize the impact of a successful infection by running a virtual machine that you can blow away or revert to a snapshot of a known clean state. For the malware I'm using in this example, either (or both) of the above criteria will be ample to keep things from getting out of control. Other malware may be more insidious or may target non-Windows platforms. I have a few friends that have unwittingly infected their own workstations while trying to analyze things. Play safe.&lt;br /&gt;&lt;br /&gt;Once you have a safe lab environment, your goal is to examine a suspicious link and dissect it.&lt;br /&gt;&lt;br /&gt;In my case, I was able to find a few links to malware in my personal mail's spam folder. For the demo at KC2600, I used Malware Domain List to find some &lt;a href="http://www.malwaredomainlist.com/mdl.php?search=blackhole&amp;amp;colsearch=All&amp;amp;quantity=50"&gt;Blackhole samples&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;In the wild, there may be any number of redirects ahead of the malware. You may see a shortened URL (through goo.gl, tinyurl, etc) which goes to a sparse HTML page with several calls to javascripts hosted on various sites, and those javascripts may simply be a document.location pointing to the malware. I usually stick with curl or wget to pull down suspicious links, and then I keep looking at the content and following the redirects until I strike gold.&lt;br /&gt;&lt;br /&gt;&lt;a title="Screenshot-2011-12-17_01.00.06 by KC-Bike, on Flickr" href="http://www.flickr.com/photos/kc-bike/6526725271/"&gt;&lt;img alt="Screenshot-2011-12-17_01.00.06" src="http://farm8.staticflickr.com/7004/6526725271_5b2ca72eff.jpg" width="400" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;The javascript itself is ugly once you get to it. Sometimes, the byte array is only a few (really long) lines. Other times, like this sample, each byte of the obfuscated data is on a new line, like this:&lt;br /&gt;&lt;a title="Screenshot-2011-12-17_12.21.10 by KC-Bike, on Flickr" href="http://www.flickr.com/photos/kc-bike/6526761769/"&gt;&lt;img alt="Screenshot-2011-12-17_12.21.10" src="http://farm8.staticflickr.com/7149/6526761769_d0fefdd0d3.jpg" width="400" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;You'll see a few interesting things. There's an "e=eval;" line near the bottom, and then "e(c);" after that. It doesn't take a coding genius to realize that this is a way to call eval(c) without triggering some IDS signatures that look for "eval(". Many samples I saw weren't quite this obvious. In fact, the script in the video has the eval alias in a different part of the script and varies in several other ways if you look closely.&lt;br /&gt;&lt;br /&gt;To turn this cryptic payload into something that resembles actual javascript, there's &lt;a href="http://isc.sans.edu/diary.html?storyid=2268"&gt;a post on SANS ISC&lt;/a&gt; from several years ago covering a few methods. I went with the so-called &lt;a href="http://pre-isc.sans.edu//diary.html?storyid=1917"&gt;Tom Liston Method&lt;/a&gt;, essentially trying to wrangle the decoded stuff that was destined for the eval function into a document.write within a textarea box instead. Note: I ran into one sample of BlackHole that has a /textarea tag near the beginning, which would keep someone from using this trick to easily view the code with this trick, but I don't think it will eval the stuff behind it since it's been changed to a document.write.&lt;br /&gt;&lt;br /&gt;In the above example (and in the video), the content that is destined for eval is stored in variable "c", so you simply replace "e(c);" with:&lt;br /&gt;&lt;br /&gt;document.write("&amp;lt;textarea cols="150" rows="100"&amp;gt;" + c + "&amp;lt;/textarea&amp;gt;");&lt;br /&gt;&lt;br /&gt;But obviously, you need to use some brain power here to figure out what trickery they're using to call eval, and what the variable is that needs to be wrapped up in the above document.write command. You may also wish to mess with the rows and columns on the textarea. I know on my netbook, that textarea size is far too unweildy. On my desktop, it's almost perfect.&lt;br /&gt;&lt;br /&gt;Make sure the file is renamed as a .html, then load it up in your safe lab environment's browser, just in case something goes wrong.&lt;br /&gt;&lt;br /&gt;&lt;a title="Screenshot-2011-12-17_12.49.34 by KC-Bike, on Flickr" href="http://www.flickr.com/photos/kc-bike/6526893785/"&gt;&lt;img alt="Screenshot-2011-12-17_12.49.34" src="http://farm8.staticflickr.com/7011/6526893785_8111be90e6.jpg" width="400" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Voila. If you scroll through recent versions of BlackHole Exploit Kit, you'll see that it tries to load an embedded java applet and a PDF, both of which are designed to exploit recent vulnerabilities in JRE and Adobe Reader. Since I don't have Windows running in a VM environment (and I'm not keen on actually infecting any of my Windows boxes) I'm not entirely sure what gets loaded from there. I'm guessing the carberp trojan, given most of what I've read lately. If that's the case, a successful infection would likely block access to anti-malware sites, try to sabotage existing security software, and start gathering sensitive data such as card numbers and online banking credentials.&lt;div class="blogger-post-footer"&gt;&lt;P&gt;We are proud members of the &lt;A HREF="http://securitybloggers.net/"&gt;Security Bloggers Network&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;This content originally posted on &lt;A HREF="http://www.h-i-r.net/"&gt;HiR Information Report&lt;/A&gt;. Copyright © 1997-2010, HiR&lt;/P&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5554915078212081470-8900299368906307408?l=www.h-i-r.net' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/U9Uq5cBCZadUpMcm8vN7ckgBwpw/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/U9Uq5cBCZadUpMcm8vN7ckgBwpw/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/U9Uq5cBCZadUpMcm8vN7ckgBwpw/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/U9Uq5cBCZadUpMcm8vN7ckgBwpw/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/HiR?a=u8c552Q33J8:IHVRbdUTtTY:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/HiR?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/HiR?a=u8c552Q33J8:IHVRbdUTtTY:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/HiR?i=u8c552Q33J8:IHVRbdUTtTY:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/HiR?a=u8c552Q33J8:IHVRbdUTtTY:F7zBnMyn0Lo"&gt;&lt;img src="http://feeds.feedburner.com/~ff/HiR?i=u8c552Q33J8:IHVRbdUTtTY:F7zBnMyn0Lo" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/HiR/~4/u8c552Q33J8" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/HiR/~3/u8c552Q33J8/intro-to-javascript-malware-analysis.html</link><author>noreply@blogger.com (Ax0n)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://img.youtube.com/vi/HPnEF3TVlu8/default.jpg" height="72" width="72" /><thr:total>0</thr:total><feedburner:origLink>http://www.h-i-r.net/2011/12/intro-to-javascript-malware-analysis.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-5554915078212081470.post-4461401039525764536</guid><pubDate>Mon, 05 Dec 2011 03:48:00 +0000</pubDate><atom:updated>2011-12-04T21:56:56.136-06:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">hacks</category><category domain="http://www.blogger.com/atom/ns#">hardware</category><title>UPS Battery Hackery: Not highly recommended</title><description>Step 1: Disassemble UPS (not shown). That includes unplugging it and removing the battery, and taking the outer shell off. This was a dumpster rescue that was missing the battery entirely. Be careful. Lots of capacitors and transformers inside. See the disclaimer in the title. Not highly recommended.&lt;br /&gt;&lt;br /&gt;Step 2: Drill a hole in the case, near where the battery wiring harness enters the battery chamber. I used a 1/2" drill bit for this. &lt;br /&gt;&lt;br /&gt;Step 3: Make a grommet. I used some silicone air hose for my aquarium, cut a length of it, then split it. I used a few separate pieces.&lt;br /&gt;&lt;div&gt;&lt;a href="https://lh3.googleusercontent.com/-bYCo64beG1Q/Ttw-DX_cAxI/AAAAAAAABlw/V33T_oVDyds/s288/11%2B-%2B1"&gt;&lt;img style="WIDTH: 288px; HEIGHT: 162px; CURSOR: hand" border="0" alt="" src="https://lh3.googleusercontent.com/-bYCo64beG1Q/Ttw-DX_cAxI/AAAAAAAABlw/V33T_oVDyds/s288/11%2B-%2B1" /&gt;&lt;/a&gt; &lt;/div&gt;&lt;br /&gt;&lt;br /&gt;Step 4: Re-assemble, Hook up a much bigger battery than what's supposed to be inside.&lt;br /&gt;&lt;a href="https://lh5.googleusercontent.com/-R4Pl4FqO4Bw/Ttw9hYXKJTI/AAAAAAAABlc/gUgEYcRckVA/s320/11%2B-%2B1"&gt;&lt;img style="WIDTH: 180px; HEIGHT: 320px; CURSOR: hand" border="0" alt="" src="https://lh5.googleusercontent.com/-R4Pl4FqO4Bw/Ttw9hYXKJTI/AAAAAAAABlc/gUgEYcRckVA/s320/11%2B-%2B1" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;I accept no blame for any of the many things that could possibly go wrong with this.&lt;div class="blogger-post-footer"&gt;&lt;P&gt;We are proud members of the &lt;A HREF="http://securitybloggers.net/"&gt;Security Bloggers Network&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;This content originally posted on &lt;A HREF="http://www.h-i-r.net/"&gt;HiR Information Report&lt;/A&gt;. Copyright © 1997-2010, HiR&lt;/P&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5554915078212081470-4461401039525764536?l=www.h-i-r.net' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/GZmvTvfroUcShFBgmZ5xcDXLpHY/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/GZmvTvfroUcShFBgmZ5xcDXLpHY/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/GZmvTvfroUcShFBgmZ5xcDXLpHY/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/GZmvTvfroUcShFBgmZ5xcDXLpHY/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/HiR?a=gkamR62d5d0:JasZoq-GOVM:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/HiR?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/HiR?a=gkamR62d5d0:JasZoq-GOVM:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/HiR?i=gkamR62d5d0:JasZoq-GOVM:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/HiR?a=gkamR62d5d0:JasZoq-GOVM:F7zBnMyn0Lo"&gt;&lt;img src="http://feeds.feedburner.com/~ff/HiR?i=gkamR62d5d0:JasZoq-GOVM:F7zBnMyn0Lo" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/HiR/~4/gkamR62d5d0" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/HiR/~3/gkamR62d5d0/ups-battery-hackery-not-highly.html</link><author>noreply@blogger.com (Ax0n)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://lh3.googleusercontent.com/-bYCo64beG1Q/Ttw-DX_cAxI/AAAAAAAABlw/V33T_oVDyds/s72-c/11%2B-%2B1" height="72" width="72" /><thr:total>0</thr:total><feedburner:origLink>http://www.h-i-r.net/2011/12/ups-battery-hackery-not-highly.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-5554915078212081470.post-5197184207053141652</guid><pubDate>Fri, 18 Nov 2011 17:47:00 +0000</pubDate><atom:updated>2011-11-18T11:47:52.532-06:00</atom:updated><title>Shell Script: Parse Juniper firewall logs</title><description>Juniper firewalls (at least the ScreenOS-based one I have in the lab) have an interesting format for their syslog entries. It&amp;#39;s a whole line full of variable=parameter type stuff. Usually, these are in a pretty predictable order, but you can&amp;#39;t rely on the nth parameter to be the same in every log entry just due to the fact that different types of traffic have different parameters. You don&amp;#39;t see a source or destination port on ICMP traffic, for example.  This script reads a log file (I&amp;#39;m using Syslog-NG in the lab), splits the entry up into one parameter per line, grabs only parameters matching the list you provide on the command line, then stitches it back together into one line. I saw no benefit in trying to make the output order match the order provided on the command-line, since some columns are prone to be blank in certain situations anyway. This is quick and dirty, but it does the job for what I need, and I thought I&amp;#39;d share.&lt;br&gt; &lt;br&gt;axon@moo:~$ ./juniper-parse.sh &lt;br&gt;&lt;br&gt;Parse columns from Juniper firewall logs&lt;br&gt;  Syntax:&lt;br&gt;  ./juniper-parse.sh logfile column [column ...]&lt;br&gt;&lt;br&gt;Common columns:&lt;br&gt;  action, device_id, dst, dst_port, duration, ip, &lt;br&gt;   policy_id, port, proto, rcvd, reason, sent, service, &lt;br&gt;  session_id, src, src_port, start_time, zone&lt;br&gt;&lt;br&gt;&lt;br&gt;Here, you can see some of my lab machines trying to fetch updates from an Ubuntu mirror, getting denied because I only allow requests through my proxy server:&lt;br&gt; &lt;br&gt;axon@moo:~$ sudo ./juniper-parse.sh /var/log/firewall.log action policy_id proto src dst dst_port&lt;br&gt;&lt;br&gt;2011-11-13T08:35:09-06:00 policy_id=12 proto=6 action=Deny src=192.168.42.75 dst=91.189.92.169 dst_port=80&lt;br&gt;2011-11-13T08:35:09-06:00 policy_id=12 proto=6 action=Deny src=192.168.42.112 dst=91.189.92.169 dst_port=80&lt;br&gt; 2011-11-13T08:35:10-06:00 policy_id=12 proto=6 action=Deny src=192.168.42.171 dst=91.189.92.169 dst_port=80&lt;br&gt;2011-11-13T08:35:13-06:00 policy_id=12 proto=6 action=Deny src=192.168.42.171 dst=91.189.92.169 dst_port=80&lt;br&gt; 2011-11-13T08:35:15-06:00 policy_id=12 proto=6 action=Deny src=192.168.42.77 dst=91.189.92.169 dst_port=80&lt;br&gt;2011-11-13T08:35:18-06:00 policy_id=12 proto=6 action=Deny src=192.168.42.75 dst=91.189.92.169 dst_port=80&lt;br&gt;2011-11-13T08:35:18-06:00 policy_id=12 proto=6 action=Deny src=192.168.42.77 dst=91.189.92.169 dst_port=80&lt;br&gt; ...&lt;br&gt;&lt;br&gt;Script below:&lt;br&gt;&lt;br&gt;#!/bin/sh&lt;br&gt;#juniper-parse.sh&lt;br&gt;if [ $# -lt &amp;quot;2&amp;quot; ]&lt;br&gt;then&lt;br&gt;echo &amp;quot;&lt;br&gt;Parse columns from Juniper firewall logs&lt;br&gt;  Syntax:&lt;br&gt;  $0 logfile column [column ...]&lt;br&gt;&lt;br&gt;Common columns:&lt;br&gt;   action, device_id, dst, dst_port, duration, ip, &lt;br&gt;  policy_id, port, proto, rcvd, reason, sent, service, &lt;br&gt;  session_id, src, src_port, start_time, zone&lt;br&gt;&lt;br&gt;&amp;quot;&lt;br&gt;exit 1&lt;br&gt;fi&lt;br&gt;&lt;br&gt;filename=$1; shift&lt;br&gt;until [ $# = &amp;quot;0&amp;quot; ]&lt;br&gt; do &lt;br&gt;  pattern=&amp;quot;$pattern -e ^$1=&amp;quot;&lt;br&gt;  shift&lt;br&gt;done &lt;br&gt;while read line&lt;br&gt;do&lt;br&gt;  timestamp=`echo $line | cut -f1 -d&amp;quot; &amp;quot;`&lt;br&gt;  echo &amp;quot;$timestamp `echo $line | tr &amp;#39; &amp;#39; &amp;#39;\n&amp;#39; | grep $pattern | tr &amp;#39;\n&amp;#39; &amp;#39; &amp;#39;`&amp;quot;&lt;br&gt; done &amp;lt; $filename&lt;br&gt;&lt;br&gt; &lt;div class="blogger-post-footer"&gt;&lt;P&gt;We are proud members of the &lt;A HREF="http://securitybloggers.net/"&gt;Security Bloggers Network&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;This content originally posted on &lt;A HREF="http://www.h-i-r.net/"&gt;HiR Information Report&lt;/A&gt;. Copyright © 1997-2010, HiR&lt;/P&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5554915078212081470-5197184207053141652?l=www.h-i-r.net' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/4rsV6NBo-g_pDMkIZZinkYtAYDc/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/4rsV6NBo-g_pDMkIZZinkYtAYDc/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/4rsV6NBo-g_pDMkIZZinkYtAYDc/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/4rsV6NBo-g_pDMkIZZinkYtAYDc/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/HiR?a=SU-LgwHhylo:M9Ff-yMJZyU:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/HiR?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/HiR?a=SU-LgwHhylo:M9Ff-yMJZyU:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/HiR?i=SU-LgwHhylo:M9Ff-yMJZyU:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/HiR?a=SU-LgwHhylo:M9Ff-yMJZyU:F7zBnMyn0Lo"&gt;&lt;img src="http://feeds.feedburner.com/~ff/HiR?i=SU-LgwHhylo:M9Ff-yMJZyU:F7zBnMyn0Lo" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/HiR/~4/SU-LgwHhylo" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/HiR/~3/SU-LgwHhylo/shell-script-parse-juniper-firewall.html</link><author>noreply@blogger.com (Ax0n)</author><thr:total>0</thr:total><feedburner:origLink>http://www.h-i-r.net/2011/11/shell-script-parse-juniper-firewall.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-5554915078212081470.post-3336649699395323090</guid><pubDate>Sat, 12 Nov 2011 07:52:00 +0000</pubDate><atom:updated>2011-11-12T22:04:59.734-06:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">mysql</category><category domain="http://www.blogger.com/atom/ns#">php</category><category domain="http://www.blogger.com/atom/ns#">openbsd</category><category domain="http://www.blogger.com/atom/ns#">apache</category><category domain="http://www.blogger.com/atom/ns#">opensource</category><category domain="http://www.blogger.com/atom/ns#">oamp</category><title>OpenBSD 5.0: Apache, PHP and MySQL</title><description>The basic steps for taking a bare-bones install of OpenBSD and adding an AMP stack for web applications hadn't changed much in the past 2 years. Although 5.0 is not seen as a "major update", but simply a continuation of the normal development cycle, the OpenBSD team did a few things that make the installation a bit different this go around. I'll cover some of the recent changes to OpenBSD and its packages in this post, then you can dive right into the updated &lt;a href="http://www.h-i-r.net/p/hirs-secure-openbsd-apache-mysql-and.html"&gt;OpenBSD Chroot Apache, PHP, MySQL setup guide&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;Initialization scripts: Starting with OpenBSD 4.9, the RC scripts became modular. This is similar to how NetBSD and FreeBSD have worked for many years. Individual daemons have startup scripts in /etc/rc.d, but rc.conf, rc.local and rc.conf.local still work the same, so it wouldn't surprise me if many OpenBSD users didn't even notice the change. It seems like OpenBSD 5.0 packages for most of the popular services (samba, cups, postgres, etc) are actually creating these startup scripts now. If a third-party application from packages installs a startup script in /etc/rc.d, you can add it to the pkg_scripts variable in /etc/rc.conf.local like so, and it'll magically start.&lt;br /&gt;&lt;br /&gt;pkg_scripts="mysqld cups samba"&lt;br /&gt;&lt;br /&gt;See the &lt;a href="http://www.openbsd.org/cgi-bin/man.cgi?query=rc.d&amp;amp;sektion=8"&gt;OpenBSD man page for rc.d&lt;/a&gt; for more details.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;MySQL and chroot:&lt;/strong&gt; I'm not sure why it didn't dawn on me before, but one really simple way around hard-linking MySQL's socket file into the chroot environment is to simply have your web applications connect to MySQL's TCP port on 127.0.0.1 (not localhost, because that means "use the socket file" in MySQL-ese) I think I'll be doing it this way in the future.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;PHP:&lt;/strong&gt; PHP 5.3 added a lot of features, such that PHP 5.2.x and PHP 5.3 might as well be different major version numbers when complex web applications are considered. OpenBSD 5.0 adds packages for PHP 5.3 for the first time, but PHP 5.2 is still available in the repository. For this reason, the PHP core and module packages are no longer prefixed by php5-, they're just php, php-mysql, etc. Since PHP 5.2 is still supported, the version numbers are used to distinguish them, like this:&lt;br /&gt;&lt;br /&gt;$ sudo pkg_add php-mysql&lt;br /&gt;Ambiguous: php-mysql could be php-mysql-5.2.17p3 php-mysql-5.3.6&lt;br /&gt;&lt;br /&gt;Further, some configuration file locations have been changed. If you pay attention to the text after installing packages, this shouldn't make much difference. Hint: you can always re-read the post-install notes afterward by using pkg_info -M.&lt;br /&gt;&lt;br /&gt;All in all, the recent changes to OpenBSD are welcome. Some of the things I outlined here are areas where OpenBSD had some catching up to do. They've managed to do a lot of proactive stuff in the realm of hardware support and (of course) security and encryption. This is still one of my favorite platforms to tinker with.&lt;div class="blogger-post-footer"&gt;&lt;P&gt;We are proud members of the &lt;A HREF="http://securitybloggers.net/"&gt;Security Bloggers Network&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;This content originally posted on &lt;A HREF="http://www.h-i-r.net/"&gt;HiR Information Report&lt;/A&gt;. Copyright © 1997-2010, HiR&lt;/P&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5554915078212081470-3336649699395323090?l=www.h-i-r.net' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/BJQej5k8U_RuauB5JBjLQQP78_g/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/BJQej5k8U_RuauB5JBjLQQP78_g/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/BJQej5k8U_RuauB5JBjLQQP78_g/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/BJQej5k8U_RuauB5JBjLQQP78_g/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/HiR?a=Q_K8rLYkycE:lHEUG_irlF8:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/HiR?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/HiR?a=Q_K8rLYkycE:lHEUG_irlF8:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/HiR?i=Q_K8rLYkycE:lHEUG_irlF8:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/HiR?a=Q_K8rLYkycE:lHEUG_irlF8:F7zBnMyn0Lo"&gt;&lt;img src="http://feeds.feedburner.com/~ff/HiR?i=Q_K8rLYkycE:lHEUG_irlF8:F7zBnMyn0Lo" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/HiR/~4/Q_K8rLYkycE" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/HiR/~3/Q_K8rLYkycE/openbsd-50-apache-php-and-mysql.html</link><author>noreply@blogger.com (Ax0n)</author><thr:total>0</thr:total><feedburner:origLink>http://www.h-i-r.net/2011/11/openbsd-50-apache-php-and-mysql.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-5554915078212081470.post-8454119261727210978</guid><pubDate>Thu, 27 Oct 2011 04:19:00 +0000</pubDate><atom:updated>2011-10-26T23:19:57.849-05:00</atom:updated><title>BSidesKC Videos</title><description>I actually didn&amp;#39;t get to present anything this year. Not for any particular reason. All the talks were awesome and they tied together pretty well. It took me a while to get UStream working on my phone, via 3G. Also, not all the videos worked or uploaded properly, so my apologies in advance for not getting all the talks, and for the crappy video quality, especially on the slides. Slides should be &lt;a href="http://www.securitybsides.com/w/page/26298468/BSidesKC"&gt;online&lt;/a&gt; soon, though. &lt;br&gt; &lt;br&gt;Here are &lt;a href="http://www.ustream.tv/channel/ax0n/videos"&gt;my archived UStream videos&lt;/a&gt;, though. There are only 4 from BSidesKC, and then some older stuff from Maker Faire.&lt;br&gt;&lt;br&gt;As for my talk on remote pentest appliances: It&amp;#39;s probably best I didn&amp;#39;t get a spot this year. Turns out that those 1 million writes (or whatever) that USB flash drives are good for go by pretty fast when you&amp;#39;re running a full operating system (with databases, etc) direct from the drive for a few months straight. My demo platform died a week ago. I had backups, but I have some re-thinking to do. I&amp;#39;d probably best stick with external 2.5&amp;quot; drive enclosures for this project. I&amp;#39;ll be documenting it properly. &lt;br&gt; &lt;br&gt;&lt;br&gt; &lt;div class="blogger-post-footer"&gt;&lt;P&gt;We are proud members of the &lt;A HREF="http://securitybloggers.net/"&gt;Security Bloggers Network&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;This content originally posted on &lt;A HREF="http://www.h-i-r.net/"&gt;HiR Information Report&lt;/A&gt;. Copyright © 1997-2010, HiR&lt;/P&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5554915078212081470-8454119261727210978?l=www.h-i-r.net' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/3Xjha3Io5UYHLkdKm_nbUANjCtY/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/3Xjha3Io5UYHLkdKm_nbUANjCtY/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/3Xjha3Io5UYHLkdKm_nbUANjCtY/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/3Xjha3Io5UYHLkdKm_nbUANjCtY/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/HiR?a=0UmXCzdBqW8:lIU6PvMvukM:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/HiR?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/HiR?a=0UmXCzdBqW8:lIU6PvMvukM:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/HiR?i=0UmXCzdBqW8:lIU6PvMvukM:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/HiR?a=0UmXCzdBqW8:lIU6PvMvukM:F7zBnMyn0Lo"&gt;&lt;img src="http://feeds.feedburner.com/~ff/HiR?i=0UmXCzdBqW8:lIU6PvMvukM:F7zBnMyn0Lo" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/HiR/~4/0UmXCzdBqW8" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/HiR/~3/0UmXCzdBqW8/bsideskc-videos.html</link><author>noreply@blogger.com (Ax0n)</author><thr:total>0</thr:total><feedburner:origLink>http://www.h-i-r.net/2011/10/bsideskc-videos.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-5554915078212081470.post-86676291107091961</guid><pubDate>Wed, 12 Oct 2011 14:10:00 +0000</pubDate><atom:updated>2011-10-12T09:10:13.249-05:00</atom:updated><title>Bulk date conversion with GNU Date</title><description>GNU&amp;#39;s version of the date command (which ships with almost all Linux flavors) can accept an arbitrary date and/or timestamp as input to display. Combined with the output formatting feature found in all posix flavors of the date command, you can use it to convert almost any format of date or time to a standard format. &lt;br&gt; &lt;br&gt;axon ~$ &lt;b&gt;date --date &amp;quot;yesterday&amp;quot;&lt;/b&gt;&lt;br&gt;Tue Oct 11 07:47:33 CDT 2011&lt;br&gt;&lt;br&gt;axon ~$ &lt;b&gt;date --date &amp;quot;Saturday, August 19, 1989&amp;quot;&lt;/b&gt;&lt;br&gt;Sat Aug 19 00:00:00 CDT 1989&lt;br&gt;&lt;br&gt;axon ~$ &lt;b&gt;date --date &amp;quot;21-APR-2001&amp;quot; +%Y-%m-%d&lt;/b&gt;&lt;br&gt; 2001-04-21&lt;br&gt;&lt;br&gt;So if you have a bunch of dates or timestamps, one per line, that you wish to convert:&lt;br&gt;&lt;br&gt;axon ~$ &lt;b&gt;cat file&lt;/b&gt;&lt;br&gt;1/21/2011&lt;br&gt;2/5/2011&lt;br&gt;2/10/2011&lt;br&gt;2/20/2011&lt;br&gt;3/7/2011&lt;br&gt;3/22/2011&lt;br&gt;4/16/2011&lt;br&gt; 4/21/2011&lt;br&gt;4/26/2011&lt;br&gt;5/21/2011&lt;br&gt;1/24/2011&lt;br&gt;2/1/2011&lt;br&gt;3/6/2011&lt;br&gt;3/9/2011&lt;br&gt;May 25, 2011&lt;br&gt;6/23/2011&lt;br&gt;7/23/2011&lt;br&gt;8/10/2011&lt;br&gt;9-SEP-2011&lt;br&gt;Sat Sep 10 00:00:00 CDT 2011&lt;br&gt;&lt;br&gt;... say to ISO 8601 Year-month-date format , you can knock it out easily like this:&lt;br&gt; &lt;br&gt;axon ~$ &lt;b&gt;cat file | while read line; do date --date &amp;quot;$line&amp;quot; +%Y-%m-%d; done&lt;/b&gt;&lt;br&gt;2011-01-21&lt;br&gt;2011-02-05&lt;br&gt;2011-02-10&lt;br&gt;2011-02-20&lt;br&gt;2011-03-07&lt;br&gt;2011-03-22&lt;br&gt;2011-04-16&lt;br&gt;2011-04-21&lt;br&gt;2011-04-26&lt;br&gt; 2011-05-21&lt;br&gt;2011-01-24&lt;br&gt;2011-02-01&lt;br&gt;2011-03-06&lt;br&gt;2011-03-09&lt;br&gt;2011-05-25&lt;br&gt;2011-06-23&lt;br&gt;2011-07-23&lt;br&gt;2011-08-10&lt;br&gt;2011-09-09&lt;br&gt;2011-09-10&lt;br&gt;&lt;br&gt;&lt;br&gt; &lt;div class="blogger-post-footer"&gt;&lt;P&gt;We are proud members of the &lt;A HREF="http://securitybloggers.net/"&gt;Security Bloggers Network&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;This content originally posted on &lt;A HREF="http://www.h-i-r.net/"&gt;HiR Information Report&lt;/A&gt;. Copyright © 1997-2010, HiR&lt;/P&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5554915078212081470-86676291107091961?l=www.h-i-r.net' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/jGdIOxZgRefmHiLd82eTi5QFxBc/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/jGdIOxZgRefmHiLd82eTi5QFxBc/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/jGdIOxZgRefmHiLd82eTi5QFxBc/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/jGdIOxZgRefmHiLd82eTi5QFxBc/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/HiR?a=B_DwA9lscHI:k7dU4sNte5Y:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/HiR?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/HiR?a=B_DwA9lscHI:k7dU4sNte5Y:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/HiR?i=B_DwA9lscHI:k7dU4sNte5Y:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/HiR?a=B_DwA9lscHI:k7dU4sNte5Y:F7zBnMyn0Lo"&gt;&lt;img src="http://feeds.feedburner.com/~ff/HiR?i=B_DwA9lscHI:k7dU4sNte5Y:F7zBnMyn0Lo" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/HiR/~4/B_DwA9lscHI" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/HiR/~3/B_DwA9lscHI/bulk-date-conversion-with-gnu-date.html</link><author>noreply@blogger.com (Ax0n)</author><thr:total>0</thr:total><feedburner:origLink>http://www.h-i-r.net/2011/10/bulk-date-conversion-with-gnu-date.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-5554915078212081470.post-4958079795623840136</guid><pubDate>Wed, 21 Sep 2011 20:06:00 +0000</pubDate><atom:updated>2011-09-21T15:06:04.164-05:00</atom:updated><title>wpa_supplicant on the command line</title><description>Here&amp;#39;s the quickest and dirtiest guide you&amp;#39;ll see to getting connected to a WPA/WPA2 PSK wireless network from the command line on Linux. Obviously, replace the SSID, passphrase and interface (in my case, wlan0) with the appropriate settings for your configuration. I&amp;#39;ve never really had to bother with hopping on a WPA network on Linux without the GUI Network Manager before. I was surprised at how easy it was. Tested on BT5 and Ubuntu Server:&lt;br&gt; &lt;br&gt;$ wpa_passprase mynetwork secretpassphrase &amp;gt; wpa_supplicant.tmp.conf&lt;br&gt;$ sudo wpa_supplicant -iwlan0 -c wpa_supplicant.tmp.conf&amp;amp;&lt;br&gt;$ sudo dhclient wlan0&lt;br&gt;&lt;br&gt;A few notes: &lt;br&gt;* wpa_passphrase will prompt you for a password if you don&amp;#39;t use it on the command line. You may want to clear your history out or rely on this prompting feature to keep network credentials from being stored insecurely. You should also remove the plaintext version of the password from the resulting configuration file.&lt;br&gt; &lt;br&gt;* If the SSID is &amp;quot;hidden&amp;quot; (which is actually &lt;a href="http://www.h-i-r.net/2010/09/evil-wifi-subversive-wireless-self.html"&gt;less secure&lt;/a&gt;!), you need to add another line to the configuration file:  &amp;quot;scan_ssid=1&amp;quot; &lt;br&gt; &lt;div class="blogger-post-footer"&gt;&lt;P&gt;We are proud members of the &lt;A HREF="http://securitybloggers.net/"&gt;Security Bloggers Network&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;This content originally posted on &lt;A HREF="http://www.h-i-r.net/"&gt;HiR Information Report&lt;/A&gt;. Copyright © 1997-2010, HiR&lt;/P&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5554915078212081470-4958079795623840136?l=www.h-i-r.net' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/cpetVQaO6-GFXOh_qU7yIMAeq-8/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/cpetVQaO6-GFXOh_qU7yIMAeq-8/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/cpetVQaO6-GFXOh_qU7yIMAeq-8/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/cpetVQaO6-GFXOh_qU7yIMAeq-8/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/HiR?a=jZCd3r14qjk:0nvwcy21TWc:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/HiR?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/HiR?a=jZCd3r14qjk:0nvwcy21TWc:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/HiR?i=jZCd3r14qjk:0nvwcy21TWc:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/HiR?a=jZCd3r14qjk:0nvwcy21TWc:F7zBnMyn0Lo"&gt;&lt;img src="http://feeds.feedburner.com/~ff/HiR?i=jZCd3r14qjk:0nvwcy21TWc:F7zBnMyn0Lo" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/HiR/~4/jZCd3r14qjk" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/HiR/~3/jZCd3r14qjk/wpasupplicant-on-command-line.html</link><author>noreply@blogger.com (Ax0n)</author><thr:total>0</thr:total><feedburner:origLink>http://www.h-i-r.net/2011/09/wpasupplicant-on-command-line.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-5554915078212081470.post-604625706460616469</guid><pubDate>Tue, 30 Aug 2011 23:35:00 +0000</pubDate><atom:updated>2011-08-30T20:59:41.974-05:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">tools</category><category domain="http://www.blogger.com/atom/ns#">linux</category><category domain="http://www.blogger.com/atom/ns#">openvas</category><category domain="http://www.blogger.com/atom/ns#">InfoSec</category><category domain="http://www.blogger.com/atom/ns#">software</category><category domain="http://www.blogger.com/atom/ns#">opensource</category><category domain="http://www.blogger.com/atom/ns#">backtrack</category><title>Installing OpenVAS on BackTrack 5</title><description>In preparation for a talk I'll be giving at &lt;a href="http://www.securitybsides.com/w/page/26298468/BSidesKC"&gt;BSidesKC&lt;/a&gt; in October, I've been playing with BackTrack 5 and OpenVAS. OpenVAS was a little bit of a pain to get compiled on Ubuntu, but now that the OpenSUSE guys have built .DEB packages of a fairly recent version of OpenVAS (4.x), it's pretty easy to install on most modern Debian-derived systems. In fact, this works on Ubuntu Server as well, and I have tested it on 10.04 LTS. You just have to do it as root, like you'd do on BackTrack, because I was too lazy to write these instructions with "sudo" in front of each line (and using "| sudo tee -a" instead of the append-redirect for adding a quick line to the sources.list file).
&lt;br /&gt;
&lt;br /&gt;This will be a rough post just to get my install notes down. The &lt;a href="http://www.openvas.org/install-packages.html#openvas4_debian_obs"&gt;instructions&lt;/a&gt; on OpenVAS' website do not currently work as designed (however, I'm basing this post on them) and at the time of writing, the OpenSUSE build packages are broken in a number of ways that are easily fixed. For example, the openvas-scanner package provides a startup script in /etc/init.d, but the greenbone-security-assistant, openvas-manager and openvas-administrator packages do not. Some of the binaries are built to read files from /var/lib/openvas while others go for /usr/local/var/lib/openvas. Whatever. We'll deal with it. Also, a lot of these command lines are insanely long and probably will get cut off or line-wrapped by HiR's template. Copy. Paste. View Source. I trust our readers to be smart enough to figure that out.
&lt;br /&gt;
&lt;br /&gt;Before starting, I recommend making sure you're up to date:
&lt;br /&gt;&lt;pre&gt;
&lt;br /&gt;&lt;span style="color:#009900;"&gt;&lt;strong&gt;apt-get update &amp;amp;&amp;amp; apt-get upgrade
&lt;br /&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;br /&gt;
&lt;br /&gt;Add the OpenVAS branch of the OpenSUSE Build Service to your apt sources, get the apt key and update your repository cache:
&lt;br /&gt;
&lt;br /&gt;&lt;pre&gt;
&lt;br /&gt;&lt;span style="color:#009900;"&gt;&lt;strong&gt;echo "deb http://download.opensuse.org/repositories/security:/OpenVAS:/STABLE:/v4/Debian_5.0/ ./" &amp;gt;&amp;gt; /etc/apt/sources.list
&lt;br /&gt;apt-key adv --keyserver hkp://keys.gnupg.net --recv-keys BED1E87979EAFD54
&lt;br /&gt;apt-get update
&lt;br /&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;br /&gt;
&lt;br /&gt;Next, install all the fun packages and dependencies needed in one run of things. Consider adding "gsd" to this package list if you think you'll want to use the Greenbone Security Desktop GUI interface. I plan on doing no such thing.
&lt;br /&gt;&lt;pre&gt;
&lt;br /&gt;&lt;strong&gt;&lt;span style="color:#009900;"&gt;apt-get -y install greenbone-security-assistant openvas-cli openvas-manager openvas-scanner openvas-administrator sqlite3 xsltproc texlive-latex-base texlive-latex-extra texlive-latex-recommended htmldoc alien rpm nsis fakeroot
&lt;br /&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/pre&gt;
&lt;br /&gt;
&lt;br /&gt;Make some directories and some symlinks to compensate for the clustercoitus of path discrepancies in the OBS packages.
&lt;br /&gt;&lt;pre&gt;
&lt;br /&gt;&lt;strong&gt;&lt;span style="color:#009900;"&gt;mkdir -p /var/lib/openvas/private /var/lib/openvas/CA
&lt;br /&gt;mkdir -p /usr/local/var/lib/openvas /usr/local/var/lib/openvas/users
&lt;br /&gt;ln -s /var/lib/openvas/users /usr/local/var/lib/openvas/users
&lt;br /&gt;ln -s /var/lib/openvas/CA /usr/local/var/lib/openvas/CA
&lt;br /&gt;ln -s /var/lib/openvas/private /usr/local/var/lib/openvas/private
&lt;br /&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/pre&gt;
&lt;br /&gt;
&lt;br /&gt;Make the openvas server cert, fetch the latest NVT plugins, and make the client cert used by openvas-manager:
&lt;br /&gt;&lt;pre&gt;
&lt;br /&gt;&lt;strong&gt;&lt;span style="color:#009900;"&gt;openvas-mkcert -q
&lt;br /&gt;openvas-nvt-sync
&lt;br /&gt;openvas-mkcert-client -n om -i
&lt;br /&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/pre&gt;
&lt;br /&gt;
&lt;br /&gt;Start the OpenVAS Services manually, rebuilding the OpenVAS Manager database once your get openvassd started (it'll take a good couple of minutes to load all the plugins), and all that jazz. Hey, Greenbone Security Assistant (the Web UI) works over https when you install it this way! It would only do HTTP &lt;a href="http://www.h-i-r.net/2011/03/openvas-on-ubuntu-1010-maverick-meerkat.html"&gt;when I installed it from source&lt;/a&gt;.
&lt;br /&gt;&lt;pre&gt;
&lt;br /&gt;&lt;strong&gt;&lt;span style="color:#009900;"&gt;openvassd
&lt;br /&gt;openvasmd --rebuild
&lt;br /&gt;openvasmd
&lt;br /&gt;openvasad
&lt;br /&gt;gsad
&lt;br /&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/pre&gt;
&lt;br /&gt;
&lt;br /&gt;Add an admin-level account for yourself. I suggest a different username for the -u argument. -r specifies the role, and you want to leave that value set to "Admin" if you want to be able to do much with OpenVAS.
&lt;br /&gt;&lt;pre&gt;
&lt;br /&gt;&lt;strong&gt;&lt;span style="color:#009900;"&gt;openvasad -c add_user -n axon -r Admin
&lt;br /&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/pre&gt;
&lt;br /&gt;
&lt;br /&gt;At this point, you should be good to go. Hit https: on your machine and have a blast.
&lt;br /&gt;
&lt;br /&gt;Look for another article related to BackTrack 5 and OpenVAS right after BSidesKC. I've got something fun up my sleeve. If you're anywhere in the region, you should probably just show up. It'll be a good time.
&lt;br /&gt;&lt;div class="blogger-post-footer"&gt;&lt;P&gt;We are proud members of the &lt;A HREF="http://securitybloggers.net/"&gt;Security Bloggers Network&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;This content originally posted on &lt;A HREF="http://www.h-i-r.net/"&gt;HiR Information Report&lt;/A&gt;. Copyright © 1997-2010, HiR&lt;/P&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5554915078212081470-604625706460616469?l=www.h-i-r.net' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/ZBNqT_0kPFKmS6BbaPvuY_RfRl8/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/ZBNqT_0kPFKmS6BbaPvuY_RfRl8/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/ZBNqT_0kPFKmS6BbaPvuY_RfRl8/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/ZBNqT_0kPFKmS6BbaPvuY_RfRl8/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/HiR?a=8sx8e6_pwqk:p_1sQvJ7cwQ:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/HiR?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/HiR?a=8sx8e6_pwqk:p_1sQvJ7cwQ:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/HiR?i=8sx8e6_pwqk:p_1sQvJ7cwQ:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/HiR?a=8sx8e6_pwqk:p_1sQvJ7cwQ:F7zBnMyn0Lo"&gt;&lt;img src="http://feeds.feedburner.com/~ff/HiR?i=8sx8e6_pwqk:p_1sQvJ7cwQ:F7zBnMyn0Lo" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/HiR/~4/8sx8e6_pwqk" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/HiR/~3/8sx8e6_pwqk/installing-openvas-on-backtrack-5.html</link><author>noreply@blogger.com (Ax0n)</author><thr:total>0</thr:total><feedburner:origLink>http://www.h-i-r.net/2011/08/installing-openvas-on-backtrack-5.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-5554915078212081470.post-99744132466356221</guid><pubDate>Mon, 29 Aug 2011 13:53:00 +0000</pubDate><atom:updated>2011-08-29T09:16:05.402-05:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">storage</category><title>Store extra MicroSD cards in the original case</title><description>This is quick and silly, but useful to me. Maybe it'll help others.
&lt;br /&gt;
&lt;br /&gt;A lot of my gadgets use MicroSD and SD cards. I've found you can get MicroSD's pretty cheap, so now I just buy those and carry an SD adapter around for the times I need to put a MicroSD into my digital camera or laptop. I bought my SD Card Adapter in a set (with two 8GB microSDs included), so it had space for the adapter with one MicroSD already inserted, and another space for one MicroSD card. The case is conveniently-sized, but I wanted it to be able to hold more MicroSD's.
&lt;br /&gt;
&lt;br /&gt;&lt;p&gt;I started by placing one MicroSD on the inside edge of the open case, resting on the plastic tabs that are designed to hold the original MicroSD in place. I faced the new one pointing the opposite direction (broad end to the right) from how the original MicroSD is supposed to sit (broad end to the left). Then, as shown below, I made two slices in the plastic with a box cutter to trim the tabs to the right length to allow more MicroSD cards to fit in the case.&lt;/p&gt;&lt;a href="https://lh6.googleusercontent.com/-p-ZE3HKda8c/TlubGC-CZbI/AAAAAAAAA4M/KkHwNAe2NyA/s912/2011-08-29_08-49-32_30.jpg"&gt;&lt;img style="WIDTH: 450px; CURSOR: hand" border="0" alt="" src="https://lh6.googleusercontent.com/-p-ZE3HKda8c/TlubGC-CZbI/AAAAAAAAA4M/KkHwNAe2NyA/s912/2011-08-29_08-49-32_30.jpg" /&gt;&lt;/a&gt;
&lt;br /&gt;
&lt;br /&gt;Not shown: I removed the SD card and used the box cutter to cut the tabs loose from the bottom of the case.
&lt;br /&gt;
&lt;br /&gt;Now, two SD cards can fit stacked on top of one another in the space next to the original MicroSD. With one SD card in the adapter, another in the original spot and two stacked next to it, I can now carry a total of four MicroSD's and the adapter in this small and convenient case.
&lt;br /&gt;&lt;a href="https://lh5.googleusercontent.com/-AdxjhS-eZPA/TlubJuObP1I/AAAAAAAAA4U/-lphVtbx_9I/s912/2011-08-29_08-47-19_804.jpg"&gt;&lt;img style="WIDTH: 450px; CURSOR: hand" border="0" alt="" src="https://lh5.googleusercontent.com/-AdxjhS-eZPA/TlubJuObP1I/AAAAAAAAA4U/-lphVtbx_9I/s912/2011-08-29_08-47-19_804.jpg" /&gt;&lt;/a&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;a href="https://lh6.googleusercontent.com/-N-xNnbsyofs/Tlua_Hu-DeI/AAAAAAAAA4E/lhYPMKGa1fU/s912/2011-08-29_08-50-37_179.jpg"&gt;&lt;img style="WIDTH: 450px; CURSOR: hand" border="0" alt="" src="https://lh6.googleusercontent.com/-N-xNnbsyofs/Tlua_Hu-DeI/AAAAAAAAA4E/lhYPMKGa1fU/s912/2011-08-29_08-50-37_179.jpg" /&gt;&lt;/a&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;div&gt;Side note: I saw 64GB MicroSD's for the first time over the weekend. That's about 2,500 times the capacity of the hard drive I helped dad install into our first real desktop PC, and it's half the physical size of a postage stamp. The future: we're living in it.&lt;/div&gt;
&lt;br /&gt;&lt;div class="blogger-post-footer"&gt;&lt;P&gt;We are proud members of the &lt;A HREF="http://securitybloggers.net/"&gt;Security Bloggers Network&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;This content originally posted on &lt;A HREF="http://www.h-i-r.net/"&gt;HiR Information Report&lt;/A&gt;. Copyright © 1997-2010, HiR&lt;/P&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5554915078212081470-99744132466356221?l=www.h-i-r.net' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/3a7D6ZsNl9OAGmrYBv9JlMV2eAo/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/3a7D6ZsNl9OAGmrYBv9JlMV2eAo/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/3a7D6ZsNl9OAGmrYBv9JlMV2eAo/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/3a7D6ZsNl9OAGmrYBv9JlMV2eAo/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/HiR?a=plEVjyzJQOY:YRyn01fdVrs:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/HiR?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/HiR?a=plEVjyzJQOY:YRyn01fdVrs:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/HiR?i=plEVjyzJQOY:YRyn01fdVrs:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/HiR?a=plEVjyzJQOY:YRyn01fdVrs:F7zBnMyn0Lo"&gt;&lt;img src="http://feeds.feedburner.com/~ff/HiR?i=plEVjyzJQOY:YRyn01fdVrs:F7zBnMyn0Lo" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/HiR/~4/plEVjyzJQOY" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/HiR/~3/plEVjyzJQOY/store-extra-microsd-cards-in-original.html</link><author>noreply@blogger.com (Ax0n)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://lh6.googleusercontent.com/-p-ZE3HKda8c/TlubGC-CZbI/AAAAAAAAA4M/KkHwNAe2NyA/s72-c/2011-08-29_08-49-32_30.jpg" height="72" width="72" /><thr:total>0</thr:total><feedburner:origLink>http://www.h-i-r.net/2011/08/store-extra-microsd-cards-in-original.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-5554915078212081470.post-7956673234898794610</guid><pubDate>Wed, 10 Aug 2011 14:48:00 +0000</pubDate><atom:updated>2011-08-10T09:48:58.911-05:00</atom:updated><title>xkcd on password strength</title><description>&lt;a href="http://xkcd.com/936/"&gt;So much win&lt;/a&gt;. &lt;br&gt; &lt;div class="blogger-post-footer"&gt;&lt;P&gt;We are proud members of the &lt;A HREF="http://securitybloggers.net/"&gt;Security Bloggers Network&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;This content originally posted on &lt;A HREF="http://www.h-i-r.net/"&gt;HiR Information Report&lt;/A&gt;. Copyright © 1997-2010, HiR&lt;/P&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5554915078212081470-7956673234898794610?l=www.h-i-r.net' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/dB-C8DJhJP7QLHeELYmaQtNc_IE/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/dB-C8DJhJP7QLHeELYmaQtNc_IE/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/dB-C8DJhJP7QLHeELYmaQtNc_IE/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/dB-C8DJhJP7QLHeELYmaQtNc_IE/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/HiR?a=RW9Av73yO9I:yNUwDggeq1w:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/HiR?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/HiR?a=RW9Av73yO9I:yNUwDggeq1w:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/HiR?i=RW9Av73yO9I:yNUwDggeq1w:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/HiR?a=RW9Av73yO9I:yNUwDggeq1w:F7zBnMyn0Lo"&gt;&lt;img src="http://feeds.feedburner.com/~ff/HiR?i=RW9Av73yO9I:yNUwDggeq1w:F7zBnMyn0Lo" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/HiR/~4/RW9Av73yO9I" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/HiR/~3/RW9Av73yO9I/xkcd-on-password-strength.html</link><author>noreply@blogger.com (Ax0n)</author><thr:total>0</thr:total><feedburner:origLink>http://www.h-i-r.net/2011/08/xkcd-on-password-strength.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-5554915078212081470.post-3454283991887965046</guid><pubDate>Fri, 05 Aug 2011 12:35:00 +0000</pubDate><atom:updated>2011-08-05T09:41:28.986-05:00</atom:updated><title>Awesome HNN Schwag!</title><description>&lt;a href="http://www.hackernews.com/"&gt;HNN&lt;/a&gt; came into existence around the same time we did. They went dormant around the time time we did. They came back a while after we did. Back when HiR was just getting started, HNN would diligently and without fail link to our new e-Zine releases. They've always been better at maintaining a consistent news schedule than we have, though.&lt;br /&gt;&lt;br /&gt;We were surprised and thrilled to get this little care package in the mail this week:&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.flickr.com/photos/kc-bike/6009992666/" title="Awesome @ThisIsHNN schwag! Thanks @spacerog! by KC-Bike, on Flickr"&gt;&lt;img src="http://farm7.static.flickr.com/6148/6009992666_3d2ba0e879.jpg" width="500" height="281" alt="Awesome @ThisIsHNN schwag! Thanks @spacerog!"&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Thanks!&lt;div class="blogger-post-footer"&gt;&lt;P&gt;We are proud members of the &lt;A HREF="http://securitybloggers.net/"&gt;Security Bloggers Network&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;This content originally posted on &lt;A HREF="http://www.h-i-r.net/"&gt;HiR Information Report&lt;/A&gt;. Copyright © 1997-2010, HiR&lt;/P&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5554915078212081470-3454283991887965046?l=www.h-i-r.net' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/M7K9DSqnPe7Id-tW-2TPp59sN3s/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/M7K9DSqnPe7Id-tW-2TPp59sN3s/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/M7K9DSqnPe7Id-tW-2TPp59sN3s/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/M7K9DSqnPe7Id-tW-2TPp59sN3s/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/HiR?a=oADLpET6BLU:5QT4x_WbF-U:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/HiR?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/HiR?a=oADLpET6BLU:5QT4x_WbF-U:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/HiR?i=oADLpET6BLU:5QT4x_WbF-U:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/HiR?a=oADLpET6BLU:5QT4x_WbF-U:F7zBnMyn0Lo"&gt;&lt;img src="http://feeds.feedburner.com/~ff/HiR?i=oADLpET6BLU:5QT4x_WbF-U:F7zBnMyn0Lo" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/HiR/~4/oADLpET6BLU" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/HiR/~3/oADLpET6BLU/awesome-hnn-schwag.html</link><author>noreply@blogger.com (Ax0n)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://farm7.static.flickr.com/6148/6009992666_3d2ba0e879_t.jpg" height="72" width="72" /><thr:total>0</thr:total><feedburner:origLink>http://www.h-i-r.net/2011/08/awesome-hnn-schwag.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-5554915078212081470.post-790749305902016322</guid><pubDate>Thu, 28 Jul 2011 15:19:00 +0000</pubDate><atom:updated>2011-07-28T10:19:52.342-05:00</atom:updated><title>Banned by Google+</title><description>&lt;p class="mobile-photo"&gt;&lt;a href="http://3.bp.blogspot.com/-CJrcJlmP3G4/TjF-GPcvFgI/AAAAAAAAAY4/I4V8zf-T2-E/s1600/358037780-792343.png"&gt;&lt;img src="http://3.bp.blogspot.com/-CJrcJlmP3G4/TjF-GPcvFgI/AAAAAAAAAY4/I4V8zf-T2-E/s320/358037780-792343.png"  border="0" alt="" id="BLOGGER_PHOTO_ID_5634423254508574210" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p&gt;That didn&amp;#39;t take as long as I thought it might. A rundown of what happens: Your google profile goes wonky as shown in the photo. GMail, Docs, Picasa, Voice and Talk all work fine, although anywhere you would expect to see your profile photo, it will be missing. You can view other people&amp;#39;s content in Buzz, Reader ans Plus, but you cannot share, post, comment or otherwise produce any content on those services, nor, apparently, can you follow new contacts either.&lt;/p&gt;  &lt;p&gt;Most people that I collaborate with elsewhere know me as ax0n. My real name, address, phone number etc are no secret, but most people don&amp;#39;t even know who I am by my given name.&lt;/p&gt; &lt;p&gt;By for now, Google+.&lt;/p&gt; &lt;div class="blogger-post-footer"&gt;&lt;P&gt;We are proud members of the &lt;A HREF="http://securitybloggers.net/"&gt;Security Bloggers Network&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;This content originally posted on &lt;A HREF="http://www.h-i-r.net/"&gt;HiR Information Report&lt;/A&gt;. Copyright © 1997-2010, HiR&lt;/P&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5554915078212081470-790749305902016322?l=www.h-i-r.net' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/uszK-mp7qQLRyKIaigmAvz7Qgq8/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/uszK-mp7qQLRyKIaigmAvz7Qgq8/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/uszK-mp7qQLRyKIaigmAvz7Qgq8/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/uszK-mp7qQLRyKIaigmAvz7Qgq8/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/HiR?a=tO7JroZlMRY:OMFvDQcmKYE:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/HiR?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/HiR?a=tO7JroZlMRY:OMFvDQcmKYE:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/HiR?i=tO7JroZlMRY:OMFvDQcmKYE:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/HiR?a=tO7JroZlMRY:OMFvDQcmKYE:F7zBnMyn0Lo"&gt;&lt;img src="http://feeds.feedburner.com/~ff/HiR?i=tO7JroZlMRY:OMFvDQcmKYE:F7zBnMyn0Lo" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/HiR/~4/tO7JroZlMRY" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/HiR/~3/tO7JroZlMRY/banned-by-google.html</link><author>noreply@blogger.com (Ax0n)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://3.bp.blogspot.com/-CJrcJlmP3G4/TjF-GPcvFgI/AAAAAAAAAY4/I4V8zf-T2-E/s72-c/358037780-792343.png" height="72" width="72" /><thr:total>0</thr:total><feedburner:origLink>http://www.h-i-r.net/2011/07/banned-by-google.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-5554915078212081470.post-5388230210499845284</guid><pubDate>Mon, 25 Jul 2011 01:01:00 +0000</pubDate><atom:updated>2012-01-14T14:12:00.678-06:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">locks</category><category domain="http://www.blogger.com/atom/ns#">fail</category><category domain="http://www.blogger.com/atom/ns#">lockpicking</category><category domain="http://www.blogger.com/atom/ns#">physicalsecurity</category><title>Lock Fail</title><description>&lt;a href="http://www.h-i-r.net/2009/10/dissecting-simplex-lock.html"&gt;Simplex-style&lt;/a&gt; pushbutton locks are ubiquitous in the medical industry. They're used on medicine carts, cabinets, lockers and doors. This is a cabinet that is designed to hold a thin-client workstation and/or patient record portfolios, and restrict access to ethernet ports.&lt;br /&gt;&lt;br /&gt;&lt;img src="http://1.bp.blogspot.com/-n_G2iACCY-s/TizBQ-B_VqI/AAAAAAAAAYg/WUbxDPoIOEo/s320/2011-07-24_20-00-26_714.jpg" alt="" id="BLOGGER_PHOTO_ID_5633089731207059106" border="0" /&gt;&lt;br /&gt;&lt;br /&gt;&lt;img src="http://3.bp.blogspot.com/-ResVvAikyWE/TizBVjzWQ8I/AAAAAAAAAYo/fHGQOM_Sfbc/s320/2011-07-24_20-00-40_950.jpg" alt="" id="BLOGGER_PHOTO_ID_5633089810065671106" border="0" /&gt;&lt;br /&gt;&lt;br /&gt;&lt;img src="http://1.bp.blogspot.com/-za7GmlNkm5A/TizBZeAdbnI/AAAAAAAAAYw/ifyqtwem5p0/s320/2011-07-24_20-00-47_296.jpg" alt="" id="BLOGGER_PHOTO_ID_5633089877229530738" border="0" /&gt;&lt;br /&gt;&lt;br /&gt;Yep. You can open this one by sliding the exposed latch with your finger. &lt;div&gt;&lt;br /&gt;&lt;div&gt;Also: if you happen to shoulder-surf the code for one of these, you can almost guarantee every other cabinet in the same hospital uses the same code.&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;P&gt;We are proud members of the &lt;A HREF="http://securitybloggers.net/"&gt;Security Bloggers Network&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;This content originally posted on &lt;A HREF="http://www.h-i-r.net/"&gt;HiR Information Report&lt;/A&gt;. Copyright © 1997-2010, HiR&lt;/P&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5554915078212081470-5388230210499845284?l=www.h-i-r.net' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/XgnLExrMpvnfzkgSKcaYHTmyd2U/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/XgnLExrMpvnfzkgSKcaYHTmyd2U/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/XgnLExrMpvnfzkgSKcaYHTmyd2U/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/XgnLExrMpvnfzkgSKcaYHTmyd2U/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/HiR?a=FJpHoUbIZGw:Mezvp1nLnSg:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/HiR?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/HiR?a=FJpHoUbIZGw:Mezvp1nLnSg:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/HiR?i=FJpHoUbIZGw:Mezvp1nLnSg:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/HiR?a=FJpHoUbIZGw:Mezvp1nLnSg:F7zBnMyn0Lo"&gt;&lt;img src="http://feeds.feedburner.com/~ff/HiR?i=FJpHoUbIZGw:Mezvp1nLnSg:F7zBnMyn0Lo" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/HiR/~4/FJpHoUbIZGw" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/HiR/~3/FJpHoUbIZGw/lock-fail.html</link><author>noreply@blogger.com (Ax0n)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://1.bp.blogspot.com/-n_G2iACCY-s/TizBQ-B_VqI/AAAAAAAAAYg/WUbxDPoIOEo/s72-c/2011-07-24_20-00-26_714.jpg" height="72" width="72" /><thr:total>0</thr:total><feedburner:origLink>http://www.h-i-r.net/2011/07/lock-fail.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-5554915078212081470.post-2123235618574802732</guid><pubDate>Mon, 18 Jul 2011 00:29:00 +0000</pubDate><atom:updated>2011-07-17T20:20:40.942-05:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">linux</category><category domain="http://www.blogger.com/atom/ns#">sysadmin</category><category domain="http://www.blogger.com/atom/ns#">unix</category><category domain="http://www.blogger.com/atom/ns#">CLI</category><category domain="http://www.blogger.com/atom/ns#">shell</category><category domain="http://www.blogger.com/atom/ns#">script</category><title>Sysadmin Sunday: parse strings with spaces using shell script</title><description>I run into this once in a while: I'm trying to perform some operation on a bunch of files or a big line of text, and a space in the filename or text file janks everything up. Take for example all these recordings from a podcast that got batch-named with spaces in them. &lt;div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Chimera:Recordings axon$ ls&lt;/div&gt;&lt;div&gt;(110) - .mp3&lt;span class="Apple-tab-span" style="white-space:pre"&gt; &lt;/span&gt;(12) - .mp3&lt;span class="Apple-tab-span" style="white-space:pre"&gt; &lt;/span&gt;(18) - .mp3&lt;span class="Apple-tab-span" style="white-space:pre"&gt; &lt;/span&gt;(39) - .mp3&lt;span class="Apple-tab-span" style="white-space:pre"&gt; &lt;/span&gt;(79) - .mp3&lt;/div&gt;&lt;div&gt;(111) - .mp3&lt;span class="Apple-tab-span" style="white-space:pre"&gt; &lt;/span&gt;(15) - .mp3&lt;span class="Apple-tab-span" style="white-space:pre"&gt; &lt;/span&gt;(3) - .mp3&lt;span class="Apple-tab-span" style="white-space:pre"&gt; &lt;/span&gt;(70) - .mp3&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;I really don't want spaces in the names. No problem, just use ls -1 (the number one) to list the files on their own line, and use sed or something for renaming them and changing every space to a null character, right?&lt;div&gt;&lt;div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;Chimera:Recordings axon$ for file in `ls -1`&lt;/div&gt;&lt;div&gt;&amp;gt; do mv "$file" `echo $file | sed s/" "//g`&lt;/div&gt;&lt;div&gt;&amp;gt; done&lt;/div&gt;&lt;div&gt;mv: rename (110) to (110): No such file or directory&lt;/div&gt;&lt;div&gt;mv: rename - to -: No such file or directory&lt;/div&gt;&lt;div&gt;mv: rename .mp3 to .mp3: No such file or directory&lt;/div&gt;&lt;div&gt;mv: rename (111) to (111): No such file or directory&lt;/div&gt;&lt;div&gt;mv: rename - to -: No such file or directory&lt;/div&gt;&lt;div&gt;mv: rename .mp3 to .mp3: No such file or directory&lt;/div&gt;&lt;/div&gt;&lt;div&gt; [truncated]&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;That did not go as planned...&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;There are a few interesting ways to solve this one. The actual reason for this problem is your shell's internal field separator. When iterating over some input (here, the results of "ls -1"), the shell interprets any kind of whitespace as a field separator, including spaces, tabs and newline characters. &lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Although there are some other clever ways to get around this limitation when dealing with filenames specifically, my favorite solution to this problem works on any whole line of input regardless its source, whether reading a text file and operating on it one line at a time or taking filenames as input from another command such as ls or find.  You simply have to use something that can accept spaces and requires a newline character in order to set a variable. Of course, I'm talking about a rather unsavory (but totally viable) use of the &lt;a href="http://linux.die.net/man/1/read"&gt;read&lt;/a&gt; command, which most unixy shell-script writers are familiar with when they require user input.  Check it:&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;div&gt;Chimera:Recordings axon$ ls -1 | while read file &lt;/div&gt;&lt;div&gt;&amp;gt; do mv "$file" `echo $file | sed s/" "//g`&lt;/div&gt;&lt;div&gt;&amp;gt; done&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Chimera:Recordings axon$ ls -1&lt;/div&gt;&lt;div&gt;(110)-.mp3&lt;/div&gt;&lt;div&gt;(111)-.mp3&lt;/div&gt;&lt;div&gt;(12)-.mp3&lt;/div&gt;&lt;div&gt;(15)-.mp3&lt;/div&gt;&lt;div&gt;(18)-.mp3&lt;/div&gt;&lt;div&gt;(3)-.mp3&lt;/div&gt;&lt;div&gt;(39)-.mp3&lt;/div&gt;&lt;div&gt;(70)-.mp3&lt;/div&gt;&lt;div&gt;(79)-.mp3&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;You can also remap the &lt;a href="http://linux.die.net/abs-guide/internalvariables.html#IFSREF"&gt;$IFS variable&lt;/a&gt; to contain a newline, but be sure to unset it afterwards (if using BASH, this will set it back to default), or your shell will act differently than you likely expect when you're done. Messing with the internal field separator can be useful for other things (such as parsing /etc/passwd or handling CSV files) but honestly I'd probably be more inclined to use awk for those.  If we remap IFS to a newline, our original script that errored out above works just fine.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;Chimera:Recordings axon$ IFS=`echo -en "\n\b"`&lt;/div&gt;&lt;div&gt;Chimera:Recordings axon$ for file in `ls -1`&lt;/div&gt;&lt;div&gt;&amp;gt; do mv "$file" `echo $file | sed s/" "//g`&lt;/div&gt;&lt;div&gt;&amp;gt; done&lt;/div&gt;&lt;div&gt;Chimera:Recordings axon$ ls -1&lt;/div&gt;&lt;div&gt;(110)-.mp3&lt;/div&gt;&lt;div&gt;(111)-.mp3&lt;/div&gt;&lt;div&gt;(12)-.mp3&lt;/div&gt;&lt;div&gt;(15)-.mp3&lt;/div&gt;&lt;div&gt;(18)-.mp3&lt;/div&gt;&lt;div&gt;(3)-.mp3&lt;/div&gt;&lt;div&gt;(39)-.mp3&lt;/div&gt;&lt;div&gt;(70)-.mp3&lt;/div&gt;&lt;div&gt;(79)-.mp3&lt;/div&gt;&lt;div&gt;Chimera:Recordings axon$ unset IFS&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;P&gt;We are proud members of the &lt;A HREF="http://securitybloggers.net/"&gt;Security Bloggers Network&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;This content originally posted on &lt;A HREF="http://www.h-i-r.net/"&gt;HiR Information Report&lt;/A&gt;. Copyright © 1997-2010, HiR&lt;/P&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5554915078212081470-2123235618574802732?l=www.h-i-r.net' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/-9jLgbwBaT3huEu11RISoWKzfIo/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/-9jLgbwBaT3huEu11RISoWKzfIo/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/-9jLgbwBaT3huEu11RISoWKzfIo/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/-9jLgbwBaT3huEu11RISoWKzfIo/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/HiR?a=mrFLYHMu-0E:PTOIqK-mOK4:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/HiR?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/HiR?a=mrFLYHMu-0E:PTOIqK-mOK4:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/HiR?i=mrFLYHMu-0E:PTOIqK-mOK4:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/HiR?a=mrFLYHMu-0E:PTOIqK-mOK4:F7zBnMyn0Lo"&gt;&lt;img src="http://feeds.feedburner.com/~ff/HiR?i=mrFLYHMu-0E:PTOIqK-mOK4:F7zBnMyn0Lo" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/HiR/~4/mrFLYHMu-0E" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/HiR/~3/mrFLYHMu-0E/sysadmin-sunday-parse-strings-with.html</link><author>noreply@blogger.com (Ax0n)</author><thr:total>0</thr:total><feedburner:origLink>http://www.h-i-r.net/2011/07/sysadmin-sunday-parse-strings-with.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-5554915078212081470.post-3695266598829905040</guid><pubDate>Mon, 23 May 2011 20:21:00 +0000</pubDate><atom:updated>2011-05-23T19:51:13.850-05:00</atom:updated><title>OAMP Update: Secure OpenBSD, Apache, MySQL and PHP</title><description>I got tired of essentially re-writing the same article over and over again, yet it seems with each release of OpenBSD and each OAMP install I do, things get just a little more refined. So I present to you a living document on its own page here at HiR Information Report. It's been written so that it is not specific to a distinct architecture or version of OpenBSD, so long as the proper packages exist on the OpenBSD mirror sites. This has been updated and tested on OpenBSD 4.8 and the recently-released OpenBSD 4.9, i386 architecture only.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.h-i-r.net/p/hirs-secure-openbsd-apache-mysql-and.html"&gt;&lt;span class="Apple-style-span" &gt;Secure OpenBSD, Chroot Apache, MySQL and Suhosin Hardened PHP Installation Guide&lt;/span&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;P&gt;We are proud members of the &lt;A HREF="http://securitybloggers.net/"&gt;Security Bloggers Network&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;This content originally posted on &lt;A HREF="http://www.h-i-r.net/"&gt;HiR Information Report&lt;/A&gt;. Copyright © 1997-2010, HiR&lt;/P&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5554915078212081470-3695266598829905040?l=www.h-i-r.net' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/1wF6PGfnNKFG6zTotf7dJRvq7-U/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/1wF6PGfnNKFG6zTotf7dJRvq7-U/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/1wF6PGfnNKFG6zTotf7dJRvq7-U/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/1wF6PGfnNKFG6zTotf7dJRvq7-U/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/HiR?a=UZK4D7EDU-Q:5nDXN9Yw7TM:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/HiR?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/HiR?a=UZK4D7EDU-Q:5nDXN9Yw7TM:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/HiR?i=UZK4D7EDU-Q:5nDXN9Yw7TM:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/HiR?a=UZK4D7EDU-Q:5nDXN9Yw7TM:F7zBnMyn0Lo"&gt;&lt;img src="http://feeds.feedburner.com/~ff/HiR?i=UZK4D7EDU-Q:5nDXN9Yw7TM:F7zBnMyn0Lo" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/HiR/~4/UZK4D7EDU-Q" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/HiR/~3/UZK4D7EDU-Q/oamp-update-secure-openbsd-apache-mysql.html</link><author>noreply@blogger.com (Ax0n)</author><thr:total>0</thr:total><feedburner:origLink>http://www.h-i-r.net/2011/05/oamp-update-secure-openbsd-apache-mysql.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-5554915078212081470.post-6858802687058649848</guid><pubDate>Thu, 19 May 2011 22:11:00 +0000</pubDate><atom:updated>2011-05-19T23:08:28.888-05:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">rant</category><category domain="http://www.blogger.com/atom/ns#">openbsd</category><category domain="http://www.blogger.com/atom/ns#">opensource</category><title>Why I'm coming home to OpenBSD</title><description>Although those who know me will tell you I love &lt;a href="http://www.h-i-r.net/search/label/openbsd"&gt;OpenBSD&lt;/a&gt;, I'm generally an operating system agnostic. I enjoy tinkering with OSes, and always have. There have been a few I tried and couldn't enjoy for the life of me (Mac OS versions prior to OS X, PalmOS, HP-UX and plan9 among them) but since 1997, OpenBSD has always felt like home to me, and I've long been a &lt;a href="http://www.flickr.com/photos/kc-bike/2894306940/"&gt;little bit of a fan&lt;/a&gt;.&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Not long ago, my primary computer was a 13" MacBook that was bought for me by one of my consulting customers in late 2006, and prior to that, I was using OpenBSD on a crappy old Dell desktop and OS X on a G3 PowerBook.  OS X is just unixy enough to geek out on. I could get most BSD-type stuff to compile. My MacBook also ran Windows 7 pretty well. I got switched on to it when my wife upgraded to 7 from Vista. It also ran OpenBSD, Backtrack and Ubuntu in VirtualBox like a champ.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;When the MacBook started showing its age about 6 months ago, I went to a Toshiba NB305 netbook. It came with Windows 7 Starter edition, which really isn't much of an operating system at all. It's basically a kernel meant to launch Internet Explorer. Not amused. I didn't feel like paying to "unlock" Windows Home Premium.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Figuring that the hardware and all of the funky function keys would probably work best under Ubuntu, I went that route. Webcam aside (I never use it anyway) the hardware worked pretty well. I had to wait around for patches to get the screen brightness keys to work. Power management was always funky right after getting unplugged. Otherwise, Ubuntu worked pretty well for me. I set it up to dual-boot alongside Windows 7 Starter, just so I could use my radio programming software.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;3 months ago, Ubuntu managed to corrupt the partition table on the hard drive. Recovery involved spending 4 hours restoring Windows 7 starter edition from the factory media and re-installing Ubuntu. A few days ago, the same thing happened. A co-worker has had similar trouble lately, as well.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;There are a bunch of distros out there -- probably too many. Netbook-specific distributions are hot stuff.  Frogman's on a Crunchbang kick. More than one person tried to tell me to go to Gentoo, Debian, Arch or some other flavor of Linux. I've used them before. Every few years, Linux has to piss me off, I suppose. &lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Faced with the prospect of a half-day wasted getting my netbook back to the way I thought I liked it, I decided to see what OpenBSD offered, since I haven't run it on the desktop outside of a VM in several years. The install is always quick, so if anything, it wouldn't be too much of a waste of my time.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;a href="http://www.flickr.com/photos/kc-bike/5733752434/" title="Taking the OpenBSD plunge on my NB305. Feels like $HOME again. by KC-Bike, on Flickr"&gt;&lt;img src="http://farm3.static.flickr.com/2753/5733752434_fb6611b3b0_m.jpg" width="240" height="180" alt="Taking the OpenBSD plunge on my NB305. Feels like $HOME again." /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;As expected, Xorg didn't need any configuring to determine and use my display to its maximum potential. X has come a long way since the late 1990s. I was worried about things like power management (suspend, resume), hardware drivers, support for WPA2 and of course the function keys for display brightness, volume and the like, since they gave me a bit of trouble on Ubuntu.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;You know what, though?  Everything worked right out of the box. I had to enable apmd in /etc/rc.conf to get suspend to work, but that was it. I also found a &lt;a href="http://marc.info/?l=openbsd-misc&amp;amp;m=130382744629543&amp;amp;w=2"&gt;pretty neat trick&lt;/a&gt; to get most flash videos to play in Firefox, with only open source tools and not actually using anything from Adobe. Youtube, vimeo, blip and even &lt;a href="http://badgerbadgerbadger.com/"&gt;Badgers&lt;/a&gt; all work great. Let's face it, life would suck if you couldn't watch Lolcats, Badgers and Mythbusters.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;a href="http://www.flickr.com/photos/kc-bike/5737652789/" title="Flash video on OpenBSD  by KC-Bike, on Flickr"&gt;&lt;img src="http://farm4.static.flickr.com/3032/5737652789_e5f3bdca54_m.jpg" width="240" height="141" alt="Flash video on OpenBSD " /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;It's way too soon to tell if OpenBSD will be any more reliable than Ubuntu in the long run, but I feel much more at home for the time being.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Moar useful OpenBSD resources I ran across this week:&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;a class="entry-title-link" target="_blank" href="http://www.openbsdsupport.org/OpenBSD-Desktop.html#"&gt;OpenBSDsupport: OpenBSD Desktop For Windows Users&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;a href="https://vinci.wordpress.com/2008/10/16/using-wpa-on-openbsd/"&gt;Using WPA on OpenBSD&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;That reminds me, I'm behind schedule on my &lt;a href="http://www.h-i-r.net/search/label/oamp"&gt;OAMP&lt;/a&gt; guide for OpenBSD 4.9, but I'm pretty sure the existing instructions haven't changed, save for version numbers. &lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;P&gt;We are proud members of the &lt;A HREF="http://securitybloggers.net/"&gt;Security Bloggers Network&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;This content originally posted on &lt;A HREF="http://www.h-i-r.net/"&gt;HiR Information Report&lt;/A&gt;. Copyright © 1997-2010, HiR&lt;/P&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5554915078212081470-6858802687058649848?l=www.h-i-r.net' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/ppLrojyxpVT6meI3HNGngpMketo/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/ppLrojyxpVT6meI3HNGngpMketo/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/ppLrojyxpVT6meI3HNGngpMketo/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/ppLrojyxpVT6meI3HNGngpMketo/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/HiR?a=FGIilqwqzvU:Km0CWtF73XQ:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/HiR?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/HiR?a=FGIilqwqzvU:Km0CWtF73XQ:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/HiR?i=FGIilqwqzvU:Km0CWtF73XQ:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/HiR?a=FGIilqwqzvU:Km0CWtF73XQ:F7zBnMyn0Lo"&gt;&lt;img src="http://feeds.feedburner.com/~ff/HiR?i=FGIilqwqzvU:Km0CWtF73XQ:F7zBnMyn0Lo" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/HiR/~4/FGIilqwqzvU" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/HiR/~3/FGIilqwqzvU/why-im-coming-home-to-openbsd.html</link><author>noreply@blogger.com (Ax0n)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://farm3.static.flickr.com/2753/5733752434_fb6611b3b0_t.jpg" height="72" width="72" /><thr:total>0</thr:total><feedburner:origLink>http://www.h-i-r.net/2011/05/why-im-coming-home-to-openbsd.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-5554915078212081470.post-661449952717433416</guid><pubDate>Mon, 25 Apr 2011 14:19:00 +0000</pubDate><atom:updated>2011-04-25T09:19:21.328-05:00</atom:updated><title>Using Severe Weather WX Alert on Yaesu Handhelds</title><description>I have a Yaesu VX-7R and VX-2, both of which are great handheld radios. Deep in the menu system, each one has a &amp;quot;WX Alert&amp;quot; option. It&amp;#39;s item 20 in the VX-7R&amp;#39;s menu, and the VX-2&amp;#39;s menu items are in alphabetical order, so look for &amp;quot;WX ALT&amp;quot; there. After enabling this option, my radios still failed to alert me when the National Weather Service issued alerts via their NOAA Weather Radio system.  What gives? The manuals that came with my radios are very vague about how to use this feature, and Googling around, it seems like a lot of people have the same problem.&lt;br&gt; &lt;br&gt;The trick is that you have to be scanning!&lt;br&gt;&lt;br&gt;On the VX-7R, you have to be scanning the weather band for this to work. If you scan the weather band with WX Alert enabled, it will silently pause on any NOAA Weather Radio stations it finds, listening for the alert tone without breaking squelch.  If it finds one, it will stop, open the  squelch and play the weather alert. I recommend using the SUB band for this. Here&amp;#39;s how you do it.&lt;br&gt;&lt;br&gt;* Press [F] then [0] to enter the menu, and scroll to item 20. Enable WX Alert by pressing the [MAIN] or [SUB] buttons, then momentarily press PTT to exit the menu.&lt;br&gt; * If you have only the MAIN tuner up, press and hold the [MAIN] or [SUB] button to see the dual tuners. Momentarily press [SUB] to select the SUB tuner.&lt;br&gt;* Press [F] then [3] to move the SUB tuner to the WX band.&lt;br&gt;* Press [F] then [1] to start scanning the WX band for weather alerts. &lt;br&gt; * Press [MAIN] to start controlling the MAIN tuner, and use the radio as normal.&lt;br&gt;&lt;br&gt;On the VX-2:&lt;br&gt;* Press and hold the H/L button to enter the menu, scroll to &amp;quot;WX ALT&amp;quot;&lt;br&gt;* Press H/L momentarily, then use the VFO knob to enable it. &lt;br&gt; * Press PTT Momentarily to save the setting.&lt;br&gt;* Press [F] followed by the [WIRES] button in the bottom left corner to enter special memory mode&lt;br&gt;* If needed, press [BAND] repeatedly until the weather band shows up.&lt;br&gt; * Press and hold the [BAND] key to scan the weather band. &lt;br&gt;&lt;br&gt;The VX-2 will silently pause on any NOAA Weather Radio stations it finds,  listening for the alert tone without breaking squelch.  If it finds one,  it will stop, open the  squelch and play the weather alert. I also found that if this option is enabled on the VX-2 and you&amp;#39;re scanning other memory  frequencies, the radio will occasionally jump over to the weather band  and listen for the alert tone. You should probably have the WX band tuned to the frequency of the nearest weather radio transmitter, because I don&amp;#39;t think it scans the whole weather band, only the station that was last used in the WX Special memory mode.&lt;br&gt; &lt;br&gt;Of course, not all Yaesu radios have these features, and these steps may not work exactly the same for all Yaesu radios that support WX Alert.&lt;br&gt; &lt;br&gt; &lt;div class="blogger-post-footer"&gt;&lt;P&gt;We are proud members of the &lt;A HREF="http://securitybloggers.net/"&gt;Security Bloggers Network&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;This content originally posted on &lt;A HREF="http://www.h-i-r.net/"&gt;HiR Information Report&lt;/A&gt;. Copyright © 1997-2010, HiR&lt;/P&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5554915078212081470-661449952717433416?l=www.h-i-r.net' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/K-cMMOw16-sAEY2QUfwaxrmudAw/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/K-cMMOw16-sAEY2QUfwaxrmudAw/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/K-cMMOw16-sAEY2QUfwaxrmudAw/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/K-cMMOw16-sAEY2QUfwaxrmudAw/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/HiR?a=8h4kCzy-sis:eRdQiNufu7g:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/HiR?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/HiR?a=8h4kCzy-sis:eRdQiNufu7g:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/HiR?i=8h4kCzy-sis:eRdQiNufu7g:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/HiR?a=8h4kCzy-sis:eRdQiNufu7g:F7zBnMyn0Lo"&gt;&lt;img src="http://feeds.feedburner.com/~ff/HiR?i=8h4kCzy-sis:eRdQiNufu7g:F7zBnMyn0Lo" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/HiR/~4/8h4kCzy-sis" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/HiR/~3/8h4kCzy-sis/using-severe-weather-wx-alert-on-yaesu.html</link><author>noreply@blogger.com (Ax0n)</author><thr:total>0</thr:total><feedburner:origLink>http://www.h-i-r.net/2011/04/using-severe-weather-wx-alert-on-yaesu.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-5554915078212081470.post-7433673836343069199</guid><pubDate>Tue, 19 Apr 2011 03:15:00 +0000</pubDate><atom:updated>2011-04-18T23:15:23.101-05:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">rant</category><category domain="http://www.blogger.com/atom/ns#">threat</category><category domain="http://www.blogger.com/atom/ns#">insider</category><title>The Real Insider Threat</title><description>Today, I saw &lt;a href="https://www.cert.org/blogs/insider_threat/2011/04/insider_threat_best_practices_from_industry.html"&gt;this interesting piece&lt;/a&gt; on insider threats posted to CERT, and was somewhat baffled. I stewed on it a bit, but a Google Reader comment by &lt;a href="http://carnal0wnage.attackresearch.com/"&gt;Carnal0wnage&lt;/a&gt; spun up my rant engine. Here, people are actually being urged to spy on their peers then name them and shame then, as if it's totally normal to put bear traps in the server room and roll your own &lt;a href="http://en.wikipedia.org/wiki/Echelon_(signals_intelligence)"&gt;ECHELON&lt;/a&gt;, lynching in the commons anyone who dares to raise the ire of the great and awesome security team. They titled their session "What's working to stop these attacks?" It's us versus them.&lt;br /&gt;&lt;br /&gt;When I was still a student, years before my real career in information security would take hold, it was commonplace to hear that some unfathomable percent of attacks are from malicious insiders. Maybe it was true in the 1990s. After years of leaving corporate workstations and academic lab computers hanging out on the Internet with public IP addresses and no firewalls, administrators were finally getting a clue, NATting workstations and putting up chintzy first-generation port-blocking firewalls. Students and curious employees were suddenly the ones with unrestricted access to internal systems protected -- if you wish to call it that -- by these prototypical security systems. Maybe this logic made sense back then.&lt;br /&gt;&lt;br /&gt;Be that as it may, I've seen more data loss from people bypassing draconian security policy than I've seen data loss from the rare disgruntled trade-secret packrat with one hand in the cookie jar and one foot out the door. That's not to say these things don't happen. They do! But they're not the typical modern insider threat.&lt;br /&gt;&lt;br /&gt;At my last job, I would occasionally have the option to work remotely for server maintenance, or instead drive 15 miles to the office at 11:00 PM on a Saturday night, and stay there until 4:00 AM Sunday morning. Working from home meant this:&lt;br /&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;Firing up some proprietary piece of VPN software that only ran on Windows.&lt;/li&gt;&lt;li&gt;Using a 2-factor authentication token to get into the VPN.&lt;/li&gt;&lt;li&gt;Using RDP to access a "secure" sandbox server, which was pretty much the only thing the VPN would let you access remotely. This required the use of the 2-factor token again, but you had to wait to make sure you didn't use the same one-time key twice in a row.&lt;/li&gt;&lt;li&gt;Using RDP from that server to get to my desktop, which also ran Windows.&lt;/li&gt;&lt;li&gt;SSHing from my workstation to a central administration server that was dual-homed and could actually access the servers I needed to work on.&lt;/li&gt;&lt;li&gt;Performing the work on the servers.&lt;/li&gt;&lt;/ul&gt;&lt;div&gt;Let's say, I usually drove to the office. How much do you want to bet that people in high-level positions were taking sensitive information home with them on external drives instead of trying to navigate that rat-maze of security on a daily basis? What about the CFO that always uses an aircard for his laptop -- even at the office -- mixing business with casual recreational web surfing just because he can't get to the things he "needs" ever since that [expletive] proxy started getting in his way.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;That's how data gets lost, and there's your real insider threat.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;While security sometimes impacts usability, it doesn't always have to. It's certainly not a linear scale. I could provide dozens of examples where making something harder to use causes people to make poor security decisions, but they're mostly cliché. Security is hard, and the human element of it is the most nuanced and unpredictable part.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Don't force security rhetoric down peoples' throats and try to pass it off as "awareness training." Work with people. Figure out what they want, and work to deliver solutions that provide an adequate level of risk protection while impacting usability as little as possible. Automate or document the hard parts for them. Explain things to them in terms that they can understand. I'd bet your job description called for excellent written and verbal communication skills. Put them to good use!&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;While threat management and network monitoring are always part of a complete information security breakfast, trusting and empowering your co-workers while providing them with education that meets them where they are will probably go a lot further toward minimizing the insider threat than playing Big Brother ever will.&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;P&gt;We are proud members of the &lt;A HREF="http://securitybloggers.net/"&gt;Security Bloggers Network&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;This content originally posted on &lt;A HREF="http://www.h-i-r.net/"&gt;HiR Information Report&lt;/A&gt;. Copyright © 1997-2010, HiR&lt;/P&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5554915078212081470-7433673836343069199?l=www.h-i-r.net' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/UBtJ4uZL2qrG47TXqM7fciTuomk/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/UBtJ4uZL2qrG47TXqM7fciTuomk/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/UBtJ4uZL2qrG47TXqM7fciTuomk/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/UBtJ4uZL2qrG47TXqM7fciTuomk/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/HiR?a=Nm7qQWQSbS4:3iTy1Ou2gs8:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/HiR?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/HiR?a=Nm7qQWQSbS4:3iTy1Ou2gs8:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/HiR?i=Nm7qQWQSbS4:3iTy1Ou2gs8:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/HiR?a=Nm7qQWQSbS4:3iTy1Ou2gs8:F7zBnMyn0Lo"&gt;&lt;img src="http://feeds.feedburner.com/~ff/HiR?i=Nm7qQWQSbS4:3iTy1Ou2gs8:F7zBnMyn0Lo" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/HiR/~4/Nm7qQWQSbS4" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/HiR/~3/Nm7qQWQSbS4/real-insider-threat.html</link><author>noreply@blogger.com (Ax0n)</author><thr:total>0</thr:total><feedburner:origLink>http://www.h-i-r.net/2011/04/real-insider-threat.html</feedburner:origLink></item></channel></rss>

