<?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/"
	>

<channel>
	<title>Truth, Computing and Fail &#187; Security</title>
	<atom:link href="http://anomit.com/category/security/feed/" rel="self" type="application/rss+xml" />
	<link>http://anomit.com</link>
	<description></description>
	<lastBuildDate>Sun, 26 Dec 2010 19:39:20 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>One time XOR pad with /dev/urandom</title>
		<link>http://anomit.com/2008/06/27/one-time-xor-pad-with-devurandom/</link>
		<comments>http://anomit.com/2008/06/27/one-time-xor-pad-with-devurandom/#comments</comments>
		<pubDate>Thu, 26 Jun 2008 20:59:08 +0000</pubDate>
		<dc:creator>anomit</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[GNU/Linux]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[cryptography]]></category>
		<category><![CDATA[python]]></category>

		<guid isPermaLink="false">http://oni.ifastnet.com/2008/06/27/one-time-xor-pad-with-devurandom/</guid>
		<description><![CDATA[I made one I think doing a md5 hash of the resulting ciphertext would add an extra layer of security. What do the others think of this idea? Of course, the safe storage and transmission of the XOR key becomes an issue. Check the code and see if you could come up with suggestions to [...]]]></description>
			<content:encoded><![CDATA[<p>I made one <img src='http://anomit.com/wordpress/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  I think doing a md5 hash of the resulting ciphertext would add an extra layer of security. What do the others think of this idea? Of course, the safe storage and transmission of the XOR key becomes an issue. Check the code and see if you could come up with suggestions to optimize it. I particularly don&#8217;t like the exponential order for loop at the very end. The XOR key is stored in the xor-key file in the same directory where the code is run.</p>
<pre class="brush: python; title: ;">
import sys

if len(sys.argv)&lt;=1:
	print 'Usage: python basicsalt.py &lt;input file&gt;'
	sys.exit(1)

frandom=open('/dev/urandom','r')  #open the random device
fpickle=open(sys.argv[1],'r')	#open the input file in read-only mode
bytes=1024

key=open('xor-key','w')	#open/create the xor-key file

picklebuf=fpickle.read() #read the input file
fpickle.close()

fpickle=open(sys.argv[1],'w')	#open the input file in write mode
				#the ciphertext is stored in the same file
tempicklebuf=''			#temporary buffer for storing the ciphertext

fileLen=len(picklebuf)
print fileLen

#a function that doesn't exactly 'add' the salt in the classical sense of the term
def addsalt(pb,sb,fileLen):
	global tempicklebuf
	for i in range(fileLen):
		tempicklebuf+=chr(ord(pb[i]) ^ ord(sb[i]))	#just plain XOR

bufsalt=frandom.read(fileLen)
addsalt(picklebuf,bufsalt,fileLen)
key.write(bufsalt)

fpickle.write(tempicklebuf)
frandom.close()
key.close()
</pre>
]]></content:encoded>
			<wfw:commentRss>http://anomit.com/2008/06/27/one-time-xor-pad-with-devurandom/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>First run of BackTrack2</title>
		<link>http://anomit.com/2008/04/18/first-run-of-backtrack2/</link>
		<comments>http://anomit.com/2008/04/18/first-run-of-backtrack2/#comments</comments>
		<pubDate>Fri, 18 Apr 2008 18:03:12 +0000</pubDate>
		<dc:creator>anomit</dc:creator>
				<category><![CDATA[GNU/Linux]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Wireless networks]]></category>
		<category><![CDATA[aircrack]]></category>
		<category><![CDATA[cryptography]]></category>
		<category><![CDATA[hacking]]></category>

		<guid isPermaLink="false">http://oni.ifastnet.com/2008/04/18/first-run-of-backtrack2/</guid>
		<description><![CDATA[Yeah, I know BT3 Beta is doing the rounds but when learning something, I don&#8217;t exactly like to walk on the bleeding edge! The collection of tools is amazing and I don&#8217;t even need to go on blabbering about it. Its the distro of choice for security professionals. The multitude of scripts are simply vast [...]]]></description>
			<content:encoded><![CDATA[<p>Yeah, I know BT3 Beta is doing the rounds but when learning something, I don&#8217;t exactly like to walk on the bleeding edge!</p>
<p>The collection of tools is amazing and I don&#8217;t even need to go on blabbering about it. Its the distro of choice for security professionals. The multitude of scripts are simply vast each grouped neatly in the appropriate categories for radio analyzing, os fingerprinting, forensics etc etc (heck, I don&#8217;t even remember all of them).</p>
<p><a href='http://anomit.com/wordpress/wp-content/uploads/2008/04/dsc00123.jpg' title='dsc00123.JPG'><img src='http://anomit.com/wordpress/wp-content/uploads/2008/04/dsc00123-150x150.jpg' alt='dsc00123.JPG' /></a><br />
I booted into BT2 using the live CD. I prefer the live CD in this case as I don&#8217;t exactly wanna mess around with my wireless settings by creating and destroying multiple VAPs. Got down straight to work, fired up airodump-ng. Found a couple of clients connected to the AP near me. Deauth-ed them with aireplay-ng. To make sure it was working, called over a friend to my room, tested the deauth on his laptop and it was working!</p>
<p><a href='http://anomit.com/wordpress/wp-content/uploads/2008/04/dsc00125.jpg' title='dsc00125.JPG'><img src='http://anomit.com/wordpress/wp-content/uploads/2008/04/dsc00125-150x150.jpg' alt='dsc00125.JPG' /></a><br />
Ok, catch up with your breath. This is how I did it:</p>
<p>Created a VAP ath1 in monitor mode<br />
<code>wlanconfig ath1 create wlandev wifi0 wlanmode monitor</code><br />
I wont even explain how to start up airodump-ng. Its as easy as 1-2-3.</p>
<p>Deauth the clients using the MAC addresses found with aireplay-ng.<br />
<code>aireplay-ng -0 30 -c <i>client MAC address</i> -a <i> access point MAC address </i> ath1</code><br />
Here -0 means deauth and 30 is the number of deauth requests to be sent.</p>
<p>At this stage, you can easily spoof the MAC address and capture the packets intended to be received by the now disconnected client. Maybe get around MAC based authentication too if that is the first layer of security in a network.<br />
Finally, don&#8217;t forget to check out the documentation and tutorials at aircrack-ng.org</p>
]]></content:encoded>
			<wfw:commentRss>http://anomit.com/2008/04/18/first-run-of-backtrack2/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Something very volatile</title>
		<link>http://anomit.com/2008/03/06/something-very-volatile/</link>
		<comments>http://anomit.com/2008/03/06/something-very-volatile/#comments</comments>
		<pubDate>Thu, 06 Mar 2008 18:05:34 +0000</pubDate>
		<dc:creator>anomit</dc:creator>
				<category><![CDATA[Security]]></category>

		<guid isPermaLink="false">http://oni.ifastnet.com/2008/03/06/something-very-volatile/</guid>
		<description><![CDATA[Came across this some 5 days back on Digg, but was too tired and busy due to exams to post it. Anyways, it had just occurred to me while writing these assembly programs that we unknowingly put a lot of sensitive information in the RAM which maybe in some cases are unavoidable too. Watch the [...]]]></description>
			<content:encoded><![CDATA[<p>Came across <a href="http://blog.wired.com/27bstroke6/2008/02/researchers-dis.html">this</a> some 5 days back on Digg, but was too tired and busy due to exams to post it. Anyways, it had just occurred to me while writing these assembly programs that we unknowingly put a lot of sensitive information in the RAM which maybe in some cases are unavoidable too. Watch the video there too.</p>
]]></content:encoded>
			<wfw:commentRss>http://anomit.com/2008/03/06/something-very-volatile/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

