<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>WebstersProdigy &#187; Security Tools</title>
	<atom:link href="http://webstersprodigy.net/category/computers/security-tools/feed/" rel="self" type="application/rss+xml" />
	<link>http://webstersprodigy.net</link>
	<description>Updates every other Friday... usually</description>
	<lastBuildDate>Sat, 26 May 2012 06:58:56 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='webstersprodigy.net' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>WebstersProdigy &#187; Security Tools</title>
		<link>http://webstersprodigy.net</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://webstersprodigy.net/osd.xml" title="WebstersProdigy" />
	<atom:link rel='hub' href='http://webstersprodigy.net/?pushpress=hub'/>
		<item>
		<title>3 Quick Metasploit Tips</title>
		<link>http://webstersprodigy.net/2012/04/27/3-quick-metasploit-tips/</link>
		<comments>http://webstersprodigy.net/2012/04/27/3-quick-metasploit-tips/#comments</comments>
		<pubDate>Fri, 27 Apr 2012 13:00:29 +0000</pubDate>
		<dc:creator>webstersprodigy</dc:creator>
				<category><![CDATA[Security Tools]]></category>
		<category><![CDATA[metasploit]]></category>

		<guid isPermaLink="false">http://webstersprodigy.net/?p=1013</guid>
		<description><![CDATA[1. Grepping msfvenom, msfpayload To search through payloads in metasploit. One thing that doesn&#8217;t work is: ./msfvenom -l payloads &#124;grep php because output is directed to STDERR. So to search through metasploit modules from the command line, one way is to redirect STDERR to STDOUT. ./msfvenom -l payloads 2&#62;&#38;1 &#124;grep php 2. Using &#8216;reload&#8217;, &#8216;jobs&#8217;, [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=webstersprodigy.net&#038;blog=35949064&#038;post=1013&#038;subd=webstersprodigy&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><strong>1. Grepping msfvenom, msfpayload</strong></p>
<p>To search through payloads in metasploit. One thing that doesn&#8217;t work is:</p>
<blockquote><p>./msfvenom -l payloads |grep php</p></blockquote>
<p>because output is directed to STDERR. So to search through metasploit modules from the command line, one way is to redirect STDERR to STDOUT.</p>
<blockquote><p>./msfvenom -l payloads 2&gt;&amp;1  |grep php</p></blockquote>
<p><strong>2. Using &#8216;reload&#8217;, &#8216;jobs&#8217;, and &#8216;resource&#8217; for module testing</strong></p>
<p>When I was first modifying metasploit code, I restarted metasploit&#8230; which takes quite a bit of time and is a pain if you&#8217;ve only done like a one line change. But there&#8217;s a reload command that just reloads the module you&#8217;re working on, so that&#8217;s obviously much nicer.</p>
<p>Another couple commands that are handy for testing are &#8216;jobs&#8217; and &#8216;resource&#8217;. &#8216;jobs&#8217; will enumerate things that are running (and kill them, if you tell it to). &#8216;resource&#8217; simply is a set of commands which will execute as if you entered them in the console. I used &#8216;resource&#8217; for unit testing, and when I demo some more complicated attacks that will require actual code (coming soon), I&#8217;ll need to put that in a resource file.</p>
<p><strong>3. Nop sled Generation</strong></p>
<p>I recently ran into an exploit where the binary would look for repeating sequences (e.g. &#8216;x90x90&#8230;&#8217;), so I needed a custom nop sled. Also, I wanted to save the value of some registers. I was (coincidentally) pointed at Metasploit&#8217;s <a href="http://dev.metasploit.com/redmine/projects/framework/repository/revisions/master/entry/lib/rex/nop/opty2.rb">Opty2</a>. The usage is:</p>
<blockquote><p>  &gt; use nop/x86/opty2<br />
msf  nop(opty2) &gt; generate -h<br />
Usage: generate [options] length</p>
<p>Generates a NOP sled of a given length.</p>
<p>OPTIONS:</p>
<p>    -b   The list of characters to avoid: &#8216;x00xff&#8217;<br />
    -h        Help banner.<br />
    -s   The comma separated list of registers to save.<br />
    -t   The output type: ruby, perl, c, or raw.</p></blockquote>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/webstersprodigy.wordpress.com/1013/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/webstersprodigy.wordpress.com/1013/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/webstersprodigy.wordpress.com/1013/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/webstersprodigy.wordpress.com/1013/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/webstersprodigy.wordpress.com/1013/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/webstersprodigy.wordpress.com/1013/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/webstersprodigy.wordpress.com/1013/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/webstersprodigy.wordpress.com/1013/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/webstersprodigy.wordpress.com/1013/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/webstersprodigy.wordpress.com/1013/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/webstersprodigy.wordpress.com/1013/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/webstersprodigy.wordpress.com/1013/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/webstersprodigy.wordpress.com/1013/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/webstersprodigy.wordpress.com/1013/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=webstersprodigy.net&#038;blog=35949064&#038;post=1013&#038;subd=webstersprodigy&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://webstersprodigy.net/2012/04/27/3-quick-metasploit-tips/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/be2c27a28b3788a3b9a7a8fa243d2978?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">webstersprodigy</media:title>
		</media:content>
	</item>
		<item>
		<title>Toorcon 2010 Talk</title>
		<link>http://webstersprodigy.net/2010/10/30/toorcon-2010-talk/</link>
		<comments>http://webstersprodigy.net/2010/10/30/toorcon-2010-talk/#comments</comments>
		<pubDate>Sat, 30 Oct 2010 05:50:51 +0000</pubDate>
		<dc:creator>webstersprodigy</dc:creator>
				<category><![CDATA[Security Tools]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[csrf]]></category>
		<category><![CDATA[paper]]></category>
		<category><![CDATA[toorcon]]></category>
		<category><![CDATA[xss]]></category>

		<guid isPermaLink="false">http://webstersprodigy.net/?p=736</guid>
		<description><![CDATA[My over caffeinated self somehow managed to stumble through the talk at toorcon. I&#8217;m self critical over the whole thing, but still overall a great experience, and I&#8217;m glad I did it. I was totally nervous. This was my first &#8216;con&#8217; and the room was packed (people standing at the wall), I spotted relatively famous [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=webstersprodigy.net&#038;blog=35949064&#038;post=736&#038;subd=webstersprodigy&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>My over caffeinated self somehow managed to stumble through the talk at toorcon. I&#8217;m self critical over the whole thing, but still overall a great experience, and I&#8217;m glad I did it. </p>
<p>I was totally nervous. This was my first &#8216;con&#8217; and the room was packed (people standing at the wall), I spotted relatively famous hackers in the audience, etc. I needed more beer!</p>
<p>Hopefully the next one I&#8217;ll relax, slow down, not use filler words, etc :)</p>
<p><span style="text-align:center; display: block;"><a href="http://webstersprodigy.net/2010/10/30/toorcon-2010-talk/"><img src="http://img.youtube.com/vi/EqmG8fnGoes/2.jpg" alt="" /></a></span><br />
<br />
<span style="text-align:center; display: block;"><a href="http://webstersprodigy.net/2010/10/30/toorcon-2010-talk/"><img src="http://img.youtube.com/vi/c2cQ1ATxLhY/2.jpg" alt="" /></a></span></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/webstersprodigy.wordpress.com/736/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/webstersprodigy.wordpress.com/736/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/webstersprodigy.wordpress.com/736/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/webstersprodigy.wordpress.com/736/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/webstersprodigy.wordpress.com/736/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/webstersprodigy.wordpress.com/736/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/webstersprodigy.wordpress.com/736/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/webstersprodigy.wordpress.com/736/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/webstersprodigy.wordpress.com/736/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/webstersprodigy.wordpress.com/736/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/webstersprodigy.wordpress.com/736/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/webstersprodigy.wordpress.com/736/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/webstersprodigy.wordpress.com/736/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/webstersprodigy.wordpress.com/736/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=webstersprodigy.net&#038;blog=35949064&#038;post=736&#038;subd=webstersprodigy&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://webstersprodigy.net/2010/10/30/toorcon-2010-talk/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/be2c27a28b3788a3b9a7a8fa243d2978?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">webstersprodigy</media:title>
		</media:content>
	</item>
		<item>
		<title>proxychains &#8211; handy tool!</title>
		<link>http://webstersprodigy.net/2009/12/06/proxychains-handy-tool/</link>
		<comments>http://webstersprodigy.net/2009/12/06/proxychains-handy-tool/#comments</comments>
		<pubDate>Sun, 06 Dec 2009 06:11:51 +0000</pubDate>
		<dc:creator>webstersprodigy</dc:creator>
				<category><![CDATA[Network]]></category>
		<category><![CDATA[Security Tools]]></category>

		<guid isPermaLink="false">http://webstersprodigy.net/?p=643</guid>
		<description><![CDATA[proxychains is a pretty amazing tool available at http://proxychains.sourceforge.net/. It is a versitile proxy tool. So folks like me, who would like the source IPs to be from a proxy, or multiple proxys. For me, the main uses are proxying gui port scan stuff like nessus and proxying tor.ychains.sourceforge.net/. It is a versitile proxy tool. So folks like me, who would like the source IPs to be from a proxy, or multiple proxys. For me, the main uses are proxying gui port scan stuff like nessus and proxying tor.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=webstersprodigy.net&#038;blog=35949064&#038;post=643&#038;subd=webstersprodigy&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>proxychains is a pretty amazing tool available at http://proxychains.sourceforge.net/. It is a versitile proxy tool. So folks like me, who would like the source IPs to be from a proxy, or multiple proxys. For me, the main uses are proxying gui port scan stuff like nessus and proxying tor.</p>
<p>Proxying port scans can be handy if you want the address to come from something else. For example, you might have an ssh server somewhere that you&#8217;d like to scan from. Or you might want to port scan through tor. To porscan through an ssh server</p>
<blockquote><p>ssh -D 2323 mysshserver</p>
<p>#edit /etc/proxychains.conf  so socks4 is set to 2323</p>
<p>#socks4  127.0.0.1 2323</p>
<p>proxychains nmap -T4&#8230;</p></blockquote>
<p>then all nmap traffic will appear to come from your ssh server. Very cool! In addition, you can set up a tor proxy, haver proxychains point to it from proxychains.conf, and launch your program similarly using proxychains. This has the advantage of having everything go through tor. So if you wanted you could port scan through tor.</p>
<p>A usually more legitimate use would be to launch firefox using proxychains through tor. This is superior to simply setting the proxy through ff itself because when ff sets a local proxy there is still dns leakage, potential flash leakage etc. If it is launched through the proxy, all children of the process go through tor.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/webstersprodigy.wordpress.com/643/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/webstersprodigy.wordpress.com/643/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/webstersprodigy.wordpress.com/643/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/webstersprodigy.wordpress.com/643/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/webstersprodigy.wordpress.com/643/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/webstersprodigy.wordpress.com/643/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/webstersprodigy.wordpress.com/643/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/webstersprodigy.wordpress.com/643/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/webstersprodigy.wordpress.com/643/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/webstersprodigy.wordpress.com/643/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/webstersprodigy.wordpress.com/643/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/webstersprodigy.wordpress.com/643/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/webstersprodigy.wordpress.com/643/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/webstersprodigy.wordpress.com/643/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=webstersprodigy.net&#038;blog=35949064&#038;post=643&#038;subd=webstersprodigy&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://webstersprodigy.net/2009/12/06/proxychains-handy-tool/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/be2c27a28b3788a3b9a7a8fa243d2978?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">webstersprodigy</media:title>
		</media:content>
	</item>
		<item>
		<title>Where was the Hacker in the Room for X-FRAME-OPTIONs?</title>
		<link>http://webstersprodigy.net/2009/11/13/where-was-the-hacker-in-the-room-for-x-frame-options/</link>
		<comments>http://webstersprodigy.net/2009/11/13/where-was-the-hacker-in-the-room-for-x-frame-options/#comments</comments>
		<pubDate>Fri, 13 Nov 2009 08:12:34 +0000</pubDate>
		<dc:creator>webstersprodigy</dc:creator>
				<category><![CDATA[Security Tools]]></category>

		<guid isPermaLink="false">http://webstersprodigy.net/?p=740</guid>
		<description><![CDATA[Update: don&#8217;t worry, they took care of it &#8211; but as of Feb 2012 only IE:  http://blogs.msdn.com/b/ieinternals/archive/2010/03/30/combating-clickjacking-with-x-frame-options.aspx Or maybe where was the Dev in the room? Imagine you&#8217;re sitting at a computer logged into your favorite website, lolcats, and you click on a shady link while logged in. There are a lot of attack scenarios that start [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=webstersprodigy.net&#038;blog=35949064&#038;post=740&#038;subd=webstersprodigy&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><strong>Update:</strong> don&#8217;t worry, they took care of it &#8211; but as of Feb 2012 only IE:  <a href="http://blogs.msdn.com/b/ieinternals/archive/2010/03/30/combating-clickjacking-with-x-frame-options.aspx">http://blogs.msdn.com/b/ieinternals/archive/2010/03/30/combating-clickjacking-with-x-frame-options.aspx</a></p>
<p>Or maybe where was the Dev in the room?</p>
<p>Imagine you&#8217;re sitting at a computer logged into your favorite website, lolcats, and you click on a <a href="http://webstersprodigy.net">shady link</a> while logged in. There are a lot of attack scenarios that start this way.</p>
<p>Browsers have a cross domain policy that prevent the shady site from accessing any of your lolcats cookies, which typically contain your authentication tokens. But BY DESIGN, the shady site is certainly allowed to do requests (eg POST or GET) across domains. So there&#8217;s nothing to prevent the shady site from framing lolcats in an invisible iframe and having you play an animated whack-a-mole game, clicking exactly where the invisible lolcats site is having you inadvertently  rank the attacker&#8217;s disgusting kitten as cute. This is performed with your very own account, because the cookies are all legitimate from being logged in. This makes all your lolcats buddies laugh at your bad taste.</p>
<p>This is contrived, sure. But tools are getting a lot better to automate this sort of thing. You don&#8217;t need a whack-a-mole game to do clickjacking anymore, there are whole Javascript frameworks to automate everything. In fact, the attack is as easy as just getting them to visit the shady site, no clicks required. One such tool is:</p>
<p><a href="http://www.contextis.co.uk/resources/tools/clickjacking-tool/">http://www.contextis.co.uk/resources/tools/clickjacking-tool/</a></p>
<p>Currently clickjacking defense is treated somewhat less importantly than XSRFf, but the fact is, the surface area for a clickjacking attack is basically identical to XSRF. Both are confused deputy problems.</p>
<p>One of the first ways to defend against this attack was frame busting scripts, which are snippets of Javascript and HTML to try to make it so websites can&#8217;t be invisibly framed. These are notoriously difficult, and can vary from application to application. To deal with this problem, Spencer Low went into a cave of solitude for some time and came up with a pretty good framebusting solution. Unfortunately, it turns out whatever frame busting solution you have is circumventable using IE&#8217;s XSS filter in IE8 or IE9. Details are</p>
<p><a href="http://www.darkreading.com/security/vulnerabilities/showArticle.jhtml?articleID=225200337">http://www.darkreading.com/security/vulnerabilities/showArticle.jhtml?articleID=225200337</a></p>
<p>So there is only one defense that really works to defend against clickjacking, and this is X-FRAME-OPTIONs.  X-FRAME-OPTIONs is a newish header designed by Microsoft that&#8217;s now included in all modern browsers (chrome, Firefox, Safari, in addition to IE8 and IE9). What X-FRAME-OPTIONs does is set a header that says this response cannot be framed except under certain circumstances. There does need to be work on server applications to add this header, but I believe this is fundamentally the right approach to stop clickjacking. You don&#8217;t want lolcats framed by the shady site? Just configure lolcats to put the X-FRAME-OPTIONs header in the response and it cannot be framed.</p>
<p>Here&#8217;s the problem, X-FRAME-OPTIONs has three options: ALLOW, SAMEORIGIN, and DENY. That&#8217;s it. And they do exactly what you&#8217;d think they do.</p>
<p>What if, by design, I want my application to be framed by something in a different domain? There are a lot of legitimate circumstances this happens, and they pop up all the time in Online Services.</p>
<p>As a security industry, what we do right now in these situations is say there&#8217;s no good and easy defense. Web applications are sometimes vulnerable to clickjacking because the fact is there&#8217;s nothing good we can really do on these edge case scenarios. We can (and do) develop frame busting scripts that takes a lot of work, probably have holes, and are certainly bypassible in IE8 and IE9 due to the XSS protection unless we just explicitly switch off the XSS protection. It&#8217;s an active problem to determine if switching off XSS protection in order to <strong>hopefully </strong>develop a script that <strong>might </strong>with enough effort prevent clickjacking is worth it.</p>
<p>I wonder why when designing X-FRAME-OPTIONs it wasn&#8217;t just designed as a whitelist solution. Instead of only having the ALLOW, SAMEORIGIN, and DENY options, it could have a list of domains that are allowed to frame the content. It would make so much more sense to explicitly allow domains that are allowed to frame our application instead of being arbitrarily restricted to sameorigin. It would give us flexibility while at the same time allowing us to be safe.</p>
<p>I applaud the IE team for coming up with X-FRAME-OPTIONs in the first place, and for other browsers to adopt it. It can protect 95% of sites from clickjacking. I just wish that we didn&#8217;t have to have vulnerable sections of applications just because of the limitation of options.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/webstersprodigy.wordpress.com/740/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/webstersprodigy.wordpress.com/740/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/webstersprodigy.wordpress.com/740/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/webstersprodigy.wordpress.com/740/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/webstersprodigy.wordpress.com/740/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/webstersprodigy.wordpress.com/740/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/webstersprodigy.wordpress.com/740/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/webstersprodigy.wordpress.com/740/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/webstersprodigy.wordpress.com/740/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/webstersprodigy.wordpress.com/740/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/webstersprodigy.wordpress.com/740/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/webstersprodigy.wordpress.com/740/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/webstersprodigy.wordpress.com/740/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/webstersprodigy.wordpress.com/740/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=webstersprodigy.net&#038;blog=35949064&#038;post=740&#038;subd=webstersprodigy&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://webstersprodigy.net/2009/11/13/where-was-the-hacker-in-the-room-for-x-frame-options/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/be2c27a28b3788a3b9a7a8fa243d2978?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">webstersprodigy</media:title>
		</media:content>
	</item>
		<item>
		<title>gcc security tips</title>
		<link>http://webstersprodigy.net/2008/11/10/gcc-security-tips/</link>
		<comments>http://webstersprodigy.net/2008/11/10/gcc-security-tips/#comments</comments>
		<pubDate>Mon, 10 Nov 2008 19:43:11 +0000</pubDate>
		<dc:creator>webstersprodigy</dc:creator>
				<category><![CDATA[Bits and Bytes]]></category>
		<category><![CDATA[Security Tools]]></category>
		<category><![CDATA[C]]></category>
		<category><![CDATA[gcc]]></category>
		<category><![CDATA[overflow]]></category>

		<guid isPermaLink="false">http://webstersprodigy.net/?p=418</guid>
		<description><![CDATA[Here are some flags that may help vulnerable code from being executed. -D_FORTIFY_SOURCE=2 This should get rid of some buffer overflows that can be analyzed statically and some obvious ones (strcpying input, format string vulnerabilities). More information can be found here: http://gcc.gnu.org/ml/gcc-patches/2004-09/msg02055.html -fstack-protector-all From the man page: Emit extra code to check for buffer overflows, [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=webstersprodigy.net&#038;blog=35949064&#038;post=418&#038;subd=webstersprodigy&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Here are some flags that may help vulnerable code from being executed.</p>
<blockquote><p>
-D_FORTIFY_SOURCE=2
</p></blockquote>
<p>This should get rid of some buffer overflows that can be analyzed statically and some obvious ones (strcpying input, format string vulnerabilities).</p>
<p>More information can be found here: http://gcc.gnu.org/ml/gcc-patches/2004-09/msg02055.html</p>
<blockquote><p>
-fstack-protector-all
</p></blockquote>
<p>From the man page:</p>
<p>Emit extra code to check for buffer overflows, such as stack smashing attacks.  This is done by adding a guard variable to functions with vulnerable objects.  This includes functions that call alloca, and functions with buffers larger than 8 bytes. The guards are initialized when a function is entered and then checked when the function exits.  If a guard check fails, an error message is printed and the program exits.</p>
<p>(this is enabled by default in recent versions of Ubuntu)</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/webstersprodigy.wordpress.com/418/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/webstersprodigy.wordpress.com/418/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/webstersprodigy.wordpress.com/418/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/webstersprodigy.wordpress.com/418/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/webstersprodigy.wordpress.com/418/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/webstersprodigy.wordpress.com/418/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/webstersprodigy.wordpress.com/418/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/webstersprodigy.wordpress.com/418/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/webstersprodigy.wordpress.com/418/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/webstersprodigy.wordpress.com/418/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/webstersprodigy.wordpress.com/418/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/webstersprodigy.wordpress.com/418/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/webstersprodigy.wordpress.com/418/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/webstersprodigy.wordpress.com/418/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=webstersprodigy.net&#038;blog=35949064&#038;post=418&#038;subd=webstersprodigy&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://webstersprodigy.net/2008/11/10/gcc-security-tips/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/be2c27a28b3788a3b9a7a8fa243d2978?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">webstersprodigy</media:title>
		</media:content>
	</item>
		<item>
		<title>gnu readline &#8211; python</title>
		<link>http://webstersprodigy.net/2008/09/25/gnu-readline-python/</link>
		<comments>http://webstersprodigy.net/2008/09/25/gnu-readline-python/#comments</comments>
		<pubDate>Thu, 25 Sep 2008 19:06:58 +0000</pubDate>
		<dc:creator>webstersprodigy</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Security Tools]]></category>
		<category><![CDATA[python]]></category>

		<guid isPermaLink="false">http://webstersprodigy.net/?p=391</guid>
		<description><![CDATA[This is the very start of our cryptanal program frontend. (for more up to date see the Software page).<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=webstersprodigy.net&#038;blog=35949064&#038;post=391&#038;subd=webstersprodigy&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>This is the very start of our cryptanal program frontend</p>
<p><pre class="brush: python;">
#!/usr/bin/env python

import readline

&quot;&quot;&quot;The shell class is the front end for cryptanal&quot;&quot;&quot;

class shell:
  def __init__(self, filename=None):
    print&quot;&quot;&quot;
WWW         WW eEeEeEeE LL        CCCCC    OOOO    MMMM    MMMM  eEeEeEeE
 WW         W  EE       LL       Cc      OOO  OOO  MM MM  M  MM  EE
  WW       WW  EeEeE    LL      CC       OO    OO  MM  MMM   MM  EeEeE
  WWw WW  WW   EE       LL       Cc      OOO  OOO  MM        MM  EE
   WWW  WWW    eEeEeEeE LlLlLlL   CCCCC    OOOO    MM        MM  eEeEeEeE

                             TO CRYPTO-SHELL
  (Useful for deciphering what little Susie is writing to little Billy)
&quot;&quot;&quot;

    self.filename = filename
    self.crypto = None
    #if self.filename != None:
      #self.crypto = freqcount.subCryptAnal(self.filename)

    #setup the tab completion information here
    self.commands = [&quot;help&quot;, &quot;printfreq&quot;]
    readline.set_completer(self.completer)
    readline.parse_and_bind(&quot;tab: complete&quot;)

  #completer funtion for tab complete
  def completer(self, word, index):
    matches =
    try:
      return matches[index] + &quot; &quot;
    except IndexError:
      pass

  #this is the main event loop
  def mainloop(self):
    while 1:
      command=raw_input('&gt; ').lstrip()
      if command.lower().startswith('help'):
        self.help(command[4:].lstrip())
      else:
        print &quot;Error: command not recognized&quot;

  def help(self, args):
    print &quot;HELP&quot;

if __name__ == '__main__':
  thisshell = shell()
  thisshell.mainloop()
</pre></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/webstersprodigy.wordpress.com/391/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/webstersprodigy.wordpress.com/391/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/webstersprodigy.wordpress.com/391/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/webstersprodigy.wordpress.com/391/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/webstersprodigy.wordpress.com/391/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/webstersprodigy.wordpress.com/391/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/webstersprodigy.wordpress.com/391/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/webstersprodigy.wordpress.com/391/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/webstersprodigy.wordpress.com/391/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/webstersprodigy.wordpress.com/391/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/webstersprodigy.wordpress.com/391/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/webstersprodigy.wordpress.com/391/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/webstersprodigy.wordpress.com/391/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/webstersprodigy.wordpress.com/391/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=webstersprodigy.net&#038;blog=35949064&#038;post=391&#038;subd=webstersprodigy&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://webstersprodigy.net/2008/09/25/gnu-readline-python/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/be2c27a28b3788a3b9a7a8fa243d2978?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">webstersprodigy</media:title>
		</media:content>
	</item>
		<item>
		<title>Privilidge Separation in sshd</title>
		<link>http://webstersprodigy.net/2008/03/27/privilidge-separation-in-sshd/</link>
		<comments>http://webstersprodigy.net/2008/03/27/privilidge-separation-in-sshd/#comments</comments>
		<pubDate>Thu, 27 Mar 2008 01:59:45 +0000</pubDate>
		<dc:creator>webstersprodigy</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Security Tools]]></category>

		<guid isPermaLink="false">http://webstersprodigy.net/?p=294</guid>
		<description><![CDATA[This was accepted into openssh sometime in 2002.  It helps make openssh exploits more difficult in terms of gaining root.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=webstersprodigy.net&#038;blog=35949064&#038;post=294&#038;subd=webstersprodigy&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>This was accepted into openssh sometime in 2002.  It helps make openssh exploits more difficult in terms of gaining root.</p>
<p>Do a ps -ef on your system where an underprivilidged user is logged in via ssh.  eg</p>
<pre># ps -ef |grep sshd |grep myuser
root       28694  7865  0 Mar25 ?        00:00:00 sshd: myuser [priv]
myuser     28703 28694  0 Mar25 ?        00:00:00 sshd: myuser@pts/2</pre>
<p>While that [priv] may seem disconcerting, it (by itself) shouldn&#8217;t be.  There is privilege seperation in sshd  so that if an exploit is found in the child does not result in a system compromise.</p>
<p>http://www.citi.umich.edu/u/provos/ssh/privsep.html</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/webstersprodigy.wordpress.com/294/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/webstersprodigy.wordpress.com/294/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/webstersprodigy.wordpress.com/294/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/webstersprodigy.wordpress.com/294/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/webstersprodigy.wordpress.com/294/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/webstersprodigy.wordpress.com/294/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/webstersprodigy.wordpress.com/294/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/webstersprodigy.wordpress.com/294/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/webstersprodigy.wordpress.com/294/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/webstersprodigy.wordpress.com/294/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/webstersprodigy.wordpress.com/294/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/webstersprodigy.wordpress.com/294/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/webstersprodigy.wordpress.com/294/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/webstersprodigy.wordpress.com/294/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/webstersprodigy.wordpress.com/294/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/webstersprodigy.wordpress.com/294/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=webstersprodigy.net&#038;blog=35949064&#038;post=294&#038;subd=webstersprodigy&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://webstersprodigy.net/2008/03/27/privilidge-separation-in-sshd/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/be2c27a28b3788a3b9a7a8fa243d2978?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">webstersprodigy</media:title>
		</media:content>
	</item>
		<item>
		<title>Small Steps</title>
		<link>http://webstersprodigy.net/2008/03/12/small-steps/</link>
		<comments>http://webstersprodigy.net/2008/03/12/small-steps/#comments</comments>
		<pubDate>Wed, 12 Mar 2008 20:10:08 +0000</pubDate>
		<dc:creator>webstersprodigy</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Security Tools]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[bind]]></category>
		<category><![CDATA[postfix]]></category>
		<category><![CDATA[sysadmin]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://webstersprodigy.net/?p=288</guid>
		<description><![CDATA[These are some small steps you can take to make it harder for an attacker to figure out what version of some things you have running. These are specific to ubuntu:<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=webstersprodigy.net&#038;blog=35949064&#038;post=288&#038;subd=webstersprodigy&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>These are some small steps you can take to make it harder for an attacker to figure out what version of some things you have running. These are specific to ubuntu:</p>
<h3>apache</h3>
<p>Go into /etc/apache2/apache2.conf and change</p>
<blockquote><p>ServerTokens Full</p></blockquote>
<p>to</p>
<blockquote><p>ServerTokens Prod</p></blockquote>
<p>This will change your info for things like 404s, so instead of listing your exact os, version of apache, etc, it will only say something like &#8216;Apache Server at progeny.isu.edu Port 80&#8242;</p>
<h3>postfix</h3>
<p>change the smtpd_banner line to something like &#8220;smtpd_banner = $myhostname ESMTP $mail_name (Linux)&#8221; which will be much harder to figure out than all the crap this normally prints, which, once again, is the exact version of postfix you are running along with the os.</p>
<h3>bind</h3>
<p>By default, bind also lets people know all this info.  You can change this by changing the version = lines as follows</p>
<blockquote><p>options {<br />
&#8230;<br />
version &#8220;back off, dirt bag!&#8221;;<br />
&#8230;<br />
}</p></blockquote>
<p>Though many of these services can still be fingerprinted without too much effort, not reporting your version info for every service you run is probably a good idea.  So, for example, because of this, you may have a harder time figuring out that this server is running apache2.2 on ubuntu7.04 and postfix2.5&#8230; damn it.</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/webstersprodigy.wordpress.com/288/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/webstersprodigy.wordpress.com/288/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/webstersprodigy.wordpress.com/288/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/webstersprodigy.wordpress.com/288/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/webstersprodigy.wordpress.com/288/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/webstersprodigy.wordpress.com/288/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/webstersprodigy.wordpress.com/288/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/webstersprodigy.wordpress.com/288/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/webstersprodigy.wordpress.com/288/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/webstersprodigy.wordpress.com/288/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/webstersprodigy.wordpress.com/288/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/webstersprodigy.wordpress.com/288/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/webstersprodigy.wordpress.com/288/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/webstersprodigy.wordpress.com/288/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/webstersprodigy.wordpress.com/288/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/webstersprodigy.wordpress.com/288/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=webstersprodigy.net&#038;blog=35949064&#038;post=288&#038;subd=webstersprodigy&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://webstersprodigy.net/2008/03/12/small-steps/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/be2c27a28b3788a3b9a7a8fa243d2978?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">webstersprodigy</media:title>
		</media:content>
	</item>
		<item>
		<title>fpdns</title>
		<link>http://webstersprodigy.net/2008/02/12/fpdns/</link>
		<comments>http://webstersprodigy.net/2008/02/12/fpdns/#comments</comments>
		<pubDate>Tue, 12 Feb 2008 08:21:13 +0000</pubDate>
		<dc:creator>webstersprodigy</dc:creator>
				<category><![CDATA[Network]]></category>
		<category><![CDATA[Security Tools]]></category>
		<category><![CDATA[dig]]></category>
		<category><![CDATA[dns]]></category>
		<category><![CDATA[fingerprinting]]></category>

		<guid isPermaLink="false">http://webstersprodigy.net/?p=248</guid>
		<description><![CDATA[In an attempt to determint the bind version number remotely, usually something like: dig @dnsserver.net version.bind txt ch will give you what you need. However, this is a configuration option that can be tured off.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=webstersprodigy.net&#038;blog=35949064&#038;post=248&#038;subd=webstersprodigy&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>In an attempt to determint the bind version number remotely, usually something like:</p>
<blockquote><p>dig @dnsserver.net version.bind txt ch</p></blockquote>
<p>will give you what you need. However, this is a configuration option that can be turned off. ie, in named.conf they could have set the following</p>
<blockquote><p>options {<br />
&#8230;<br />
version &#8220;back off!&#8221;;<br />
&#8230;<br />
}</p></blockquote>
<p>and, uhh, yeah. that will return &#8220;back off!&#8221; for our version number, which isn&#8217;t very helpful.</p>
<p>Enter fpdns.</p>
<p>From the man page:</p>
<blockquote><p>fpdns is a program that remotely determines DNS server versions. It does this by sending<br />
a series of borderline DNS queries which are compared against a table of responses and<br />
server versions.</p>
<p>False positives or incorrect versions may be reported when trying to identify a set of<br />
servers residing behind a load-balancing apparatus where the servers are of different<br />
implementations, when a specific implementation behaves like a forwarder, behind a fireâ€<br />
wall without statefull inspection or without Application Intelligence.</p></blockquote>
<p>and it works pretty well from my preliminary tests.</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/webstersprodigy.wordpress.com/248/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/webstersprodigy.wordpress.com/248/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/webstersprodigy.wordpress.com/248/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/webstersprodigy.wordpress.com/248/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/webstersprodigy.wordpress.com/248/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/webstersprodigy.wordpress.com/248/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/webstersprodigy.wordpress.com/248/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/webstersprodigy.wordpress.com/248/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/webstersprodigy.wordpress.com/248/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/webstersprodigy.wordpress.com/248/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/webstersprodigy.wordpress.com/248/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/webstersprodigy.wordpress.com/248/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/webstersprodigy.wordpress.com/248/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/webstersprodigy.wordpress.com/248/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/webstersprodigy.wordpress.com/248/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/webstersprodigy.wordpress.com/248/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=webstersprodigy.net&#038;blog=35949064&#038;post=248&#038;subd=webstersprodigy&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://webstersprodigy.net/2008/02/12/fpdns/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/be2c27a28b3788a3b9a7a8fa243d2978?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">webstersprodigy</media:title>
		</media:content>
	</item>
		<item>
		<title>Really global environment variables for ssh</title>
		<link>http://webstersprodigy.net/2007/11/29/really-global-environment-variables-for-ssh/</link>
		<comments>http://webstersprodigy.net/2007/11/29/really-global-environment-variables-for-ssh/#comments</comments>
		<pubDate>Thu, 29 Nov 2007 18:53:51 +0000</pubDate>
		<dc:creator>webstersprodigy</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Security Tools]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[pam]]></category>
		<category><![CDATA[ssh]]></category>
		<category><![CDATA[sysadmin]]></category>

		<guid isPermaLink="false">http://webstersprodigy.net/?p=184</guid>
		<description><![CDATA[&#60;mopey&#62; how do I export a variable in pvm?  I add it to my .bashrc or .profile but it ignores it. &#60;mopey&#62; an environment variable &#60;mopey&#62; Because I get this error: &#60;mopey&#62; The value of the $PVM_ROOT environment &#60;mopey&#62; variable on compute-0-1 is invalid (&#8220;&#8221;). &#60;mopey&#62; Use the absolute path to the pvm3/ directory. &#60;mopey&#62; [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=webstersprodigy.net&#038;blog=35949064&#038;post=184&#038;subd=webstersprodigy&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>&lt;mopey&gt; how do I export a variable in pvm?  I add it to my .bashrc or .profile but it ignores it.<br />
&lt;mopey&gt; an environment variable<br />
&lt;mopey&gt; Because I get this error:<br />
&lt;mopey&gt; The value of the $PVM_ROOT environment<br />
&lt;mopey&gt; variable on compute-0-1 is invalid (&#8220;&#8221;).<br />
&lt;mopey&gt; Use the absolute path to the pvm3/ directory.<br />
&lt;mopey&gt; but if I ssh into compute-0-1, echo $PVM_ROOT it is set correctly<br />
&lt;staynalive_&gt; mopey: I don&#8217;t know much about PVM<br />
&lt;staynalive_&gt; but I would check to see if it gets set for non-login sessions<br />
&lt;staynalive_&gt; by doing (in one command) &#8220;ssh compute-0-1 printenv&#8221;<br />
&lt;staynalive_&gt; Yeah, I just tested it and that&#8217;s the issue.<br />
&lt;mopey&gt; good call, it&#8217;s not being set for some reason, although it&#8217;s &#8220;being set&#8221; in ~/.bashrc<br />
&lt;mopey&gt; where would I set it, if not bashrc?<br />
&lt;staynalive_&gt; Umm<br />
&lt;mopey&gt; my .profile calls bashrc btw, although that shouldn&#8217;t really matter since that&#8217;s only on interactive logins, right?<br />
&lt;staynalive_&gt; Yeah<br />
&lt;staynalive_&gt; I think I actully changed a ssh flag to carry the environment variables through to the new machine in a ssh session.<br />
&lt;staynalive_&gt; &#8220;PermitUserEnvironment yes&#8221;<br />
&lt;mopey&gt; oh.  well that&#8217;s handy.<br />
&lt;staynalive_&gt; That way if users set something up funky they can carry it to the nodes.<br />
&lt;staynalive_&gt; But the manual warns of some possible security issues&#8230;<br />
&lt;mopey&gt; if someone is on my frontend node, it&#8217;s only being used on the compute nodes, so it shouldn&#8217;t be that big of a deal.<br />
&lt;mopey&gt; since they are basically thin<br />
&lt;mopey&gt; aaah, ssh has env variables all of it&#8217;s own&#8230;<br />
&lt;mopey&gt; I remember telling you that at one point.  I guess I&#8217;m losing my marbles<br />
&#8230;</p>
<p>&lt;mopey&gt; has anyone ever gotten sshrc to succesfully set ssh environment variables?<br />
&lt;mopey&gt; it *should* be straightforward<br />
&lt;mopey&gt; the sshd man page says:  8.  If $HOME/.ssh/rc exists, runs it; else if /etc/ssh/sshrc exists, runs it; otherwise runs xauth.  The &#8220;rc&#8221; files are<br />
&lt;mopey&gt;  given the X11 authentication protocol and cookie in standard input.<br />
&lt;mopey&gt; is this not run (when I do &#8216;ssh compute-0-0 env&#8217;) because it is too late in the process?<br />
&lt;mopey&gt; because my $HOME/.ssh/environment _is_ run, and I can set them that way.  Except that I want to do it for all users and that seems to be a lame solution.<br />
&lt;mopey&gt; It seems like the command should be executed *after* the rc files are read (it&#8217;s step 9)<br />
&lt;mopey&gt; So I wonder why the hell it&#8217;s being ignored&#8230;<br />
&lt;mopey&gt; staynalive, you said you use &#8220;PermitUserEnvironment yes&#8221;.  So do you just set a $HOME/.ssh/environment for each user?</p>
<p>&#8230;</p>
<p>&lt;mopey&gt; haha<br />
&lt;mopey&gt; for those who care, pam overrides my ssh variables for the most part<br />
&lt;mopey&gt; so you can define variables in /etc/security/pam_env.conf<br />
&lt;mopey&gt; god, that took forever to figure out why my /etc/environment variables weren&#8217;t getting set over ssh<br />
* Vog-work has quit (&#8220;ChatZilla 0.9.79 [Firefox 2.0.0.10/2007111504]&#8220;)<br />
&lt;twinprism&gt; thanks for sharing, mopey, I care&#8230;<br />
&lt;mopey&gt; weird.<br />
&lt;mopey&gt; :)<br />
&lt;_sera&gt; I don&#8217;y<br />
&lt;_sera&gt; sheesh&#8230; don&#8217;t<br />
&lt;mopey&gt; Normally it probably doesn&#8217;t matter I&#8217;m sure.  Like if you get a bash shell and can actually execute profile/bashrc<br />
&lt;mopey&gt; But if you have a crippled pvm shell or something, it&#8217;s way important<br />
&lt;mopey&gt; plus I think pam_env is how PATHs and junk get set on login &#8211; at least on ubuntu<br />
&lt;mopey&gt; *gdm/kdm/xdm login</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/webstersprodigy.wordpress.com/184/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/webstersprodigy.wordpress.com/184/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/webstersprodigy.wordpress.com/184/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/webstersprodigy.wordpress.com/184/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/webstersprodigy.wordpress.com/184/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/webstersprodigy.wordpress.com/184/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/webstersprodigy.wordpress.com/184/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/webstersprodigy.wordpress.com/184/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/webstersprodigy.wordpress.com/184/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/webstersprodigy.wordpress.com/184/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/webstersprodigy.wordpress.com/184/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/webstersprodigy.wordpress.com/184/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/webstersprodigy.wordpress.com/184/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/webstersprodigy.wordpress.com/184/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/webstersprodigy.wordpress.com/184/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/webstersprodigy.wordpress.com/184/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=webstersprodigy.net&#038;blog=35949064&#038;post=184&#038;subd=webstersprodigy&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://webstersprodigy.net/2007/11/29/really-global-environment-variables-for-ssh/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/be2c27a28b3788a3b9a7a8fa243d2978?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">webstersprodigy</media:title>
		</media:content>
	</item>
	</channel>
</rss>
