<?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>learnsomuch</title>
	<atom:link href="http://learnsomuch.com/updates/feed/" rel="self" type="application/rss+xml" />
	<link>http://learnsomuch.com/updates</link>
	<description>Techy Technical</description>
	<lastBuildDate>Wed, 21 Dec 2011 14:43:18 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Inner concept in Linux &#8211; Changing password of non-privileged users</title>
		<link>http://learnsomuch.com/updates/2011/12/21/inner-concept-in-linux-changing-password-of-non-privileged-users/</link>
		<comments>http://learnsomuch.com/updates/2011/12/21/inner-concept-in-linux-changing-password-of-non-privileged-users/#comments</comments>
		<pubDate>Wed, 21 Dec 2011 14:43:18 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Lessons]]></category>

		<guid isPermaLink="false">http://learnsomuch.com/updates/?p=50</guid>
		<description><![CDATA[There could be multiple users/groups/others which is a non-privileged user to perform a system function that requires root privileges, such as changing a password in Linux. One of the possible solution is to give the user root privileges; But, This &#8230; <a href="http://learnsomuch.com/updates/2011/12/21/inner-concept-in-linux-changing-password-of-non-privileged-users/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>There could be multiple users/groups/others which is a non-privileged user to perform a system function that requires root privileges, such as changing a password in Linux.<br />
One of the possible solution is to give the user root privileges;</p>
<p>But, This also gives the user complete control over the system, which is generally bad from a security perspective. Instead, the program is given the ability to run as if it were the root user, so that the system function can be carried out properly and the user isn&#8217;t actually given full system control. </p>
<p>This type of permission is called the suid (set user ID) permission or bit. When a program with the suid permission is executed by any user, that user&#8217;s euid (effective user ID) is changed to the uid of the program&#8217;s owner, and the program is executed. After the program execution completes, the user&#8217;s euid is changed back to its original value. This bit is denoted by the s in bold in the following file listing. There is also a sgid (set group ID) permission, which does the same thing with the effective group ID.</p>
<p>-rwsr-xr-x   1 root san 6023 Dec 20 12:00 /usr/bin/passwd  </p>
<p>Here is the passwd path with file permissions as mentioned above.If a user wanted to change password, then we would needs to run /usr/bin/passwd, which is owned by root and has the suid bit on. The uid would then be changed to root&#8217;s uid (which is 0) for the execution of passwd, and it would be switched back after the execution completes. This is where binary (1 or 0) comes in typical core techincal computers concepts involves. Programs that have the suid permission turned on and that are owned by the root user are typically called suid root programs.</p>
<p>Posibility of hacking: (Appraoch)</p>
<p>Changing the flow of program execution becomes very powerful. If the flow of a suid root program can be changed to execute an injected piece of arbitrary code, then the attacker could get the program to do anything as the root user. If the attacker decides to cause a suid root program to spawn a new user shell that he/she can access, the attacker will have root privileges at a user level. This is generally bad from a security perspective, as it gives the attacker full control of the system as the root user.</p>
<p>Learning from he above scenario:</p>
<p>Hacking to change the execution flow of a program still isn&#8217;t actually breaking any of the program or cracking passwords; Instead, hacker getting known with new ways/appraoches which never expected while developing. To do these methods of exploitation, and to write programs to prevent these types of exploits, requires a greater understanding of the lower-level Programming such as program memory.</p>
<p>Thanks for spending some time in reading this. Hope you enjoyed learning!<br />
Sankar</p>
]]></content:encoded>
			<wfw:commentRss>http://learnsomuch.com/updates/2011/12/21/inner-concept-in-linux-changing-password-of-non-privileged-users/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>dnsmap &#8211; tool for getting internal subdomain IP addresses</title>
		<link>http://learnsomuch.com/updates/2011/08/21/dnsmap-tool-for-getting-internal-subdomain-ip-addresses/</link>
		<comments>http://learnsomuch.com/updates/2011/08/21/dnsmap-tool-for-getting-internal-subdomain-ip-addresses/#comments</comments>
		<pubDate>Sun, 21 Aug 2011 21:14:34 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Backtrack 5]]></category>
		<category><![CDATA[Lessons]]></category>
		<category><![CDATA[Tools]]></category>

		<guid isPermaLink="false">http://learnsomuch.com/updates/?p=45</guid>
		<description><![CDATA[dnsmap &#8211; Network mapper Searches sub-domains for any public domain/website . We can also store all the details in text. such as notepad. Here is the sample details of google.com ************************************************* accounts.google.com IP address #1: 209.85.175.** ap.google.com IP address #1: &#8230; <a href="http://learnsomuch.com/updates/2011/08/21/dnsmap-tool-for-getting-internal-subdomain-ip-addresses/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>dnsmap &#8211; Network mapper<br />
Searches sub-domains for any public domain/website .<br />
We can also store all the details in text. such as notepad.</p>
<p><a href="http://learnsomuch.com/updates/wp-content/uploads/2011/08/dnsmap.png"><img class="alignnone size-large wp-image-46" title="dnsmap" src="http://learnsomuch.com/updates/wp-content/uploads/2011/08/dnsmap-1024x640.png" alt="" width="640" height="400" /></a></p>
<p>Here is the sample details of google.com<br />
*************************************************</p>
<p>accounts.google.com<br />
IP address #1: 209.85.175.**</p>
<p>ap.google.com<br />
IP address #1: 74.125.236.**<br />
blog.google.com<br />
IP address #1: 209.85.***.**<br />
catalog.google.com<br />
IP address #1:<br />
IP address #10:<br />
IP address #11:<br />
IP address #12:<br />
IP address #13:<br />
IP address #14:<br />
IP address #15:<br />
IP address #16:<br />
catalogue.google.com</p>
<p>d.google.com</p>
<p>directory.google.com</p>
<p>dl.google.com</p>
<p>download.google.com</p>
<p>downloads.google.com</p>
<p>email.google.com<br />
finance.google.com</p>
<p>gd.google.com</p>
<p>gg.google.com</p>
<p>groups.google.com</p>
<p>help.google.com</p>
<p>id.google.com<br />
IP address #16: 74.125.236.**</p>
<p>images.google.com<br />
IP address #1: 74.125.236.**</p>
<p>ipv6.google.com<br />
IPv6 address #1: 2404:6800:800b::**</p>
<p>kh.google.com</p>
<p>labs.google.com<br />
m.google.com<br />
IP address #1: 209.85.153.***<br />
mail.google.com<br />
IP address #1: 209.85.153.**<br />
mobile.google.com<br />
IP address #1: 209.85.153.***<br />
mt.google.com<br />
IP address #1: 209.85.153.***<br />
news.google.com</p>
<p>ns.google.com<br />
IP address #1: 216.239.32.**<br />
ns1.google.com<br />
IP address #1: 216.239.32.**<br />
ns2.google.com<br />
IP address #1: 216.239.34.**<br />
ns3.google.com<br />
IP address #1: 216.239.36.**</p>
<p>photo.google.com</p>
<p>photos.google.com</p>
<p>proxy.google.com<br />
IP address #1: 66.102.14.**<br />
IP address #2: 66.102.14.**<br />
research.google.com</p>
<p>sandbox.google.com<br />
IP address #1: 209.85.175.**<br />
sb.google.com</p>
<p>search.google.com</p>
<p>services.google.com</p>
<p>shopping.google.com</p>
<p>With all set of IP addresses <img src='http://learnsomuch.com/updates/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://learnsomuch.com/updates/2011/08/21/dnsmap-tool-for-getting-internal-subdomain-ip-addresses/feed/</wfw:commentRss>
		<slash:comments>51</slash:comments>
		</item>
		<item>
		<title>dnsenum &#8211; tool for detecting DNS related information</title>
		<link>http://learnsomuch.com/updates/2011/08/05/dnsenum-tool-for-detecting-dns-related-information/</link>
		<comments>http://learnsomuch.com/updates/2011/08/05/dnsenum-tool-for-detecting-dns-related-information/#comments</comments>
		<pubDate>Fri, 05 Aug 2011 14:06:14 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Backtrack 5]]></category>
		<category><![CDATA[Lessons]]></category>
		<category><![CDATA[Tools]]></category>

		<guid isPermaLink="false">http://learnsomuch.com/updates/?p=39</guid>
		<description><![CDATA[dnsenum is a pen test tool, for gathering information on DNS records for any public domain website. This tool is developed using perl programming. Information from this tool : 1. Host&#8217;s addresses. 2. Name server&#8217;s 3. MX Records. 4. trying &#8230; <a href="http://learnsomuch.com/updates/2011/08/05/dnsenum-tool-for-detecting-dns-related-information/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>dnsenum is a pen test tool, for gathering information on DNS records for any public domain website.<br />
This tool is developed using perl programming.<br />
Information from this tool :<br />
1. Host&#8217;s addresses.<br />
2. Name server&#8217;s<br />
3. MX Records.<br />
4. trying Zone transfers<br />
It also gives each DNS domain or subdomain IP addresses also.<br />
Here is the snapshot, how the information can be displayed.<br />
<a href="http://learnsomuch.com/updates/wp-content/uploads/2011/08/dnsenum.png"><img src="http://learnsomuch.com/updates/wp-content/uploads/2011/08/dnsenum-1024x640.png" alt="" title="dnsenum" width="640" height="400" class="alignnone size-large wp-image-40" /></a></p>
<p>root@bt# perl dnsenum.pl domainname.com<br />
*******<br />
Host&#8217;s address :</p>
<p>*********<br />
Name server&#8217;s</p>
<p>***************<br />
MX records<br />
***********<br />
Trying zone transfers.</p>
<p>********</p>
]]></content:encoded>
			<wfw:commentRss>http://learnsomuch.com/updates/2011/08/05/dnsenum-tool-for-detecting-dns-related-information/feed/</wfw:commentRss>
		<slash:comments>26</slash:comments>
		</item>
		<item>
		<title>dnsdict6 in Backtrack5</title>
		<link>http://learnsomuch.com/updates/2011/08/04/dnsdict6-in-backtrack5/</link>
		<comments>http://learnsomuch.com/updates/2011/08/04/dnsdict6-in-backtrack5/#comments</comments>
		<pubDate>Thu, 04 Aug 2011 17:22:12 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Backtrack 5]]></category>
		<category><![CDATA[Lessons]]></category>

		<guid isPermaLink="false">http://learnsomuch.com/updates/?p=29</guid>
		<description><![CDATA[Here is the tool for getting IPv6 address for any domain, if exists. root@bt# dnsdict6 -t 16 google.com Where t specifies number of threads. Hope you understood !]]></description>
			<content:encoded><![CDATA[<p>Here is the tool for getting IPv6 address for any domain, if exists.<br />
<a href="http://learnsomuch.com/updates/wp-content/uploads/2011/08/dnsdict6.png"><img class="alignnone size-medium wp-image-30" title="dnsdict6" src="http://learnsomuch.com/updates/wp-content/uploads/2011/08/dnsdict6-300x172.png" alt="Backtrack5" width="300" height="172" /></a></p>
<p>root@bt# dnsdict6 -t 16 google.com</p>
<p>Where t specifies number of threads.</p>
<p>Hope you understood !</p>
]]></content:encoded>
			<wfw:commentRss>http://learnsomuch.com/updates/2011/08/04/dnsdict6-in-backtrack5/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Screenshot tool for Backtrack 5</title>
		<link>http://learnsomuch.com/updates/2011/07/31/screenshot-tool-for-backtrack-5/</link>
		<comments>http://learnsomuch.com/updates/2011/07/31/screenshot-tool-for-backtrack-5/#comments</comments>
		<pubDate>Sun, 31 Jul 2011 22:35:31 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Backtrack 5]]></category>

		<guid isPermaLink="false">http://learnsomuch.com/updates/?p=25</guid>
		<description><![CDATA[Here is the Quick way to get Screenshot tool in Backtrack 5. For Backtrack 5, GNOME version has default disabled screenshot tool. So we need to install gnome utils to get that tool enabled. root@bt# apt-get install gnome-utils extract files&#8230;&#8230;100% &#8230; <a href="http://learnsomuch.com/updates/2011/07/31/screenshot-tool-for-backtrack-5/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><strong>Here is the Quick way to get Screenshot tool in Backtrack 5.</strong></p>
<p>For Backtrack 5, GNOME version has default disabled screenshot tool.<br />
So we need to install gnome utils to get that tool enabled.</p>
<p>root@bt# apt-get install gnome-utils<br />
extract files&#8230;&#8230;100%<br />
installed files&#8230;.100%<br />
done&#8230;</p>
<p>Now you can see the screenshot tool available under accessories &gt; screenshot</p>
]]></content:encoded>
			<wfw:commentRss>http://learnsomuch.com/updates/2011/07/31/screenshot-tool-for-backtrack-5/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>C Program to Assembly code in Linux</title>
		<link>http://learnsomuch.com/updates/2011/07/29/c-program-to-assembly-code-in-linux/</link>
		<comments>http://learnsomuch.com/updates/2011/07/29/c-program-to-assembly-code-in-linux/#comments</comments>
		<pubDate>Fri, 29 Jul 2011 10:44:29 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Assembly]]></category>
		<category><![CDATA[Lessons]]></category>
		<category><![CDATA[Shell]]></category>

		<guid isPermaLink="false">http://learnsomuch.com/updates/?p=16</guid>
		<description><![CDATA[Here is our first basic article on C Program “Hello World!” = Assemble code “Hello World!”. There are many Linux versions freely available. These days, most of the people are very interested to work on Linux instead of commercial OS like &#8230; <a href="http://learnsomuch.com/updates/2011/07/29/c-program-to-assembly-code-in-linux/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Here is our first basic article on <strong>C Program “Hello World!” = Assemble code “Hello World!”.</strong></p>
<p>There are many Linux versions freely available. These days, most of the people are very interested to work on Linux instead of commercial OS like Mac, Windows. We have shown these below screen shots in Ubuntu.</p>
<p>First open “Terminal” and then type ‘vi hello.c’<br />
Where vi = shell editor<br />
hello = name of the program<br />
.c    = is the representation to C program</p>
<p><a href="http://learnsomuch.com/updates/wp-content/uploads/2011/07/fig1ubuntu1.jpg"><img class="alignnone size-medium wp-image-18" title="fig1ubuntu" src="http://learnsomuch.com/updates/wp-content/uploads/2011/07/fig1ubuntu1-300x107.jpg" alt="" width="300" height="107" /></a></p>
<p>Fig: 1 Screen shot of Terminal with vi command</p>
<p>Now after this it will open a vi editor.<br />
Write C program in that editor.<br />
// Hello.c<br />
#include&lt;stdio.h&gt;<br />
void main()<br />
{<br />
printf(“Hello World! \n “);<br />
}</p>
<p>click on ESC button and type  “ :wq “</p>
<p>where :wq = will save the program</p>
<p><a href="http://learnsomuch.com/updates/wp-content/uploads/2011/07/fig2ubuntu1.jpg"><img class="alignnone size-medium wp-image-17" title="fig2ubuntu" src="http://learnsomuch.com/updates/wp-content/uploads/2011/07/fig2ubuntu1-300x168.jpg" alt="" width="300" height="168" /></a></p>
<p>Fig :2 compilation of our hello.c</p>
<p>compilation in Linux can be done using cc command.<br />
To print output, use ./a.out<br />
and finally here is our output, “Hello World!”<br />
We can also compile using different way so that we can use it to check assembly code too.</p>
<p>See the below screen shot fig 3: gdb compilation</p>
<p><a href="http://learnsomuch.com/updates/wp-content/uploads/2011/07/fig3ubuntu1.jpg"><img class="alignnone size-medium wp-image-19" title="fig3ubuntu" src="http://learnsomuch.com/updates/wp-content/uploads/2011/07/fig3ubuntu1-300x80.jpg" alt="" width="300" height="80" /></a></p>
<p>Here gcc is the compiler. But cc can be used to compile a program.<br />
GCC – GNU project C and C++ Compiler.<br />
When you invoke GCC, it normally does preprocessing, compilation, assembly and linking.<br />
For more information on GCC use “man cc or man gcc “ in shell</p>
<p>-ggdb<br />
Produce debugging information for use by GDB.  This means to use the most expressive format available (DWARF 2, stabs, or the native format if neither of those are supported), including GDB extensions if at all possible.</p>
<p>With -O, the compiler tries to reduce code size and execution time, without performing any optimizations that take a great deal of compilation time.<br />
-O also turns on -fomit-frame-pointer on machines where doing so does not interfere with debugging.<br />
Again, for more information on this use man command or command name – -help .<br />
Now after compilation  use “gdb program name”<br />
see the screen shot (Fig 4)</p>
<p><a href="http://learnsomuch.com/updates/wp-content/uploads/2011/07/fig4ubuntu1.jpg"><img class="alignnone size-medium wp-image-20" title="fig4ubuntu" src="http://learnsomuch.com/updates/wp-content/uploads/2011/07/fig4ubuntu1-300x103.jpg" alt="" width="300" height="103" /></a></p>
<p>Now after this you should see the last above line,</p>
<p>“Reading symbols form “/home/ ….. etcc “ = path / program …… done.<br />
This means that program read by the gdb. Now it asks for our turn to use the program.<br />
Type “ disas main”</p>
<p><a href="http://learnsomuch.com/updates/wp-content/uploads/2011/07/fig5ubuntu1.jpg"><img class="alignnone size-medium wp-image-21" title="fig5ubuntu" src="http://learnsomuch.com/updates/wp-content/uploads/2011/07/fig5ubuntu1-300x137.jpg" alt="" width="300" height="137" /></a></p>
<p>Here disas = disassemble<br />
disassemble means Disassemble a specified section of memory<br />
Now finally we got Assembly code with address for each instruction.<br />
Keep learning !</p>
]]></content:encoded>
			<wfw:commentRss>http://learnsomuch.com/updates/2011/07/29/c-program-to-assembly-code-in-linux/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
		<item>
		<title>Hello world!</title>
		<link>http://learnsomuch.com/updates/2011/07/05/hello-world/</link>
		<comments>http://learnsomuch.com/updates/2011/07/05/hello-world/#comments</comments>
		<pubDate>Tue, 05 Jul 2011 06:13:20 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://demogator.hostgator.com/wp/?p=1</guid>
		<description><![CDATA[Welcome all .. I still remember my first program in my college which prints &#8220;Hello World!&#8221;. Here we will post all new stuff and learning things. Sankar &#160;]]></description>
			<content:encoded><![CDATA[<p>Welcome all .. I still remember my first program in my college which prints &#8220;Hello World!&#8221;.</p>
<p>Here we will post all new stuff and learning things.</p>
<p>Sankar</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://learnsomuch.com/updates/2011/07/05/hello-world/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

