<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/atom10full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><feed xmlns="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" gd:etag="W/&quot;A0IMRXs6eCp7ImA9WhRUEE8.&quot;"><id>tag:blogger.com,1999:blog-6603440187887047162</id><updated>2012-01-19T22:19:44.510-05:00</updated><category term="--include" /><category term="User Interface" /><category term="--downloadonly" /><category term="CHI Conference" /><category term="Confguration Management" /><category term="GPEN" /><category term="Password Security" /><category term="McAfee" /><category term="passwd" /><category term="VMWare vSphere" /><category term="oneliner" /><category term="Transfer-Encoding:Chunked" /><category term="sed" /><category term="Skype" /><category term="Job" /><category term="WPA2" /><category term="Windows Startup Scripts" /><category term="BackTrack 5r1" /><category term="Visual Studio 2008" /><category term="SSLF" /><category term="SG565" /><category term="awk" /><category term="Call-By-Reference" /><category term="Backup" /><category term="Counters" /><category term="3D programming" /><category term="Certifications" /><category term="GuardianEdge" /><category term="John Aycock" /><category term="Unpack" /><category term="NIDS mode" /><category term="scripting" /><category term="network tools" /><category term="Baseline" /><category term="SEP11" /><category term="grep oneliner" /><category term="amap" /><category term="MSIEXEC.exe" /><category term="CSS" /><category term="SQL Server 2005" /><category term="Design" /><category term="IT Certs" /><category term="diff" /><category term="wireshark" /><category term="GCIH" /><category term="Call-By-Value" /><category term="Firefox" /><category term="Uninstalling" /><category term="Apache Tomcat" /><category term="David Hoelzer" /><category term="SGUIL" /><category term="HPLIP" /><category term="UMD" /><category term="ESX Server" /><category term="--downloaddir" /><category term="grep -c" /><category term="Paper Prototyping" /><category term="OGRE" /><category term="Displays" /><category term="-Uvh" /><category term="Vista" /><category term="tcpdump" /><category term="Who You Know" /><category term="ngrep" /><category term="IDS" /><category term="Nessus" /><category term="MSICUU2.exe" /><category term="Doug Burks" /><category term="GREM" /><category term="Spyware and Adware" /><category term="JS" /><category term="Headers" /><category term="ps -ef" /><category term="lines before" /><category term="mtr oneliner" /><category term="deobfuscate" /><category term="VMWare Server" /><category term="scraping" /><category term="Network Security" /><category term="pcap" /><category term="animation" /><category term="tar oneliner" /><category term="nestat" /><category term="DVD" /><category term="RCJ file" /><category term="Cascading Style Sheet" /><category term="Facebook" /><category term="Secure Computing" /><category term="Social Networking" /><category term="Vegas" /><category term="alias" /><category term="grep recursive" /><category term="ACM" /><category term="oneliner scritps" /><category term="netstat" /><category term="SecurityOnion" /><category term="mtr" /><category term="Greater Augusta ISSA" /><category term="offline systems" /><category term="scapy" /><category term="Heuristics" /><category term="Algorithms" /><category term="awk oneliner" /><category term="tar" /><category term="private" /><category term="HTTP POST" /><category term="Google Sketchup" /><category term="append new line of text in file" /><category term="--skip-broken" /><category term="John Strand" /><category term="Comcast" /><category term="Fake" /><category term="Database" /><category term="vmodl.fault.HostCommunication" /><category term="install" /><category term="Tabletop" /><category term="Yum" /><category term="netstat oneliner" /><category term="CM" /><category term="penetration testing" /><category term="Cain and Able" /><category term="listening connections" /><category term="Parsing" /><category term="Dell PowerEdge 1950" /><category term="alias oneliner" /><category term="lines after" /><category term="SEPM" /><category term="Mercurial" /><category term="PEAK" /><category term="application security" /><category term="job file" /><category term="HTTP" /><category term="hping2" /><category term="SNORT" /><category term="Velcom" /><category term="ePO" /><category term="Robocopy" /><category term="Packet" /><category term="network backup" /><category term="Collaborative Coupling" /><category term="Error 1719" /><category term="environment variables" /><category term="grep" /><category term="SANS560" /><category term="View Manager" /><category term="NCIS" /><category term="ngrep oneliner" /><category term="Command Line" /><category term="Anti-virus" /><category term="IIS 7.5" /><category term="please insert it now" /><category term="user accounts locked out" /><category term="WPA" /><category term="Article Review" /><category term="CentOS" /><category term="GCIA" /><category term="XML" /><category term="Basics" /><category term="Bookmarks" /><category term="GSNA" /><category term="Development" /><category term="--brief" /><category term="VCS" /><category term="TortoiseHG" /><category term="WEP Password Cracking" /><category term="Symantec" /><category term="IE8" /><category term="Version Control System" /><category term="404.8 Error" /><category term="SANS Baltimore 2011" /><category term="CHI '06" /><category term="ps oneliner" /><category term="grep -i" /><category term="aircrack-ng" /><category term="GSEC" /><category term="University of Michigan" /><category term="XP" /><category term="Error 1603" /><category term="XMLReader" /><category term="CISSP" /><category term="LDAP Server Signing Requirements" /><category term="Repository" /><category term="-R" /><category term="replace text" /><category term="Dictionary Words" /><category term="ISSA" /><category term="grep -B" /><category term="SIGACT" /><category term="Security" /><category term="or USB flash drive" /><category term="sed oneliner" /><category term="rpm" /><category term="Programming" /><category term="for" /><category term="batch files" /><category term="credential screenshot." /><category term="Lo-Fi Prototyping" /><category term="open multiple tabs in one firefox browser" /><category term="patching" /><category term="Software" /><category term="Koobface" /><category term="Settings" /><category term="Obfuscation" /><category term="-ef" /><category term="XHTML" /><category term="Android" /><category term=".bookmark_thumb1" /><category term="Yahoo" /><category term="GetAttribute" /><category term="NING" /><category term="DC" /><category term="Windows 7" /><category term="A required CD/DVD drive device driver is missing. If you have a driver floppy disk" /><category term="Book Review" /><category term="enum" /><category term="decoding" /><category term="Evaluations" /><category term="nmap" /><category term="Java" /><category term="Web Service" /><category term="8.3 naming" /><category term="SOAP" /><category term="oneliner scripts" /><category term="Malware" /><category term="Fedora 10" /><category term="Matt Jonkman" /><category term="IRPStackSize" /><category term="Hi-Fi Prototyping" /><category term="MCTS" /><category term="3D graphics" /><category term="Update" /><category term="Suricata" /><category term="grep -A" /><category term="Intrusion Detection" /><category term="CHI '92" /><category term="netcat" /><category term="RHEL5.5" /><category term="Pop-ups" /><category term="profile" /><title>Detroit Dave's Raves</title><subtitle type="html" /><link rel="http://schemas.google.com/g/2005#feed" type="application/atom+xml" href="http://detroitdavesraves.blogspot.com/feeds/posts/default" /><link rel="alternate" type="text/html" href="http://detroitdavesraves.blogspot.com/" /><link rel="next" type="application/atom+xml" href="http://www.blogger.com/feeds/6603440187887047162/posts/default?start-index=26&amp;max-results=25&amp;redirect=false&amp;v=2" /><author><name>David Werden</name><uri>https://profiles.google.com/113825799735131173967</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="//lh5.googleusercontent.com/-C1wSAXdWUgE/AAAAAAAAAAI/AAAAAAAAAAA/6OHJW0jUyp8/s512-c/photo.jpg" /></author><generator version="7.00" uri="http://www.blogger.com">Blogger</generator><openSearch:totalResults>71</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/atom+xml" href="http://feeds.feedburner.com/DetroitDavesRaves" /><feedburner:info uri="detroitdavesraves" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><entry gd:etag="W/&quot;C0QBQns6cSp7ImA9WhRWFks.&quot;"><id>tag:blogger.com,1999:blog-6603440187887047162.post-61796953831152475</id><published>2012-01-04T02:15:00.000-05:00</published><updated>2012-01-04T02:15:53.519-05:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2012-01-04T02:15:53.519-05:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="application security" /><category scheme="http://www.blogger.com/atom/ns#" term="credential screenshot." /><category scheme="http://www.blogger.com/atom/ns#" term="Android" /><category scheme="http://www.blogger.com/atom/ns#" term=".bookmark_thumb1" /><title>Android Security with the bookmark_thumb1 directory</title><content type="html">My wife has been going through a LOT of hoops with T-Mobile and the piece of trash Sidekick phone that I bought for her. Through all of this, she asked me to look at her microSD card to make sure that there wasn't anything malicious on there. &lt;br /&gt;
&lt;br /&gt;
I had no problem with doing this and it even gave me an excuse to go through six other microSD cards that I haven't looked at in a&amp;nbsp;long time (and it was GOOD that I DID finally look....but that is a whole different subject). So I logged into my box and plugged the microSD card into an adapter and then into the computer. I have looked at almost every file that exists on a microSD used by an Android phone (2.2.1 and earlier) so nothing really stuck out in the file directories. However, one thing DID stick out.&lt;br /&gt;
&lt;br /&gt;
Android uses a folder called &lt;strong&gt;&lt;em&gt;.bookmark_thumb1&lt;/em&gt;&lt;/strong&gt; under the root. I have never been suprised by this folder until the night I was doing this check for my wife, and thus I have NEVER made the time to actually look into the purpose of the folder. Suffice to say that when I glanced at the screenshots that were in this folder, I was very (VERY) annoyed to see the login page for one of my banks as well as all of the login boxes filled in. Now, these were just screenshots, so there was no revelation of the password used even though the username was definitely visible. This caused me to want to look into this folder a little bit.&lt;br /&gt;
&lt;br /&gt;
After getting back to the hotel tonight and still being wired from Michigan's win over Virginia Tech, I thought I would spend five minutes on this. What I have learned:&lt;br /&gt;
- The behaviour (taking screenshots of ANY page you visit) is common and actually used by the system in relation to the bookmark maintaining. &lt;br /&gt;
- This is not, but "could" be a security risk&lt;br /&gt;
- There is both a permenant fix and a temporary fix. &lt;br /&gt;
&lt;br /&gt;
What follows are just a couple steps for the permenant and temporary fixes and some links to some articles already published about this folder.&lt;br /&gt;
&lt;br /&gt;
Temp Fix&lt;br /&gt;
After you are done browsing the web (and maybe using some applications), us a file brower (either from the market place or via mounting the SD/microSD card to your laptop) and delete the files or the whole folder.&amp;nbsp;The folder is automatically recreated when a new internet browsing session is initiated.&lt;br /&gt;
&lt;br /&gt;
Permenant Fix&lt;br /&gt;
Delete the &lt;strong&gt;&lt;em&gt;.bookmark_thumb1&lt;/em&gt;&lt;/strong&gt;&amp;nbsp;folder. create a blank textfile with the name&amp;nbsp; &lt;strong&gt;&lt;em&gt;.bookmark_thumb1&lt;/em&gt;&lt;/strong&gt;.&amp;nbsp;&amp;nbsp;The bookmarking implementation will no longer work properly, but the folder will NOT be recreated and there will be NO more storage of session bookmarks.&lt;br /&gt;
&lt;br /&gt;
Links:&lt;br /&gt;
&lt;a href="http://www.androidcentral.com/htc-browser-bookmark-images-scare"&gt;http://www.androidcentral.com/htc-browser-bookmark-images-scare&lt;/a&gt;&lt;br /&gt;
&lt;a href="http://forum.xda-developers.com/showthread.php?t=1230655"&gt;http://forum.xda-developers.com/showthread.php?t=1230655&lt;/a&gt;&lt;br /&gt;
&lt;a href="http://forums.androidcentral.com/t-inspire-4g/90666-need-help-figuring-out.html"&gt;http://forums.androidcentral.com/t-inspire-4g/90666-need-help-figuring-out.html&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
So this isn't a "new" issue...probably isn't an issue to most people. BUT, I did spend a few minutes researching it so it was worth mentioning on here.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6603440187887047162-61796953831152475?l=detroitdavesraves.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/l8i0ax8d3FYEsYE5zEF-oD30Rt4/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/l8i0ax8d3FYEsYE5zEF-oD30Rt4/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/l8i0ax8d3FYEsYE5zEF-oD30Rt4/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/l8i0ax8d3FYEsYE5zEF-oD30Rt4/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/DetroitDavesRaves/~4/LeZ7ukszbuI" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://detroitdavesraves.blogspot.com/feeds/61796953831152475/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://detroitdavesraves.blogspot.com/2012/01/android-security-with-bookmarkthumb1.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/6603440187887047162/posts/default/61796953831152475?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/6603440187887047162/posts/default/61796953831152475?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/DetroitDavesRaves/~3/LeZ7ukszbuI/android-security-with-bookmarkthumb1.html" title="Android Security with the bookmark_thumb1 directory" /><author><name>David Werden</name><uri>https://profiles.google.com/113825799735131173967</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="//lh5.googleusercontent.com/-C1wSAXdWUgE/AAAAAAAAAAI/AAAAAAAAAAA/6OHJW0jUyp8/s512-c/photo.jpg" /></author><thr:total>0</thr:total><feedburner:origLink>http://detroitdavesraves.blogspot.com/2012/01/android-security-with-bookmarkthumb1.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DEUDRXYyeyp7ImA9WhRQGE4.&quot;"><id>tag:blogger.com,1999:blog-6603440187887047162.post-2744526471164030622</id><published>2011-12-13T23:02:00.001-05:00</published><updated>2011-12-13T23:17:54.893-05:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-12-13T23:17:54.893-05:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="WEP Password Cracking" /><category scheme="http://www.blogger.com/atom/ns#" term="Dictionary Words" /><category scheme="http://www.blogger.com/atom/ns#" term="WPA2" /><category scheme="http://www.blogger.com/atom/ns#" term="aircrack-ng" /><category scheme="http://www.blogger.com/atom/ns#" term="Cain and Able" /><category scheme="http://www.blogger.com/atom/ns#" term="WPA" /><category scheme="http://www.blogger.com/atom/ns#" term="PEAK" /><title>Cracking WEP....part 1 of a little bit of frustration</title><content type="html">I found a new project that I want to work on. Actually, I was invited to work on yet another web-based application project that I think will be completely awesome. But that is not the project I am referencing for this post. Nope...I want to play around with password cracking.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
I know that WEP is not the strongest; it is the easiest to crack anymore, especially with methods such as the PTW approach (Pychkine, Tews, Weinmann) or the older Korek attack (either one can be easily run through aircrack-ng). However, after an interesting time at a relatives (one of my Michigan cousins named&amp;nbsp;Henry....one of three) over thanksgiving week, I wonder more and more about the issues surrounding the creation, storage, and transmission, of solid passwords. &lt;br /&gt;
&lt;br /&gt;
A password should be hard to crack, easy to memorize, should work on the system it's established for (think earlier LANMAN stuff). I think everyone agrees upon this. However, there have been some divergent schools of thought for sometime now on what a "solid" or "strong" password consists of in general terms. Everyone with access to something on the Internet in the last decade has had to have noticed the change in complexity requiremenets. It is not uncommon anymore for a password to have requrements such as:&lt;br /&gt;
&lt;br /&gt;
- length (12+ chars)&lt;br /&gt;
- at least one from each group:&lt;br /&gt;
---- uppercase letters&lt;br /&gt;
---- lowercase letters&lt;br /&gt;
---- numerals&lt;br /&gt;
---- special charactors (%,#,$,%,^,&amp;amp;, for example)&lt;br /&gt;
- can't be reused X amount of times&lt;br /&gt;
- and so on. &lt;br /&gt;
On top of making a password hard to guess...and hopefully hard to crack (although I believe that ALL passwords, given the time and processing power, can be cracked), the method of how a password is encrypted and transmitted is constantly being revised and tested. Some of these include client-side encryption (OR hashing, with or without a salt), server-side (BAD Idea if you ask me), WEP, WPA2 with PEAK, etc. &lt;br /&gt;
&lt;br /&gt;
Getting back to my point, I recently stayed at Henry's (my relative) house. I was on vacation and had zero desire to do anything with a computer. That was until he made a comment about his wireless router password using WEP. He didn't challenge me, but I thought it would be fun to capture some traffic and see if aircrack-ng, or even Cain &amp;amp; Able could crack his password. So, I deferred getting the password from him and proceeded to break out my AirPCAP tool and just "collect" some IV's. I figured that with 128-bit encryption set on his six year old router, that it wouldn't take long to gather enough IV's and crack the password. Afterall, my wife's cocky aunt had refused to give me her WPA2 protected password and I proceeded to gain that one (and two of her neighbors accidentally) within about 20 minutes. (I should add, with some cockyness, that she hasn't tried to talk trash to me again...LOL). Since the WPA2 crack was SOOOOO quick, and since my unique IV collection amount kept climbing rather quickly, I was certain that I would have his password in no time.&lt;br /&gt;
&lt;br /&gt;
I was wrong. Henry's password proved to be VERY difficult for aircrack, using either Korek or PTW attacks. I decided to query Henry about his setup....I wasn't trying to force anything, just trying to crack gracefully. After talking with Henry, I verified that: 1) he was not broadcasting his ESSID (Cain picked that up for me really quickly though), it was only WEP he was using, and that NO special charactors were used. One question I neglected to ask him was the length of his password. It was LONG...30 chars&lt;br /&gt;
I decided that I would collect at least 50,000 unique IVs. With a 128-bit key, PTW should be OK with 40,000+ IVs. I let this collection run for awhile (I didn't actually clock it) and then piped it to the cracker. &lt;br /&gt;
&lt;br /&gt;
The aircrack-ng GUI provides a relatively great UI. I used a variety of settings to attempt both the Korek attack and the PTW attack, even though I was seriously short of IVs for Koreks. I tried with and without using a known ESSID and/or BSSID, and after seeing the password, I tried adding 1,2,3,4, and 5 of the first decrypted charactors. No Joy!!! I couldn't believe it. I chalk some of this failure up to my trying to be gentle. However, and here is where my new side-project is coming from, it REALLY got me thinking about the value of computational complexity versus a just plain long password of numbers and letters. An interesting side not to this was that Henry's password contained ONLY charactors used in hex (A-F and 0-9), had at least two dictionary words at the start of the password and used some pretty common key-stroke patterns.&lt;br /&gt;
&lt;br /&gt;
So know I want to spend some quality time with different crackers, password creation methods, encryption and hashing algorithms, etc. and just run some test on cracking WEP versus WPA2 and using passwords that contain only alpha-numerics and NOT special charactors. I think I will also compare passwords that are collections of dictionary words versus complex passwords. This just sounds like a LOT of fun to me.&lt;br /&gt;
&lt;br /&gt;
I know that these types of evaluations have been done numerous times...but it sounds like fun AND it sounds like a realistic way to get more familiar with the tools and get reaquainted with some of the protocols. In any event, I am rambling which means I need to call it a day. Tomorrow's a busy day of more compliance work and a Doctor's appointment...yay. Plus, I guess it's time to start getting some rest if I am going to initiate this project and a few others I mentioned in an earlier post.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6603440187887047162-2744526471164030622?l=detroitdavesraves.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/CJ-zp3MDCj7BGwaWaGs3YMbs5pk/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/CJ-zp3MDCj7BGwaWaGs3YMbs5pk/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/CJ-zp3MDCj7BGwaWaGs3YMbs5pk/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/CJ-zp3MDCj7BGwaWaGs3YMbs5pk/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/DetroitDavesRaves/~4/JJFMV8V8DN4" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://detroitdavesraves.blogspot.com/feeds/2744526471164030622/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://detroitdavesraves.blogspot.com/2011/12/cracking-weppart-1-of-little-bit-of.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/6603440187887047162/posts/default/2744526471164030622?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/6603440187887047162/posts/default/2744526471164030622?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/DetroitDavesRaves/~3/JJFMV8V8DN4/cracking-weppart-1-of-little-bit-of.html" title="Cracking WEP....part 1 of a little bit of frustration" /><author><name>David Werden</name><uri>https://profiles.google.com/113825799735131173967</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="//lh5.googleusercontent.com/-C1wSAXdWUgE/AAAAAAAAAAI/AAAAAAAAAAA/6OHJW0jUyp8/s512-c/photo.jpg" /></author><thr:total>0</thr:total><feedburner:origLink>http://detroitdavesraves.blogspot.com/2011/12/cracking-weppart-1-of-little-bit-of.html</feedburner:origLink></entry><entry gd:etag="W/&quot;AkMBRnsycSp7ImA9WhRRFko.&quot;"><id>tag:blogger.com,1999:blog-6603440187887047162.post-4831649504157612612</id><published>2011-11-30T13:39:00.001-05:00</published><updated>2011-11-30T13:40:57.599-05:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-11-30T13:40:57.599-05:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="GPEN" /><category scheme="http://www.blogger.com/atom/ns#" term="Certifications" /><title>Updating My Certs - GPEN</title><content type="html">Sat and passed the GPEN last week. It was a great class with John Strand in Baltimore. Test was definitely different than practice tests, but not so bad. Just because I am bored right now, I have updated my cert logo picture. :-)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="http://2.bp.blogspot.com/-ZfZIG3POeOc/TtZ4kfVvhII/AAAAAAAAADM/AQ1RuqloKxo/s1600/AllLogosTogether.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="231" src="http://2.bp.blogspot.com/-ZfZIG3POeOc/TtZ4kfVvhII/AAAAAAAAADM/AQ1RuqloKxo/s320/AllLogosTogether.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6603440187887047162-4831649504157612612?l=detroitdavesraves.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/d60gmwc5IxFVxjYODyPpld4o7gU/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/d60gmwc5IxFVxjYODyPpld4o7gU/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/d60gmwc5IxFVxjYODyPpld4o7gU/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/d60gmwc5IxFVxjYODyPpld4o7gU/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/DetroitDavesRaves/~4/6LnWN_mdl_E" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://detroitdavesraves.blogspot.com/feeds/4831649504157612612/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://detroitdavesraves.blogspot.com/2011/11/updating-my-certs-gpen.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/6603440187887047162/posts/default/4831649504157612612?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/6603440187887047162/posts/default/4831649504157612612?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/DetroitDavesRaves/~3/6LnWN_mdl_E/updating-my-certs-gpen.html" title="Updating My Certs - GPEN" /><author><name>David Werden</name><uri>https://profiles.google.com/113825799735131173967</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="//lh5.googleusercontent.com/-C1wSAXdWUgE/AAAAAAAAAAI/AAAAAAAAAAA/6OHJW0jUyp8/s512-c/photo.jpg" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://2.bp.blogspot.com/-ZfZIG3POeOc/TtZ4kfVvhII/AAAAAAAAADM/AQ1RuqloKxo/s72-c/AllLogosTogether.jpg" height="72" width="72" /><thr:total>0</thr:total><feedburner:origLink>http://detroitdavesraves.blogspot.com/2011/11/updating-my-certs-gpen.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DkMGRHgzeCp7ImA9WhRRFkw.&quot;"><id>tag:blogger.com,1999:blog-6603440187887047162.post-510986826471443863</id><published>2011-11-21T02:21:00.001-05:00</published><updated>2011-11-29T19:53:45.680-05:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-11-29T19:53:45.680-05:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Windows Startup Scripts" /><category scheme="http://www.blogger.com/atom/ns#" term="scripting" /><category scheme="http://www.blogger.com/atom/ns#" term="open multiple tabs in one firefox browser" /><title>Making my work day EASIER via a quick script</title><content type="html">When I get to work, I have a group of things on the&amp;nbsp;Windows box (that I am stuck using)&amp;nbsp;that I both have to and want to have open on my desktops:&lt;br /&gt;
Outlook, for that annoying now enterprise email&lt;br /&gt;
Browser: with mutliple tabls to highly used sites&lt;br /&gt;
Some tools I use on a daily basis&lt;br /&gt;
File Browser&lt;br /&gt;
etc.&lt;br /&gt;
&lt;br /&gt;
Bottom line is that I LOVE scripts. Well, I just plain love programming, and ANY kind of code is fun code to me. I believe that anyone working&amp;nbsp;in IT more than a day at least KNOWS the value of scripting some tasks. I take it a little further and will try to script anything and everything I can.&amp;nbsp;Whether it's&amp;nbsp;OS apps I need or new Macros in UltraEdit, I REALLY want to make things as easy and streamlined as possible.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
There are multiple solutions to using startup scripts. In GPOs you can assign scripts to the user(s) or to the actual box, at both start-up or shutdown. You can use a scheduled task to do something after&amp;nbsp;a login executes or at particular times (like open your timecard application at lunchtime, for instance).&lt;br /&gt;
Another way....my preferred way, is write a simple bat file that will do what I want when I log onto the box, and I copy it to (Windows 7 Profession)&lt;br /&gt;
&lt;span style="color: blue;"&gt;&lt;strong&gt;C:\Users\myusername\AppData\Roaming\Microsoft\Windows\Start Menu&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;
Once I have a working bat file in this location, EVERY time I log in, the bat file runs and my world is at peace. &lt;br /&gt;
&lt;br /&gt;
As an example one is below (really quick since I have a cert exam in 6 hours and it might be a good idea to get some sleep). I am doing this from memory so I am not 100% certain on the "start" syntax...but I know it's close.:&lt;br /&gt;
&lt;br /&gt;
&lt;span style="color: #351c75;"&gt;mybat.bat&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: #351c75;"&gt;@echo off&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: #351c75;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: #351c75;"&gt;start /d "MyEmail" /PATHTOOUTLOOK/ outlook.exe&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: #351c75;"&gt;start /d "MyPages" /PATHTOFIREFOX/ firefox.exe http://www google.com http://www.espn.com &lt;/span&gt;&lt;br /&gt;
&lt;span style="color: #351c75;"&gt;exit 0&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
In my example script, I am using firefox as opposed to IE. This is more than just personal preferrence. As of the last time I check, IE8 and IE9 did not support a way to open multiple tabs in one browser&amp;nbsp;from the command line. I will recheck this and edit the entry if I find and test successfully some evidence contrary to what I initially read about this with IE8/9.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6603440187887047162-510986826471443863?l=detroitdavesraves.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/Ym4IzFQDG7QFIuPNQMVemW6w8us/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/Ym4IzFQDG7QFIuPNQMVemW6w8us/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/Ym4IzFQDG7QFIuPNQMVemW6w8us/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/Ym4IzFQDG7QFIuPNQMVemW6w8us/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/DetroitDavesRaves/~4/FXiWMJnSoCM" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://detroitdavesraves.blogspot.com/feeds/510986826471443863/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://detroitdavesraves.blogspot.com/2011/11/making-my-work-day-easier-via-quick.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/6603440187887047162/posts/default/510986826471443863?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/6603440187887047162/posts/default/510986826471443863?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/DetroitDavesRaves/~3/FXiWMJnSoCM/making-my-work-day-easier-via-quick.html" title="Making my work day EASIER via a quick script" /><author><name>David Werden</name><uri>https://profiles.google.com/113825799735131173967</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="//lh5.googleusercontent.com/-C1wSAXdWUgE/AAAAAAAAAAI/AAAAAAAAAAA/6OHJW0jUyp8/s512-c/photo.jpg" /></author><thr:total>0</thr:total><feedburner:origLink>http://detroitdavesraves.blogspot.com/2011/11/making-my-work-day-easier-via-quick.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CkMBR304eCp7ImA9WhdbE0w.&quot;"><id>tag:blogger.com,1999:blog-6603440187887047162.post-5411790417336784999</id><published>2011-10-11T01:20:00.001-04:00</published><updated>2011-10-11T01:20:56.330-04:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-10-11T01:20:56.330-04:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="enum" /><category scheme="http://www.blogger.com/atom/ns#" term="scapy" /><category scheme="http://www.blogger.com/atom/ns#" term="GPEN" /><category scheme="http://www.blogger.com/atom/ns#" term="nmap" /><category scheme="http://www.blogger.com/atom/ns#" term="amap" /><category scheme="http://www.blogger.com/atom/ns#" term="SecurityOnion" /><category scheme="http://www.blogger.com/atom/ns#" term="penetration testing" /><category scheme="http://www.blogger.com/atom/ns#" term="netcat" /><category scheme="http://www.blogger.com/atom/ns#" term="SANS Baltimore 2011" /><category scheme="http://www.blogger.com/atom/ns#" term="SANS560" /><category scheme="http://www.blogger.com/atom/ns#" term="hping2" /><category scheme="http://www.blogger.com/atom/ns#" term="John Strand" /><category scheme="http://www.blogger.com/atom/ns#" term="Nessus" /><category scheme="http://www.blogger.com/atom/ns#" term="BackTrack 5r1" /><category scheme="http://www.blogger.com/atom/ns#" term="David Hoelzer" /><category scheme="http://www.blogger.com/atom/ns#" term="Doug Burks" /><category scheme="http://www.blogger.com/atom/ns#" term="tcpdump" /><title>SANS560 at SANS Baltimore 2011</title><content type="html">Just a quick one here. Today was day 2 of SANS Balitmore 2011, and I am even more impressed with the presentations we had today in SANS560 than we had in day 1. John Strand is our instructor, something a co-worker and I intentionally attempted to schedule, and it's been well worth it so far. It's not every day I get time to play with nmap, nessus, scapy, hping2, and tcpdump (well...tcpdump is pretty much everyday for me), but we spend some actual FUN time in those today. At least it was fun for me. There did appear to be some that struggled with the exercises due to a lack of non-familiarity. However, it seems as though everyone is enjoying it.&lt;br /&gt;
&lt;br /&gt;
My employer paid for part of this training, but a chunk of change still had to/has to come from me. Had the class been boring or non-informative, I think I would be a little ticked off. However, even with having some experience pen-testing and having gone through other pen test training, I am so far thinking that I have gotten over 1000% ROI and&amp;nbsp;that this has been one of the better classes so far...or it at least rivals the SANS507 I took earlier this year from David Hoelzer.&lt;br /&gt;
&lt;br /&gt;
One of the nice things about most of today just being review...I could rather quickly run through the examples and work on installing both BackTrack 5r1 AND the newest release of Doug Burk's SecurityOnion (which there really is no excuse for anyone NOT to have by now).&amp;nbsp;I am just having too much nerdy fun this week!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6603440187887047162-5411790417336784999?l=detroitdavesraves.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/4BoGmALKYycgUoQxMNwpCTwZsDo/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/4BoGmALKYycgUoQxMNwpCTwZsDo/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/4BoGmALKYycgUoQxMNwpCTwZsDo/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/4BoGmALKYycgUoQxMNwpCTwZsDo/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/DetroitDavesRaves/~4/bTOJb3KrhnM" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://detroitdavesraves.blogspot.com/feeds/5411790417336784999/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://detroitdavesraves.blogspot.com/2011/10/sans-baltimore-2011.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/6603440187887047162/posts/default/5411790417336784999?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/6603440187887047162/posts/default/5411790417336784999?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/DetroitDavesRaves/~3/bTOJb3KrhnM/sans-baltimore-2011.html" title="SANS560 at SANS Baltimore 2011" /><author><name>David Werden</name><uri>https://profiles.google.com/113825799735131173967</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="//lh5.googleusercontent.com/-C1wSAXdWUgE/AAAAAAAAAAI/AAAAAAAAAAA/6OHJW0jUyp8/s512-c/photo.jpg" /></author><thr:total>0</thr:total><feedburner:origLink>http://detroitdavesraves.blogspot.com/2011/10/sans-baltimore-2011.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DE4GSHw-eyp7ImA9WhdXF0s.&quot;"><id>tag:blogger.com,1999:blog-6603440187887047162.post-2089395891179279696</id><published>2011-08-31T01:02:00.000-04:00</published><updated>2011-08-31T01:02:09.253-04:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-08-31T01:02:09.253-04:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Robocopy" /><category scheme="http://www.blogger.com/atom/ns#" term="RCJ file" /><category scheme="http://www.blogger.com/atom/ns#" term="job file" /><category scheme="http://www.blogger.com/atom/ns#" term="Backup" /><category scheme="http://www.blogger.com/atom/ns#" term="batch files" /><title>Robocopy Config file?</title><content type="html">If you run Robocopy with an RCJ file (Robocopy Job) just once, then the file is just that: a job file. However, if you plan to use the same settings over and over again, then consider this a configuration file that is easily modifiable and copyable to reuse on other directories. &lt;br /&gt;
&lt;br /&gt;
I personally have a directory structure set up like:&lt;br /&gt;
&lt;br /&gt;
Backups&lt;br /&gt;
&amp;nbsp; |--BackUpJobs&lt;br /&gt;
&amp;nbsp; |&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |--*.RCJ files&lt;br /&gt;
&amp;nbsp; |--BackUpLogs&lt;br /&gt;
&amp;nbsp; |&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |--*.lob files&lt;br /&gt;
&amp;nbsp; |--*.bat files (for single jobs)&lt;br /&gt;
&amp;nbsp; |--RunAllBUs.bat (to execute all jobs)&lt;br /&gt;
&lt;br /&gt;
The log files should be self-explanatory. Here I just want to run through the bat and RCJ files.&lt;br /&gt;
&lt;br /&gt;
For my individual bat files, I will use something like this for all single jobs:&lt;br /&gt;
&lt;br /&gt;
@echo off&lt;br /&gt;
&lt;br /&gt;
cd c:\users\myusername\desktop\BackUp&lt;br /&gt;
robocopy /JOB:BackUpJobs\[WhatItIs]BUJOB.RCJ&amp;nbsp; &lt;br /&gt;
pause&lt;br /&gt;
&lt;br /&gt;
Where [WhatItIs] is something indicating what directory I am backing up. For example, if I was backing up the CIS577 directory, the path would be: &lt;strong&gt;BackUpJobs\CIS577BUJOB.RCJ&lt;/strong&gt;&lt;br /&gt;
As with any bat script, the path is relative to where the script is executing from. &lt;br /&gt;
&lt;br /&gt;
Now for the fun part, the rcj "config" files. These files, if you know the syntax for robocopy, can be modified in short time to create a full backup system with a variety of operations. For instance, one job can do a /MOV, which will delete everything from the source after it's copied to the destination&amp;nbsp;while another job just makes a copy of the directory and all subs(/E), copying new(er) files to the destination.&lt;br /&gt;
&lt;br /&gt;
CIS577BUJOB.RCJ&lt;br /&gt;
&lt;br /&gt;
::&lt;br /&gt;
:: Robocopy Job&lt;br /&gt;
::C:\USERS\MYUSERNAME\DESKTOP\BACKUP\BACKUPJOBS\CIS577BUJOB.RCJ&lt;br /&gt;
::&lt;br /&gt;
:: Created by&amp;nbsp;myusername on Sun Apr 10 2011 at 20:46:13&lt;br /&gt;
:: Modified by hand. 15 May at 1210 am.&lt;br /&gt;
&lt;br /&gt;
::&lt;br /&gt;
:: Source Directory :&lt;br /&gt;
::&lt;br /&gt;
&lt;br /&gt;
/SD:C:\Users\myusername\Desktop\CIS577\ :: Source Directory.&lt;br /&gt;
&lt;br /&gt;
::&lt;br /&gt;
:: Destination Directory :&lt;br /&gt;
::&lt;br /&gt;
/DD:\\werdenshare\GoFlex Home Personal\DaveSchoolMain\UofM_Dearborn\CIS577\ &lt;br /&gt;
:: Destination Directory.&lt;br /&gt;
::&lt;br /&gt;
&lt;br /&gt;
:: Include These Files :&lt;br /&gt;
::&lt;br /&gt;
/IF :: Include Files matching these names&lt;br /&gt;
:: *.* :: Include all names (currently - Command Line may override)&lt;br /&gt;
::&lt;br /&gt;
:: Exclude These Directories :&lt;br /&gt;
::&lt;br /&gt;
/XD :: eXclude Directories matching these names&lt;br /&gt;
:: :: eXclude no names (currently - Command Line may override)&lt;br /&gt;
::&lt;br /&gt;
:: Exclude These Files :&lt;br /&gt;
::&lt;br /&gt;
/XF :: eXclude Files matching these names&lt;br /&gt;
:: :: eXclude no names (currently - Command Line may override)&lt;br /&gt;
::&lt;br /&gt;
&lt;br /&gt;
:: Copy options :&lt;br /&gt;
::&lt;br /&gt;
/S ::Copy Subdirs but not empty ones&lt;br /&gt;
/E ::Copy Subdirs including empty ones&lt;br /&gt;
/COPY:DAT :: what to COPY (default is /COPY:DAT).&lt;br /&gt;
::&lt;br /&gt;
&lt;br /&gt;
:: Retry Options :&lt;br /&gt;
::&lt;br /&gt;
/R:1000000 &lt;br /&gt;
:: number of Retries on failed copies: default 1 million.&lt;br /&gt;
/W:30 &lt;br /&gt;
:: Wait time between retries: default is 30 seconds.&lt;br /&gt;
::&lt;br /&gt;
&lt;br /&gt;
:: Logging Options :&lt;br /&gt;
::&lt;br /&gt;
/LOG+:C:\Users\myusername\Desktop\BackUp\BackUpLogs\CIS577BULog.log &lt;br /&gt;
:: output status to LOG file (overwrite existing log).&lt;br /&gt;
&lt;br /&gt;
The RCJ file does nothing more than pass the parameters on the command line that you would be using if you didn't use the job file. So without this file, your robocopy job using the above would be: &lt;br /&gt;
$&amp;gt;&lt;strong&gt;&lt;em&gt;robocopy C:\Users\myusername\Desktop\CIS577\ "\\werdenshare\GoFlex Home Personal\DaveSchoolMain\UofM_Dearborn\CIS577\"&amp;nbsp; &lt;/em&gt;&lt;/strong&gt;&lt;br /&gt;
&lt;strong&gt;&lt;em&gt;/S /E /LOG+:C:\Users\myusername\Desktop\BackUp\BackUpLogs\CIS577BULog.log&lt;/em&gt;&lt;/strong&gt; &lt;br /&gt;
&amp;nbsp; &lt;br /&gt;
A couple things to notice: the source and destination directories ONLY need to be wrapped in quotation marks IF either one has spaces AND is passed on the command line. In the RCJ file, no quotation marks needed. Also, if you notice the command line example parameters, you will see &lt;strong&gt;[source] [destination] /S /E /LOG+.&lt;/strong&gt; and not the other options such as /XD from the file. This is becuase when a job you created is saved to an RCJ file, all defaults are written to the file unless you have passed a paremeter to overwrite their usage completely. &lt;br /&gt;
&amp;nbsp; &lt;br /&gt;
The really easy part that I like is that I can copy this file out, adjust the source and destination, at a minimum, and then save the file as another robocopy job file. The extra bit of ease here, if you know where the options go, is that you can easily add any option changes to the files as you create them or modify your needs. For example, in the &lt;strong&gt;Copy options&lt;/strong&gt; section, I can add /MOV to the list of uncommented parameters and this will do what you'd expect as I mentioned before (although the folder/subfolder structure will remain intact.) &lt;br /&gt;
&amp;nbsp; &lt;br /&gt;
This is probably enough from me on Robocopy this year. :-)&amp;nbsp;&amp;nbsp; Now I am working on a perl script to take an exported list of IE and FireFox bookmarks and to create an XML file for these. Other than the easy answer of just wanting a quicker way to access good used references, the format I am going with (as created by my buddy James) will allow me to add usernames, masked passwords (if I am feeling crazy), and/or password hints. Additionally, I am going to take it a step farther for another display field for things such as Frequent Flyer program numer and POC info. Really this is an academic exercise to create something I want...I get a little tired of scrolling through a TON of bookmarks on a LOT of different computers. By doing this, I can keep it updated and portable....basically a poor-man's way to sync some favorites between computers.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6603440187887047162-2089395891179279696?l=detroitdavesraves.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/VYNlITpSRVxECTuBABw3t_BNYys/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/VYNlITpSRVxECTuBABw3t_BNYys/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/VYNlITpSRVxECTuBABw3t_BNYys/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/VYNlITpSRVxECTuBABw3t_BNYys/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/DetroitDavesRaves/~4/FL9hrLqXyh4" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://detroitdavesraves.blogspot.com/feeds/2089395891179279696/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://detroitdavesraves.blogspot.com/2011/08/robocopy-config-file.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/6603440187887047162/posts/default/2089395891179279696?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/6603440187887047162/posts/default/2089395891179279696?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/DetroitDavesRaves/~3/FL9hrLqXyh4/robocopy-config-file.html" title="Robocopy Config file?" /><author><name>David Werden</name><uri>https://profiles.google.com/113825799735131173967</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="//lh5.googleusercontent.com/-C1wSAXdWUgE/AAAAAAAAAAI/AAAAAAAAAAA/6OHJW0jUyp8/s512-c/photo.jpg" /></author><thr:total>0</thr:total><feedburner:origLink>http://detroitdavesraves.blogspot.com/2011/08/robocopy-config-file.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CUcBRXc4fCp7ImA9WhdRGUk.&quot;"><id>tag:blogger.com,1999:blog-6603440187887047162.post-1489181696968748040</id><published>2011-08-09T22:24:00.000-04:00</published><updated>2011-08-09T22:24:14.934-04:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-08-09T22:24:14.934-04:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="John Strand" /><category scheme="http://www.blogger.com/atom/ns#" term="Greater Augusta ISSA" /><category scheme="http://www.blogger.com/atom/ns#" term="ISSA" /><category scheme="http://www.blogger.com/atom/ns#" term="Suricata" /><category scheme="http://www.blogger.com/atom/ns#" term="Matt Jonkman" /><title>Checking in...and ISSA Meeting awesomeness!</title><content type="html">So I didn't get the time I thought I would to do&amp;nbsp;one "oneliner&amp;nbsp;each day" for July. Been really busy with work trips, finishing up a grueling semester with the world's worst professor, and just trying to take a breather for a day or two. That said, I really don't have any freetime right now with the kids and the wife starting school. However, I did make time to go the Quarterly Greater Augusta ISSA meeting. That was a GREAT decision.&lt;br /&gt;
&lt;br /&gt;
Not only was it great to see friends and catch-up a little...it was really awesome to listen to John Strand (of pauldotcom.com fame and&amp;nbsp;&lt;a href="http://www.john-strand.com/"&gt;http://www.john-strand.com/&lt;/a&gt;) and Matt Jonkman (Emerging Threats, Suricata). Anyone who was aware of this meeting and just arbitrarily chose to not go...shame on you becuase it was VERY good! &lt;br /&gt;
&lt;br /&gt;
Strand's presentation was really kick-butt. He talked more about a change in culture, what's effective (and not effective) and things he thought were appropriate for moving forward. The real examples he laid out, especially regarding SSL issues, were pretty awesome! The dude was really rocking his presentation and I think we all learned something while having some really good laughs!&lt;br /&gt;
&lt;br /&gt;
Jonkman focused primarily on Suricata. It started out more like a sales pitch and, in fairness, it probably primarily was just that. However, the information he passed ended up being pretty interesting to me, especially about some of the upcoming releases for Suricata. I have had some exchanges with Jonkman in the past and he's always struck me as pretty smart, which he again appeared to be so tonight.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6603440187887047162-1489181696968748040?l=detroitdavesraves.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/C1GQDupfMXbEKKFOP9q04nbIsHE/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/C1GQDupfMXbEKKFOP9q04nbIsHE/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/C1GQDupfMXbEKKFOP9q04nbIsHE/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/C1GQDupfMXbEKKFOP9q04nbIsHE/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/DetroitDavesRaves/~4/-n1qDr13J-o" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://detroitdavesraves.blogspot.com/feeds/1489181696968748040/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://detroitdavesraves.blogspot.com/2011/08/checking-inand-issa-meeting-awesomeness.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/6603440187887047162/posts/default/1489181696968748040?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/6603440187887047162/posts/default/1489181696968748040?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/DetroitDavesRaves/~3/-n1qDr13J-o/checking-inand-issa-meeting-awesomeness.html" title="Checking in...and ISSA Meeting awesomeness!" /><author><name>David Werden</name><uri>https://profiles.google.com/113825799735131173967</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="//lh5.googleusercontent.com/-C1wSAXdWUgE/AAAAAAAAAAI/AAAAAAAAAAA/6OHJW0jUyp8/s512-c/photo.jpg" /></author><thr:total>0</thr:total><feedburner:origLink>http://detroitdavesraves.blogspot.com/2011/08/checking-inand-issa-meeting-awesomeness.html</feedburner:origLink></entry><entry gd:etag="W/&quot;D04CRXo4eCp7ImA9WhdSE00.&quot;"><id>tag:blogger.com,1999:blog-6603440187887047162.post-297709671755660700</id><published>2011-07-21T23:39:00.000-04:00</published><updated>2011-07-21T23:39:24.430-04:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-07-21T23:39:24.430-04:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="netstat oneliner" /><category scheme="http://www.blogger.com/atom/ns#" term="grep" /><category scheme="http://www.blogger.com/atom/ns#" term="listening connections" /><category scheme="http://www.blogger.com/atom/ns#" term="netstat" /><title>netstat oneliner: list the ports that are listening</title><content type="html">A really quick one tonight. It will be nice to actually have some time soon to expound more on these things as this semester winds down (and maybe only one more to finish the Masters!)&lt;br /&gt;
&lt;br /&gt;
Sometimes I want to konw what ports are listening on a server. I can use this information to help troubleshoot a non-working inbound connection or I can use this to make sure that specific ports are NOT listening. Run the below as root or using &lt;strong&gt;sudo&lt;/strong&gt;:&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;netstat -an | grep -i listen&lt;/strong&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; or&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;strong&gt;netstat -an | grep "LISTEN"&lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
This command can, like every unix command I can think of tonight, can be used/piped with other commands, such as &lt;strong&gt;awk&lt;/strong&gt; in order to clean-up/format the output.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6603440187887047162-297709671755660700?l=detroitdavesraves.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/0JdLfeX0MmrK02fOLNVvF3vG5uo/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/0JdLfeX0MmrK02fOLNVvF3vG5uo/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/0JdLfeX0MmrK02fOLNVvF3vG5uo/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/0JdLfeX0MmrK02fOLNVvF3vG5uo/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/DetroitDavesRaves/~4/_nVKH2WKV_I" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://detroitdavesraves.blogspot.com/feeds/297709671755660700/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://detroitdavesraves.blogspot.com/2011/07/netstat-oneliner-list-ports-that-are.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/6603440187887047162/posts/default/297709671755660700?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/6603440187887047162/posts/default/297709671755660700?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/DetroitDavesRaves/~3/_nVKH2WKV_I/netstat-oneliner-list-ports-that-are.html" title="netstat oneliner: list the ports that are listening" /><author><name>David Werden</name><uri>https://profiles.google.com/113825799735131173967</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="//lh5.googleusercontent.com/-C1wSAXdWUgE/AAAAAAAAAAI/AAAAAAAAAAA/6OHJW0jUyp8/s512-c/photo.jpg" /></author><thr:total>0</thr:total><feedburner:origLink>http://detroitdavesraves.blogspot.com/2011/07/netstat-oneliner-list-ports-that-are.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CUcDR3s6eSp7ImA9WhdSEU4.&quot;"><id>tag:blogger.com,1999:blog-6603440187887047162.post-382677905931772322</id><published>2011-07-19T23:37:00.000-04:00</published><updated>2011-07-19T23:37:56.511-04:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-07-19T23:37:56.511-04:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="grep -i" /><category scheme="http://www.blogger.com/atom/ns#" term="oneliner scripts" /><category scheme="http://www.blogger.com/atom/ns#" term="ps -ef" /><category scheme="http://www.blogger.com/atom/ns#" term="ps oneliner" /><category scheme="http://www.blogger.com/atom/ns#" term="grep" /><category scheme="http://www.blogger.com/atom/ns#" term="-ef" /><category scheme="http://www.blogger.com/atom/ns#" term="grep -c" /><title>ps oneliner: search for a specific running process</title><content type="html">Have you ever wanted to verify/search for a running process? Or, have you ever wanted to see if you had multiple counts of the same process, possibly indicating orphans or hung processes?&lt;br /&gt;
&lt;br /&gt;
It's rather easy! As an example, assuming you are logged in as root or su'd, and looking for snort:&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;ps -ef | grep -v grep | grep snort&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
The "&lt;b&gt;grep -v grep&lt;/b&gt;" command will invert the selection for lines matching "grep"....so it will print ONLY lines that do not contain "grep". Why is this important? Well...it's not. However, the grep command is a process itself so if you have one running snort process, you will get two lines returned:&lt;br /&gt;
- the line containing the actual results for the real snort process&lt;br /&gt;
- the line containing the grep action(s)&lt;br /&gt;
&lt;br /&gt;
So, assuming that you have only snort running, and running only once, this command would return one line, showing the snort process information (including startup arguments...yay!)&lt;br /&gt;
&lt;br /&gt;
But what if you need to count how many processes? Add the &lt;b&gt;-c&lt;/b&gt; switch to the final pipe to grep:&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;ps -ef | grep -v grep | grep -c snort&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
This will return an integer value of the number of processes containing snort in the return of the ps command. &lt;br /&gt;
It's important to note that this DOES count/show EVERY line of the &lt;b&gt;ps &lt;/b&gt;output that contains "snort". This could, if you were running other programs that integrated with snort parts, such as Barnyard, count/show more than one line.&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;There is a lot more fun that could be had with this. For example, you could search for more than one process, use awk to strip their PIDs, and then find the difference of the two....a quick way to see if one of a group of automatically started programs might be have hung after the other one(s) restarted.&lt;br /&gt;
&lt;br /&gt;
Don't forget these helpful notes too:&lt;br /&gt;
grep -i&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ...case-insensitive&lt;br /&gt;
|| &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; ...logical OR operator...look for this OR that&lt;br /&gt;
&amp;amp;&amp;amp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ...logical AND operator....must match BOTH&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; --cat filename1 | grep something1 | grep something2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ...is inherently a logical AND operation&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6603440187887047162-382677905931772322?l=detroitdavesraves.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/Dp1zmpfO0VgwDfq2EMZqiFrE5Q4/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/Dp1zmpfO0VgwDfq2EMZqiFrE5Q4/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/Dp1zmpfO0VgwDfq2EMZqiFrE5Q4/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/Dp1zmpfO0VgwDfq2EMZqiFrE5Q4/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/DetroitDavesRaves/~4/9cP2AeaENeQ" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://detroitdavesraves.blogspot.com/feeds/382677905931772322/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://detroitdavesraves.blogspot.com/2011/07/ps-oneliner-search-for-specific-running.html#comment-form" title="2 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/6603440187887047162/posts/default/382677905931772322?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/6603440187887047162/posts/default/382677905931772322?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/DetroitDavesRaves/~3/9cP2AeaENeQ/ps-oneliner-search-for-specific-running.html" title="ps oneliner: search for a specific running process" /><author><name>David Werden</name><uri>https://profiles.google.com/113825799735131173967</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="//lh5.googleusercontent.com/-C1wSAXdWUgE/AAAAAAAAAAI/AAAAAAAAAAA/6OHJW0jUyp8/s512-c/photo.jpg" /></author><thr:total>2</thr:total><feedburner:origLink>http://detroitdavesraves.blogspot.com/2011/07/ps-oneliner-search-for-specific-running.html</feedburner:origLink></entry><entry gd:etag="W/&quot;D0IESHw-fSp7ImA9WhdTGEo.&quot;"><id>tag:blogger.com,1999:blog-6603440187887047162.post-5255181440295297768</id><published>2011-07-17T00:05:00.000-04:00</published><updated>2011-07-17T00:05:09.255-04:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-07-17T00:05:09.255-04:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="oneliner scripts" /><category scheme="http://www.blogger.com/atom/ns#" term="grep -B" /><category scheme="http://www.blogger.com/atom/ns#" term="grep" /><category scheme="http://www.blogger.com/atom/ns#" term="lines before" /><category scheme="http://www.blogger.com/atom/ns#" term="lines after" /><category scheme="http://www.blogger.com/atom/ns#" term="grep oneliner" /><category scheme="http://www.blogger.com/atom/ns#" term="grep -A" /><title>grep oneliner: get the line you want and its neighbors</title><content type="html">Grep is great for printing out a line (or multiple lines) that match&amp;nbsp;a given value. However, I have found it sometimes helpful to search large files, especially log files, at get the line I want plus a few before and after. &lt;br /&gt;
&lt;br /&gt;
If I want to find errors in the /var/log/messages file and I know the line will contain the word "ERROR", I can use the below to get all the lines matching (case-sensitive in this example) as well as 3 before and 3 after.&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;grep ERROR -B 3 -A 3 /var/log/messages&lt;/strong&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6603440187887047162-5255181440295297768?l=detroitdavesraves.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/q5nq-e690CtVX3wKnmNWPW8JDVM/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/q5nq-e690CtVX3wKnmNWPW8JDVM/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/q5nq-e690CtVX3wKnmNWPW8JDVM/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/q5nq-e690CtVX3wKnmNWPW8JDVM/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/DetroitDavesRaves/~4/zosv1l1_EoE" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://detroitdavesraves.blogspot.com/feeds/5255181440295297768/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://detroitdavesraves.blogspot.com/2011/07/grep-oneliner-get-line-you-want-and-its.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/6603440187887047162/posts/default/5255181440295297768?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/6603440187887047162/posts/default/5255181440295297768?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/DetroitDavesRaves/~3/zosv1l1_EoE/grep-oneliner-get-line-you-want-and-its.html" title="grep oneliner: get the line you want and its neighbors" /><author><name>David Werden</name><uri>https://profiles.google.com/113825799735131173967</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="//lh5.googleusercontent.com/-C1wSAXdWUgE/AAAAAAAAAAI/AAAAAAAAAAA/6OHJW0jUyp8/s512-c/photo.jpg" /></author><thr:total>0</thr:total><feedburner:origLink>http://detroitdavesraves.blogspot.com/2011/07/grep-oneliner-get-line-you-want-and-its.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DEQGQ306eip7ImA9WhdTF0U.&quot;"><id>tag:blogger.com,1999:blog-6603440187887047162.post-9056381947712145544</id><published>2011-07-15T23:18:00.000-04:00</published><updated>2011-07-15T23:18:42.312-04:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-07-15T23:18:42.312-04:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="ACM" /><category scheme="http://www.blogger.com/atom/ns#" term="Spyware and Adware" /><category scheme="http://www.blogger.com/atom/ns#" term="John Aycock" /><category scheme="http://www.blogger.com/atom/ns#" term="Book Review" /><category scheme="http://www.blogger.com/atom/ns#" term="SIGACT" /><title>Book Review Pending for ACM: Spyware and Adware</title><content type="html">In a few weeks, I think, I am going to have my third book review published in an ACM journal. Yay! While I would prefer to have time to actually do research and write something a little more substantial than a review, I do find the reviews to be a fun and enjoyable experience, as well as a learning one. &lt;br /&gt;
&lt;br /&gt;
This most recent review for SIGACT was actually for a relatively smaller book (less than 200 pages). The book itself is called Spyware and Adware by John Aycock. I am going to withhold any in depth comments, but I will say that this is a book that could be useful for one of the largest ranges of people I can think of for a technical book. It's also part of a bigger series by Springer.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6603440187887047162-9056381947712145544?l=detroitdavesraves.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/pHl7GR7vNxmiYPAnnFo_vaCNOk0/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/pHl7GR7vNxmiYPAnnFo_vaCNOk0/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/pHl7GR7vNxmiYPAnnFo_vaCNOk0/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/pHl7GR7vNxmiYPAnnFo_vaCNOk0/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/DetroitDavesRaves/~4/89_OJINYaFI" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://detroitdavesraves.blogspot.com/feeds/9056381947712145544/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://detroitdavesraves.blogspot.com/2011/07/book-review-pending-for-acm-spyware-and.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/6603440187887047162/posts/default/9056381947712145544?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/6603440187887047162/posts/default/9056381947712145544?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/DetroitDavesRaves/~3/89_OJINYaFI/book-review-pending-for-acm-spyware-and.html" title="Book Review Pending for ACM: Spyware and Adware" /><author><name>David Werden</name><uri>https://profiles.google.com/113825799735131173967</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="//lh5.googleusercontent.com/-C1wSAXdWUgE/AAAAAAAAAAI/AAAAAAAAAAA/6OHJW0jUyp8/s512-c/photo.jpg" /></author><thr:total>0</thr:total><feedburner:origLink>http://detroitdavesraves.blogspot.com/2011/07/book-review-pending-for-acm-spyware-and.html</feedburner:origLink></entry><entry gd:etag="W/&quot;D0MBRnk8fCp7ImA9WhdTF0U.&quot;"><id>tag:blogger.com,1999:blog-6603440187887047162.post-7065749758228327769</id><published>2011-07-15T23:03:00.001-04:00</published><updated>2011-07-15T23:04:17.774-04:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-07-15T23:04:17.774-04:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="alias oneliner" /><category scheme="http://www.blogger.com/atom/ns#" term="oneliner scripts" /><category scheme="http://www.blogger.com/atom/ns#" term="alias" /><category scheme="http://www.blogger.com/atom/ns#" term="Yum" /><title>alias oneliner: make yum installs a little faster</title><content type="html">I should preface this with: I KNOW that alias is a oneliner command by its very nature. :-)&amp;nbsp; But sometimes it's just fun to pass on even the little commands. dw&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Ever get tired of entering:&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;yum install WhatIWant&lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
then having to enter y or no to confirm. Or worse, being reminded by the system that you need to be root and then having to:&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;sudo yum install WhatIWant&lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
An easy thing to do in the bash shell is to use an alias. If you want permanent aliases, you can easily create these as well by creating the ~/.bash_aliases file, which will then run at start up. The file should have one row per alias command, exactly the same way you&amp;nbsp; would enter the below on the command line:&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;alias myyumi='sudo yum -y install' &lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
After running this command, I am now able to enter the below to install something and have the YES option assumed. The two side notes here are:&lt;br /&gt;
1) You must be in the sudoers file to execute this alias&lt;br /&gt;
2) If you do not have NOPASSWD set in the sudoers file then you WILL have to enter your password prior to the yum process starting.&lt;br /&gt;
&lt;br /&gt;
I have met the two conditions above and run the alias command. Now I can run:&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;myyumy WhatIWant&lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
and WhatIWant should install without any further interaction on my part (not accounting for any possible dependency hells that is).&lt;br /&gt;
&lt;br /&gt;
A note on the nameing of my alias:&lt;br /&gt;
- I like to use 'my' at the start of aliases as a matter of personal preference....because I made it. :-)&lt;br /&gt;
- The 'yum' in the middle should be easy to grasp: it's a representation of the root command, in this case yum. If it was a command like system-config-network then I would use 'snc'&lt;br /&gt;
- The 'y' at the end is the parameter(s) I am including in the aliases. Metacharacters can be used in aliases too. So if I wanted to run the system-config-network aliased and in the background I would create the alias like:&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;alias mysnc&amp;amp;='system-config-network &amp;amp;'&lt;/strong&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6603440187887047162-7065749758228327769?l=detroitdavesraves.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/6iq61tSiYQ-dn5i59Cqvn7ECd2E/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/6iq61tSiYQ-dn5i59Cqvn7ECd2E/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/6iq61tSiYQ-dn5i59Cqvn7ECd2E/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/6iq61tSiYQ-dn5i59Cqvn7ECd2E/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/DetroitDavesRaves/~4/fd-WLTNG1as" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://detroitdavesraves.blogspot.com/feeds/7065749758228327769/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://detroitdavesraves.blogspot.com/2011/07/alias-oneliner-make-yum-installs-little.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/6603440187887047162/posts/default/7065749758228327769?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/6603440187887047162/posts/default/7065749758228327769?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/DetroitDavesRaves/~3/fd-WLTNG1as/alias-oneliner-make-yum-installs-little.html" title="alias oneliner: make yum installs a little faster" /><author><name>David Werden</name><uri>https://profiles.google.com/113825799735131173967</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="//lh5.googleusercontent.com/-C1wSAXdWUgE/AAAAAAAAAAI/AAAAAAAAAAA/6OHJW0jUyp8/s512-c/photo.jpg" /></author><thr:total>0</thr:total><feedburner:origLink>http://detroitdavesraves.blogspot.com/2011/07/alias-oneliner-make-yum-installs-little.html</feedburner:origLink></entry><entry gd:etag="W/&quot;C0YNQXgyeCp7ImA9WhdTF00.&quot;"><id>tag:blogger.com,1999:blog-6603440187887047162.post-5136865826904961781</id><published>2011-07-14T23:39:00.000-04:00</published><updated>2011-07-14T23:39:50.690-04:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-07-14T23:39:50.690-04:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="oneliner scripts" /><category scheme="http://www.blogger.com/atom/ns#" term="append new line of text in file" /><category scheme="http://www.blogger.com/atom/ns#" term="sed oneliner" /><category scheme="http://www.blogger.com/atom/ns#" term="sed" /><title>sed onliner: append a new line of text to a file</title><content type="html">Missed a few days this week, but I think that it's okay to blame the&amp;nbsp;homework and my birthday. I already posted one &lt;strong&gt;sed&lt;/strong&gt; onliner dealing with the replacing of text. This one should append a new line to after a line that matches a sed script expression:&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;#!/bin/sh&lt;/strong&gt;&lt;br /&gt;
&lt;strong&gt;&lt;/strong&gt;&lt;br /&gt;
&lt;strong&gt;sed '/FINDME/ a\&lt;/strong&gt;&lt;br /&gt;
&lt;strong&gt;The new line we are adding` fileToEdit.conf&lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
The -i switch can be added to make this edit occur "in-place" (homework for the interested reader). &lt;br /&gt;
The new line is added after EVERY line matching the expression, in this case FINDME. I might get around to adding a part two to this, where you can append after only a single specific line, regardless of multiple matches. One way to do this would be with the ";" operator. However, I am getting back to my review assignment for school. Maybe tomorrow I will do this, or some Perl (yeah!)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6603440187887047162-5136865826904961781?l=detroitdavesraves.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/C_zWHlr3tx0e3iHTvMTrAlI0mIo/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/C_zWHlr3tx0e3iHTvMTrAlI0mIo/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/C_zWHlr3tx0e3iHTvMTrAlI0mIo/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/C_zWHlr3tx0e3iHTvMTrAlI0mIo/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/DetroitDavesRaves/~4/Z3lA71iu4cc" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://detroitdavesraves.blogspot.com/feeds/5136865826904961781/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://detroitdavesraves.blogspot.com/2011/07/sed-onliner-append-new-line-of-text-to.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/6603440187887047162/posts/default/5136865826904961781?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/6603440187887047162/posts/default/5136865826904961781?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/DetroitDavesRaves/~3/Z3lA71iu4cc/sed-onliner-append-new-line-of-text-to.html" title="sed onliner: append a new line of text to a file" /><author><name>David Werden</name><uri>https://profiles.google.com/113825799735131173967</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="//lh5.googleusercontent.com/-C1wSAXdWUgE/AAAAAAAAAAI/AAAAAAAAAAA/6OHJW0jUyp8/s512-c/photo.jpg" /></author><thr:total>0</thr:total><feedburner:origLink>http://detroitdavesraves.blogspot.com/2011/07/sed-onliner-append-new-line-of-text-to.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CUYGRnozcCp7ImA9WhdTFEk.&quot;"><id>tag:blogger.com,1999:blog-6603440187887047162.post-934700641982866444</id><published>2011-07-11T23:58:00.000-04:00</published><updated>2011-07-11T23:58:47.488-04:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-07-11T23:58:47.488-04:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="tar" /><category scheme="http://www.blogger.com/atom/ns#" term="oneliner scripts" /><category scheme="http://www.blogger.com/atom/ns#" term="network backup" /><category scheme="http://www.blogger.com/atom/ns#" term="tar oneliner" /><category scheme="http://www.blogger.com/atom/ns#" term="network tools" /><title>tar oneliner: backup to a network location</title><content type="html">&lt;strong&gt;tar&lt;/strong&gt; is a pretty straightforward and handy tool that anyone administering anything on a *nix box should learn. If I don't have a typo, the below one liner will create a system backup, excluding the named directories and send it via &lt;strong&gt;SSH&lt;/strong&gt; to a remote server, where the .tar file will be written. Errors are redirected ( &lt;strong&gt;2&amp;gt;&lt;/strong&gt; ) to a log file in /var/log/backups (assuming you have this directory and it has the appropriate permissions.&lt;br /&gt;
One last note: if you don't run this as root, you won't get a complete (if any) archive created.&lt;br /&gt;
&lt;br /&gt;
Command (the line break is only formatting on here. This command can be entered on one line.&lt;br /&gt;
&lt;strong&gt;tar cvpj --exclude=/dev/* --exclude=/sys/* --exclude=/tmp/* &lt;span style="color: blue;"&gt;/ &lt;/span&gt;2&amp;gt; /var/log/backups/`date +%d%M%Y`_Backup.log | ssh yourserver "cat &amp;gt; /home/backups/`date +%d%M%Y`_Backup.tar"&lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
c - create backup tar&lt;br /&gt;
v - list files being tarred&lt;br /&gt;
p - maintain file perms&lt;br /&gt;
j - use bzip2 (slower but deeper compression) / can use z instead which is gzip&lt;br /&gt;
g - could be added to this string of commands in order to create incremental backups&lt;br /&gt;
--exclude=&amp;nbsp;&amp;nbsp; exclude some directory. The trailing * will stop tar from creating an empty copy of the excluded directory.&lt;br /&gt;
ssh - should be self-explanatory&lt;br /&gt;
&lt;br /&gt;
To schedule this, you can use at or create a new cron entry such as:&lt;br /&gt;
10 * * * 1,3,5 /usr/bin/backup&lt;br /&gt;
were /usr/bin/backup is a script containing the above tar command and the command should run at 12:10 am on Monday, Wednesday, and Friday (days 1, 3, and 5 of the week)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6603440187887047162-934700641982866444?l=detroitdavesraves.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/SwyhK9jOLRtrg8-aA6w2ejO49xc/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/SwyhK9jOLRtrg8-aA6w2ejO49xc/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/SwyhK9jOLRtrg8-aA6w2ejO49xc/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/SwyhK9jOLRtrg8-aA6w2ejO49xc/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/DetroitDavesRaves/~4/FZgrl6ZtWXw" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://detroitdavesraves.blogspot.com/feeds/934700641982866444/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://detroitdavesraves.blogspot.com/2011/07/tar-oneliner-backup-to-network-location.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/6603440187887047162/posts/default/934700641982866444?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/6603440187887047162/posts/default/934700641982866444?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/DetroitDavesRaves/~3/FZgrl6ZtWXw/tar-oneliner-backup-to-network-location.html" title="tar oneliner: backup to a network location" /><author><name>David Werden</name><uri>https://profiles.google.com/113825799735131173967</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="//lh5.googleusercontent.com/-C1wSAXdWUgE/AAAAAAAAAAI/AAAAAAAAAAA/6OHJW0jUyp8/s512-c/photo.jpg" /></author><thr:total>0</thr:total><feedburner:origLink>http://detroitdavesraves.blogspot.com/2011/07/tar-oneliner-backup-to-network-location.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CkUARHo4cSp7ImA9WhdTE0g.&quot;"><id>tag:blogger.com,1999:blog-6603440187887047162.post-7571998357180347997</id><published>2011-07-10T22:10:00.000-04:00</published><updated>2011-07-10T22:10:45.439-04:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-07-10T22:10:45.439-04:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="ngrep" /><category scheme="http://www.blogger.com/atom/ns#" term="oneliner scripts" /><category scheme="http://www.blogger.com/atom/ns#" term="tcpdump" /><category scheme="http://www.blogger.com/atom/ns#" term="network tools" /><category scheme="http://www.blogger.com/atom/ns#" term="ngrep oneliner" /><title>ngrep oneliner: look for a domain name in DNS traffic</title><content type="html">&lt;strong&gt;ngrep&lt;/strong&gt; is a pretty useful tool and should be useful to any network security work. It is NOT the same as &lt;strong&gt;tcpdump&lt;/strong&gt;, in case anyone was wondering. I may be a little off in my explanation tonight, but &lt;strong&gt;ngrep&lt;/strong&gt; does something so much better than &lt;strong&gt;tcpdump&lt;/strong&gt;: searches for regex's.&lt;br /&gt;
&lt;br /&gt;
So, to search for a hostname, as a whole word, in DNS traffic in an already captured traffic file:&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;ngrep -w 'somehost' -I /stored/mypcaps.pcap port 53&lt;/strong&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6603440187887047162-7571998357180347997?l=detroitdavesraves.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/5W6xcOfcy6OjcP03Cac5JvMnbqE/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/5W6xcOfcy6OjcP03Cac5JvMnbqE/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/5W6xcOfcy6OjcP03Cac5JvMnbqE/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/5W6xcOfcy6OjcP03Cac5JvMnbqE/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/DetroitDavesRaves/~4/ZSa1qiDZiUE" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://detroitdavesraves.blogspot.com/feeds/7571998357180347997/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://detroitdavesraves.blogspot.com/2011/07/ngrep-oneliner-look-for-domain-name-in.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/6603440187887047162/posts/default/7571998357180347997?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/6603440187887047162/posts/default/7571998357180347997?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/DetroitDavesRaves/~3/ZSa1qiDZiUE/ngrep-oneliner-look-for-domain-name-in.html" title="ngrep oneliner: look for a domain name in DNS traffic" /><author><name>David Werden</name><uri>https://profiles.google.com/113825799735131173967</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="//lh5.googleusercontent.com/-C1wSAXdWUgE/AAAAAAAAAAI/AAAAAAAAAAA/6OHJW0jUyp8/s512-c/photo.jpg" /></author><thr:total>0</thr:total><feedburner:origLink>http://detroitdavesraves.blogspot.com/2011/07/ngrep-oneliner-look-for-domain-name-in.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CkUDRHY6cSp7ImA9WhdTE0g.&quot;"><id>tag:blogger.com,1999:blog-6603440187887047162.post-5697481331880903473</id><published>2011-07-09T22:25:00.000-04:00</published><updated>2011-07-10T22:11:15.819-04:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-07-10T22:11:15.819-04:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="oneliner scripts" /><category scheme="http://www.blogger.com/atom/ns#" term="mtr" /><category scheme="http://www.blogger.com/atom/ns#" term="network tools" /><category scheme="http://www.blogger.com/atom/ns#" term="mtr oneliner" /><title>mtr oneliner: better than tracert sometimes</title><content type="html">Another really quick on since I have two research papers to start &lt;bummer man=""&gt;. &lt;br /&gt;
A good tool for testing network link(s) is &lt;strong&gt;mtr&lt;/strong&gt;. Check out the man page on your favorite linux machine or on the net.&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;mtr google.com&lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
or, to use only IPv4 and skip DNS resolution on each hop:&lt;br /&gt;
mtr 4 --no-dns google.com&lt;br /&gt;
&lt;br /&gt;
or, if you want to do the same thing but see how fast you can get into trouble at work or home:&lt;br /&gt;
&lt;strong&gt;mtr 4 --no-dns playboy.com&lt;/strong&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6603440187887047162-5697481331880903473?l=detroitdavesraves.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/bAvBG3iAIMei8c-CeRi3YR89yIU/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/bAvBG3iAIMei8c-CeRi3YR89yIU/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/bAvBG3iAIMei8c-CeRi3YR89yIU/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/bAvBG3iAIMei8c-CeRi3YR89yIU/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/DetroitDavesRaves/~4/osPQHrPnW3A" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://detroitdavesraves.blogspot.com/feeds/5697481331880903473/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://detroitdavesraves.blogspot.com/2011/07/mtr-oneliner-better-than-tracert.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/6603440187887047162/posts/default/5697481331880903473?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/6603440187887047162/posts/default/5697481331880903473?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/DetroitDavesRaves/~3/osPQHrPnW3A/mtr-oneliner-better-than-tracert.html" title="mtr oneliner: better than tracert sometimes" /><author><name>David Werden</name><uri>https://profiles.google.com/113825799735131173967</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="//lh5.googleusercontent.com/-C1wSAXdWUgE/AAAAAAAAAAI/AAAAAAAAAAA/6OHJW0jUyp8/s512-c/photo.jpg" /></author><thr:total>0</thr:total><feedburner:origLink>http://detroitdavesraves.blogspot.com/2011/07/mtr-oneliner-better-than-tracert.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CkUDRHY5eip7ImA9WhdTE0g.&quot;"><id>tag:blogger.com,1999:blog-6603440187887047162.post-7948673689492036646</id><published>2011-07-08T23:24:00.000-04:00</published><updated>2011-07-10T22:11:15.822-04:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-07-10T22:11:15.822-04:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="oneliner scripts" /><category scheme="http://www.blogger.com/atom/ns#" term="netstat oneliner" /><category scheme="http://www.blogger.com/atom/ns#" term="nestat" /><category scheme="http://www.blogger.com/atom/ns#" term="network tools" /><title>netstat oneliner: what process are associated with what ports</title><content type="html">Ever wanted to know what ports are open and what process is using these ports? Run the below as root and you should have your answer.&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;netstat -tlnp&lt;/strong&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6603440187887047162-7948673689492036646?l=detroitdavesraves.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/g69W7UAWzqdZ7cpTGpoZycm4Enw/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/g69W7UAWzqdZ7cpTGpoZycm4Enw/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/g69W7UAWzqdZ7cpTGpoZycm4Enw/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/g69W7UAWzqdZ7cpTGpoZycm4Enw/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/DetroitDavesRaves/~4/XrbxxiVL7KE" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://detroitdavesraves.blogspot.com/feeds/7948673689492036646/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://detroitdavesraves.blogspot.com/2011/07/netstat-oneliner-what-process-are.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/6603440187887047162/posts/default/7948673689492036646?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/6603440187887047162/posts/default/7948673689492036646?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/DetroitDavesRaves/~3/XrbxxiVL7KE/netstat-oneliner-what-process-are.html" title="netstat oneliner: what process are associated with what ports" /><author><name>David Werden</name><uri>https://profiles.google.com/113825799735131173967</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="//lh5.googleusercontent.com/-C1wSAXdWUgE/AAAAAAAAAAI/AAAAAAAAAAA/6OHJW0jUyp8/s512-c/photo.jpg" /></author><thr:total>0</thr:total><feedburner:origLink>http://detroitdavesraves.blogspot.com/2011/07/netstat-oneliner-what-process-are.html</feedburner:origLink></entry><entry gd:etag="W/&quot;Dk4ERXc-fSp7ImA9WhdTEEU.&quot;"><id>tag:blogger.com,1999:blog-6603440187887047162.post-2589152402824632715</id><published>2011-07-07T20:28:00.001-04:00</published><updated>2011-07-07T20:28:24.955-04:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-07-07T20:28:24.955-04:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="awk" /><category scheme="http://www.blogger.com/atom/ns#" term="oneliner scripts" /><category scheme="http://www.blogger.com/atom/ns#" term="awk oneliner" /><title>awk oneliner - remove all extra whitespace from file</title><content type="html">Remove all extra whitespaces from each line of a file. Basically, a trim on both ends and all but one space between fields is removed:&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;awk '{ $1=$1; print }'&lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
Yup...another very hard one to write. :-) But useful in formating. This could be combined with another awk to replace each single space between fields with a delimeter of your choice.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6603440187887047162-2589152402824632715?l=detroitdavesraves.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/9NU_PoCtpyzYBkmbrQkUHf1leeU/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/9NU_PoCtpyzYBkmbrQkUHf1leeU/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/9NU_PoCtpyzYBkmbrQkUHf1leeU/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/9NU_PoCtpyzYBkmbrQkUHf1leeU/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/DetroitDavesRaves/~4/uqNQPQwIqqk" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://detroitdavesraves.blogspot.com/feeds/2589152402824632715/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://detroitdavesraves.blogspot.com/2011/07/awk-oneliner-remove-all-extra.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/6603440187887047162/posts/default/2589152402824632715?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/6603440187887047162/posts/default/2589152402824632715?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/DetroitDavesRaves/~3/uqNQPQwIqqk/awk-oneliner-remove-all-extra.html" title="awk oneliner - remove all extra whitespace from file" /><author><name>David Werden</name><uri>https://profiles.google.com/113825799735131173967</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="//lh5.googleusercontent.com/-C1wSAXdWUgE/AAAAAAAAAAI/AAAAAAAAAAA/6OHJW0jUyp8/s512-c/photo.jpg" /></author><thr:total>0</thr:total><feedburner:origLink>http://detroitdavesraves.blogspot.com/2011/07/awk-oneliner-remove-all-extra.html</feedburner:origLink></entry><entry gd:etag="W/&quot;Ak4NQH84eCp7ImA9WhdTEE0.&quot;"><id>tag:blogger.com,1999:blog-6603440187887047162.post-7531375194432568450</id><published>2011-07-06T23:23:00.000-04:00</published><updated>2011-07-06T23:23:11.130-04:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-07-06T23:23:11.130-04:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="oneliner scripts" /><category scheme="http://www.blogger.com/atom/ns#" term="user accounts locked out" /><category scheme="http://www.blogger.com/atom/ns#" term="passwd" /><title>passwd oneliner - Locked user account listing</title><content type="html">A quick one to get a list of user accounts that are locked out:&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;passwd -S -a | awk '/LK/{print $1}'&lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
Pretty straightforward but must be run as root.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6603440187887047162-7531375194432568450?l=detroitdavesraves.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/Fda80x9NIss0suUVNrfZ9YH56u0/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/Fda80x9NIss0suUVNrfZ9YH56u0/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/Fda80x9NIss0suUVNrfZ9YH56u0/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/Fda80x9NIss0suUVNrfZ9YH56u0/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/DetroitDavesRaves/~4/y4r3JwWiLz4" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://detroitdavesraves.blogspot.com/feeds/7531375194432568450/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://detroitdavesraves.blogspot.com/2011/07/passwd-oneliner-locked-user-account.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/6603440187887047162/posts/default/7531375194432568450?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/6603440187887047162/posts/default/7531375194432568450?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/DetroitDavesRaves/~3/y4r3JwWiLz4/passwd-oneliner-locked-user-account.html" title="passwd oneliner - Locked user account listing" /><author><name>David Werden</name><uri>https://profiles.google.com/113825799735131173967</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="//lh5.googleusercontent.com/-C1wSAXdWUgE/AAAAAAAAAAI/AAAAAAAAAAA/6OHJW0jUyp8/s512-c/photo.jpg" /></author><thr:total>0</thr:total><feedburner:origLink>http://detroitdavesraves.blogspot.com/2011/07/passwd-oneliner-locked-user-account.html</feedburner:origLink></entry><entry gd:etag="W/&quot;C0IFRno-eyp7ImA9WhZaF0g.&quot;"><id>tag:blogger.com,1999:blog-6603440187887047162.post-8521614619008147586</id><published>2011-07-03T23:51:00.000-04:00</published><updated>2011-07-03T23:51:57.453-04:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-07-03T23:51:57.453-04:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="oneliner scripts" /><category scheme="http://www.blogger.com/atom/ns#" term="--include" /><category scheme="http://www.blogger.com/atom/ns#" term="grep recursive" /><category scheme="http://www.blogger.com/atom/ns#" term="grep" /><category scheme="http://www.blogger.com/atom/ns#" term="-R" /><category scheme="http://www.blogger.com/atom/ns#" term="grep oneliner" /><title>grep oneliner: search for a value recursively</title><content type="html">Ever forget exactly which file you had placed some particular code in and really wanted to find it quick. Here's a grep oneliner to do just that. In this example, I am looking for "#define MAX_VALUE" in a directory containing many source files and sub-directories. &lt;br /&gt;
&lt;strong&gt;grep -R --include "*.c" "#define MAX_VALUE" .&lt;/strong&gt; &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Note: the "." indicates the current directory in Linux. If your files are in a different tree, just replace the "." with that tree's root location. For example, if you wanted to look /usr/bin/local/: &lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;grep -R --include "*.c" "#define MAX_VALUE" /usr/bin/local&lt;/strong&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6603440187887047162-8521614619008147586?l=detroitdavesraves.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/369MsFHNLWsBvZ6h8jy7DqUq9e8/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/369MsFHNLWsBvZ6h8jy7DqUq9e8/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/369MsFHNLWsBvZ6h8jy7DqUq9e8/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/369MsFHNLWsBvZ6h8jy7DqUq9e8/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/DetroitDavesRaves/~4/DrY4bQR_uP4" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://detroitdavesraves.blogspot.com/feeds/8521614619008147586/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://detroitdavesraves.blogspot.com/2011/07/grep-oneliner-search-for-value.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/6603440187887047162/posts/default/8521614619008147586?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/6603440187887047162/posts/default/8521614619008147586?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/DetroitDavesRaves/~3/DrY4bQR_uP4/grep-oneliner-search-for-value.html" title="grep oneliner: search for a value recursively" /><author><name>David Werden</name><uri>https://profiles.google.com/113825799735131173967</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="//lh5.googleusercontent.com/-C1wSAXdWUgE/AAAAAAAAAAI/AAAAAAAAAAA/6OHJW0jUyp8/s512-c/photo.jpg" /></author><thr:total>0</thr:total><feedburner:origLink>http://detroitdavesraves.blogspot.com/2011/07/grep-oneliner-search-for-value.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CEYAQns4fyp7ImA9WhZaFks.&quot;"><id>tag:blogger.com,1999:blog-6603440187887047162.post-5112802493091018778</id><published>2011-07-02T23:02:00.000-04:00</published><updated>2011-07-02T23:02:23.537-04:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-07-02T23:02:23.537-04:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="oneliner scripts" /><category scheme="http://www.blogger.com/atom/ns#" term="for" /><title>for oneliner - make backups in a directory</title><content type="html">&lt;div class="code"&gt;Create a backup copy of all filenames of a specific extension:&lt;/div&gt;&lt;div class="code"&gt;&lt;/div&gt;&lt;div class="code"&gt;for f in *.c; do cp $f $f.c.backup; done&lt;/div&gt;&lt;div class="code"&gt;&lt;/div&gt;&lt;div class="code"&gt;This will find all "c" files in the current directory you are in and then make a copy of them, appending ".backup" to the end of the original filename.&lt;br /&gt;
&lt;br /&gt;
Simple, and maybe overused....yet so nice to use sometimes when pushing around a lot of files.&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6603440187887047162-5112802493091018778?l=detroitdavesraves.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/eoOOnNjyLkGOZFCRNafBmN5r87g/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/eoOOnNjyLkGOZFCRNafBmN5r87g/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/eoOOnNjyLkGOZFCRNafBmN5r87g/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/eoOOnNjyLkGOZFCRNafBmN5r87g/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/DetroitDavesRaves/~4/XYlCnocymxA" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://detroitdavesraves.blogspot.com/feeds/5112802493091018778/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://detroitdavesraves.blogspot.com/2011/07/for-oneliner-make-backups-in-directory.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/6603440187887047162/posts/default/5112802493091018778?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/6603440187887047162/posts/default/5112802493091018778?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/DetroitDavesRaves/~3/XYlCnocymxA/for-oneliner-make-backups-in-directory.html" title="for oneliner - make backups in a directory" /><author><name>David Werden</name><uri>https://profiles.google.com/113825799735131173967</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="//lh5.googleusercontent.com/-C1wSAXdWUgE/AAAAAAAAAAI/AAAAAAAAAAA/6OHJW0jUyp8/s512-c/photo.jpg" /></author><thr:total>0</thr:total><feedburner:origLink>http://detroitdavesraves.blogspot.com/2011/07/for-oneliner-make-backups-in-directory.html</feedburner:origLink></entry><entry gd:etag="W/&quot;A0cESHk7fyp7ImA9WhZaFUo.&quot;"><id>tag:blogger.com,1999:blog-6603440187887047162.post-8223491071670232552</id><published>2011-07-01T23:56:00.001-04:00</published><updated>2011-07-01T23:56:49.707-04:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-07-01T23:56:49.707-04:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="oneliner" /><category scheme="http://www.blogger.com/atom/ns#" term="sed" /><category scheme="http://www.blogger.com/atom/ns#" term="replace text" /><title>sed oneliner - replace text in file</title><content type="html">One liner for use inside of a script where a line, or part of a line, or a file needs to be changed:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Suppose that we are passing the name of a file to edit to this script as the first parameter&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;OLDVARIABLE="the old variable"&lt;/strong&gt;&lt;br /&gt;
&lt;strong&gt;NEWVARIABLE="the new variable"&lt;/strong&gt;&lt;br /&gt;
...&lt;br /&gt;
&lt;strong&gt;sed -i "s/$OLDVARIABLE/$NEWVARIABLE/" $1&lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
This will do an in place (&lt;strong&gt;-i&lt;/strong&gt;) edit of the file passed to the sed script (the first parameter &lt;strong&gt;$1&lt;/strong&gt;). The sed script itself will do a substitution (&lt;strong&gt;s&lt;/strong&gt;) of the first instance of &lt;strong&gt;OLDVARIABLE&lt;/strong&gt; with the value of &lt;strong&gt;NEWVARIABLE&lt;/strong&gt;. If you wanted to do this at every instance, add (&lt;strong&gt;g&lt;/strong&gt;) to the end of the sed script &lt;strong&gt;/g"&lt;/strong&gt; &lt;br /&gt;
The double qoutes around the sed script are not a typo...they are there because I am using variables instead of text or regex.&lt;br /&gt;
And that's my oneliner for today...snuck it right in before midnight.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6603440187887047162-8223491071670232552?l=detroitdavesraves.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/HaK2Zb_uj8bzgoH_sT9q4cHy03g/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/HaK2Zb_uj8bzgoH_sT9q4cHy03g/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/HaK2Zb_uj8bzgoH_sT9q4cHy03g/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/HaK2Zb_uj8bzgoH_sT9q4cHy03g/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/DetroitDavesRaves/~4/2gLGugpR1Lw" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://detroitdavesraves.blogspot.com/feeds/8223491071670232552/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://detroitdavesraves.blogspot.com/2011/07/one-liner-for-use-inside-of-script.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/6603440187887047162/posts/default/8223491071670232552?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/6603440187887047162/posts/default/8223491071670232552?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/DetroitDavesRaves/~3/2gLGugpR1Lw/one-liner-for-use-inside-of-script.html" title="sed oneliner - replace text in file" /><author><name>David Werden</name><uri>https://profiles.google.com/113825799735131173967</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="//lh5.googleusercontent.com/-C1wSAXdWUgE/AAAAAAAAAAI/AAAAAAAAAAA/6OHJW0jUyp8/s512-c/photo.jpg" /></author><thr:total>0</thr:total><feedburner:origLink>http://detroitdavesraves.blogspot.com/2011/07/one-liner-for-use-inside-of-script.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CUINRHw-fSp7ImA9WhZaFEQ.&quot;"><id>tag:blogger.com,1999:blog-6603440187887047162.post-8881934073542697376</id><published>2011-07-01T00:13:00.000-04:00</published><updated>2011-07-01T00:13:15.255-04:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-07-01T00:13:15.255-04:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="oneliner scritps" /><title>July Gifts</title><content type="html">My birthday is this month and I realized that not only am I getting a little older but it's been some time since I really posted on here. So, amidst&amp;nbsp;a book review I am working on, family, school, an IEEE standard, and hopefully fishing, I have decided to try something new....but not really unique.&lt;br /&gt;
For the month of July, I want to try to post some useful oneliner script or small code block that I find helpful. I think I am going to start with some sed or awk love....but there are probably 8 billion of those on the net. I will think about while I dream of packets, beer, babes, and the beach. LOL&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6603440187887047162-8881934073542697376?l=detroitdavesraves.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/xGlVI2vYntq-U4qL8mxzW2Eannk/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/xGlVI2vYntq-U4qL8mxzW2Eannk/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/xGlVI2vYntq-U4qL8mxzW2Eannk/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/xGlVI2vYntq-U4qL8mxzW2Eannk/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/DetroitDavesRaves/~4/79RTDfmufIA" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://detroitdavesraves.blogspot.com/feeds/8881934073542697376/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://detroitdavesraves.blogspot.com/2011/07/july-gifts.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/6603440187887047162/posts/default/8881934073542697376?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/6603440187887047162/posts/default/8881934073542697376?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/DetroitDavesRaves/~3/79RTDfmufIA/july-gifts.html" title="July Gifts" /><author><name>David Werden</name><uri>https://profiles.google.com/113825799735131173967</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="//lh5.googleusercontent.com/-C1wSAXdWUgE/AAAAAAAAAAI/AAAAAAAAAAA/6OHJW0jUyp8/s512-c/photo.jpg" /></author><thr:total>0</thr:total><feedburner:origLink>http://detroitdavesraves.blogspot.com/2011/07/july-gifts.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CUQBRX44eip7ImA9WhZaFEQ.&quot;"><id>tag:blogger.com,1999:blog-6603440187887047162.post-8252897232906990987</id><published>2011-07-01T00:09:00.000-04:00</published><updated>2011-07-01T00:09:14.032-04:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-07-01T00:09:14.032-04:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="IT Certs" /><category scheme="http://www.blogger.com/atom/ns#" term="MCTS" /><category scheme="http://www.blogger.com/atom/ns#" term="GSNA" /><category scheme="http://www.blogger.com/atom/ns#" term="GCIA" /><category scheme="http://www.blogger.com/atom/ns#" term="CISSP" /><category scheme="http://www.blogger.com/atom/ns#" term="GSEC" /><title>Updated my certs --- GSNA and MCTS</title><content type="html">This last week I reviewed and sat the GSNA and the MS70-643 (which I was certain that I would fail). I ended up falling asleep in the GSNA and passing with 86%. Next time it'll be above 90% though. I was surprised at the 70-643. I took it cold a few months ago and bombed it...I think my score was just under 500. That was my first ever MS test experience and for some reason I thought the CISSP experience was more pleasant. In any event, I earned an 890 on that exam. &lt;br /&gt;
I had initially bought the vouchers (a 2-pack) for my previous job. However, I don't really need any MS certs now for where I am (Back in packet analysis heaven!!!!!). I do have another voucher out of the pack I bought, so I'll have to se that one. After that, maybe the full MCITP. &lt;br /&gt;
But I want to really look into is the SANS GSE or Cyber Guardian programs, the GREM, GCIH, and GCFA. Those sound like fun. Some linux ones would be cool too.&lt;br /&gt;
I realize that I like the certs. Not for my resume or my wall...but for my own sense of accomplishment. I mean let's face it, only the person sitting the exam knows for sure how much knowledge they had and how much brain-dump help that they had in passing. I like to learn new things, and expanding my skillset and then proving to ME that I learned something....I like that!!!&lt;br /&gt;
&lt;br /&gt;
I even made a picture:&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/-uiyKmecmwec/Tg1IItFwiBI/AAAAAAAAACc/M97XIITH1J8/s1600/AllLogosTogether.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="231" i$="true" src="http://4.bp.blogspot.com/-uiyKmecmwec/Tg1IItFwiBI/AAAAAAAAACc/M97XIITH1J8/s320/AllLogosTogether.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6603440187887047162-8252897232906990987?l=detroitdavesraves.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/RSs1x6deLPu8yguy-wQEitvHnCE/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/RSs1x6deLPu8yguy-wQEitvHnCE/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/RSs1x6deLPu8yguy-wQEitvHnCE/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/RSs1x6deLPu8yguy-wQEitvHnCE/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/DetroitDavesRaves/~4/b-2lXgtrg1k" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://detroitdavesraves.blogspot.com/feeds/8252897232906990987/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://detroitdavesraves.blogspot.com/2011/07/updated-my-certs-gsna-and-mcts.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/6603440187887047162/posts/default/8252897232906990987?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/6603440187887047162/posts/default/8252897232906990987?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/DetroitDavesRaves/~3/b-2lXgtrg1k/updated-my-certs-gsna-and-mcts.html" title="Updated my certs --- GSNA and MCTS" /><author><name>David Werden</name><uri>https://profiles.google.com/113825799735131173967</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="//lh5.googleusercontent.com/-C1wSAXdWUgE/AAAAAAAAAAI/AAAAAAAAAAA/6OHJW0jUyp8/s512-c/photo.jpg" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://4.bp.blogspot.com/-uiyKmecmwec/Tg1IItFwiBI/AAAAAAAAACc/M97XIITH1J8/s72-c/AllLogosTogether.jpg" height="72" width="72" /><thr:total>0</thr:total><feedburner:origLink>http://detroitdavesraves.blogspot.com/2011/07/updated-my-certs-gsna-and-mcts.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DEUDR34-eip7ImA9WhZRFEU.&quot;"><id>tag:blogger.com,1999:blog-6603440187887047162.post-6403033118534708675</id><published>2011-04-10T21:44:00.000-04:00</published><updated>2011-04-10T21:44:36.052-04:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-04-10T21:44:36.052-04:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Command Line" /><category scheme="http://www.blogger.com/atom/ns#" term="Windows 7" /><category scheme="http://www.blogger.com/atom/ns#" term="Robocopy" /><category scheme="http://www.blogger.com/atom/ns#" term="Backup" /><title>Robocopy on Windows 7</title><content type="html">I have never claimed to be an expert on, well, anything. However, I do like to try to learn something new every day and I usually stick to the "nerdy" stuff. I recently decided that I wanted to improve the way I backed up important data at home. At work, we script it and tar it and set the archive bits and get the emails...that always seemed like overkill to me. That is until I accidently ruined two, (YES, 2) removable HDD's in one night, including a one week old 1TB Seagate drive that I had bought on sale...bummer!&lt;br /&gt;
&lt;br /&gt;
I am not at an endstate yet in my search for the best backup solution for the home network. One thing I have been playing with is Robocopy...and oh what fun it has been. &lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;&lt;u&gt;My setup:&lt;/u&gt;&lt;/strong&gt;&lt;br /&gt;
- A new (non-dropped on the floor and ruined) 1TB GoFlex network storage drive.&lt;br /&gt;
- Many computers...but testing from the one with Windows 7 Professional.&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;&lt;u&gt;Source:&lt;/u&gt;&lt;/strong&gt;&lt;br /&gt;
c:\users\myusername\Desktop\CIS577&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;&lt;u&gt;Destination:&lt;/u&gt;&lt;/strong&gt;&lt;br /&gt;
\\GOFLEX_HOME\GoFlex Home Personal\Dave_School\CIS577&lt;br /&gt;
&lt;br /&gt;
&lt;u&gt;&lt;strong&gt;Goal&lt;/strong&gt;&lt;/u&gt;: &lt;br /&gt;
To back up school, family, and other documents on an automatic and easy basis...not to mention reliable. I should mention here that the Seagate software for the GoFlex comes with a backup solution that is fairly easy to use and customize. (Secretly, I just wanted an excuse to again play with Robocopy...remind myself of its functions and limitations).&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;&lt;u&gt;Command (From ELEVATED Command Prompt):&lt;/u&gt;&lt;/strong&gt;&lt;br /&gt;
$&amp;gt;robocopy c:\users\myusername\Desktop\CIS577&amp;nbsp;\\GOFLEX_HOME\GoFlex Home Personal\Dave_School\CIS577&amp;nbsp;/LOG:BackUpLogs\PicsBUlog /SAVE:BackUpJobs\PicsJob /B /V /E &lt;br /&gt;
&lt;br /&gt;
- The /E is probably redundant with the /B, but I wanted to add it to ensure the directory recursion. &lt;br /&gt;
&lt;br /&gt;
- The /LOG option points to a folder in the current working directory and the name of a command file for this particular backup job&lt;br /&gt;
&lt;br /&gt;
- The /SAVE option points to a folder in the current working directory and the name of the logfile for this particular backup job&lt;br /&gt;
&lt;br /&gt;
- The /V, like almost any other command line program....Verbosity...YEAH! :-)&lt;br /&gt;
&lt;br /&gt;
If I want to run this job as a service or just in the background, I can add the /MON option (/MON:#) with a number representing the number of changes made to the source that will automatically trigger the backup job again. Careful though...if you add this from a normal command prompt...you may be waiting AWHILE for anything to happen if you are not actively changing the source location.&lt;br /&gt;
&lt;br /&gt;
So Robocopy has been fun to play with today. I created jobs to backup all of our pictures from our recent trip to Gatlinburg and it is running better than copying through the GUI....yeah!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6603440187887047162-6403033118534708675?l=detroitdavesraves.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/b6dMA9a6biDMLhzQGOpab1-iR9U/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/b6dMA9a6biDMLhzQGOpab1-iR9U/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/b6dMA9a6biDMLhzQGOpab1-iR9U/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/b6dMA9a6biDMLhzQGOpab1-iR9U/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/DetroitDavesRaves/~4/doi7_J65wAw" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://detroitdavesraves.blogspot.com/feeds/6403033118534708675/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://detroitdavesraves.blogspot.com/2011/04/robocopy-on-windows-7.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/6603440187887047162/posts/default/6403033118534708675?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/6603440187887047162/posts/default/6403033118534708675?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/DetroitDavesRaves/~3/doi7_J65wAw/robocopy-on-windows-7.html" title="Robocopy on Windows 7" /><author><name>David Werden</name><uri>https://profiles.google.com/113825799735131173967</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="//lh5.googleusercontent.com/-C1wSAXdWUgE/AAAAAAAAAAI/AAAAAAAAAAA/6OHJW0jUyp8/s512-c/photo.jpg" /></author><thr:total>0</thr:total><feedburner:origLink>http://detroitdavesraves.blogspot.com/2011/04/robocopy-on-windows-7.html</feedburner:origLink></entry></feed>

